/* ============================
   PANIER PAGE STYLES
   ============================ */

/* ── Calendrier livraison Chronofresh ─────────────────────── */
.ct-delivery-date-wrap {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.ct-delivery-date-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--burgundy);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-delivery-date-title::before {
  content: '📅';
  font-size: 18px;
}

.ct-delivery-date-info {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px;
}

.ct-delivery-date-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.ct-delivery-date-field input[type="date"] {
  width: 100%;
  max-width: 260px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s;
}

.ct-delivery-date-field input[type="date"]:focus {
  outline: none;
  border-color: var(--burgundy);
  background: #fff;
}

.ct-delivery-date-hint {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}

.panier-page {
  background: #fafafa;
  padding-top: 124px;
  min-height: 100vh;
}

/* ============================
   PAGE HEADER
   ============================ */
.page-header {
  text-align: center;
  padding: 40px 20px 50px;
  background: var(--white);
}

.page-header h1 {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--gray);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--burgundy);
}

.breadcrumb .current {
  color: var(--burgundy);
}

/* ============================
   NOTICES WOOCOMMERCE
   ============================ */
.panier-page .wc-notices-wrapper,
.panier-page .woocommerce-notices-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* La notice "Ajouté au panier" est inutile quand on est déjà sur la page panier */
.woocommerce-cart .woocommerce-message {
  display: none !important;
}

.panier-page .woocommerce-message,
.panier-page .woocommerce-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #f0faf0;
  border-left: 4px solid #2e7d32;
  color: #1b5e20;
  font-size: 14px;
  margin: 20px 0 0;
  list-style: none;
}

.panier-page .woocommerce-error {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px;
  background: #fff0f0;
  border-left: 4px solid #c62828;
  color: #b71c1c;
  font-size: 14px;
  margin: 20px 0 0;
  list-style: none;
}

.panier-page .woocommerce-error li,
.panier-page .woocommerce-message li,
.panier-page .woocommerce-info li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panier-page .woocommerce-message a,
.panier-page .woocommerce-info a {
  color: #2e7d32;
  font-weight: 500;
  text-decoration: underline;
  margin-left: auto;
  white-space: nowrap;
}

.panier-page .woocommerce-error a {
  color: #c62828;
  text-decoration: underline;
}

/* ============================
   CART SECTION
   ============================ */
.cart-section {
  padding: 50px 40px 100px;
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

/* ============================
   CART ITEMS
   ============================ */
.cart-items {
  background: var(--white);
  padding: 30px;
}

.cart-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 50px;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 50px;
  gap: 20px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-of-type {
  border-bottom: none;
}

/* Product Column */
.item-product {
  display: flex;
  gap: 20px;
  align-items: center;
}

.item-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  margin: 0;
}

.item-variant {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
}

.item-edit {
  font-size: 12px;
  color: var(--burgundy);
  text-decoration: underline;
  margin-top: 5px;
}

.item-edit:hover {
  color: var(--burgundy);
}

/* Price Column */
.item-price span {
  font-size: 15px;
  color: var(--dark);
}

/* Quantity Column */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  width: fit-content;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  transition: all 0.3s;
}

.qty-btn:hover {
  background: var(--burgundy);
  color: var(--white);
}

.qty-input {
  width: 50px;
  height: 36px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--dark);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Total Column */
.item-total span {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
}

/* Remove Button */
.item-remove {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  transition: all 0.3s;
}

.item-remove:hover {
  color: #c62828;
}

/* Cart Actions */
.cart-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 25px;
  margin-top: 10px;
  border-top: 1px solid #eee;
}

.btn-continue,
.btn-update {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  background: none;
  border: 1px solid #ddd;
  color: var(--gray);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-continue:hover,
.btn-update:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

/* ============================
   CART SUMMARY
   ============================ */
.cart-summary {
  background: var(--white);
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 160px;
}

.summary-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--burgundy);
}

/* Indicateur de mode (livraison / click & collect) */
.summary-mode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--dark);
}

.summary-mode-row svg {
  flex-shrink: 0;
  color: var(--burgundy);
}

.summary-mode-row span {
  flex: 1;
  font-weight: 500;
}

