/* Structure for the shared cart drawer. Brands restyle it by setting these variables and overriding .sc-* rules. */
:root {
  --sc-bg: #fff; --sc-ink: #111; --sc-muted: #666; --sc-line: #e5e5e5;
  --sc-accent: #111; --sc-accent-ink: #fff; --sc-radius: 0px;
  --sc-font: inherit; --sc-title-font: inherit; --sc-width: 440px;
}
html.sc-locked, html.sc-locked body { overflow: hidden; }
.sc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.42); opacity: 0; transition: opacity .25s ease; z-index: 90; }
.sc-overlay.is-open { opacity: 1; }
.sc-overlay[hidden], .sc-drawer[hidden] { display: none; }
.sc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--sc-width), 100vw); z-index: 91;
  display: flex; flex-direction: column; background: var(--sc-bg); color: var(--sc-ink); font-family: var(--sc-font);
  transform: translateX(100%); transition: transform .25s ease; outline: none;
}
.sc-drawer.is-open { transform: none; }
@media (prefers-reduced-motion: reduce) { .sc-overlay, .sc-drawer { transition: none; } }
.sc-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--sc-line); }
.sc-title { margin: 0; font: inherit; font-family: var(--sc-title-font); font-size: 20px; }
.sc-close { background: none; border: 0; color: inherit; font-size: 28px; line-height: 1; width: 44px; height: 44px; margin: -10px -12px -10px 0; cursor: pointer; }
.sc-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; -webkit-overflow-scrolling: touch; }
.sc-empty { color: var(--sc-muted); padding: 32px 0; }
.sc-lines { list-style: none; margin: 0; padding: 0; }
.sc-line { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--sc-line); }
.sc-thumb { width: 72px; height: 90px; object-fit: cover; border-radius: var(--sc-radius); background: var(--sc-line); flex: none; }
.sc-line-main { flex: 1; min-width: 0; }
.sc-line-name { font-weight: 600; }
.sc-line-opts { color: var(--sc-muted); font-size: 14px; margin-top: 2px; }
.sc-line-price { font-variant-numeric: tabular-nums; }
.sc-qty { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.sc-qty button { min-width: 32px; height: 32px; background: none; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); color: inherit; cursor: pointer; font: inherit; }
.sc-qty .sc-remove { border: 0; min-width: auto; margin-left: 10px; color: var(--sc-muted); text-decoration: underline; padding: 0; }
.sc-addons { margin-top: 22px; }
.sc-addons-title { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.sc-addon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--sc-line); }
.sc-addon-add { flex: none; padding: 8px 14px; min-height: 36px; background: none; border: 1px solid var(--sc-ink); border-radius: var(--sc-radius); color: inherit; cursor: pointer; font: inherit; font-size: 14px; }
.sc-foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sc-line); }
.sc-totals { margin: 0 0 14px; }
.sc-totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--sc-muted); font-size: 15px; }
.sc-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.sc-totals .sc-due { color: var(--sc-ink); font-weight: 600; font-size: 18px; margin-top: 4px; }
.sc-checkout { width: 100%; min-height: 52px; padding: 14px 18px; background: var(--sc-accent); color: var(--sc-accent-ink); border: 0; border-radius: var(--sc-radius); font: inherit; font-weight: 600; cursor: pointer; }
.sc-checkout:disabled { opacity: .55; cursor: default; }
.sc-note { color: var(--sc-muted); font-size: 13px; margin: 10px 0 0; }
.sc-error { color: #b3261e; font-size: 14px; margin: 8px 0 0; }
.sc-error[hidden] { display: none; }
.sc-hold-title { font-weight: 600; font-size: 18px; font-family: var(--sc-title-font); }
.sc-hold-body { color: var(--sc-muted); font-size: 15px; margin: 6px 0 12px; }
.sc-hold-form input { width: 100%; min-height: 48px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); background: transparent; color: inherit; font: inherit; font-size: 16px; }
.sc-hold-thanks { margin: 0; font-weight: 600; }
.sc-visually-hidden, .sc-trap { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
