/* ============================================================
   PANIER — woocommerce/cart/cart.php
   ============================================================ */

body.woocommerce-cart .block__text .woocommerce,
body.woocommerce-checkout .block__text .woocommerce {
	margin-top: 0;
}


/* ============================================================
   CART LAYOUT — 2 colonnes + cross-sells pleine largeur
   ============================================================ */

body.woocommerce-cart .block__text > h1 {
	display: none;
}

.cart-layout {
	display: flex;
	align-items: flex-start;
	gap: 60px;
}

.cart-layout__main {
	flex: 1;
	min-width: 0;
}

.cart-layout__sidebar {
	width: 30%;
	flex-shrink: 0;
	position: sticky;
	top: 40px;
}

/* ============================================================
   LISTE DES ARTICLES
   ============================================================ */

.cart-items-list {
	width: 100%;
}

.cart-item {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	padding: 40px 0;
	border-top: 1px solid #e0e0e0;
}

/* Bordure basse sur le dernier item (classe ajoutée via PHP) */
.cart-item--last {
	border-bottom: 1px solid #e0e0e0;
}

/* --- Image produit --- */
.cart-item__image {
	flex-shrink: 0;
	width: 180px;
	height: 200px;
	overflow: hidden;
}

.cart-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cart-item__image a {
	display: block;
	width: 100%;
	height: 100%;
}

