/* Kartabla — Vignettes modèles */
.kvs-active .kvs-hidden-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Un modèle est toujours choisi : le lien « Effacer » ne ferait que griser le bouton d'achat. */
.kvs-active .reset_variations {
	display: none !important;
}

.kvs-current:not(:empty)::before {
	content: " : ";
}

.kvs-current {
	font-weight: 400;
	color: #475569;
}

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

.kvs-swatch {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 92px;
	margin: 0;
	padding: 5px 5px 7px;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-shadow: none;
	color: #1e293b;
	font: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.25;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kvs-swatch:hover,
.kvs-swatch:focus {
	background: #fff;
	color: #1e293b;
	border-color: #046bd2;
}

.kvs-swatch:focus-visible {
	outline: 2px solid #046bd2;
	outline-offset: 2px;
}

.kvs-swatch.is-selected {
	border-color: #046bd2;
	box-shadow: 0 0 0 1px #046bd2;
	font-weight: 600;
}

.kvs-swatch img {
	display: block;
	width: 80px;
	height: 80px;
	margin: 0;
	object-fit: contain;
	background: #fff;
	border-radius: 3px;
}

.kvs-swatch:not(.kvs-has-img) {
	width: auto;
	min-width: 64px;
	padding: 10px 14px;
	font-size: 14px;
}

.kvs-label {
	max-width: 100%;
	overflow-wrap: break-word;
}

.kvs-soldout,
.kvs-unavailable {
	cursor: not-allowed;
	color: #64748b;
}

.kvs-soldout img,
.kvs-unavailable img {
	opacity: 0.45;
	filter: grayscale(1);
}

.kvs-soldout:hover,
.kvs-unavailable:hover {
	border-color: #cbd5e1;
	color: #64748b;
}

.kvs-badge {
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	padding: 1px 6px;
	background: #1e293b;
	color: #fff;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
	white-space: nowrap;
}

@media (max-width: 544px) {
	.kvs-list {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	.kvs-swatch {
		width: auto;
		padding: 4px 3px 6px;
		font-size: 11px;
	}

	.kvs-swatch img {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.kvs-swatch:not(.kvs-has-img) {
		padding: 10px 6px;
		font-size: 13px;
	}
}
