/**
 * Swatch buttons for variation dropdowns.
 *
 * The native select stays in the DOM and keeps working; it is moved off-screen
 * rather than display:none so WooCommerce, screen readers and form submission
 * all still see it.
 *
 * !important is carried over from the snippet this replaces: legacy CSS on this
 * site uses heavy !important, and without it the swatch colours lose.
 */
.variations_form .spartan-hidden-select {
	position: absolute !important;
	opacity: 0 !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

.variations_form .spartan-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 2px;
}

.variations_form .spartan-swatch {
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	line-height: 1;
	padding: 10px 16px;
	border: 1.5px solid #C9CFD6 !important;
	background: #ffffff !important;
	color: #001F3F !important;
	border-radius: 4px;
	cursor: pointer;
	transition: all .15s ease;
}

.variations_form .spartan-swatch:hover {
	border-color: #4B9CD3 !important;
}

.variations_form .spartan-swatch.spartan-active {
	border-color: #001F3F !important;
	background: #001F3F !important;
	color: #ffffff !important;
}

.variations_form .spartan-swatch.spartan-disabled {
	opacity: .4 !important;
	text-decoration: line-through;
	cursor: not-allowed;
	border-style: dashed !important;
}