/* --- Détails : nom, prix, variations --- */
.cart-item__details {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Nom du produit principal uniquement (pas la variation) */
.cart-item__name {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.cart-item__name a {
	text-decoration: none;
	color: inherit;
}

.cart-item__name a:hover {
	text-decoration: underline;
}

.cart-item__price {
	font-size: 0.9rem;
	margin-bottom: 10px;
}

/* Variations / attributs — un div par attribut, chacun sur sa ligne */
.cart-item__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-top: 8px;
}

.cart-item__attribute {
	display: flex;
	align-items: baseline;
	gap: 5px;
	font-size: 0.8rem;
}

.cart-item__attribute-label {
	font-weight: 700;
	letter-spacing: 0.06em;
	font-size: 0.75rem;
	white-space: nowrap;
}

.cart-item__attribute-value {
	font-weight: 400;
}

/* Meta données additionnelles (plugins) */
.cart-item__extra-meta {
	font-size: 0.8rem;
}

.cart-item__extra-meta .wc-item-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.cart-item__extra-meta .wc-item-meta li {
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.cart-item__extra-meta .wc-item-meta li p {
	margin: 0;
}

.cart-item__extra-meta .wc-item-meta-label {
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.75rem;
	white-space: nowrap;
}

/* --- Actions droite : quantité (haut) + supprimer (bas) --- */
.cart-item__actions {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	/* hauteur calée sur l'image pour que "Supprimer" reste en bas */
	min-height: 200px;
	/* largeur fixe pour éviter tout débordement */
	width: 80px;
}

/* Contrôle quantité */
.cart-item__quantity .quantity {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cart-item__quantity .qty {
	width: 28px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 0.9rem;
	-moz-appearance: textfield;
	pointer-events: none; /* le champ n'est éditable qu'via les boutons */
}

.cart-item__quantity .qty::-webkit-outer-spin-button,
.cart-item__quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

/* Boutons − et + */
.cart-item__quantity .qty-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1rem;
	padding: 0;
	line-height: 1;
	color: inherit;
	user-select: none;
}

.cart-item__quantity .qty-btn:hover {
	opacity: 0.5;
}

/* Lien Supprimer — écrase .woocommerce a.remove qui force width:1em height:1em */
.cart-item__remove .remove {
	display: inline-block !important;
	width: auto !important;
	height: auto !important;
	line-height: normal !important;
	border-radius: 0 !important;
	border: none !important;
	background: none !important;
	font-size: 0.7rem !important;
	font-weight: 400 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	text-decoration: underline !important;
	text-underline-offset: 2px !important;
	text-align: left !important;
	color: inherit !important;
	cursor: pointer !important;
	white-space: nowrap !important;
}

.cart-item__remove .remove:hover {
	opacity: 0.5 !important;
	color: inherit !important;
}

.cart-item__remove-icon {
	display: none;
}

/* ============================================================
   ACTIONS DU PANIER — masquer uniquement le bouton update
   Le coupon est réaffiché dans la sidebar via PHP.
   Le nonce reste dans le DOM pour WooCommerce.
   ============================================================ */

.cart-actions button[name="update_cart"],
.cart-actions button[name="apply_coupon"],
.cart-actions .coupon {
	display: none;
}

/* ============================================================
   SIDEBAR — RÉCAPITULATIF
   ============================================================ */

/* Titre "Récapitulatif" */
.cart-layout__sidebar .cart_totals h2 {
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 24px;
}

/* ---- Tableau des totaux ---- */
.cart-layout__sidebar .cart_totals table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	border: none;
}

.cart-layout__sidebar .cart_totals table.shop_table th,
.cart-layout__sidebar .cart_totals table.shop_table td {
	padding: 5px 0;
	text-align: left;
	font-size: 0.85rem;
	border: none;
	text-transform: none;
	letter-spacing: 0;
	background: none;
}

/* Labels : poids normal, casse classique */
.cart-layout__sidebar .cart_totals table.shop_table th {
	font-weight: 400;
	width: 45%;
	vertical-align: top;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

/* Valeurs : gras */
.cart-layout__sidebar .cart_totals table.shop_table td {
	font-weight: 700;
}

/* Ligne TOTAL */
.cart-layout__sidebar .cart_totals table.shop_table .order-total th,
.cart-layout__sidebar .cart_totals table.shop_table .order-total td {
	font-size: 0.9rem;
	padding-top: 10px;
}

/* Masquer le message PayLater dans le tableau */
.cart-layout__sidebar .cart_totals table.shop_table .wc-ppcp-paylater-msg__container {
	display: none !important;
}

/* Lien "Calculer les frais d'expédition" — style discret */
.cart-layout__sidebar .cart_totals .shipping-calculator-button {
	font-size: 0.8rem;
	font-style: italic;
	font-weight: 400;
	color: inherit;
	opacity: 0.7;
	text-decoration: none;
}

.cart-layout__sidebar .cart_totals .shipping-calculator-button:hover {
	opacity: 1;
	text-decoration: underline;
}

/* Formulaire de calcul des frais (caché par défaut par WC, on s'assure du style) */
.cart-layout__sidebar .cart_totals .shipping-calculator-form {
	margin-top: 10px;
}

/* ---- Coupon dans la sidebar ---- */
.cart-sidebar-coupon {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin-bottom: 16px;
}

.cart-sidebar-coupon input.input-text {
	flex: 1;
	background: transparent;
	border: 1px solid #21285C;
	border-right: none;
	padding: 10px 12px;
	font-size: 0.75rem;
	outline: none;
	color: inherit;
	box-shadow: none;
	box-sizing: border-box;
}

.cart-sidebar-coupon input.input-text::placeholder {
	color: #21285C;
	opacity: 0.5;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.7rem;
}

.cart-sidebar-coupon .sidebar-apply-coupon {
	flex-shrink: 0 !important;
	background: #21285C !important;
	color: #fff !important;
	border: 1px solid #21285C !important;
	border-radius: 0 !important;
	padding: 10px 16px !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	text-align: center;
	line-height: 13px;
}

.cart-sidebar-coupon .sidebar-apply-coupon:hover {
	background: #161c42 !important;
	border-color: #161c42 !important;
}

.cart-layout__sidebar .wc-proceed-to-checkout {
	margin-top: 24px; /* espace au-dessus du bouton Commander */
}

/* Le bouton a les classes : .checkout-button.button.alt.wc-forward
   On cible avec !important pour écraser .alt du thème */
.cart-layout__sidebar .wc-proceed-to-checkout a.checkout-button {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	padding: 14px 20px !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
	background: #21285C !important;
	color: #fff !important;
	border: none !important;
	border-radius: 0 !important;
}

.cart-layout__sidebar .wc-proceed-to-checkout a.checkout-button:hover {
	background: #161c42 !important;
}

/* ============================================================
   CROSS-SELLS — pleine largeur
   ============================================================ */

.cart-cross-sells {
	width: 100%;
	margin-top: 60px;
}

.cart-cross-sells .cross-sells > h2 {
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 24px;
}


/* ============================================================
   CHECKOUT — woocommerce/checkout/form-checkout.php
   ============================================================ */

.woocommerce-info, .woocommerce-message, .woocommerce-error {
	border-top: none;
}

/* Notice "Vous avez déjà un compte ? Connectez-vous" */
.woocommerce-form-login-toggle .woocommerce-info {
	padding-left: 0 !important;
}

.woocommerce-form-login-toggle .woocommerce-info::before {
	content: none;
}

body.woocommerce-checkout .block__text h1 {
	margin-top: 60px !important;
}

/* ============================================================
   CHECKOUT LAYOUT — 2 colonnes
   ============================================================ */

.checkout-layout {
	display: flex;
	align-items: flex-start;
	gap: 60px;
}

/* Séparateur entre les 2 colonnes */
.checkout-layout__main {
	flex: 1;
	min-width: 0;
	border-right: 1px solid #e0e0e0;
	padding-right: 60px;
}

.checkout-layout__sidebar {
	width: 33%;
	flex-shrink: 0;
	position: sticky;
	top: 40px;
}

/* Supprimer bordures et arrondis des sous-blocs WooCommerce dans la sidebar */
.checkout-layout__sidebar .woocommerce-checkout-review-order,
.checkout-layout__sidebar #payment,
.checkout-layout__sidebar .woocommerce-checkout-payment,
.checkout-layout__sidebar .wc_payment_methods,
.checkout-layout__sidebar .payment_method_ppcp,
.checkout-layout__sidebar .wc-ppcp-cart-payments__container,
.checkout-layout__sidebar .woocommerce-terms-and-conditions-wrapper {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ============================================================
   COLONNE GAUCHE — champs formulaire
   ============================================================ */

/* col2-set natif WC : on empile les 2 colonnes */
.checkout-layout__main #customer_details {
	display: block;
}

.checkout-layout__main #customer_details .col-1,
.checkout-layout__main #customer_details .col-2 {
	width: 100%;
	float: none;
	margin: 0 0 30px 0;
}

/* Titres de sections */
.checkout-layout__main .woocommerce-billing-fields h3,
.checkout-layout__main .woocommerce-additional-fields h3 {
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

/* Grille des champs : 2 colonnes */
.checkout-layout__main .woocommerce-shipping-fields {
	margin-top: 0;
}

#ship-to-different-address {
	margin-top: 0;
}

#ship-to-different-address-checkbox {
    margin: 0;
}

