/* V5E : formulaires lisibles, retrait comptoir, récapitulatif clair, favoris, confirmation d'ajout */

/* 1. Formulaires : champs blancs, texte bleu foncé, indications gris foncé, bordure bleu clair, sélection orange */
#auth input:not([type=checkbox]):not([type=radio]),#auth select,#auth textarea,
.sheet input:not([type=checkbox]):not([type=radio]):not([type=range]),.sheet select,.sheet textarea,
#leadForm input:not([type=checkbox]):not([type=radio]),#leadForm select,#leadForm textarea,
#tzForm input:not([type=checkbox]):not([type=radio]),#tzForm select,#tzForm textarea,
#fam .fhead input,#note,.rsf input,.tkr-cp input,#fq{
  background:#fff!important;color:#0a1f44!important;-webkit-text-fill-color:#0a1f44;border:1.5px solid #9cc7f0!important;caret-color:#0a1f44}
#auth input::placeholder,#auth textarea::placeholder,.sheet input::placeholder,.sheet textarea::placeholder,
#leadForm input::placeholder,#leadForm textarea::placeholder,#tzForm input::placeholder,#note::placeholder,.rsf input::placeholder,#fq::placeholder{color:#5b6677!important;opacity:1;-webkit-text-fill-color:#5b6677}
#auth select option,.sheet select option,#leadForm select option,#tzForm select option{background:#fff;color:#0a1f44}
#auth input:not([type=checkbox]):not([type=radio]):focus,#auth select:focus,#auth textarea:focus,
.sheet input:not([type=checkbox]):not([type=radio]):focus,.sheet select:focus,.sheet textarea:focus,
#leadForm input:focus,#leadForm select:focus,#leadForm textarea:focus,#tzForm input:focus,#tzForm select:focus,#note:focus,.rsf input:focus,.tkr-cp input:focus{
  border-color:#ff6a00!important;outline:3px solid rgba(255,106,0,.35)!important;outline-offset:0;box-shadow:none}
#auth input:-webkit-autofill,#auth input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 40px #fff inset!important;-webkit-text-fill-color:#0a1f44!important}
#auth label,#auth .hint,.sheet label{color:#2c3a52}
/* un seul bouton « Afficher » : celui des mots de passe (👁), on retire l'ancien doublon */
#rVoir{display:none!important}
.mdpw .mdp-oeil{color:#0a1f44!important;background:#eef5fd!important;border:1px solid #9cc7f0!important}
#auth .mdp-oeil{min-height:36px}

/* 2. Retrait au comptoir : aucun message de livraison */
body.v5e-ret #livbar,body.v5e-ret #cartlv,body.v5e-ret #minfo,body.v5e-ret .v5e-livonly{display:none!important}
#modeRet+b.v5e-free,.mode .v5e-free{color:#0b7a3b;font-weight:800;margin-left:4px}
.v5e-rettag{display:none;margin:8px 0;padding:10px 12px;border-radius:12px;background:#e6f6ec;border:1.5px solid #2fa35e;color:#07502a;font-weight:800;font-size:15px}
body.v5e-ret .v5e-rettag{display:block}

/* 4. Récapitulatif clair */
#minfo,#payinfo{display:none!important}
.v5e-sum{margin:12px 0;padding:14px 16px;border:1px solid #cfd8e6;border-radius:14px;background:#fff;color:#1a2433;font-size:15px}
.v5e-sum h3{margin:0 0 8px;font-size:16px;font-weight:800;color:#0a1f44}
.v5e-r{display:flex;justify-content:space-between;gap:12px;padding:3px 0}
.v5e-r b{font-weight:700;text-align:right;white-space:nowrap}
.v5e-r.tot{border-top:1px solid #e3e8f0;margin-top:6px;padding-top:8px}
.v5e-r.tot b{font-size:20px;font-weight:800}
.v5e-r .free{color:#0b7a3b}
.v5e-pay{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.v5e-pay>div{padding:10px 12px;border-radius:12px;background:#eef5fd;border:1px solid #cfe0f5}
.v5e-pay small{display:block;color:#44546a;font-size:12.5px;margin-top:2px}
.v5e-pay b{display:block;font-size:18px;color:#0a1f44}
.v5e-pay .now{background:#fff3e6;border-color:#ffc58f}
@media (max-width:480px){.v5e-pay{grid-template-columns:1fr}}
#fourinfo.v5e-notice{background:#eef5fd;border:1px solid #cfe0f5;color:#1a2433;border-radius:12px;padding:10px 12px;line-height:1.45}
.tkr-n{font-size:13px}

/* 5-8. Favoris */
.v5e-fav-btn{position:relative}
.v5e-fav-btn .hn2{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#ff6a00;color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center}
.v5e-fav-btn .hn2[hidden]{display:none}
.v5e-fav-btn svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8}
.v5e-fav-btn.on svg{fill:#ff4d6d;stroke:#ff4d6d}
#v5eFav .panel{max-width:760px}
#v5eFav h3{margin:14px 0 8px;font-size:16px;color:#0a1f44}
.v5e-fl{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.v5e-fi{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #cfd8e6;border-radius:12px;background:#fff;color:#1a2433}
.v5e-fi .t{min-width:0;flex:1}.v5e-fi .t b{display:block;font-size:14.5px;line-height:1.3}
.v5e-fi .t small{color:#5b6677}
.v5e-fi .a{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.v5e-fi button,.v5e-gam{font:inherit;font-weight:700;min-height:42px;padding:8px 12px;border-radius:10px;border:1.5px solid #9cc7f0;background:#fff;color:#0a1f44;cursor:pointer}
.v5e-fi button.go{background:#0b5fff;border-color:#0b5fff;color:#fff}
.v5e-fi button.rm{color:#a01535;border-color:#f0b3c0}
.v5e-empty{padding:14px;color:#44546a}
.v5e-gam{margin:8px 0 0;display:inline-flex;align-items:center;gap:6px;background:#fff;color:#0a1f44}
.v5e-gam.on{background:#ffe9ee;border-color:#ff4d6d;color:#8c1030}

/* 6. Confirmation d'ajout */
#v5eToast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translate(-50%,12px);opacity:0;pointer-events:none;z-index:9999;background:#0a6b35;color:#fff;font-weight:800;padding:12px 18px;border-radius:999px;box-shadow:0 6px 22px rgba(0,0,0,.28);transition:opacity .2s,transform .2s;max-width:92vw;text-align:center}
#v5eToast.on{opacity:1;transform:translate(-50%,0)}
#v5eToast.bad{background:#a01535}
.hcart.v5e-pop{animation:v5ePop .6s ease}
@keyframes v5ePop{0%{transform:scale(1)}35%{transform:scale(1.22) rotate(-6deg)}70%{transform:scale(.96)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.hcart.v5e-pop{animation:none}#v5eToast{transition:none}}
@media (max-width:480px){.mode label{flex-wrap:wrap}.mode .v5e-free{flex-basis:100%;margin:0 0 0 30px;font-size:14px}}
.v5e-rettag[hidden]{display:none!important}
select[data-v]{background:#fff!important;color:#0a1f44!important;border:1.5px solid #9cc7f0!important}
select[data-v]:focus{border-color:#ff6a00!important;outline:3px solid rgba(255,106,0,.35)}
