/* Copy of the store's cart drawer rules (site/assets/styles.css), so the portal bag and /demo/ match the store exactly. */
.scrim{position:fixed;inset:0;background:rgba(12,12,16,.45);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);z-index:95;opacity:0;visibility:hidden;transition:opacity .4s,visibility .4s}
.scrim.on{opacity:1;visibility:visible}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(460px,100%);background:var(--paper);z-index:100;display:flex;flex-direction:column;transform:translateX(104%);transition:transform .55s var(--ease);box-shadow:-30px 0 60px -30px rgba(0,0,0,.35)}
.drawer.on{transform:none}
.drawer header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line2)}
.drawer header h2{font-size:26px}
.drawer .x{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1.5px var(--line)}
.drawer .items{flex:1;overflow:auto;padding:8px 24px;overscroll-behavior:contain}
.ci{display:grid;grid-template-columns:76px 1fr auto;gap:14px;padding:16px 0;border-bottom:1px solid var(--line2);align-items:center}
.ci .th{width:76px;height:76px;border-radius:14px;overflow:hidden;background:var(--p)}
.ci h3{font-size:17px;line-height:1.1}
.ci .meta{font-size:12px;color:var(--muted);margin-top:3px}
.ci .pr{font-weight:800;font-size:15px;text-align:right}
.qty{display:inline-flex;align-items:center;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--line);height:36px;margin-top:8px}
.qty button{width:34px;height:36px;display:grid;place-items:center}
.qty button .ic{width:14px;height:14px}
.qty output,.qty input{width:28px;text-align:center;font-weight:800;font-size:14px;border:0;background:none;-moz-appearance:textfield}
.ci .rm{font-size:12px;color:var(--muted);text-decoration:underline;margin-top:6px;display:block;text-align:right}
.drawer .empty{padding:40px 0;text-align:center;color:var(--muted)}
.drawer .empty .btn{margin-top:18px}
.drawer .upsell{padding:14px 24px;border-top:1px solid var(--line2);background:var(--bone)}
.drawer .upsell h4{font:800 12px/1 var(--f-b);letter-spacing:.16em;text-transform:uppercase;margin-bottom:10px}
.drawer .ups{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.drawer .ups::-webkit-scrollbar{display:none}
.up{flex:none;display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:8px 10px 8px 8px;box-shadow:inset 0 0 0 1px var(--line2)}
.up .th{width:44px;height:44px;border-radius:10px;overflow:hidden}
.up b{font:800 13px/1.1 var(--f-d);display:block}
.up span{font-size:12px;color:var(--muted)}
.up button{width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--bone);display:grid;place-items:center}
.up button .ic{width:14px;height:14px}
.drawer footer{padding:18px 24px 22px;border-top:1px solid var(--line2);background:var(--paper)}
.drawer .sub{display:flex;justify-content:space-between;font-weight:800;font-size:18px;margin-bottom:4px}
.drawer .afp{font-size:12px;color:var(--muted);margin-bottom:14px}
.drawer .secure{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--muted);margin-top:10px}
.drawer .secure .ic{width:14px;height:14px}

.drawer a{text-decoration:none}

/* ===== cart drawer: proper flex column (items scroll, checkout pinned) ===== */
.drawer{height:100%;height:100dvh;max-height:100dvh}
.drawer header{flex:none;padding:14px 20px}
.drawer .items{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 20px}
.drawer .upsell{flex:none;padding:0 20px;border-top:1px solid var(--line2)}
.drawer .up-t{display:flex;align-items:center;justify-content:space-between;width:100%;height:44px;font:800 11.5px/1 var(--f-b);letter-spacing:.16em;text-transform:uppercase}
.drawer .up-t .ic{width:16px;height:16px;transition:transform .3s var(--ease)}
.drawer .upsell.open .up-t .ic{transform:rotate(45deg)}
.drawer .upsell .ups{display:none;padding-bottom:12px}
.drawer .upsell.open .ups{display:flex}
.drawer footer{flex:none;padding:12px 20px calc(14px + env(safe-area-inset-bottom));box-shadow:0 -10px 24px -18px rgba(12,12,16,.35)}
.drawer .sub{font-size:16px;margin-bottom:2px}
.drawer .afp{font-size:11.5px;margin-bottom:10px;line-height:1.4}
.drawer .secure{margin-top:8px;font-size:11px}
.drawer footer .btn{min-height:50px}
.drawer .mr-tot{gap:3px;margin-top:0}
.drawer .mr-tot div{font-size:13px}
.drawer .mr-consent{margin:0 0 10px}
.drawer .mr-consent .check{font-size:12px}
.drawer .ci{grid-template-columns:64px 1fr auto;gap:12px;padding:12px 0}
.drawer .ci .th{width:64px;height:64px}
@media (min-width:900px){.drawer .upsell .ups{display:flex}.drawer .upsell .up-t{pointer-events:none}.drawer .upsell .up-t .ic{display:none}}