.checkout-layout__main .woocommerce-billing-fields__field-wrapper,
.checkout-layout__main .woocommerce-shipping-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

/* Champs demi-largeur */
.checkout-layout__main .form-row-first {
	flex: 0 0 calc(50% - 10px);
}

.checkout-layout__main .form-row-last {
	flex: 0 0 calc(50% - 10px);
}

/* Champs pleine largeur */
.checkout-layout__main .form-row-wide {
	flex: 0 0 100%;
}

.checkout-layout__main .form-row {
	margin-bottom: 20px;
}

/* Labels */
.checkout-layout__main label {
	display: block;
	font-size: 0.78rem;
	font-weight: 500;
	margin-bottom: 5px;
}

/* Label du champ opt-in Klaviyo */
#billing_klaviyo_optin_field label {
	font-size: 11px;
}

/* ---- Inputs : fond transparent, border-bottom uniquement ---- */
.checkout-layout__main .input-text,
.checkout-layout__main select,
.checkout-layout__main input[type="date"],
.checkout-layout__main textarea {
	width: 100% !important;
	background: transparent !important;
	border: none !important;
	border-bottom: 1px solid #21285C !important;
	border-radius: 0 !important;
	padding: 8px 0 !important;
	font-size: 0.85rem !important;
	outline: none !important;
	box-shadow: none !important;
	box-sizing: border-box;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.checkout-layout__main .input-text:focus,
.checkout-layout__main select:focus,
.checkout-layout__main input[type="date"]:focus,
.checkout-layout__main textarea:focus {
	border-bottom-color: #21285C !important;
	border-bottom-width: 2px !important;
}

.checkout-layout__main .input-text::placeholder,
.checkout-layout__main textarea::placeholder {
	color: #21285C;
	opacity: 0.45;
	font-size: 0.8rem;
}

/* Forcer l'affichage de Select2 — le thème applique display:none sur body.woocommerce-checkout .select2-container */
body.woocommerce-checkout .checkout-layout__main .select2-container {
	display: inline-block !important;
	width: 100% !important;
}

/* Select2 — champ pays et autres selects WooCommerce */
.checkout-layout__main .select2-container .select2-selection--single {
	background: transparent !important;
	border: none !important;
	border-bottom: 1px solid #21285C !important;
	border-radius: 0 !important;
	height: auto !important;
	padding: 8px 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

.checkout-layout__main .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: inherit !important;
	font-size: 0.85rem !important;
	line-height: normal !important;
	padding: 0 !important;
}

.checkout-layout__main .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #21285C !important;
	opacity: 0.45 !important;
	font-size: 0.8rem !important;
}

