/*
 * EE Variant Swatches — bundled swatch stylesheet.
 *
 * The widget ships bare <button> elements, which on phones stacked full-width and had
 * sub-24px tap surfaces. This stylesheet gives the swatch groups a flex-wrap layout at
 * every viewport, a consistent gap, and WCAG 2.5.8 24×24 minimum interactive size on
 * every option button. The three "swatch_shape" modifiers (rounded / square / pill) each
 * pick their own border-radius. Colour and font remain user-controlled through Elementor
 * global colours / typography because we do not restate them here.
 *
 * @since Premium 3.6.6
 */

.ee-woo-variant-swatches {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ee-woo-variant-swatches--empty {
	padding: 12px;
	border: 1px dashed rgba( 15, 23, 42, 0.2 );
	color: rgba( 15, 23, 42, 0.6 );
	font-size: 0.9em;
	text-align: center;
}

.ee-woo-variant-swatches__group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ee-woo-variant-swatches__label {
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.3;
}

.ee-woo-variant-swatches__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ee-woo-variant-swatches__option {
	/* WCAG 2.5.8 minimum tap-target size, box-sizing ensures the value is honoured
	   even when the theme adds padding/border via inherited button styles. */
	min-width: 24px;
	min-height: 24px;
	box-sizing: border-box;
	padding: 6px 12px;
	line-height: 1.2;
	cursor: pointer;
	border: 1px solid rgba( 15, 23, 42, 0.2 );
	background: #fff;
	color: inherit;
}

.ee-woo-variant-swatches__option:hover,
.ee-woo-variant-swatches__option:focus-visible {
	border-color: rgba( 15, 23, 42, 0.6 );
	outline: none;
}

.ee-woo-variant-swatches--rounded .ee-woo-variant-swatches__option {
	border-radius: 6px;
}

.ee-woo-variant-swatches--square .ee-woo-variant-swatches__option {
	border-radius: 0;
}

.ee-woo-variant-swatches--pill .ee-woo-variant-swatches__option {
	border-radius: 999px;
}
