.apc-selector {
	position: relative;
	clear: none;
	float: none;
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 18px 0 8px;
	border: 1px solid #e4e4e4;
	background: #fff;
	z-index: 2;
}

.apc-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	position: static;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 14px 16px;
	border: 0;
	background: #fff;
	color: #1f1f1f;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	inset: auto;
}

.apc-toggle-main {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.apc-caret {
	width: 8px;
	height: 8px;
	border-right: 1.5px solid #1f1f1f;
	border-bottom: 1.5px solid #1f1f1f;
	transform: rotate(45deg) translateY(-2px);
	flex: 0 0 auto;
}

.apc-selector.is-open .apc-caret {
	transform: rotate(225deg) translateY(-2px);
}

.apc-toggle-aside {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.03em;
	color: #6b6b6b;
	text-transform: none;
}

.apc-warning,
.apc-empty,
.apc-switch {
	margin: 0;
	padding: 8px 16px;
	font-size: 13px;
	line-height: 1.4;
}

.apc-warning,
.apc-switch {
	background: #fff6e8;
	color: #7a4b00;
}

.apc-empty {
	background: #f7f7f7;
	color: #444;
}

.apc-panel {
	border-top: 1px solid #ececec;
	max-height: 320px;
	overflow: auto;
}

.apc-options {
	display: block;
	margin: 0;
}

.apc-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	border-top: 1px solid #f2f2f2;
	cursor: pointer;
	text-align: left;
}

.apc-options .apc-option:first-child {
	border-top: 0;
}

.apc-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.apc-mark {
	width: 16px;
	height: 16px;
	border: 1.5px solid #bdbdbd;
	border-radius: 50%;
	flex: 0 0 16px;
	background: #fff;
}

.apc-option input:checked + .apc-mark {
	border-color: #1f1f1f;
	background: radial-gradient(circle, #1f1f1f 0 5px, #fff 6px);
}

.apc-option input:focus-visible + .apc-mark {
	outline: 2px solid #1f1f1f;
	outline-offset: 2px;
}

.apc-dot {
	width: 16px;
	height: 16px;
	border: 1px solid #d5d5d5;
	border-radius: 50%;
	flex: 0 0 16px;
}

.apc-dot-image {
	overflow: hidden;
}

.apc-dot-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.apc-dot-none {
	background:
		linear-gradient(135deg, transparent 45%, #9a9a9a 45%, #9a9a9a 55%, transparent 55%),
		#fff;
}

.apc-copy {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	gap: 2px;
}

.apc-name {
	color: #1f1f1f;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1.3;
	text-transform: uppercase;
}

.apc-size {
	color: #8a8a8a;
	font-size: 12px;
	line-height: 1.3;
}

.apc-aside {
	flex: 0 0 auto;
	color: #1f1f1f;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.apc-option input:checked ~ .apc-copy .apc-name {
	font-weight: 700;
}

.apc-selector.is-locked .apc-option {
	cursor: not-allowed;
}

.apc-selector .apc-options .apc-option {
	display: flex !important;
}

.apc-selector .apc-options .apc-option.is-hidden {
	display: none !important;
}

.apc-selector .apc-option.is-out {
	opacity: 0.45;
	color: #9a9a9a;
	cursor: not-allowed;
	pointer-events: none;
}

.apc-option.is-out .apc-name,
.apc-option.is-out .apc-aside,
.apc-option.is-out .apc-size,
.apc-option.is-out .apc-price {
	color: #9a9a9a;
	font-weight: 500;
}

.apc-warning[hidden],
.apc-empty[hidden],
.apc-switch[hidden],
.apc-total[hidden],
.apc-panel[hidden] {
	display: none !important;
}

.apc-total {
	margin: 0;
	padding: 10px 16px;
	border-top: 1px solid #f2f2f2;
	font-size: 14px;
	font-weight: 600;
}

.apc-frame-preview .wp-post-image,
.wd-gallery-images.apc-frame-preview .wd-carousel-item img {
	box-shadow: inset 0 0 0 var(--apc-frame-size, 16px) var(--apc-frame-color, #1f1f1f);
}

.apc-locked-qty {
	display: inline-block;
	min-width: 2em;
	text-align: center;
}