.checkout-layout__main .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100% !important;
	top: 0 !important;
	right: 0 !important;
}

.checkout-layout__main .select2-container--focus .select2-selection--single,
.checkout-layout__main .select2-container--open .select2-selection--single {
	border-bottom-width: 2px !important;
	border-bottom-color: #21285C !important;
}

/* Dropdown Select2 */
.select2-dropdown {
	border: 1px solid #21285C !important;
	border-radius: 0 !important;
}

.select2-results__option--highlighted {
	background-color: #21285C !important;
}

/* Label Créer un compte souligné */
.checkout-layout__main .woocommerce-form__label-for-checkbox span {
	text-decoration: underline;
}

/* Notes de commande */
.checkout-layout__main .woocommerce-additional-fields__field-wrapper textarea {
	border: 1px solid #ccc !important;
	border-radius: 0 !important;
	padding: 10px 12px !important;
	min-height: 100px;
	resize: vertical;
}

/* Checkbox "Créer un compte" */
.checkout-layout__main .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
	cursor: pointer;
}

p.create-account span {
	margin-left: -8px;
}

/* Section livraison : WooCommerce la masque nativement via JS
   (.shipping_address { display:none }) — on ne surcharge pas */

/* ============================================================
   COLONNE DROITE — récap + paiement
   ============================================================ */

.checkout-layout__sidebar #order_review_heading {
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

/* Tableau récap */
.checkout-layout__sidebar .shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.checkout-layout__sidebar .shop_table th,
.checkout-layout__sidebar .shop_table td {
	padding: 8px 0;
	font-size: 0.82rem;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
	vertical-align: top;
}

.checkout-layout__sidebar .shop_table th {
	font-weight: 400;
}

.checkout-layout__sidebar .shop_table tfoot .order-total th,
.checkout-layout__sidebar .shop_table tfoot .order-total td {
	font-weight: 700;
	font-size: 0.9rem;
	border-bottom: none;
}

/* ---- Coupon — même style que la sidebar panier ---- */
.checkout-sidebar-coupon {
	margin-bottom: 16px;
}

.checkout-sidebar-coupon .woocommerce-form-coupon-toggle {
	display: none !important;
}

/* Le formulaire coupon du checkout a une structure form-row-first / form-row-last
   on les met côte à côte comme sur le panier */
.checkout-sidebar-coupon .checkout_coupon {
	display: flex !important;
	align-items: stretch;
	gap: 0;
	margin: 0 !important;
}

.checkout-sidebar-coupon .checkout_coupon .form-row {
	margin: 0 !important;
	padding: 0 !important;
}

.checkout-sidebar-coupon .checkout_coupon .form-row-first {
	flex: 1;
}

.checkout-sidebar-coupon .checkout_coupon .form-row-last {
	flex-shrink: 0;
}

.checkout-sidebar-coupon .checkout_coupon .clear {
	display: none;
}

.checkout-sidebar-coupon .checkout_coupon input[type="text"] {
	background: transparent !important;
	border: 1px solid #21285C !important;
	border-right: none !important;
	border-radius: 0 !important;
	padding: 10px 12px !important;
	font-size: 0.75rem !important;
	width: 100% !important;
	height: 100%;
	box-sizing: border-box;
	outline: none;
	box-shadow: none !important;
}

.checkout-sidebar-coupon .checkout_coupon input[type="text"]::placeholder {
	color: #21285C;
	opacity: 0.5;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.7rem;
}

.checkout-sidebar-coupon .checkout_coupon button[name="apply_coupon"] {
	background: #21285C !important;
	color: #fff !important;
	border: 1px solid #21285C !important;
	border-radius: 0 !important;
	padding: 10px 16px !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	height: 100%;
}

.checkout-sidebar-coupon .checkout_coupon button[name="apply_coupon"]:hover {
	background: #161c42 !important;
	border-color: #161c42 !important;
}

/* Méthodes de paiement */
.checkout-layout__sidebar div#payment::before {
	content: "PAIEMENT";
	font-size: 1.2rem;
	padding-bottom: 20px;
	display: block;
}

