/* ==========================================================
   🌿 Apparence personnalisée du marque-page dans le panier
========================================================== */

.woocommerce-cart .marque-page-produit,
.woocommerce-checkout-review-order-table .marque-page-produit {
  background-color: #e7f2e8 !important;
  border-radius: 12px;
}

.woocommerce-cart .marque-page-produit:hover,
.woocommerce-checkout-review-order-table .marque-page-produit:hover {
  background-color: #e7f2e8 !important;
}

.woocommerce-cart .marque-page-produit td.product-name,
.woocommerce-checkout-review-order-table .marque-page-produit td.product-name {
  padding: 15px;
}

.woocommerce-cart .marque-page-produit td.product-name a,
.woocommerce-checkout-review-order-table .marque-page-produit td.product-name a {
  color: #000 !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

/* 📸 Agrandit la miniature du marque-page dans le panier */
.woocommerce-cart .marque-page-produit td.product-thumbnail img {
  width: 100px !important;
  max-width: none;
  height: auto;
}

/* 🧼 Supprime tout fond derrière la miniature du marque-page */
.woocommerce-cart .marque-page-produit td.product-thumbnail,
.woocommerce-cart .marque-page-produit td.product-thumbnail img {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.woocommerce div.product form.cart {
  margin-top: 30px;
}

.single_add_to_cart_button {
  font-size: 20px !important;
  padding: 14px 30px !important;
  border-radius: 10px !important;
}

.quantity input.qty {
  font-size: 18px !important;
  height: 48px !important;
  width: 65px !important;
  text-align: center;
}
/* === Bloc global paiement (fond derrière) === */
.woocommerce-checkout #payment {
  background: #eaf4fc !important; /* bleu ciel pastel */
  border-radius: 12px !important;
  padding: 20px !important;
  border: none !important;
}

/* === Chaque méthode de paiement (Bancontact / PayPal) === */
.wc_payment_method {
  background: #ffffff !important; /* blanc */
  border: 1px solid #ddd !important;
  border-radius: 12px !important;
  padding: 15px !important;
  margin-bottom: 15px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; /* jolie ombre */
}

/* Description sous le moyen de paiement */
.payment_box {
  background: #f9f9f9 !important; /* gris très clair */
  border-radius: 8px !important;
  padding: 10px 12px !important;
  margin-top: 8px !important;
  color: #444 !important;
  font-size: 0.95em !important;
  border: 1px solid #eee !important;
}

/* Supprimer le petit triangle violet */
.payment_box:before {
  display: none !important;
}

/* Titres (Bancontact, Paypal) */
.wc_payment_method label {
  font-size: 1.1em !important;
  font-weight: 600 !important;
  color: #222 !important; /* noir élégant */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logos */
.payment_method_mollie img {
  max-height: 28px !important;
  margin-left: 6px !important;
}
/* ==========================================================
   🟢 BOUTONS – CHECKOUT & PANIER
========================================================== */

/* 🔘 Boutons principaux (Point Relais, Continuer, etc.) */
.button,
.wc-proceed-to-checkout .checkout-button {
  background: #f2f2f2 !important;
  color: #111 !important;
  border: 1px solid #ccc !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  padding: 14px 22px !important;
  transition: all 0.2s ease-in-out;
}

.button:hover,
.wc-proceed-to-checkout .checkout-button:hover {
  background: #e2e2e2 !important;
  border-color: #bbb !important;
  color: #000 !important;
}

/* ==========================================================
   🟩 BOUTON "COMMANDER" (CTA final)
========================================================== */

#place_order {
  background-color: #ffffff !important;
  color: #1c6b36 !important;
  border: 2px solid #1c6b36 !important;
  border-radius: 10px !important;
  font-size: 1.1em !important;
  font-weight: 600 !important;
  padding: 16px 28px !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: none !important;
}

#place_order:hover {
  background-color: #1c6b36 !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================
   🧾 RÉCAPITULATIF COMMANDE
========================================================== */

.woocommerce-checkout-review-order {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 25px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* 📋 Tableau récap */
.woocommerce-checkout-review-order-table {
  width: 100% !important;
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #ffffff !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  border: none !important;
  padding: 12px 10px !important;
}

/* 📝 Typo tableau */
.woocommerce-checkout-review-order-table th {
  font-weight: 600;
  font-size: 1em;
  color: #111;
}

.woocommerce-checkout-review-order-table td {
  font-size: 1em;
  color: #222;
  vertical-align: top;
}
/* === Récap PRODUITS : bleu pastel clair (ligne produit principale) === */
.woocommerce-checkout-review-order-table tbody tr:first-child td {
  background-color: #eaf4fc !important;  /* bleu pastel clair */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* === Sous-total produits (ligne après les produits) === */
.woocommerce-checkout-review-order-table tbody tr:nth-child(2) td {
  background-color: #f7faff !important;
}

/* === Récap LIVRAISON : gris clair doux */
.woocommerce-checkout-review-order-table tbody tr:nth-child(3),
.woocommerce-checkout-review-order-table tbody tr:nth-child(4),
.woocommerce-checkout-review-order-table tbody tr:nth-child(5) {
  background-color: #f3f3f3 !important;
}

/* === Lignes Totaux (réductions + total final) === */
.woocommerce-checkout-review-order-table tfoot tr {
  background-color: #ffffff !important;  /* fond blanc propre */
}
/* === Bouton "Choisir ce Point Relais® / locker" agrandi === */
#delivery_point_chosen {
  font-size: 1.1em !important;
  font-weight: 600 !important;
  padding: 14px 17px !important;
  background-color: #ad3b5d !important;  /* vert foncé */
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  margin-top: 15px !important;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  display: inline-block;
}

/* === Effet hover doux === */
#delivery_point_chosen:hover {
  background-color: #155b2c !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15) !important;
}


/* ==========================================================
   📝 CHECKOUT — Champ “Comment vous nous avez découvert ?”
========================================================== */
#billing_wooccm10_field {
  background-color: #f7f7f7 !important;   /* gris pastel */
  border: 1px solid #aad4f5 !important;   /* bleu ciel */
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 30px !important;
}

/* ==========================================================
   📱 CHECKOUT — Ajustements mobile
========================================================== */
@media (max-width: 768px) {
  .woocommerce-checkout-review-order {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  .woocommerce-checkout-review-order-table {
    width: 100% !important;
  }
}

/* ==========================================================
   💳 CHECKOUT — Méthode de paiement sélectionnée
========================================================== */
.wc_payment_method.selected {
  border: 2px solid #28a745;
  border-radius: 8px;
  background-color: #f6fff6;
  padding: 10px;
  transition: all 0.2s ease;
}

/* ==========================================================
   🛒 MINI-PANIER (Woo Blocks)
========================================================== */

/* Supprimer la description produit */
.wc-block-mini-cart__drawer
.wc-block-components-product-metadata__description {
  display: none !important;
}

/* Supprimer badges promo */
.wc-block-mini-cart__drawer
.wc-block-components-sale-badge,
.wc-block-mini-cart__drawer
.wc-block-components-product-badge {
  display: none !important;
}

/* Prix mini-panier : vert, gras */
.wc-block-mini-cart__drawer
.wc-block-components-product-price__value,
.wc-block-mini-cart__drawer
.wc-block-formatted-money-amount,
.wc-block-mini-cart__drawer
.wc-block-components-formatted-money-amount {
  color: #2e7d32 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2;
}
