/* Fiche produit */

/* Galerie qui reste visible pendant qu'on remplit le formulaire (ordinateur) */
@media (min-width: 1000px) {
	.single-product .woocommerce-product-gallery,
	.single-product .ct-product-gallery-container {
		position: sticky;
		top: 110px;
		align-self: flex-start;
	}
}

/* Mobile : miniatures de la galerie sur une seule ligne qui défile */
@media (max-width: 689px) {
	.single-product .flexy-pills ol {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		gap: 8px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}
	.single-product .flexy-pills ol li {
		flex: 0 0 22% !important;
		max-width: 22% !important;
		margin: 0 !important;
		scroll-snap-align: start;
	}
}

/* "Plage de prix : …" est destiné aux lecteurs d'écran : ne pas l'afficher en double */
.single-product .price .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Description courte repliable */
.chc-desc-repliable {
	position: relative;
	max-height: 11.5em;
	overflow: hidden;
}
.chc-desc-repliable::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4em;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.chc-desc-repliable.is-ouverte {
	max-height: none;
}
.chc-desc-repliable.is-ouverte::after {
	display: none;
}
.chc-desc-bouton {
	margin: 6px 0 4px;
	padding: 0;
	font-weight: 600;
	color: #8a2a3c;
	text-decoration: underline;
	background: none;
	border: 0;
	cursor: pointer;
}

/* Formulaire de personnalisation : libellés lisibles */
.single-product form.cart .wcpa_field_label,
.single-product form.cart .wcpa_field_wrap > label,
.single-product form.cart label {
	color: #786254;
	font-weight: 600;
}
.single-product form.cart .wcpa_field_wrap {
	margin-bottom: 14px;
}
/* Remarques sous les champs (ex. règle "baptême de + prénom") */
.single-product form.cart .wcpa_field_desc {
	margin: 4px 0 8px;
	padding: 8px 10px;
	border-left: 3px solid #c08838;
	border-radius: 4px;
	background: #f6efea;
	color: #5e4a3f;
	font-size: 14px;
	line-height: 1.45;
}

/* Champ à compléter signalé */
.chc-a-completer {
	outline: 2px solid #8a2a3c;
	outline-offset: 4px;
	border-radius: 4px;
}
.chc-aide-panier {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fdecea;
	color: #8a1c13;
	font-size: 15px;
}

/* Réassurance */
.chc-reassurance {
	margin: 18px 0 0;
	padding: 14px 16px;
	list-style: none;
	border-radius: 8px;
	background: #f6efea;
	color: #786254;
	font-size: 14px;
	line-height: 1.5;
}
.chc-reassurance li + li {
	margin-top: 6px;
}
.chc-reassurance a {
	color: #8a2a3c;
	font-weight: 600;
}