.summary-mode-change {
  font-size: 11px;
  color: var(--gray);
  text-decoration: underline;
  white-space: nowrap;
}

.summary-mode-change:hover {
  color: var(--burgundy);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 14px;
  color: var(--gray);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  padding: 20px 0;
}

.summary-total {
  font-size: 24px;
  color: var(--burgundy);
}

.summary-divider {
  height: 1px;
  background: #eee;
  margin: 10px 0;
}

/* Coupon */
.coupon-section {
  padding: 15px 0;
}

.coupon-section label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.coupon-input {
  display: flex;
  gap: 10px;
}

.coupon-input input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}

.coupon-input input:focus {
  outline: none;
  border-color: var(--burgundy);
}

.btn-coupon {
  padding: 12px 20px;
  background: var(--dark);
  color: var(--white);
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-coupon:hover {
  background: var(--burgundy);
}

/* Checkout Button */
.btn-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 30px;
  background: var(--burgundy);
  color: var(--white);
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.btn-checkout:hover {
  background: #a01045;
  transform: translateY(-2px);
}

.btn-checkout svg {
  transition: transform 0.3s;
}

.btn-checkout:hover svg {
  transform: translateX(5px);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
}

.badge svg {
  color: var(--burgundy);
}

/* ============================
   EMPTY CART
   ============================ */
.empty-cart {
  padding: 100px 20px;
  text-align: center;
}

.empty-cart.hidden {
  display: none;
}

.empty-cart-content {
  max-width: 400px;
  margin: 0 auto;
}

.empty-cart-icon {
  color: #ddd;
  margin-bottom: 30px;
}

.empty-cart h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 15px;
}

.empty-cart p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 30px;
}

.btn-shop {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 35px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-shop:hover {
  background: #6a0f2e;
  transform: translateY(-2px);
}

/* ============================
   DISCOUNT ROW
   ============================ */
.summary-row.discount {
  color: #2e7d32;
}

.summary-row.discount.hidden {
  display: none;
}

/* ============================
   NOTICE — AUCUN MODE CHOISI
   ============================ */
.no-mode-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff3e0;
  border: 1px solid #ffb74d;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #5d4037;
}

.no-mode-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #f57c00;
}

.no-mode-notice p {
  margin: 0;
  line-height: 1.6;
}

.no-mode-notice a {
  color: var(--burgundy);
  font-weight: 600;
  text-decoration: underline;
}

/* ============================
   MINIMUM DE COMMANDE
   ============================ */
.minimum-order-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.minimum-order-notice.hidden {
  display: none;
}

.minimum-order-text {
  font-size: 14px;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.5;
}

.minimum-order-text strong {
  color: var(--burgundy);
}

.minimum-order-bar-wrap {
  background: #ffe082;
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.minimum-order-bar {
  height: 100%;
  background: var(--burgundy);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.minimum-order-sub {
  font-size: 12px;
  color: var(--gray);
  text-align: right;
  margin: 0;
}

.btn-checkout--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(30%);
}

/* Panier modifié sans mise à jour → checkout bloqué en attendant "Mettre à jour" */
.btn-checkout--needs-update {
  background: #9e9e9e !important;
  cursor: not-allowed;
  opacity: 0.65;
}

.btn-checkout--needs-update:hover {
  background: #9e9e9e !important;
  transform: none !important;
}

.btn-checkout--needs-update svg {
  transform: none !important;
}

/* Bouton "Mettre à jour" actif → mise en avant visuelle avec animation */
#updateCart.btn-update--pending {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
  animation: pulse-update 1.6s ease-in-out infinite;
}

#updateCart.btn-update--pending:hover {
  background: #a01045;
  border-color: #a01045;
}

@keyframes pulse-update {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 0, 73, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(179, 0, 73, 0); }
}

/* ============================
   SHIPPING ROW
   ============================ */
.summary-row.shipping {
  color: var(--dark);
}

.summary-row.shipping-pending span:last-child {
  font-style: italic;
  font-size: 13px;
  color: var(--gray);
}

/* ============================
   RESPONSIVE - TABLET
   ============================ */
