/*
  cart_v2.css -- panier (php/cart.php, page "votre-commande"), charte VETDOM.

  Tout est prefixe vd-cart- et scope sur .vd-cart (div ouverte par cart.php) : aucune regle sur body,
  select ou button en general. Les encarts .info / .warning / .erroneous du theme ne sont pas touches.

  Un seul vert plein par ecran : "Valider la commande" (barre fixe) ou, panier vide, "Acheter des produits
  veterinaires". Champs et boutons a 48 px, texte a 4,5:1 minimum, champs a 16 px.
*/

.vd-cart { box-sizing: border-box; color: var(--vd-texte, #1E2433); font-size: 16px; line-height: 1.45; }
.vd-cart *, .vd-cart *::before, .vd-cart *::after { box-sizing: border-box; }
.vd-cart a:focus-visible, .vd-cart select:focus-visible { outline: 3px solid var(--vd-lien, #1C3599); outline-offset: 2px; }
.vd-cart .vd-cart-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --- lignes --- */
.vd-cart .vd-cart-carte { margin: 0 0 12px; padding: 12px; border: 1px solid #CDD3CC; border-radius: 12px; background: #FFFFFF; text-align: left; }
.vd-cart .vd-cart-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.vd-cart .vd-cart-tete > span { min-width: 0; padding-top: 2px; }
.vd-cart a.vd-cart-nom { color: var(--vd-bleu, #0E3083); font-size: 17px; font-weight: 800; line-height: 1.25; text-decoration: none; }
.vd-cart a.vd-cart-retirer { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -6px -6px 0 0; border-radius: 10px; color: #5F6673; font-size: 18px; text-decoration: none; }
.vd-cart a.vd-cart-retirer:hover { background: #FBE3E0; color: #A3261E; }
.vd-cart .vd-cart-rang { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 8px; }
.vd-cart .vd-cart-lib { display: block; margin: 0 0 4px; color: #4A5263; font-size: 13px; font-weight: 800; line-height: 1.2; }
.vd-cart select.vd-cart-qty { display: block; width: 92px; height: 48px; margin: 0; padding: 0 10px; border: 1.5px solid #B8C0B8; border-radius: 10px; background: #FFFFFF; color: var(--vd-texte, #1E2433); font-family: inherit; font-size: 16px; }
.vd-cart .vd-cart-qtetxt { display: block; min-height: 48px; padding-top: 11px; font-size: 16px; font-weight: 800; }
.vd-cart .vd-cart-prix { text-align: right; }
.vd-cart .vd-cart-total { display: block; color: var(--vd-bleu, #0E3083); font-size: 20px; font-weight: 800; line-height: 1.1; }
.vd-cart .vd-cart-unit { display: block; margin-top: 2px; color: #4A5263; font-size: 13px; line-height: 1.3; }

/* --- recapitulatif --- */
.vd-cart .vd-cart-recap { margin: 0 0 12px; padding: 6px 14px; border: 1px solid #CDD3CC; border-radius: 12px; background: #FFFFFF; }
.vd-cart .vd-cart-ln { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 16px; }
.vd-cart .vd-cart-ln + .vd-cart-ln { border-top: 1px solid #E1E5E0; }
.vd-cart .vd-cart-ln small { display: block; color: #4A5263; font-size: 13px; }
.vd-cart .vd-cart-tot { color: var(--vd-bleu, #0E3083); font-weight: 800; }
.vd-cart .vd-cart-tot b { font-size: 22px; font-weight: 800; }

/* --- encarts --- */
.vd-cart .vd-cart-enc { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-size: 15px; line-height: 1.45; text-align: left; }
.vd-cart .vd-cart-enc a { color: inherit; font-weight: 800; text-decoration: underline; }
.vd-cart .vd-cart-enc small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; }
.vd-cart .vd-cart-enc a.vd-cart-logo { display: block; margin-top: 8px; text-decoration: none; }
.vd-cart .vd-cart-enc img { max-width: 100%; height: auto; }
.vd-cart .vd-cart-enc-frais { border: 1px solid var(--vd-alerte-bord, #F2D48A); background: var(--vd-alerte-fond, #F6E7B4); color: var(--vd-alerte-texte, #7A4B00); }
.vd-cart .vd-cart-enc-err { background: #FBE3E0; color: #8E1B12; }
.vd-cart .vd-cart-enc-info { background: var(--vd-service-fond, #D4EAF0); color: var(--vd-service-texte, #0E3083); }
.vd-cart .vd-cart-enc-plus { background: #E9E9F8; color: #2F3294; }

/* --- boutons --- */
.vd-cart a.vd-cart-bs, .vd-cart a.vd-cart-bp { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 10px; font-size: 16px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; }
.vd-cart a.vd-cart-bs { margin: 0 0 8px; border: 1.5px solid var(--vd-lien, #1C3599); background: #FFFFFF; color: var(--vd-lien, #1C3599); }
.vd-cart a.vd-cart-bs:hover { background: #EEF1FB; }
.vd-cart a.vd-cart-bp { margin: 0 0 12px; background: var(--vd-vert, #2E7D32); color: #FFFFFF; }
.vd-cart a.vd-cart-bp:hover { background: var(--vd-vert-fonce, #1B5E20); }
.vd-cart a.vd-cart-vider { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0 0 6px; color: #A3261E; font-size: 16px; font-weight: 800; text-decoration: underline; }

/* --- panier vide --- */
.vd-cart h2.vd-cart-titre { margin: 8px 0 14px; color: var(--vd-bleu, #0E3083); font-size: 22px; font-weight: 800; line-height: 1.25; text-align: center; }
.vd-cart .vd-cart-photo { margin: 16px 0 0; text-align: center; }
.vd-cart .vd-cart-photo img { width: 100%; max-width: 240px; height: auto; border-radius: 12px; }
.vd-cart p.vd-cart-mention { margin: 8px 0 12px; color: #4A5263; font-size: 13px; line-height: 1.4; text-align: right; }

/* --- barre Valider la commande (posee au-dessus du bandeau des categories et du menu bas par cart.php) --- */
#vd-cart-barre { position: fixed; left: 0; right: 0; bottom: 150px; z-index: 9990; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #FFFFFF; border-top: 1px solid #CDD3CC; box-shadow: 0 -4px 16px rgba(30, 36, 51, .10); font-family: inherit; }
#vd-cart-barre * { box-sizing: border-box; }
#vd-cart-barre small { display: block; color: #4A5263; font-size: 13px; line-height: 1.2; }
#vd-cart-barre b { display: block; color: var(--vd-bleu, #0E3083); font-size: 20px; font-weight: 800; line-height: 1.15; }
#vd-cart-barre a.vd-cart-bp { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 0 18px; border-radius: 10px; background: var(--vd-vert, #2E7D32); color: #FFFFFF !important; font-size: 16px; font-weight: 800; line-height: 1.2; text-decoration: none; box-shadow: var(--vd-ombre-vert, 0 4px 12px rgba(46, 125, 50, .25)); }
#vd-cart-barre a.vd-cart-bp:hover { background: var(--vd-vert-fonce, #1B5E20); }
#vd-cart-barre a.vd-cart-bp:focus-visible { outline: 3px solid var(--vd-lien, #1C3599); outline-offset: 3px; }
