/* Compact presentation of native WoodMart controls; Woo owns selection/state. */
.variations_form .madness-swatch-search {
	display: block;
	width: min(100%, 320px);
	height: 40px;
	margin: 0 0 10px;
	font-size: 16px;
}
.variations_form .madness-swatch-status {
	display: block;
	margin-top: 5px;
	font-size: 12px;
}
.variations_form .madness-swatch-status:empty {
	display: none;
}
.variations_form .wd-swatch.madness-swatch-filtered {
	display: none !important;
}
.variations_form .wd-swatches-product.wd-swatches-single {
	--wd-swatch-h-sp: 6px;
	--wd-swatch-v-sp: 6px;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	padding: 3px;
}
.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch.wd-bg {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	width: auto;
	min-width: 52px;
	max-width: 112px;
	height: auto;
	min-height: 62px;
	padding: 5px 6px;
	border: 1px solid var(--madness-stone, #e9e6e1);
	border-radius: 0;
	background: var(--wd-main-bgcolor, #fff);
	box-shadow: none;
	transition: none;
}
.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch-bg {
	position: relative;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 0;
	box-shadow: inset 0 0 0 1px rgb(17 17 17 / 12%);
}
.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch-bg img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}
.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch.wd-bg .wd-swatch-text {
	display: block;
	padding: 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch.wd-text {
	min-width: 44px;
	min-height: 44px;
	padding: 5px 10px;
	border: 1px solid var(--madness-stone, #e9e6e1);
	border-radius: 0;
	transition: none;
}
.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch.wd-text .wd-swatch-text {
	font-size: 12px;
}
.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch:after {
	display: none;
}
.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch.wd-bg.wd-active {
	border-color: var(--madness-ink, #111);
	box-shadow: inset 0 0 0 1px var(--madness-ink, #111);
	outline: none;
}
.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch:focus-visible,
.variations_form .wd-swatch-divider:focus-visible {
	outline: 2px solid var(--madness-red, #ec1c2b);
	outline-offset: 1px;
}
.variations_form .wd-swatches-single.wd-all-shown {
	max-height: 286px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}
.variations_form .wd-swatches-single .wd-swatch-divider {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	min-height: 44px;
	padding: 6px;
	border: 1px solid var(--madness-stone, #e9e6e1);
	font-size: 12px;
}
.variations_form .wd-swatches-single.wd-all-shown .wd-swatch-divider {
	display: none;
}
@media (hover: hover) {
	.variations_form .wd-swatches-product.wd-swatches-single .wd-swatch:hover:not(.wd-disabled) {
		border-color: var(--madness-ink, #111);
	}
}
