/**
 * Fiche produit : pastilles et boutons de variation, sur fond bleu nuit.
 */

/* Les listes restent dans le DOM, WooCommerce en dépend. Pas de display:none :
   le select porte le libellé pour les outils d'assistance. */
.variations td.value select {
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.variations th.label {
	white-space: normal;
}

/* Le thème laisse le libellé en gris foncé, illisible sur le fond du site. */
.variations th.label,
.variations th.label label,
.variations th.label label *,
.uv-swatch-choisi {
	color: #fff;
}

.uv-swatch-choisi {
	font-weight: 400;
}

.uv-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.uv-swatch {
	margin: 0;
}

.uv-swatches .uv-swatch__btn {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	min-height: 42px;
	min-width: 44px;
	padding: 8px 12px;
	transition: border-color 0.15s ease;
}

.uv-swatches .uv-swatch__btn:hover,
.uv-swatches .uv-swatch__btn:focus-visible {
	background: transparent;
	border-color: #1cb0a7;
	color: #fff;
}

.uv-swatches .uv-swatch.is-selected .uv-swatch__btn {
	background: #1cb0a7;
	border-color: #1cb0a7;
	color: #020811;
}

.uv-swatch.is-unavailable .uv-swatch__btn {
	cursor: not-allowed;
	opacity: 0.35;
	text-decoration: line-through;
}

/* Pastilles de couleur */

.uv-swatches--color .uv-swatch__btn,
.uv-swatches--color .uv-swatch__btn:hover,
.uv-swatches--color .uv-swatch__btn:focus-visible,
.uv-swatches--color .uv-swatch.is-selected .uv-swatch__btn {
	background: var(--uv-swatch);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
	height: 38px;
	min-height: 0;
	min-width: 0;
	padding: 0;
	width: 38px;
}

.uv-swatches--color .uv-swatch__btn:hover,
.uv-swatches--color .uv-swatch__btn:focus-visible {
	box-shadow: 0 0 0 2px #020811, 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.uv-swatches--color .uv-swatch.is-selected .uv-swatch__btn {
	box-shadow: 0 0 0 2px #020811, 0 0 0 4px #1cb0a7;
}

/* Le nom reste lisible par les outils d'assistance. */
.uv-swatches--color .uv-swatch__label {
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
