/**
 * Widgets « Couleurs du produit (pastilles) » et « Nombre d'options du produit ».
 * Valeurs neutres par défaut, surchargées par l'onglet Style d'Elementor.
 */

.aps-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--aps-swatches-gap, 6px);
}

.aps-swatches .aps-swatches__item {
	position: relative;
	flex: 0 0 auto;
	width: var(--aps-swatches-size, 18px);
	height: var(--aps-swatches-size, 18px);
	border-radius: 50%;
	/* Arrêt net en diagonale : une pastille unie reçoit deux fois la même teinte. */
	background: linear-gradient(135deg, var(--aps-sw-a, #d0d5dd) 50%, var(--aps-sw-b, var(--aps-sw-a, #d0d5dd)) 50%);
	/* Liseré discret : une pastille blanche reste visible sur un fond blanc. */
	box-shadow: inset 0 0 0 1px var(--aps-swatches-border, rgba(0, 0, 0, 0.18));
}

/* Couleur sans teinte réglée : rayures neutres. */
.aps-swatches .aps-swatches__item.is-empty {
	background: repeating-linear-gradient(45deg, #f2f4f7 0 2px, #d0d5dd 2px 4px);
}

/* Couleur épuisée : barrée. */
.aps-swatches .aps-swatches__item.is-out::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 8%;
	right: 8%;
	height: 1.5px;
	margin-top: -0.75px;
	background: #667085;
	box-shadow: 0 0 0 1px #fff;
	transform: rotate(45deg);
}

.aps-swatches .aps-swatches__more {
	position: relative;
	color: #667085;
	font-size: 0.8em;
	line-height: 1;
}

.aps-swatches .aps-swatches__name {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}

.aps-option-count {
	margin: 0;
}
