/**
 * Pastilles de variations (inc/pastilles-variations.php).
 */

/* Le <select> reste pour WooCommerce, hors de la vue. */
.clauday-pastilles-select {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.variations td.value:has(.clauday-pastilles) .reset_variations {
	display: none !important;
}

.variations .clauday-pastilles-choix {
	font-weight: 400;
	color: var(--vert);
}

.clauday-pastilles {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 4px;
}

.clauday-pastille {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 3px;
	border: 2px solid transparent;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: border-color .15s ease, opacity .15s ease;
}

.clauday-pastille:hover,
.clauday-pastille:focus-visible {
	border-color: var(--rose);
	outline: none;
}

.clauday-pastille[aria-pressed="true"] {
	border-color: var(--or);
}

.clauday-pastille[disabled] {
	opacity: .35;
	cursor: not-allowed;
}

/* Couleur : disque plein, liseré pour les teintes claires (blanc, plexi). */
.clauday-pastille__couleur {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(85, 94, 80, .25);
}

/* Libellé : lettre ou chiffre dans le rond. */
.clauday-pastilles--libelles .clauday-pastille {
	border: 1px solid rgba(85, 94, 80, .35);
	background: #fff;
	color: var(--vert);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
}

.clauday-pastilles--libelles .clauday-pastille:hover,
.clauday-pastilles--libelles .clauday-pastille:focus-visible {
	border-color: var(--or);
}

.clauday-pastilles--libelles .clauday-pastille[aria-pressed="true"] {
	border-color: var(--or);
	background: var(--or);
	color: #fff;
}
