/* webvicon 2026-11 - slide-in cart drawer (snippets/wv-drawer.liquid + assets/wv-cart.js).
   Desktop: panel from the right. Phone (<768px): sheet from the bottom. Tokens from wv-tokens.css. */
.wv-cart[hidden],.wv-cart [hidden]{display:none!important}
.wv-cart{position:fixed;inset:0;z-index:100000;font-family:var(--wv-font);color:var(--wv-ink)}
.wv-cart__ov{position:absolute;inset:0;background:rgba(15,32,52,.45);opacity:0;transition:opacity .28s ease}
.wv-cart__panel{position:absolute;top:0;right:0;bottom:0;width:min(420px,100%);display:flex;flex-direction:column;
  background:#fff;box-shadow:-24px 0 48px -24px rgba(15,32,52,.35);border-radius:var(--wv-r-xl) 0 0 var(--wv-r-xl);
  transform:translateX(104%);transition:transform .32s cubic-bezier(.2,.8,.2,1);outline:none;overflow:hidden}
.wv-cart.is-on .wv-cart__ov{opacity:1}
.wv-cart.is-on .wv-cart__panel{transform:none}
html.wv-cart-lock,html.wv-cart-lock body{overflow:hidden}

.wv-cart__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid var(--wv-line)}
.wv-cart__title{margin:0;font:700 20px/1.3 var(--wv-font-display);color:var(--wv-ink)}
.wv-cart__n{font:600 15px/1 var(--wv-font);color:var(--wv-ink-3)}
.wv-cart__x{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:var(--wv-r-pill);
  background:var(--wv-bg);color:var(--wv-ink);cursor:pointer;transition:background .2s}
.wv-cart__x:hover{background:var(--wv-blue-soft);color:var(--wv-blue)}
.wv-cart__x:focus-visible,.wv-cart__q button:focus-visible,.wv-cart__rm:focus-visible,.wv-cart .wv-btn:focus-visible,.wv-cart__nm:focus-visible{outline:2px solid var(--wv-blue);outline-offset:2px}

.wv-cart__added{display:flex;align-items:center;gap:8px;margin:12px 20px 0;padding:10px 14px;border-radius:var(--wv-r-md);
  background:var(--wv-blue-soft);color:var(--wv-blue-deep);font-weight:600;font-size:14px}

.wv-cart__body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:4px 20px}
.wv-cart.is-busy .wv-cart__body{opacity:.6;transition:opacity .2s}
.wv-cart__lns{list-style:none;margin:0;padding:0}
.wv-cart__ln{display:grid;grid-template-columns:72px 1fr;gap:14px;padding:16px 0;border-bottom:1px solid var(--wv-line)}
.wv-cart__ln:last-child{border-bottom:0}
.wv-cart__ln.is-busy{opacity:.5;pointer-events:none}
.wv-cart__im{display:block;width:72px;height:72px;border-radius:var(--wv-r-md);overflow:hidden;background:var(--wv-bg);border:1px solid var(--wv-line)}
.wv-cart__im img{width:100%;height:100%;object-fit:contain;display:block}
.wv-cart__in{min-width:0;display:flex;flex-direction:column;gap:4px}
.wv-cart__nm{font-weight:600;font-size:14px;line-height:1.4;color:var(--wv-ink)!important;text-decoration:none;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
a.wv-cart__nm:hover{color:var(--wv-blue)!important}
.wv-cart__vt{font-size:13px;color:var(--wv-ink-3)}
.wv-cart__row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}
.wv-cart__q{display:inline-flex;align-items:center;border:1px solid var(--wv-line);border-radius:var(--wv-r-pill);overflow:hidden;background:#fff}
.wv-cart__q button{width:34px;height:34px;border:0;background:transparent;color:var(--wv-ink);font-size:18px;line-height:1;cursor:pointer}
.wv-cart__q button:hover{background:var(--wv-blue-soft);color:var(--wv-blue)}
.wv-cart__q span{min-width:28px;text-align:center;font-weight:600;font-size:14px}
.wv-cart__pr{font-weight:700;color:var(--wv-blue-deep);font-size:15px;white-space:nowrap}
.wv-cart__rm{align-self:flex-start;border:0;background:none;padding:2px 0;font-size:13px;color:var(--wv-ink-3);text-decoration:underline;cursor:pointer}
.wv-cart__rm:hover{color:var(--wv-coral)}
.wv-cart__err{padding:24px 0;text-align:center}

.wv-cart__empty{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px 24px;text-align:center;color:var(--wv-ink-2)}
.wv-cart__empty p{margin:0}

.wv-cart__foot{display:grid;gap:10px;padding:16px 20px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--wv-line);background:#fff}
.wv-cart__sum{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:15px;color:var(--wv-ink-2)}
.wv-cart__sum b{font-size:20px;color:var(--wv-blue-deep)}
.wv-cart__foot .wv-btn{width:100%}

/* Old EGA popups stay closed while the drawer is active */
body.wv-cart-on #popup-cart,body.wv-cart-on #popupCartModal,body.wv-cart-on .top-cart-content{display:none!important}

@media(max-width:767.98px){
  .wv-cart__panel{top:auto;left:0;width:100%;max-height:88vh;max-height:88dvh;border-radius:var(--wv-r-xl) var(--wv-r-xl) 0 0;
    transform:translateY(104%);box-shadow:0 -24px 48px -24px rgba(15,32,52,.35)}
  .wv-cart__head{padding:16px 16px 12px}
  .wv-cart__head::before{content:"";position:absolute;top:6px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:var(--wv-line)}
  .wv-cart__added{margin:10px 16px 0}
  .wv-cart__body{padding:4px 16px}
  .wv-cart__foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
  .wv-cart__foot{grid-template-columns:1fr 1fr}
  .wv-cart__sum{grid-column:1/-1}
  .wv-cart__go{order:2}
}
@media(prefers-reduced-motion:reduce){.wv-cart__panel,.wv-cart__ov{transition:none}}
