/* dspanier — précommandes séparées : une carte par jeu.
   Chargé seulement si le réglage « Une carte par jeu précommandé » est actif.
   La ligne d'arrhes d'origine reste dans la page (PrestaShop en a besoin) : elle est seulement masquée. */

.dsp-preco-origine { display: none !important; }

/* ---------- Section « Précommandes » de la page panier ---------- */
.dsp-preco { clear: both; margin: 6px 0 14px; text-align: left; }
.dsp-preco-entete {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 0;
  font-size: 18px; font-weight: 800; line-height: 1.25; color: #373737; text-transform: none;
}
.dsp-preco-entete:before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 5px; background: #f97316; }
.dsp-preco-liste { display: flex; flex-direction: column; gap: 14px; }
body#cart .cart-overview.dsp-preco-seule ul.cart-items { margin: 0; padding: 0; }

.dsp-preco-carte {
  position: relative; box-sizing: border-box;
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 6px 16px; align-items: start;
  background: #fff; color: #373737; border: 1px solid #eceef5; border-left: 4px solid #f97316; border-radius: 16px;
  padding: 16px 64px 16px 16px;
  transition: box-shadow .2s ease;
}
.dsp-preco-carte:hover { box-shadow: 0 8px 22px rgba(40, 50, 120, .10); }
.dsp-preco-photo {
  display: flex; align-items: center; justify-content: center; width: 96px; min-height: 96px;
  border-radius: 12px; overflow: hidden; background: #f4f5f9; color: #9aa0b2;
}
.dsp-preco-photo img { display: block; width: 100%; height: auto; }
.dsp-preco-corps { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.dsp-preco-titre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.dsp-preco-nom {
  color: #373737 !important; font-size: 15px; font-weight: 700; line-height: 1.35; text-decoration: none; text-transform: none;
  overflow-wrap: anywhere;
}
a.dsp-preco-nom:hover, a.dsp-preco-nom:focus { color: #465cff !important; text-decoration: underline; }
.dsp-preco-qte { font-size: 14px; font-weight: 700; color: #465cff; white-space: nowrap; }
.dsp-preco-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 12px;
  background: #fff0e0; border: 1px solid #ffc48a; color: #9a3d00; font-size: 12px; font-weight: 700; line-height: 1.4;
}
.dsp-preco-badge svg { flex: none; }
.dsp-preco-note { margin: 0; font-size: 13px; line-height: 1.45; color: #4a4a55; }
.dsp-preco-aide { margin: 0; font-size: 12px; line-height: 1.4; color: #5f5f6b; }
.dsp-preco-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; }
.dsp-preco-libelle { font-size: 12px; color: #5f5f6b; }
.dsp-preco-montant { font-size: 20px; font-weight: 800; color: #465cff; }
.dsp-preco-retirer {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center; background: #f4f5f9; color: #5f5f6b !important;
}
.dsp-preco-retirer:hover, .dsp-preco-retirer:focus { background: #fdeced; color: #c40d16 !important; }

@media (max-width: 575px) {
  .dsp-preco-carte { grid-template-columns: 76px minmax(0, 1fr); padding: 14px 58px 14px 14px; }
  .dsp-preco-photo { width: 76px; min-height: 76px; }
  .dsp-preco-droite {
    grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between;
    margin-right: -44px; padding-top: 10px; border-top: 1px solid #eceef5; white-space: normal;
  }
  .dsp-preco-libelle { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .dsp-preco-carte { transition: none; } }

/* ---------- Récapitulatif ---------- */
body#cart .cart-summary.dsp-preco-recap-actif #cart-subtotal-products,
body#cart .cart-summary.dsp-preco-recap-actif #cart-subtotal-shipping { display: none !important; }
.dsp-preco-recap { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; text-align: left; }
.dsp-preco-ligne { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 1.35; color: inherit; }
.dsp-preco-ligne-nom { min-width: 0; }
.dsp-preco-ligne-valeur { flex: none; font-weight: 700; white-space: nowrap; text-align: right; }
.dsp-preco-ligne--livraison .dsp-preco-ligne-valeur { font-weight: 500; white-space: normal; max-width: 60%; }
.dsp-preco-detail { list-style: none; margin: -2px 0 2px; padding: 0 0 0 12px; border-left: 2px solid #f97316; }
.dsp-preco-detail li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0; font-size: 12px; line-height: 1.4; color: inherit; opacity: .85; }
.dsp-preco-detail li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.dsp-preco-detail-montant { flex: none; white-space: nowrap; }
.dsp-preco-plus-tard {
  margin: 10px 0 !important; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: #eef0ff; border: 1px solid #c9cffb; color: #1f2a6b !important; font-size: 13px; line-height: 1.45;
}

/* ---------- Petit panier du haut ---------- */
.dsp-preco-mini .dropdown-product-thumb { display: block; background: #f4f5f9; }
.dsp-preco-mini .dropdown-product-thumb img { display: block; max-width: 100%; height: auto; }
.dsp-preco-mini .product-name a, .dsp-preco-mini .product-name > span:first-child { overflow-wrap: anywhere; }
.dsp-preco-mini-quand { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; line-height: 1.3; color: #9a3d00; text-transform: none; }
.dsp-preco-mini-retirer { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; color: #5f5f6b !important; }
.dsp-preco-mini-retirer:hover, .dsp-preco-mini-retirer:focus { color: #c40d16 !important; }

/* ---------- Tunnel de commande : « Articles de la commande » et liste du récapitulatif ---------- */
.dsp-preco-commande { align-items: flex-start; }
.dsp-preco-commande .image { display: flex; align-items: center; justify-content: center; min-height: 60px; color: #9aa0b2; }
.dsp-preco-commande .image img { display: block; max-width: 100%; height: auto; }
.dsp-preco-commande .details { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dsp-preco-commande .dsp-preco-note { font-size: 12px; }
.dsp-preco-resume .media-left { color: #9aa0b2; vertical-align: top; padding-right: 10px; }
.dsp-preco-resume .dsp-preco-resume-image { display: block; width: 50px; }
.dsp-preco-resume .dsp-preco-resume-image img { display: block; width: 50px; max-width: none; height: auto; }
.dsp-preco-resume .dsp-preco-nom { font-size: inherit; font-weight: inherit; }
.dsp-preco-resume .dsp-preco-mini-quand { margin: 2px 0; }

/* ---------- Dernière étape : « votre commande en deux temps » ---------- */
#order-items.dsp-deux-actif > .row:first-child { display: none !important; }
.dsp-deux { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; text-align: left; color: #373737; }
.dsp-deux-intro { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: #14162b; color: #fff; }
.dsp-deux-intro-titre { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #ffc24a; }
.dsp-deux-intro-texte { font-size: 14px; line-height: 1.45; }
.dsp-deux-section { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #eceef5; }
.dsp-deux-tete { display: flex; align-items: center; gap: 12px; }
.dsp-deux-rond { flex: none; width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.dsp-deux-tete--stock .dsp-deux-rond { background: #e8f6ec; color: #17753a; }
.dsp-deux-tete--preco .dsp-deux-rond { background: #fff0e0; color: #9a3d00; }
.dsp-deux-titres { display: flex; flex-direction: column; }
.dsp-deux-numero { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.dsp-deux-numero:empty { display: none; }
.dsp-deux-tete--stock .dsp-deux-numero { color: #17753a; }
.dsp-deux-tete--preco .dsp-deux-numero { color: #9a3d00; }
.dsp-deux-titre { margin: 0 !important; padding: 0; font-size: 16px; font-weight: 800; line-height: 1.25; color: #373737; text-transform: none; }
.dsp-deux-article { display: flex; align-items: center; gap: 12px; }
.dsp-deux-photo { flex: none; width: 56px; min-height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 8px; overflow: hidden; background: #f4f5f9; color: #9aa0b2; }
.dsp-deux-photo img { display: block; width: 100%; height: auto; }
.dsp-deux-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dsp-deux-nom { font-size: 14px; font-weight: 700; line-height: 1.3; color: #373737 !important; text-decoration: none; overflow-wrap: anywhere; }
a.dsp-deux-nom:hover, a.dsp-deux-nom:focus { color: #465cff !important; text-decoration: underline; }
.dsp-deux-sous { font-size: 12px; color: #5f5f6b; }
.dsp-deux-montant { flex: none; font-size: 15px; font-weight: 800; color: #465cff; white-space: nowrap; }
.dsp-deux-transport { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f4f5f9; font-size: 13px; }
.dsp-deux-transport-nom { min-width: 0; font-weight: 700; }
.dsp-deux-transport-prix { flex: none; white-space: nowrap; }
.dsp-deux-date { align-self: flex-start; }
.dsp-deux-date + .dsp-deux-article { margin-top: -6px; }
.dsp-deux-encart { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff7ee; border: 1px solid #ffd9b0; color: #5a2a00; font-size: 12px; line-height: 1.5; }
