/**
 * WhatsApp et suivi de commande.
 *
 * Palette de la maison : rose #e5177b, encre #150911, mauve sourd #9a8592,
 * filets #efe4e9, fonds #fdf9fb et #fff2f8. Le vert WhatsApp (#25d366) n'apparaît que
 * sur le bouton flottant, où il est attendu — ailleurs, le lien prend le rose de la
 * marque pour ne pas trouer la page.
 *
 * @package Glow_Bar
 */

/* ================================================================
   Le bouton flottant
   ================================================================ */

.gb-wa-flottant {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9998; /* sous le tiroir du panier, au-dessus du contenu */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gb-wa-flottant:hover,
.gb-wa-flottant:focus {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}

/*
 * Le bord bas est libre depuis que la barre d'onglets et la barre d'achat de la
 * fiche produit ont été retirées (réglages `mobile_tabs_enable` et
 * `single_product_sticky_bar_enable`, à zéro). Le bouton s'y pose donc
 * directement — il n'a plus 55 px ni 135 px à franchir — en gardant la marge de
 * zone sûre. C'est aussi pour cela qu'il n'y a plus de cas particulier pour la
 * fiche produit : elle n'a plus de barre au-dessus de laquelle se ranger.
 */
@media (max-width: 767px) {
	.gb-wa-flottant {
		right: 14px;
		bottom: calc(16px + var(--gb-marge-basse, 0px));
		width: 48px;
		height: 48px;
	}
}

/* ================================================================
   Fiche produit : commander par WhatsApp
   ================================================================ */

.gb-wa-commander {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13.5px;
	font-weight: 500;
	color: #6b3d55;
	transition: color 0.2s ease;
}

.gb-wa-commander svg {
	color: #25d366;
	flex: 0 0 auto;
}

.gb-wa-commander:hover,
.gb-wa-commander:focus {
	color: #e5177b;
}

/* ================================================================
   La page de suivi
   ================================================================ */

.gb-suivi {
	max-width: 620px;
}

.gb-suivi__intro {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
	color: #6b5a63;
}

.gb-suivi__form {
	padding: 26px;
	border: 1px solid #efe4e9;
	border-radius: 18px;
	background: #fdf9fb;
}

.gb-suivi__champs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.gb-suivi__champ span {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #150911;
}

.gb-suivi__champ input {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid #e7d7e0;
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	color: #150911;
}

.gb-suivi__champ input:focus {
	border-color: #e5177b;
	outline: none;
	box-shadow: 0 0 0 3px rgba(229, 23, 123, 0.12);
}

.gb-suivi__bouton {
	min-height: 52px;
	margin-top: 18px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: #e5177b;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.gb-suivi__bouton:hover,
.gb-suivi__bouton:focus {
	background: #c0135a;
	color: #fff;
}

/*
 * Le thème cerne les boutons d'un trait noir épais au clic. On garde un repère pour la
 * navigation au clavier — `:focus-visible` — et on l'accorde au rose.
 */
.gb-suivi__bouton:focus {
	outline: none;
}

.gb-suivi__bouton:focus-visible {
	outline: 3px solid rgba(229, 23, 123, 0.35);
	outline-offset: 2px;
}

.gb-suivi__erreur {
	margin: 18px 0 0;
	padding: 14px 18px;
	border-radius: 12px;
	background: #fff2f8;
	font-size: 14.5px;
	color: #b3125f;
}

/* --- le résultat --- */

.gb-suivi__resultat {
	margin-top: 22px;
	padding: 26px;
	border: 1px solid #efe4e9;
	border-radius: 18px;
	background: #fff;
}

.gb-suivi__etat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 14.5px;
	color: #6b5a63;
}

.gb-suivi__pastille {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 13px;
	border-radius: 999px;
	background: #f2ebef;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #150911;
}

/* Les états qui parlent au client : en cours, expédiée, livrée, annulée. */
.gb-suivi__pastille--processing { background: #fff2f8; color: #e5177b; }
.gb-suivi__pastille--completed  { background: #e8f6ee; color: #1c7a45; }
.gb-suivi__pastille--cancelled,
.gb-suivi__pastille--failed,
.gb-suivi__pastille--refunded   { background: #f4eef1; color: #8a7681; }

.gb-suivi__articles {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	border-top: 1px solid #efe4e9;
}

.gb-suivi__articles li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid #efe4e9;
	font-size: 14.5px;
}

.gb-suivi__articles li::before {
	content: none;
}

.gb-suivi__article-nom {
	color: #150911;
}

.gb-suivi__article-qte {
	flex: 0 0 auto;
	color: #9a8592;
}

.gb-suivi__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0;
	font-size: 16px;
	color: #150911;
}

.gb-suivi__whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-size: 14px;
	color: #6b3d55;
	transition: color 0.2s ease;
}

.gb-suivi__whatsapp svg {
	color: #25d366;
}

.gb-suivi__whatsapp:hover,
.gb-suivi__whatsapp:focus {
	color: #e5177b;
}

@media (max-width: 575px) {
	.gb-suivi__champs {
		grid-template-columns: 1fr;
	}

	.gb-suivi__form,
	.gb-suivi__resultat {
		padding: 20px;
	}

	.gb-suivi__bouton {
		width: 100%;
	}
}