@media (max-width: 1024px) {
  .cart-container {
    grid-template-columns: 1fr 320px;
    gap: 30px;
  }

  .cart-header {
    grid-template-columns: 2fr 1fr 1fr 50px;
  }

  .cart-header .col-price {
    display: none;
  }

  .cart-item {
    grid-template-columns: 2fr 1fr 1fr 50px;
  }

  .item-price {
    display: none;
  }
}

@media (max-width: 900px) {
  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

/* ============================
   RESPONSIVE - MOBILE
   ============================ */
@media (max-width: 600px) {
  .panier-page {
    padding-top: 120px;
  }

  .page-header {
    padding: 30px 20px 40px;
  }

  .page-header h1 {
    font-size: 28px;
    letter-spacing: 6px;
  }

  .cart-section {
    padding: 30px 15px 60px;
  }

  .cart-items {
    padding: 20px 15px;
  }

  .cart-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px 0;
  }

  .item-product {
    gap: 15px;
  }

  .item-image {
    width: 80px;
    height: 80px;
  }

  .item-name {
    font-size: 14px;
  }

  .item-price,
  .item-quantity,
  .item-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 95px;
  }

  .item-price::before,
  .item-quantity::before,
  .item-total::before {
    content: attr(data-label);
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .item-price {
    display: flex;
  }

  .item-remove {
    position: absolute;
    top: 20px;
    right: 0;
  }

  .cart-item {
    position: relative;
  }

  .cart-actions {
    flex-direction: column;
    gap: 15px;
  }

  .btn-continue,
  .btn-update {
    width: 100%;
    justify-content: center;
  }

  .cart-summary {
    padding: 20px 15px;
  }

  /* Réduction de l'espacement vertical du récapitulatif */
  .summary-title {
    margin-bottom: 12px;
    padding-bottom: 10px;
    font-size: 15px;
  }

  .summary-row {
    padding: 7px 0;
  }

  .summary-row.total {
    padding: 10px 0;
  }

  .summary-divider {
    margin: 4px 0;
  }

  .coupon-section,
  .pickup-section {
    padding: 8px 0;
  }

  .coupon-section label,
  .pickup-section label {
    margin-bottom: 6px;
  }

  .btn-checkout {
    margin-top: 10px;
    padding: 15px 20px;
  }

  .trust-badges {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 12px;
  }

  .badge {
    flex-direction: row;
    gap: 10px;
  }
}

/* ============================
   UTILITIES
   ============================ */
.hidden {
  display: none !important;
}

