/* ==========================================================================
   Le tunnel d'achat : fil d'étapes, panier vide, remerciement
   (GG_Marque_Tunnel, chargé sur le panier, la commande et le remerciement, après boutique.css).

   Mêmes jetons que boutique.css (`--b-*`, posés sur `.gg-boutique`). Tout est préfixé
   par `.gg-boutique` : les règles de boutique.css le sont, et le reset du thème peint
   les liens en rose (une classe seule ne suffit pas).
   ========================================================================== */

/* ---------- Le fil d'étapes ---------- */

.gg-boutique .gg-etapes {
	max-width: 640px;
	margin: 2px auto 30px;
}

.gg-boutique .gg-etapes__liste {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gg-boutique .gg-etape {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0 4px;
	color: var(--b-gris-clair);
	font-size: 13.5px;
	line-height: 1.25;
	text-align: center;
}

/* Le trait relie le rond de l'étape précédente à celui-ci ; il est vert dès que l'étape précédente est faite. */
.gg-boutique .gg-etape + .gg-etape::before {
	content: "";
	position: absolute;
	top: 15px;
	right: 50%;
	width: 100%;
	height: 2px;
	background: var(--b-filet-fort);
}

.gg-boutique .gg-etape--faite + .gg-etape::before {
	background: var(--b-vert);
}

.gg-boutique .gg-etape__lien {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.gg-boutique .gg-etape__rond {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	border: 2px solid var(--b-filet-fort);
	border-radius: 50%;
	background: var(--b-carte);
	color: var(--b-gris-clair);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.gg-boutique .gg-etape__coche {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gg-boutique .gg-etape--faite .gg-etape__rond {
	border-color: var(--b-vert);
	background: var(--b-vert-pale);
	color: var(--b-vert);
}

.gg-boutique .gg-etape--courante .gg-etape__rond {
	border-color: var(--b-vert);
	background: var(--b-vert);
	box-shadow: 0 0 0 4px var(--b-vert-pale);
	color: #fff;
}

.gg-boutique .gg-etape--courante {
	color: var(--b-encre);
	font-weight: 700;
}

.gg-boutique .gg-etape--faite {
	color: var(--b-texte);
}

.gg-boutique a.gg-etape__lien:hover .gg-etape__nom {
	color: var(--b-vert-fonce);
	text-decoration: underline;
}

.gg-boutique a.gg-etape__lien:focus-visible {
	outline: 2px solid var(--b-vert-profond);
	outline-offset: 4px;
	border-radius: 6px;
}

/* Lu par les lecteurs d'écran (« Panier (terminée) »), pas affiché. */
.gg-boutique .gg-etape__etat {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 480px) {
	.gg-boutique .gg-etapes {
		margin-bottom: 24px;
	}

	.gg-boutique .gg-etape {
		padding: 0 2px;
		font-size: 12.5px;
	}

	.gg-boutique .gg-etape__rond {
		width: 28px;
		height: 28px;
		font-size: 13px;
	}

	.gg-boutique .gg-etape + .gg-etape::before {
		top: 13px;
	}
}

/* ---------- « Poursuivre mes achats », sous les articles ---------- */

.gg-boutique .gg-poursuivre {
	margin: 4px 0 18px;
	font-size: 14.5px;
}

.gg-boutique .gg-poursuivre a {
	color: var(--b-vert);
	text-decoration: none;
}

.gg-boutique .gg-poursuivre a:hover {
	color: var(--b-vert-fonce);
	text-decoration: underline;
}

/* ---------- Le panier vide ---------- */

/* Le bouton « Retour à la boutique » de WooCommerce est écrit après le crochet du panier vide : ce bloc a le sien. */
.gg-finitions .return-to-shop {
	display: none;
}

/* Le conteneur du panier est une grille à deux colonnes : la carte les occupe toutes, sinon elle se centre dans la première. */
.gg-boutique .gg-vide {
	grid-column: 1 / -1;
	max-width: 560px;
	margin: 8px auto 40px;
	padding: 36px 28px 30px;
	border: 1px solid var(--b-filet);
	border-radius: var(--b-rayon);
	background: var(--b-carte);
	box-shadow: var(--b-ombre);
	text-align: center;
}

.gg-boutique .gg-vide__picto {
	box-sizing: border-box;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	padding: 16px;
	border-radius: 50%;
	background: var(--b-vert-pale);
	fill: none;
	stroke: var(--b-vert);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gg-boutique .gg-vide .gg-vide__titre {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
}

.gg-boutique .gg-vide__texte {
	max-width: 420px;
	margin: 0 auto 22px;
	color: var(--b-texte);
	font-size: 16px;
	line-height: 1.5;
}

.gg-boutique .gg-vide__actions {
	margin: 0;
}

.gg-boutique .gg-vide__garanties {
	margin-top: 26px;
	text-align: left;
}

.gg-boutique .gg-vide__garanties .gg-assurances {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 18px 4px 0;
	border-top: 1px solid var(--b-filet);
	list-style: none;
}

.gg-boutique .gg-vide__garanties .gg-assurances li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--b-gris);
	font-size: 13.5px;
	line-height: 1.35;
}

.gg-boutique .gg-vide__garanties .gg-assurances svg {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	fill: none;
	stroke: var(--b-vert);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gg-boutique .gg-vide__garanties .gg-assurances b {
	display: block;
	color: var(--b-encre);
	font-size: 14px;
	font-weight: 700;
}

/* ---------- Le remerciement ---------- */

.gg-finitions .woocommerce-order {
	max-width: 860px;
	margin: 0 auto;
}

.gg-finitions .woocommerce-thankyou-order-received {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	padding: 18px 20px;
	border: 1px solid var(--b-filet-fort);
	border-radius: var(--b-rayon);
	background: var(--b-vert-pale);
	color: var(--b-vert-profond);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.gg-finitions .woocommerce-thankyou-order-received::before {
	content: "";
	flex: 0 0 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--b-vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Les repères de la commande : quatre petites cartes au lieu d'une ligne pointillée. */
.gg-finitions ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.gg-finitions ul.woocommerce-order-overview li {
	float: none;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--b-filet);
	border-radius: var(--b-rayon-petit);
	background: var(--b-carte);
	color: var(--b-gris);
	font-size: 13px;
	line-height: 1.35;
	text-transform: none;
}

.gg-finitions ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 2px;
	color: var(--b-encre);
	font-size: 15.5px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.gg-finitions .woocommerce-order-details,
.gg-finitions .woocommerce-customer-details {
	margin: 0 0 28px;
}

.gg-finitions .woocommerce-order-details__title,
.gg-finitions .woocommerce-column__title {
	margin: 0 0 12px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.gg-finitions .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.gg-finitions .woocommerce-columns--addresses .woocommerce-column {
	float: none;
	width: auto;
}

.gg-finitions .woocommerce-customer-details address {
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--b-filet);
	border-radius: var(--b-rayon-petit);
	background: var(--b-carte);
	font-style: normal;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

/* Un paiement refusé : la même carte rouge que les erreurs de la commande. */
.gg-finitions .woocommerce-thankyou-order-failed {
	margin: 0 0 14px;
	padding: 14px 18px;
	border: 1px solid var(--b-filet);
	border-left: 3px solid #b4432f;
	border-radius: var(--b-rayon-petit);
	background: #fdf3f1;
	color: #8f3323;
}

@media (max-width: 600px) {
	.gg-finitions .woocommerce-columns--addresses {
		grid-template-columns: minmax(0, 1fr);
	}

	.gg-finitions .woocommerce-thankyou-order-received {
		font-size: 16px;
	}
}
