.thresto-supplements {
	margin: 4px 0;
}

.thresto-supplement-groupe {
	margin-bottom: 10px;
	padding: 6px 0;
}

.thresto-supplement-groupe.thresto-supplement-error {
	outline: 1px solid #d63638;
	border-radius: 8px;
}

.thresto-supplement-groupe-entete {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px;
}

.thresto-supplement-groupe-nom {
	font-weight: 700;
	font-size: 16px;
	margin: 0;
}

.thresto-supplement-sous-titre {
	font-weight: normal;
	font-size: 13px;
	color: #777;
	margin: 2px 0 0;
}

.thresto-required {
	color: #d63638;
}

.thresto-supplement-max {
	font-weight: normal;
	font-size: 12px;
	color: #666;
}

.thresto-supplement-compteur {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	background: #f1f1f1;
	color: #555;
	white-space: nowrap;
}

.thresto-supplement-compteur--complet {
	background: color-mix(in srgb, var(--thresto-accent, #1e1e1e) 16%, white);
	color: var(--thresto-accent, #1e1e1e);
}

/* --- Options : rendu "cartes" (avec photo), façon Mains --- */
.thresto-supplement-options--cartes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 8px;
}

.thresto-supplement-options--cartes .thresto-supplement-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 8px 6px;
	border: 2px solid #e5e5e5;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	transition: border-color .12s ease;
}

.thresto-supplement-options--cartes .thresto-supplement-option:has(input:checked) {
	border-color: var(--thresto-accent, #1e1e1e);
}

.thresto-supplement-option-img-wrap {
	position: relative;
	width: 72px;
	height: 72px;
}

.thresto-supplement-option-img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.thresto-supplement-check {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--thresto-accent, #1e1e1e);
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .1s ease, transform .1s ease;
}

.thresto-supplement-option:has(input:checked) .thresto-supplement-check {
	opacity: 1;
	transform: scale(1);
}

.thresto-supplement-options--cartes .thresto-supplement-price {
	display: block;
	color: #777;
	font-size: 12px;
	font-weight: normal;
}

/* --- Options : rendu "puces" (sans photo), façon Desserts --- */
.thresto-supplement-options--puces {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.thresto-supplement-options--puces .thresto-supplement-option {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 2px solid #e5e5e5;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	transition: border-color .12s ease, color .12s ease;
}

.thresto-supplement-options--puces .thresto-supplement-option:has(input:checked) {
	border-color: var(--thresto-accent, #1e1e1e);
	color: var(--thresto-accent, #1e1e1e);
}

.thresto-supplement-check--puce {
	position: static;
	opacity: 0;
	transform: scale(.6);
	width: 16px;
	height: 16px;
	font-size: 10px;
	line-height: 16px;
}

.thresto-supplement-options--puces .thresto-supplement-option:has(input:checked) .thresto-supplement-check--puce {
	opacity: 1;
	transform: scale(1);
}

.thresto-supplement-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.thresto-supplement-option:has(input:disabled) {
	opacity: .45;
	cursor: not-allowed;
}

.thresto-supplement-price {
	color: #666;
	font-size: 13px;
}

.thresto-supplement-error-msg {
	display: none;
	color: #d63638;
	font-size: 12px;
	margin: 6px 0 0;
}
.thresto-supplement-groupe.thresto-supplement-error .thresto-supplement-error-msg {
	display: block;
}

.thresto-supplement-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 700;
	font-size: 17px;
	padding: 14px 16px;
	margin-bottom: 4px;
	border-radius: 10px;
	background: var(--thresto-accent, #1e1e1e);
	color: #fff;
}

.thresto-supplement-total-value {
	font-size: 18px;
}


/* --- v0.14.16 : pas de description dans le dépliant / panier, photos de suppléments plus grandes --- */
.thresto-product-panel-inner .woocommerce-product-details__short-description {
	display: none !important;
}
.thresto-supplement-options--cartes {
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 6px;
}
.thresto-supplement-options--cartes .thresto-supplement-option {
	padding: 5px 5px 8px;
	gap: 4px;
}
.thresto-supplement-options--cartes .thresto-supplement-option-img-wrap {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
}
.thresto-supplement-options--cartes .thresto-supplement-option-img {
	width: 100%;
	height: 100%;
}
.thresto-supplement-options--cartes .thresto-supplement-check {
	top: 6px;
	right: 6px;
}
.thresto-cart-panel .thresto-supplement-options--cartes {
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 6px;
}
.thresto-cart-panel .thresto-supplement-options--cartes .thresto-supplement-option-img-wrap {
	width: 100%;
	height: auto;
}
.thresto-cart-panel .thresto-supplement-options--cartes .thresto-supplement-option-img {
	width: 100%;
	height: 100%;
}