/* Animation for item removal */
.cart-item.removing {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

/* =============================================================================
   NOTICE MODE DE LIVRAISON — Page checkout
   ============================================================================= */

.ct-checkout-mode-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f0f2;
  border-left: 4px solid var(--burgundy, #872651);
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 0 4px 4px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}

.ct-checkout-mode-icon {
  flex-shrink: 0;
  color: var(--burgundy, #872651);
  display: flex;
  align-items: center;
}

.ct-checkout-mode-text {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  line-height: 1.5;
}

.ct-checkout-mode-text strong {
  color: var(--burgundy, #872651);
  font-weight: 600;
}

.ct-checkout-mode-text span {
  color: #555;
}

.ct-checkout-mode-text a {
  color: var(--burgundy, #872651);
  text-decoration: underline;
  font-weight: 500;
}

.ct-checkout-mode-text a:hover {
  text-decoration: none;
}

/* =============================================================================
   CHECKOUT PAGE — Mise en page & Structure
   ============================================================================= */

.checkout-page {
  min-height: 60vh;
}

/* Formulaire = conteneur 2 colonnes */
.checkout-page form.checkout.checkout-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  align-items: start;
}

/* Erreurs WooCommerce injectées en JS comme 1er enfant direct du form :
   elles doivent couvrir les 2 colonnes pour ne pas casser le grid */
.checkout-page form.checkout > .woocommerce-NoticeGroup,
.checkout-page form.checkout > .woocommerce-notices-wrapper,
.checkout-page form.checkout > ul.woocommerce-error,
.checkout-page form.checkout > .woocommerce-error {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

/* Style des erreurs globales checkout */
.checkout-page form.checkout > .woocommerce-NoticeGroup ul,
.checkout-page form.checkout > ul.woocommerce-error {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  padding: 14px 18px 14px 20px;
  margin: 0 0 8px 0;
  list-style: none;
  font-size: 13px;
  color: #991b1b;
}

.checkout-page form.checkout > .woocommerce-NoticeGroup ul li,
.checkout-page form.checkout > ul.woocommerce-error li {
  padding: 2px 0;
}

.checkout-page form.checkout > .woocommerce-NoticeGroup ul li::before,
.checkout-page form.checkout > ul.woocommerce-error li::before {
  content: '⚠ ';
}

/* ── Sections numérotées ────────────────────────────────────────────────── */
.checkout-section {
  background: var(--white, #fff);
  border: 1px solid #e8e8e8;
  margin-bottom: 20px;
}

.checkout-section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.checkout-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--burgundy, #872651);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  flex-shrink: 0;
  border-radius: 50%;
}

.checkout-section__header h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark, #1a1a2e);
  margin: 0;
}

.checkout-section__body {
  padding: 28px;
}

/* =============================================================================
   CHECKOUT — Champs WooCommerce
   ============================================================================= */

/* Masquer les titres h3 natifs WooCommerce (remplacés par nos sections) */
.checkout-page .woocommerce-billing-fields > h3,
.checkout-page .woocommerce-additional-fields > h3 {
  display: none;
}

/* Formulaire WooCommerce - champs côte à côte */
.checkout-page .woocommerce-billing-fields__field-wrapper,
.checkout-page .woocommerce-shipping-fields__field-wrapper,
.checkout-page .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* Champs pleine largeur */
.checkout-page .form-row-wide,
.checkout-page #billing_address_1_field,
.checkout-page #billing_address_2_field,
.checkout-page #billing_city_field,
.checkout-page #billing_email_field,
.checkout-page #order_comments_field {
  grid-column: 1 / -1;
}

/* Champs côte à côte */
.checkout-page .form-row-first { grid-column: 1; }
.checkout-page .form-row-last  { grid-column: 2; }

/* Label */
.checkout-page .form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray, #777);
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.checkout-page .form-row label .required {
  color: var(--burgundy, #872651);
  margin-left: 2px;
}

/* Inputs */
.checkout-page .form-row input.input-text,
.checkout-page .form-row select,
.checkout-page .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--dark, #1a1a2e);
  background: var(--white, #fff);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.checkout-page .form-row input.input-text:focus,
.checkout-page .form-row select:focus,
.checkout-page .form-row textarea:focus {
  border-color: var(--burgundy, #872651);
}

.checkout-page .form-row {
  margin-bottom: 16px;
}

/* Select — flèche personnalisée */
.checkout-page .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Select2 (WooCommerce enhanced selects) */
.checkout-page .select2-container--default .select2-selection--single {
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
}

.checkout-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--dark, #1a1a2e);
}

.checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
}

.checkout-page .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--burgundy, #872651);
}

/* Message d'erreur WooCommerce sur un champ */
.checkout-page .woocommerce-invalid input.input-text,
.checkout-page .woocommerce-invalid select {
  border-color: #dc2626;
}

.checkout-page .woocommerce-invalid-required-field .woocommerce-error,
.checkout-page .form-row .woocommerce-error {
  font-size: 11px;
  color: #dc2626;
  margin-top: 4px;
  display: block;
}

/* "Expédier à une adresse différente ?" */
.checkout-page #ship-to-different-address {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark, #1a1a2e);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkout-page #ship-to-different-address input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--burgundy, #872651);
  cursor: pointer;
}

.checkout-page .shipping_address {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* Notes de commande */
.checkout-page .woocommerce-additional-fields {
  margin-top: 4px;
}

.checkout-page #order_comments {
  resize: vertical;
  min-height: 80px;
}

/* =============================================================================
   CHECKOUT — Colonne droite : résumé de commande
   ============================================================================= */

.checkout-right {
  position: sticky;
  top: 20px;
}

.checkout-summary {
  background: var(--white, #fff);
  border: 1px solid #e8e8e8;
  padding: 28px;
}

/* Liste des produits */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
}

.checkout-item__thumb {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.checkout-item__thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.checkout-item__qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--burgundy, #872651);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-item__info {
  min-width: 0;
}

.checkout-item__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark, #1a1a2e);
  margin: 0 0 2px;
  line-height: 1.3;
}

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