.checkout-layout__sidebar .wc_payment_methods {
	list-style: none;
	margin: 0 0 16px 0;
	padding: 0;
}

.checkout-layout__sidebar .wc_payment_methods li {
	margin-bottom: 10px;
}

.checkout-layout__sidebar .payment_box {
	margin-top: 10px;
	font-size: 0.8rem;
}

/* CGV — checkbox sur une seule ligne */
.checkout-layout__sidebar .woocommerce-terms-and-conditions-wrapper {
	font-size: 0.78rem;
	margin-bottom: 16px;
}

.checkout-layout__sidebar .woocommerce-terms-and-conditions-wrapper .form-row {
	margin: 0;
}

.checkout-layout__sidebar .woocommerce-terms-and-conditions-wrapper label {
	display: flex !important;
	align-items: center;
	gap: 10px;
	font-size: 0.82rem;
	cursor: pointer;
	flex-wrap: nowrap;
}

/* Bouton Commander */
.checkout-layout__sidebar #place_order {
	display: block !important;
	width: 100% !important;
	padding: 14px 20px !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	text-align: center !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
	background: #21285C !important;
	color: #fff !important;
	border: none !important;
	border-radius: 0 !important;
	margin-top: 0;
}

.checkout-layout__sidebar #place_order:hover {
	background: #161c42 !important;
}


/* ============================================================
   CARTE CADEAU PWGC — commun panier & checkout
   ============================================================ */

#pwgc-redeem-gift-card-container {
	display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    flex-direction: row;
    align-content: flex-start;
}

/* Label, <br> et zone erreur : annuler toute dimension
   pour qu'ils ne créent aucun espace dans le flex */
#pwgc-redeem-gift-card-container > label,
#pwgc-redeem-form label,
#pwgc-redeem-gift-card-container br {
	display: block;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	flex-shrink: 0;
}

/* Zone d'erreur : pleine largeur sur sa propre ligne, invisible si vide */
#pwgc-redeem-error {
	order: -1;
	flex-basis: 100%;
	width: 100%;
	font-size: 0.75rem;
	color: red;
	min-height: 0;
}

/* Input : prend tout l'espace, bordure droite absente pour coller au bouton */
#pwgc-redeem-gift-card-number {
	flex: 1;
    width: auto !important;
    background: transparent !important;
    border: 1px solid #21285C !important;
    border-right: none !important;
    padding: 9px 12px 9.5px 12px !important;
    font-size: 0.75rem !important;
    outline: none;
    color: inherit;
    box-shadow: none !important;
    box-sizing: border-box;
    margin: 0 !important;
}

#pwgc-redeem-gift-card-number::placeholder {
	color: #21285C;
	opacity: 0.5;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.7rem;
}

#pwgc-redeem-button {
	flex-shrink: 0 !important;
	display: inline-block !important;
	background: #21285C !important;
	color: #fff !important;
	border: 1px solid #21285C !important;
	padding: 11px 16px !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	line-height: 11px !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	margin: 0 !important;
}

#pwgc-redeem-button:hover {
	background: #161c42 !important;
	border-color: #161c42 !important;
}

/* Valeurs spécifiques selon la page (margin-top et margin-bottom diffèrent) */
body.woocommerce-cart #pwgc-redeem-gift-card-form {
	margin-bottom: 60px;
}
body.woocommerce-cart #pwgc-redeem-gift-card-container {
	margin-top: 16px;
}
body.woocommerce-checkout #pwgc-redeem-gift-card-form {
	margin-bottom: 16px;
}
body.woocommerce-checkout #pwgc-redeem-gift-card-container {
	margin-top: 0;
}


/* ============================================================
   BLOC RÉASSURANCE — commun panier & checkout
   ============================================================ */

.cart-reassurance {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 40px;
	padding: 60px 0 20px;
	border-top: 1px solid #e0e0e0;
	margin-top: 60px;
}

.cart-reassurance__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.cart-reassurance__icon {
	color: #21285C;
	line-height: 1;
}

.cart-reassurance__title {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #21285C;
	margin: 0;
}

.cart-reassurance__text {
	font-size: 0.82rem;
	font-weight: 400;
	color: inherit;
	margin: 0;
	line-height: 1.5;
}


/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */

