/* Mavi : tiroir panier enrichi (voir mavi-cart-plus.js). Couleurs du thème : --ink, --paper, --muted, --border, --mv-grad. */
.mcp-on { --mcp-ink: var(--ink, #111); --mcp-muted: var(--muted, #f4f5f7); --mcp-line: var(--border, #e6e8ec); --mcp-good: #1f9d55; }
.mcp-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; margin-left: 10px; border-radius: 999px; background: var(--mcp-ink); color: var(--paper, #fff); font: 700 12px/1 var(--font-body, sans-serif); vertical-align: middle; letter-spacing: 0; }
.mcp-count[hidden] { display: none; }

/* Livraison offerte : camion + victoire. */
.mcp-on .mv-freeship { position: relative; overflow: hidden; border-radius: 16px; transition: background .3s; }
.mcp-on .mv-freeship__bar { position: relative; overflow: visible; }
.mcp-on .mv-freeship__bar > i { transition: width .6s cubic-bezier(.2,.8,.2,1); }
.mcp-truck { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; border-radius: 50%; background: var(--paper, #fff); box-shadow: 0 0 0 1.5px var(--mcp-ink); font-size: 13px; line-height: 1; transition: left .6s cubic-bezier(.2,.8,.2,1); }
.mcp-on .mv-freeship.is-done { background: #e8f7ee; }
.mcp-on .mv-freeship.is-done .mv-freeship__bar > i { background: var(--mcp-good) !important; }
.mcp-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mcp-confetti i { position: absolute; top: -10px; width: 7px; height: 11px; border-radius: 2px; animation: mcpFall 1.3s ease-in forwards; }
@keyframes mcpFall { to { transform: translateY(110px) rotate(540deg); opacity: 0; } }

/* Articles qui apparaissent un par un. */
.mcp-on .cart-item, .mcp-on .mavi-mc__item { animation: mcpIn .45s both; animation-delay: calc(var(--mcp-i, 0) * 60ms); }
@keyframes mcpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mcp-on .mavi-mc__item.is-busy { opacity: .5; pointer-events: none; }

/* WordPress : − / +. */
.mcp-qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1.5px solid var(--mcp-ink); border-radius: 999px; overflow: hidden; }
.mcp-qty button { all: unset; box-sizing: border-box; width: 30px; height: 28px; display: grid; place-items: center; cursor: pointer; font-size: 16px; color: var(--mcp-ink); }
.mcp-qty span { min-width: 22px; text-align: center; font-weight: 800; font-size: 13.5px; }
.mcp-qty-old { display: block; }

/* Cartes sous les articles. */
.mcp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 0 6px; min-width: 0; }
.mcp > * { min-width: 0; }
.mcp-box { border: 1.5px solid var(--mcp-ink); border-radius: 18px; padding: 12px 12px 10px; background: var(--paper, #fff); box-shadow: 5px 5px 0 rgba(var(--ink-rgb, 17 17 17) / .08); }
.mcp-box[hidden] { display: none; }
.mcp-h { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 10px; font: 600 10.5px var(--font-mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--neutral, #5b6675); }
.mcp-ups__row { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mcp-ups__row::-webkit-scrollbar { display: none; }
.mcp-up { scroll-snap-align: start; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 8px; border: 1px solid var(--mcp-line); border-radius: 14px; background: var(--paper, #fff); transition: transform .2s; }
.mcp-up:hover { transform: translateY(-2px); }
.mcp-up img { grid-row: span 2; width: 58px; height: 58px; object-fit: cover; border-radius: 10px; background: var(--mcp-muted); display: block; }
.mcp-up__t { font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--mcp-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcp-up__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mcp-up__p { font-weight: 800; font-size: 13.5px; color: var(--mcp-ink); }
.mcp-up__add { all: unset; box-sizing: border-box; cursor: pointer; border-radius: 999px; background: var(--mcp-ink); color: var(--paper, #fff); font: 800 12px/1 var(--font-body, sans-serif); padding: 8px 11px; white-space: nowrap; text-decoration: none; }
.mcp-up__add.is-busy { opacity: .6; }
.mcp-up__add.is-done { background: var(--mcp-good); }
.mcp-promo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--mcp-ink); border-radius: 16px; background: var(--mcp-muted); }
.mcp-promo__ic { font-size: 22px; }
.mcp-promo__t { flex: 1; font-size: 13px; line-height: 1.35; color: var(--neutral, #5b6675); }
.mcp-promo__t b { display: block; font-size: 14px; color: var(--mcp-ink); }
.mcp-promo__code { all: unset; box-sizing: border-box; cursor: pointer; font: 600 13px var(--font-mono, ui-monospace, monospace); letter-spacing: .06em; border: 1.5px solid var(--mcp-ink); border-radius: 10px; padding: 7px 10px; background: var(--paper, #fff); color: var(--mcp-ink); }
.mcp-eta { display: flex; gap: 10px; align-items: center; margin: 0; padding: 0 4px; font-size: 13.5px; line-height: 1.4; color: var(--mcp-ink); }
.mcp-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.mcp-trust div { border-radius: 14px; background: var(--mcp-muted); padding: 10px 8px; text-align: center; font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--mcp-ink); }
.mcp-trust i { display: block; font-style: normal; font-size: 18px; margin-bottom: 4px; }

/* Bouton Commander : reflet qui passe. */
.mcp-shine { position: relative; overflow: hidden; }
.mcp-shine::after { content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: mcpShine 2.8s infinite; pointer-events: none; }
@keyframes mcpShine { 0%, 60% { left: -40%; } 100% { left: 130%; } }

.mcp-toast { position: absolute; left: 50%; bottom: 170px; z-index: 5; transform: translateX(-50%) translateY(20px); background: var(--mcp-ink); color: var(--paper, #fff); font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 999px; opacity: 0; transition: .3s; pointer-events: none; white-space: nowrap; }
.mcp-toast.is-on { opacity: 1; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .mcp-on *, .mcp-shine::after { animation: none !important; transition: none !important; } }

/* WordPress : tout le contenu du tiroir défile, le pied (total + boutons) reste visible en bas. */
.mcp-on .mavi-mc__body { overflow-y: auto; overscroll-behavior: contain; }
.mcp-on .mavi-mc__items { flex: none; overflow: visible; }
.mcp-on .mavi-mc__foot { position: sticky; bottom: -18px; margin-top: auto; padding-bottom: 18px; background: var(--paper, #fff); z-index: 2; }