.checkout-item__variant {
  font-size: 11px;
  color: var(--gray, #777);
  margin: 0;
}

.checkout-item__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--burgundy, #872651);
  white-space: nowrap;
}

/* =============================================================================
   CHECKOUT — Section mode de livraison (review-order.php)
   ============================================================================= */

.checkout-section--shipping {
  border: none;
  margin-bottom: 0;
}

.checkout-section--shipping .checkout-section__header {
  background: transparent;
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0 16px;
}

.checkout-section--shipping .checkout-section__body {
  padding: 20px 0 0;
}

/* Masquer le titre "Expédition" (package name WooCommerce, redondant) */
.checkout-page .woocommerce-shipping-fields ~ .woocommerce-shipping-methods > h3,
.checkout-page section.woocommerce-shipping-methods > h3 {
  display: none;
}

/* Méthodes d'expédition WooCommerce */
.checkout-page .woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/*
 * FLEXBOX avec wrapping — approche robuste pour LPP :
 * - radio  : flex item 1 (largeur fixe)
 * - label  : flex item 2 (flex: 1, remplit la largeur restante)
 * - bloc LPP (ou tout wrapper inconnu) : flex-basis 100% → ligne suivante pleine largeur
 * Aucun grid-column/grid-row = compatible quelle que soit la profondeur DOM de LPP.
 */
.checkout-page .woocommerce-shipping-methods li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 16px 18px;
  border: 1px solid #e8e8e8;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.checkout-page .woocommerce-shipping-methods li:has(input:checked) {
  border-color: var(--burgundy, #872651);
  background: #fdf8f9;
}

.checkout-page .woocommerce-shipping-methods input[type="radio"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  accent-color: var(--burgundy, #872651);
  margin: 0;
  cursor: pointer;
  align-self: center;
}

.checkout-page .woocommerce-shipping-methods label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark, #1a1a2e);
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}

/* Tout élément direct du <li> autre qu'un input ou label → nouvelle ligne pleine largeur.
 * Couvre le bloc LPP qu'il soit enfant direct OU dans un wrapper inconnu. */
.checkout-page .woocommerce-shipping-methods li > *:not(input):not(label) {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin-top: 10px;
}

