/* WC Variation Kit — swatch styles. Neutral defaults; override these classes
   in your theme/site CSS to match the brand. */

/* Keep WooCommerce's native select in the DOM for variation logic,
   but hide it visually so only the custom swatches show. */
.wcvk-swatches-wrap .wcvk-native-select,
.wcvk-swatches-wrap .wcvk-native-select select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-width: 1px !important;
	min-height: 1px !important;
	max-width: 1px !important;
	max-height: 1px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.wcvk-swatches-wrap {
	position: relative;
}

.wcvk-swatches {
	list-style: none !important;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px !important;
	padding: 0 !important;
}

.wcvk-swatches li {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
}

.wcvk-swatches button.wcvk-swatch,
.wcvk-swatches .wcvk-swatch {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	min-height: 38px !important;
	padding: 3px !important;
	border: 1px solid transparent !important;
	border-radius: 999px !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	outline: none;
	color: inherit;
	line-height: 1 !important;
	cursor: pointer;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.wcvk-swatches button.wcvk-swatch:hover,
.wcvk-swatches .wcvk-swatch:hover {
	transform: scale(1.06);
	background: transparent !important;
	background-color: transparent !important;
	border-radius: 999px !important;
}

.wcvk-swatches button.wcvk-swatch:active,
.wcvk-swatches button.wcvk-swatch:focus,
.wcvk-swatches button.wcvk-swatch:focus-visible,
.wcvk-swatches .wcvk-swatch:active,
.wcvk-swatches .wcvk-swatch:focus,
.wcvk-swatches .wcvk-swatch:focus-visible {
	background: transparent !important;
	background-color: transparent !important;
	border-radius: 999px !important;
	box-shadow: none !important;
}

.wcvk-swatches button.wcvk-swatch:focus-visible,
.wcvk-swatches .wcvk-swatch:focus-visible {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35) !important;
}

.wcvk-swatches button.wcvk-swatch.is-selected,
.wcvk-swatches .wcvk-swatch.is-selected {
	border-color: rgba(0, 0, 0, 0.85) !important;
	background: transparent !important;
	background-color: transparent !important;
	border-radius: 999px !important;
	box-shadow: none !important;
}

.wcvk-swatch__dot {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px !important;
}

/* Label fallback for terms with no colour set */
.wcvk-swatches button.wcvk-swatch--label,
.wcvk-swatches .wcvk-swatch--label {
	width: auto !important;
	height: auto !important;
	min-width: 34px !important;
	min-height: 34px !important;
	padding: 6px 12px !important;
	border-radius: 999px !important;
	font-size: 0.85rem;
	line-height: 1.2 !important;
}

.wcvk-swatches button.wcvk-swatch--label.is-selected,
.wcvk-swatches .wcvk-swatch--label.is-selected {
	border-color: rgba(0, 0, 0, 0.85) !important;
	border-width: 1px !important;
}

/* Archive/shop card swatches */
.wcvk-archive-swatches {
	margin: 8px 0;
}

.wcvk-archive-swatches .wcvk-swatch {
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	min-height: 30px !important;
	padding: 2px !important;
}

/* Out-of-stock colour */
.wcvk-swatch--oos {
	opacity: 0.4;
	cursor: pointer;
	position: relative;
}

.wcvk-swatch--oos::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 130%;
	height: 2px;
	background: rgba(0, 0, 0, 0.55);
	transform: translate(-50%, -50%) rotate(-45deg);
	border-radius: 999px;
	pointer-events: none;
}
