/**
 * Styling voor de variatie-swatches.
 * Pas kleuren, afmetingen en border-radius hieronder gerust aan je huisstijl aan.
 */

/* Forceer het verbergen van de originele dropdown, ook als het thema een
   !important-regel of een eigen dropdown-skin (Select2/Chosen/Nice Select/
   Selectric) gebruikt. */
.variations select.wcvo-hidden-select {
	display: none !important;
}

.variations select.wcvo-hidden-select ~ .select2,
.variations select.wcvo-hidden-select ~ .select2-container,
.variations select.wcvo-hidden-select ~ .chosen-container,
.variations select.wcvo-hidden-select ~ .nice-select,
.variations select.wcvo-hidden-select ~ .selectric-wrapper {
	display: none !important;
}

.wcvo-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px;
}

.wcvo-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 8px 14px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wcvo-swatch:hover {
	border-color: #999;
}

.wcvo-swatch:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.wcvo-swatch.selected {
	border-color: #333;
	background: #333;
	color: #fff;
}

.wcvo-swatch.unavailable {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
	background: #f5f5f5;
}

.wcvo-swatch.unavailable:hover {
	border-color: #ccc;
}

.wcvo-swatch.unavailable.wcvo-hidden {
	display: none;
}