.checkout-page .woocommerce-shipping-methods .woocommerce-Price-amount {
  color: var(--burgundy, #872651);
}

/* Message "Entrez votre adresse pour voir les options" */
.checkout-page .woocommerce-shipping-destination,
.checkout-page .shipping-calculator-button {
  font-size: 12px;
  color: var(--gray, #777);
  margin-top: 8px;
}

/* =============================================================================
   LOCAL PICKUP PLUS — Sélecteur de boutique + date de retrait
   ============================================================================= */

/*
 * Structure réelle du DOM LPP dans le <li> "Click & Collect" :
 *
 *   <li>
 *     <input type="radio">
 *     <label>Click & Collect</label>
 *     <div id="pickup-location-field-for-0"   class="pickup-location-field ..."> → Zone A
 *       <div id="pickup-location-lookup-area-field-for-0">   (zone géo, masquée)
 *       <select class="pickup-location-lookup">              (select boutique)
 *       <div class="pickup-location-address">                (adresse formatée)
 *     </div>
 *     <div id="pickup-appointment-field-for-0" class="pickup-location-field ..."> → Zone B
 *       <div class="pickup-location-appointment">
 *         <div class="pickup-location-calendar">
 *           <small class="pickup-location-field-label">Prenez rdv...</small>  ← à masquer
 *           <input type="text" class="pickup-location-appointment-date">
 *           <button class="ui-datepicker-trigger">
 *         </div>
 *       </div>
 *     </div>
 *     <div id="pickup-items-field-for-0"       class="pickup-location-field ..."> → Zone C (caché)
 *   </li>
 *
 * Les 3 divs sont FRÈRES (siblings). Ils partagent toutes les mêmes classes CSS
 * (pickup-location-field, pickup-location-field-per-order, pickup-location-package-field).
 * → Utiliser UNIQUEMENT les sélecteurs id^= pour cibler chaque zone séparément.
 * → Ne JAMAIS mettre display:none sur ces classes partagées.
 * → LPP gère show/hide via JS → aucun display override sur les conteneurs.
 */

/* ── Zone A : Sélecteur de boutique ───────────────────────────────────────── */

.checkout-page [id^="pickup-location-field-for-"] {
  box-sizing: border-box;
  margin-top: 8px !important; /* Override la règle générique li > * { margin-top: 10px } */
  padding: 10px 0 6px;
  border: none;
  border-top: 2px solid var(--burgundy, #872651);
  background: transparent;
}

/* Titre "BOUTIQUE DE RETRAIT" via ::before (pas de <label> natif dans ce div) */
.checkout-page [id^="pickup-location-field-for-"]::before {
  content: 'Boutique de retrait';
  display: block;
  padding-left: 20px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--burgundy, #872651);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b1a2e' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: left center;
}

/* Zone de recherche géographique (masquée si non configurée) */
.checkout-page .pickup-location-lookup-area-field {
  padding: 0 0 8px;
}

/* Select natif boutique */
.checkout-page .pickup-location-lookup {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 40px 11px 12px;
  border: 1px solid #ddd;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--dark, #1a1a2e);
  background-color: var(--white, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.checkout-page .pickup-location-lookup:focus {
  border-color: var(--burgundy, #872651);
}

/* Select2 — pleine largeur */
.checkout-page [id^="pickup-location-field-for-"] .select2-container {
  width: 100% !important;
  margin: 0;
  display: block;
}

.checkout-page [id^="pickup-location-field-for-"] .select2-container--default .select2-selection--single {
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 0;
}

.checkout-page [id^="pickup-location-field-for-"] .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding: 0 12px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: var(--dark, #1a1a2e);
}

/* Adresse boutique — classe réelle : .pickup-location-address (pas .pickup-location-details) */
.checkout-page .pickup-location-address {
  padding: 6px 2px 4px;
  font-size: 11px;
  color: #888;
  line-height: 1.5;
}

/* ── Zone B : Date de retrait ──────────────────────────────────────────────── */

/*
 * Zone B = #pickup-appointment-field-for-0
 * C'est un FRÈRE de Zone A, pas un enfant.
 * Contient .pickup-location-appointment > .pickup-location-calendar
 *   > <small class="pickup-location-field-label">  ← label verbeux à masquer
 *   > <input type="text" class="pickup-location-appointment-date">
 *   > <button class="ui-datepicker-trigger">
 */
.checkout-page [id^="pickup-appointment-field-for-"] {
  box-sizing: border-box;
  margin-top: 4px !important;
  padding: 12px 0 4px;
  border: none;
  border-top: 1px solid #ece4e6;
  background: transparent;
}

/* Masquer le label verbeux LPP : <small class="pickup-location-field-label"> */
.checkout-page .pickup-location-field-label {
  display: none !important;
}

/* Titre "DATE DE RETRAIT" via ::before */
.checkout-page [id^="pickup-appointment-field-for-"]::before {
  content: 'Date de retrait';
  display: block;
  padding-left: 20px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--burgundy, #872651);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b1a2e' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: left center;
}

/* Champ date visible (class réelle : pickup-location-appointment-date) */
.checkout-page [id^="pickup-appointment-field-for-"] input[type="text"] {
  width: calc(100% - 44px);
  padding: 11px 12px;
  border: 1px solid #ddd;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--dark, #1a1a2e);
  background: var(--white, #fff);
  outline: none;
  box-sizing: border-box;
  vertical-align: middle;
  transition: border-color 0.2s;
}

.checkout-page [id^="pickup-appointment-field-for-"] input[type="text"]:focus {
  border-color: var(--burgundy, #872651);
}

/* ── Bouton jQuery UI Datepicker (masque le &nbsp; généré) ────────────────── */
.checkout-page .ui-datepicker-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  border-left: none;
  background: #f0f0f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b1a2e' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") center/18px no-repeat;
  cursor: pointer;
  vertical-align: middle;
  font-size: 0;
  color: transparent;
  overflow: hidden;
  text-indent: -9999px;
  box-sizing: border-box;
  transition: background-color 0.2s;
}

.checkout-page .ui-datepicker-trigger:hover {
  background-color: #ece4e6;
}

.checkout-page img.ui-datepicker-trigger {
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  border-left: none;
  padding: 10px;
  background: #f0f0f0;
  object-fit: contain;
  box-sizing: border-box;
}

/* ── Zone C : Récap articles LPP (caché — HTML entities non échappées) ─────── */
/*
 * Seul [id^="pickup-items-field-for-"] est masqué.
 * NE PAS cibler .pickup-location-field-per-order ni .pickup-location-package-field :
 * ces classes sont partagées par les Zones A et B (store selector + datepicker).
 */
.checkout-page [id^="pickup-items-field-for-"] {
  display: none !important;
}

/* ── Masquer la destination d'expédition et titres redondants ─────────────── */
.checkout-page .checkout-section--shipping h3,
.checkout-page .checkout-section--shipping h4,
.checkout-page .checkout-section--shipping .woocommerce-shipping-destination {
  display: none;
}

/* ── Horaires disponibles (affichés après sélection de la date) ───────────── */
.checkout-page .pickup-location-schedule,
.checkout-page .pickup-location-pickup-hours,
.checkout-page .pickup_hours {
  margin-top: 8px;
  font-size: 12px;
  color: #2e7d32;
  font-style: italic;
}

/* =============================================================================
   CHECKOUT — Totaux (review-order.php)
   ============================================================================= */

.checkout-page .checkout-totals {
  margin-top: 4px;
}

/* =============================================================================
   CHECKOUT — Section paiement (checkout/payment.php via WooCommerce)
   ============================================================================= */

/* Wrapper paiement */
.checkout-page .woocommerce-checkout-payment {
  background: transparent;
}

/* Titre de la section paiement */
.checkout-page .woocommerce-checkout-payment::before {
  content: '';
  display: block;
  border-top: 1px solid #e8e8e8;
  margin: 20px 0 0;
}

/* Conteneur section paiement avec numérotation */
.checkout-page #order_review .woocommerce-checkout-payment {
  padding-top: 0;
}

/* Label section paiement */
.checkout-page .woocommerce-checkout-payment .checkout-section__header {
  padding: 20px 0 16px;
  border-bottom: 1px solid #e8e8e8;
  background: transparent;
}

/* Liste des modes de paiement */
.checkout-page ul.payment_methods {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-page ul.payment_methods li.payment_method {
  border: 1px solid #e8e8e8;
  transition: border-color 0.2s ease;
}

.checkout-page ul.payment_methods li.payment_method.woocommerce-validated {
  border-color: var(--burgundy, #872651);
}

/* Label mode de paiement */
.checkout-page ul.payment_methods li label[for] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark, #1a1a2e);
  text-transform: none;
  letter-spacing: 0;
  width: 100%;
  box-sizing: border-box;
}

.checkout-page ul.payment_methods li label[for]:hover {
  background: #fdf8f9;
}

.checkout-page ul.payment_methods li input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--burgundy, #872651);
  flex-shrink: 0;
}

/* Description du mode de paiement (contenu masqué) */
.checkout-page .payment_box {
  padding: 14px 16px;
  background: #fdf8f9;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* Logos de paiement */
.checkout-page ul.payment_methods li img {
  max-height: 28px;
  vertical-align: middle;
}

/* Termes & Conditions */
.checkout-page .woocommerce-terms-and-conditions-wrapper {
  margin: 16px 0;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

.checkout-page .woocommerce-terms-and-conditions-wrapper a {
  color: var(--burgundy, #872651);
}

/* Bouton "Passer la commande" */
.checkout-page #place_order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 28px;
  background: var(--burgundy, #872651);
  color: var(--white, #fff);
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
  margin-top: 20px;
}

.checkout-page #place_order:hover {
  background: #4a1020;
  transform: translateY(-1px);
}

.checkout-page #place_order:active {
  transform: translateY(0);
}

/* Trust badges sous le bouton commander */
.checkout-page .trust-badges {
  margin-top: 20px;
}

/* =============================================================================
   CHECKOUT — Badges de confiance
   ============================================================================= */

/* Reprend les mêmes styles que sur la page panier — déjà définis ci-dessus */

/* =============================================================================
   CHECKOUT — Responsive
   ============================================================================= */

@media (max-width: 1024px) {
  .checkout-page form.checkout.checkout-container {
    grid-template-columns: 1fr 360px;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .checkout-page form.checkout.checkout-container {
    grid-template-columns: 1fr;
    padding: 20px 16px 60px;
    gap: 20px;
  }

  .checkout-right {
    position: static;
    order: 2; /* Coordonnées d'abord, livraison/paiement ensuite */
  }

  .checkout-page .woocommerce-billing-fields__field-wrapper,
  .checkout-page .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .checkout-page .form-row-first,
  .checkout-page .form-row-last {
    grid-column: 1;
  }
}

/* =============================================================================
   CHECKOUT — Header & Footer simplifiés
   ============================================================================= */

/* ── Navbar checkout : logo centré + liens latéraux ──────────────────────── */
.site-header--checkout {
  /* Pas de top-bar → hauteur réduite */
  box-shadow: 0 1px 0 #e8e8e8;
}

.navbar--checkout,
.header-landing .navbar--checkout {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  position: relative;
  min-height: 64px;
}

.header-landing .navbar--checkout .logo {
  order: unset;
  justify-self: unset;
}

/* Retour au panier — gauche */
.checkout-back-link {
  position: absolute;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray, #777);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.checkout-back-link:hover {
  color: var(--burgundy, #872651);
}

.checkout-back-link svg {
  flex-shrink: 0;
}

/* Badge sécurité — droite */
.checkout-secure-badge {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: #2e7d32;
  letter-spacing: 0.3px;
}

.checkout-secure-badge svg {
  flex-shrink: 0;
  stroke: #2e7d32;
}

/* ── Padding-top : header réduit sans top-bar (~64px) ─────────────────────── */
.woocommerce-checkout .checkout-page {
  padding-top: 80px;
}

/* ── Bandeau mode livraison (woocommerce_before_checkout_form) ─────────────── */
/* Rendu avant le <main> donc pas de padding-top hérité : on compense ici */
.woocommerce-checkout .woocommerce > .ct-delivery-notice:first-child,
.woocommerce-checkout .woocommerce > p.woocommerce-info:first-child,
.woocommerce-checkout .woocommerce > .woocommerce-info:first-child {
  margin-top: 80px;
}

/* ── Plugin LPP : wrapper sélection livraison pleine largeur ──────────────── */
.checkout-page .lpp-shipping-package-wrapper {
  width: 100% !important;
  box-sizing: border-box;
  margin-top: 0;
}

.checkout-page .lpp-shipping-package-wrapper > * {
  width: 100%;
}

/* ── Footer checkout : minimaliste ───────────────────────────────────────── */
.site-footer--checkout {
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
}

.site-footer--checkout .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--gray, #777);
}

.site-footer--checkout .footer-bottom p {
  margin: 0;
}

.footer-checkout-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-checkout-links a {
  font-size: 12px;
  color: var(--gray, #777);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-checkout-links a:hover {
  color: var(--burgundy, #872651);
}

/* ── Responsive checkout header ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .checkout-back-link span {
    display: none; /* Garder seulement la flèche sur mobile */
  }

  .checkout-secure-badge span {
    display: none; /* Garder seulement l'icône sur mobile */
  }

  .site-footer--checkout .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Autocomplétion adresse (API Adresse gouv.fr) ──────────────────────────── */
.ct-autocomplete-wrap {
  position: relative;
}

.ct-autocomplete-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}

.ct-autocomplete-dropdown li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.ct-autocomplete-dropdown li:last-child {
  border-bottom: none;
}

.ct-autocomplete-dropdown li:hover,
.ct-autocomplete-dropdown li.active {
  background: #f8f0f3;
  color: var(--burgundy);
}
