.demo-locked { overflow: hidden; }
.demo-overlay { position: fixed; inset: 0; z-index: 1000; background: rgb(0 0 0 / .62); }
.demo-overlay[hidden], .demo-drawer[hidden] { display: none; }
.demo-drawer { position: fixed; z-index: 1001; top: 0; right: 0; bottom: 0; width: min(470px, 100vw); overflow-y: auto; display: flex; flex-direction: column; background: var(--demo-bg, #fff); color: var(--demo-text, #111); box-shadow: -20px 0 60px rgb(0 0 0 / .22); font-family: var(--demo-font, Arial, sans-serif); }
.demo-drawer * { box-sizing: border-box; }
.demo-drawer button { font: inherit; cursor: pointer; }
.demo-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 24px; border-bottom: 1px solid var(--demo-line, #ddd); }
.demo-drawer-head h2, .demo-checkout-preview h2 { margin: 0; font-size: 1.65rem; line-height: 1; }
.demo-close, .demo-back { background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.demo-cart-list { padding: 0 24px; }
.demo-cart-row { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--demo-line, #ddd); }
.demo-cart-image { width: 68px; height: 80px; object-fit: contain; }
.demo-cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.demo-cart-info strong { font-size: .94rem; }
.demo-cart-info small { opacity: .7; }
.demo-line-price { align-self: start; white-space: nowrap; font-size: .9rem; }
.demo-quantity { display: flex; align-items: center; gap: 12px; margin-top: 9px; width: max-content; border: 1px solid var(--demo-line, #ddd); }
.demo-quantity button { width: 28px; height: 28px; background: none; border: 0; color: inherit; }
.demo-quantity span { min-width: 13px; text-align: center; }
.demo-drawer-foot { display: grid; gap: 18px; padding: 24px; margin-top: auto; }
.demo-subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; }
.demo-delivery p { margin: 0 0 9px; font-size: .86rem; }
.demo-track { height: 5px; background: var(--demo-line, #ddd); }
.demo-track span { display: block; height: 100%; background: var(--demo-accent, #111); }
.demo-suggestion { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--demo-line, #ddd); border-bottom: 1px solid var(--demo-line, #ddd); font-size: .83rem; line-height: 1.35; }
.demo-suggestion button { min-width: 95px; padding: 8px; border: 1px solid var(--demo-accent, #111); background: none; color: var(--demo-text, #111); font-size: .78rem; }
.demo-primary { width: 100%; min-height: 48px; padding: 12px 18px; border: 0; background: var(--demo-accent, #111); color: var(--demo-accent-text, #fff); font-weight: 750; }
.demo-empty { margin: auto 24px; padding: 40px 0; line-height: 1.5; }
.demo-preview-note { margin: -4px 0 0; opacity: .65; font-size: .74rem; text-align: center; }
.demo-checkout-preview { padding: 28px 24px; display: grid; gap: 22px; line-height: 1.5; }
.demo-checkout-preview p { margin: 0; }
.demo-checkout-total { font-weight: 750; }
.demo-toast { position: fixed; z-index: 1100; left: 50%; bottom: 18px; transform: translate(-50%, 120%); padding: 12px 19px; background: var(--demo-accent, #111); color: var(--demo-accent-text, #fff); font: 700 .9rem var(--demo-font, Arial, sans-serif); opacity: 0; transition: transform .25s ease, opacity .25s ease; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
.demo-toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .demo-toast { transition: none; } }