/* Reset desktop — neutralise les styles mobile sur carte cadeau et code promo (checkout) */
@media (min-width: 769px) {
	#pwgc-redeem-gift-card-container {
		flex-direction: row;
	}

	#pwgc-redeem-gift-card-number {
		border-right: none !important;
		margin: 0 !important;
	}

	#pwgc-redeem-button {
		width: auto !important;
	}

	.checkout-sidebar-coupon .checkout_coupon {
		flex-direction: row;
	}

	.checkout-sidebar-coupon .checkout_coupon .form-row-first,
	.checkout-sidebar-coupon .checkout_coupon .form-row-last {
		width: auto !important;
	}

	.checkout-sidebar-coupon .checkout_coupon input[type="text"] {
		border-right: none !important;
		margin-bottom: 0 !important;
	}

	.checkout-sidebar-coupon .checkout_coupon button[name="apply_coupon"] {
		width: auto !important;
	}
}

@media (max-width: 768px) {

	/* --- Panier --- */
	.cart-layout {
		flex-direction: column;
		gap: 0;
	}

	.cart-layout__sidebar {
		width: 100%;
		position: static;
	}

	.cart-item {
		display: grid;
		grid-template-columns: 120px 1fr;
		grid-template-rows: 1fr auto;
		gap: 16px;
		padding: 24px 0;
	}

	.cart-item__image {
		grid-column: 1;
		grid-row: 1 / 3;
		width: 120px;
		height: auto;
		align-self: stretch;
	}

	.cart-item__details {
		grid-column: 2;
		grid-row: 1;
	}

	.cart-item__actions {
		grid-column: 2;
		grid-row: 2;
		min-height: auto;
		width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}

	.cart-item__remove-label {
		display: none;
	}

	.cart-item__remove-icon {
		display: inline-flex;
		align-items: center;
	}

	.cart-item__remove .remove {
		text-decoration: none !important;
	}

	.cart-sidebar-coupon {
		flex-direction: row;
		gap: 0px;
	}

	.cart-sidebar-coupon input.input-text {
		border-right: 1px solid #21285C;
	}

	/* --- Checkout --- */
	.checkout-layout {
		flex-direction: column;
		gap: 0;
	}

	.checkout-layout__main {
		padding-right: 0;
		border: none;
	}

	.checkout-layout__sidebar {
		width: 100%;
		position: static;
	}

	.checkout-layout__main .form-row-first,
	.checkout-layout__main .form-row-last {
		flex: 0 0 100%;
	}

	/* Carte cadeau : input et bouton en pleine largeur, empilés */
	#pwgc-redeem-gift-card-container {
		flex-direction: row;
	}

	#pwgc-redeem-gift-card-number {
		width: 100% !important;
		border-right: 1px solid #21285C !important;
		margin: 0 0 8px 0 !important;
	}

	#pwgc-redeem-button {
		width: auto !important;
		line-height: 11px;
	}

	/* Code promo : input et bouton en pleine largeur, empilés */
	.checkout-sidebar-coupon .checkout_coupon {
		flex-direction: column;
	}

	.checkout-sidebar-coupon .checkout_coupon .form-row-first,
	.checkout-sidebar-coupon .checkout_coupon .form-row-last {
		width: 100% !important;
		flex: 0 0 100% !important;
		margin-right: 0 !important;
	}

	.checkout-sidebar-coupon .checkout_coupon input[type="text"] {
		border-right: 1px solid #21285C !important;
		margin-right: 0 !important;
		margin-bottom: 8px !important;
	}

	.checkout-sidebar-coupon .checkout_coupon button[name="apply_coupon"] {
		width: 100% !important;
		height: auto !important;
	}

	/* --- Réassurance --- */
	.cart-reassurance {
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}

	.cart-reassurance__item {
		width: 100%;
	}
}


/* ============================================================
   PANIER LATÉRAL (Woo Side Cart Premium)
   ============================================================ */

/* Afficher "Voir mon panier" avec le style du bouton checkout */
.xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn-cart {
	display: block !important;
	flex: 1;
	padding: 20px 10px !important;
	font-size: 14px !important;
	line-height: 20px !important;
	letter-spacing: 1.4px !important;
	text-transform: uppercase !important;
	text-align: center !important;
	background: #21285C !important;
	color: #FAF9F7 !important;
	border: 1px solid #1f2763 !important;
	transition: 0.3s;
}
.xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn-cart:hover {
	background: #FAF9F7 !important;
	color: #21285C !important;
}

/* Masquer "Valider ma commande" */
.xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn-checkout {
	display: none !important;
}
