/* ============================================================
   VIOLET SOURDOUGH — warm, floury, unfussy
   ============================================================ */

:root {
  --cream: #F7F1E5;
  --flour: #FFFCF5;
  --ink: #38281A;
  --ink-soft: #75604B;
  --crust: #7A4A2B;
  --terracotta: #BC5427;
  --terracotta-dark: #98411B;
  --butter: #F3D9A4;
  --sage: #6E7553;
  --line: rgba(122, 74, 43, 0.18);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(56, 40, 26, 0.06), 0 8px 24px rgba(56, 40, 26, 0.07);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, sans-serif;

  /* Theme colors — a small fixed palette of named surfaces Violet can
     recolor from the Starter chat (set_theme_color/get_theme_colors in
     Portal.gs). Each default below matches the hand-authored color it
     stands in for exactly, so a Sheet with no themeColor_* Settings rows
     (every real Sheet today) renders pixel-identical to before this
     existed — applyTheme() in js/app.js only ever overrides these, never
     the base --terracotta/--ink/etc. vars other UI still uses directly. */
  --theme-primary: var(--terracotta); /* primary buttons (Order now, checkout) */
  --theme-heading: var(--ink);        /* section headings */
  --theme-accent: var(--terracotta);  /* the italic accent in the hero line + wordmark */
  --theme-banner: var(--butter);      /* the top announcement banner */
  --theme-bg: var(--cream);           /* page background */
  --theme-text: var(--ink);           /* paragraph / body copy */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

body {
  font-family: var(--font-body);
  background: var(--theme-bg);
  color: var(--theme-text);
  line-height: 1.6;
  font-size: 17px;
}

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; color: var(--theme-heading); }
h1 em, .wordmark em { font-style: italic; color: var(--theme-accent); }

h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.5em; }

a { color: var(--terracotta-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.8em 1.6em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn-wide { white-space: normal; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--theme-primary); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost {
  background: transparent;
  color: var(--crust);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--crust); }
.btn-small { padding: 0.55em 1.2em; font-size: 0.92rem; }
.btn-wide { width: 100%; text-align: center; }

/* ---------- site banner (holiday/announcement, Copy key site_banner) ---------- */
.site-banner {
  background: var(--theme-banner);
  color: var(--ink);
  text-align: center;
  padding: 0.6rem;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}
.site-nav a:hover { color: var(--terracotta-dark); }
@media (max-width: 640px) {
  .site-header { gap: 0.8rem; }
  .site-header .wordmark { margin-right: auto; }
  .site-nav { display: none; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.hero-sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-note { margin-top: 1.2rem; font-size: 0.9rem; color: var(--ink-soft); }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 800px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- how it works ---------- */
.how {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}
.how-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}
.how-step {
  background: var(--flour);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--butter);
  color: var(--crust);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.how-step h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.how-step p { color: var(--ink-soft); font-size: 0.97rem; }

@media (min-width: 700px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- menu ---------- */
.menu {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.menu-head { text-align: center; max-width: 44em; margin: 0 auto 2rem; }
.menu-sub { color: var(--ink-soft); }
.menu-grid { display: grid; gap: 1.5rem; }

.flavor-card {
  background: var(--flour);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.flavor-photo { position: relative; }
.flavor-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.flavor-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--butter);
  color: var(--crust);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3em 0.9em;
  border-radius: 999px;
}
/* Sold out — DIFFERENT from a flavor that's hidden entirely (that one never
   reaches the site at all). A sold-out flavor stays fully visible, just
   grayed out with a clear ribbon, so customers know it exists and can come
   back for it — but it can't be added to the cart (see renderMenu/
   cartSummary in app.js, which skip it even defensively). */
.flavor-card.sold-out .flavor-photo img { filter: grayscale(0.8); opacity: 0.75; }
.flavor-card.sold-out .flavor-body h3,
.flavor-card.sold-out .flavor-body .desc,
.flavor-card.sold-out .flavor-body .flavor-lead { opacity: 0.6; }
.sold-out-ribbon {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--ink);
  color: var(--flour);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 999px;
}
.sold-out-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
}
.flavor-body { padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.flavor-body h3 { font-size: 1.35rem; }
.flavor-body .desc { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.flavor-lead { font-size: 0.82rem; color: var(--ink-soft); }

.size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.8rem;
}
.size-label { font-weight: 700; font-size: 0.98rem; }
.size-price { color: var(--ink-soft); font-size: 0.9rem; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.stepper button {
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  background: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  cursor: pointer;
  line-height: 1;
}
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper .qty {
  min-width: 1.6rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .stepper button { width: 2.75rem; height: 2.75rem; }
}

@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- checkout ---------- */
.checkout {
  background: var(--flour);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.checkout-inner { max-width: 720px; margin: 0 auto; }
.checkout h2 { text-align: center; margin-bottom: 1.5rem; }

.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.panel h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.panel-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.8rem; }

.cart-lines { display: flex; flex-direction: column; gap: 0.5rem; }
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.98rem;
}
.cart-line .line-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-empty { color: var(--ink-soft); font-size: 0.95rem; }
.cart-hint {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--terracotta-dark);
  font-weight: 500;
}
.cart-hint:empty { display: none; }
.cart-hint.savings { color: var(--sage); }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  margin-top: 1rem;
  padding-top: 0.8rem;
  font-size: 1.15rem;
}
/* Undiscounted-vs-real total: the strike stays visually secondary (smaller,
   muted, regular weight) so the real total — bold, full size — is always
   the thing your eye lands on first. */
.cart-total-value { display: flex; align-items: baseline; gap: 0.5em; }
.cart-strike {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration-color: var(--ink-soft);
}
.cart-strike:empty { display: none; }
.cart-saved-note {
  text-align: right;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sage);
}
.cart-saved-note:empty { display: none; }

.pickup-grid { display: grid; gap: 0.7rem; }
.pickup-option {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.12s ease;
}
.pickup-option:hover { border-color: var(--crust); }
.pickup-option.selected { border-color: var(--terracotta); background: #FFF8EC; }
.pickup-option input { margin-top: 0.3rem; accent-color: var(--terracotta); }
.pickup-option .p-label { font-weight: 700; }
.pickup-option .p-detail { font-size: 0.9rem; color: var(--ink-soft); }
.pickup-option .p-date { font-size: 0.95rem; color: var(--terracotta-dark); font-weight: 500; }
.pickup-option.disabled { opacity: 0.45; cursor: default; }
.pickup-option.disabled:hover { border-color: var(--line); }

.field-grid { display: grid; gap: 0.9rem; }
.field-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.field-grid .optional { font-weight: 400; color: var(--ink-soft); }
.field-grid input, .field-grid textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field-grid input:focus, .field-grid textarea:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
  border-color: transparent;
}
@media (min-width: 560px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
.optin {
  flex-direction: row !important;
  align-items: center;
  gap: 0.6rem !important;
  font-weight: 500 !important;
  cursor: pointer;
}
.optin input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--terracotta);
  flex-shrink: 0;
}

.pay-panel { background: var(--cream); }
.pay-explain { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.4rem; }
.form-error { color: #A32D2D; font-weight: 700; font-size: 0.95rem; margin-top: 0.8rem; }
.form-error:empty { display: none; }
.form-note { color: var(--sage); font-weight: 700; font-size: 0.95rem; margin-top: 0.8rem; }
.form-note:empty { display: none; }

/* Honest disabled checkout state — shown until Stripe (paymentsUrl) is
   configured, in place of the old Venmo honor-system fallback. Same
   "quiet, not scary" visual language as .sold-out-note: dashed border,
   muted ink, no alarming red. */
.ordering-closed {
  text-align: center;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
}
.ordering-closed[hidden] { display: none; }
.ordering-closed-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--theme-heading);
  margin-bottom: 0.3rem;
}
.ordering-closed .pay-explain { margin-bottom: 1rem; }

.order-success {
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}
.order-success h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.order-success p { max-width: 34em; margin: 0 auto 1rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.faq h2 { text-align: center; margin-bottom: 1.5rem; }
.faq-grid { display: flex; flex-direction: column; gap: 0.8rem; }
.faq details {
  background: var(--flour);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--terracotta);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- about ---------- */
.about {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}
.about-photo img {
  width: min(100%, 210px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin: 0 auto;
}
.about-text p { color: var(--ink-soft); margin-bottom: 0.8rem; max-width: 36em; }
.about-sig { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--crust); }
@media (min-width: 700px) {
  .about { grid-template-columns: 240px 1fr; }
}

/* ---------- visually-hidden (labels for the signup forms below) ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- honeypot field (both signup forms) ----------
   Hidden via off-screen positioning, never display:none/hidden — some spam
   bots specifically skip fields hidden that way. Real visitors never see or
   reach it (aria-hidden + tabindex="-1" keeps it out of tab order and AT). */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- email signup (inline, near FAQ/About) ---------- */
.signup {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.signup-inner {
  background: var(--flour);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.signup h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin-bottom: 0.4rem; }
.signup-sub { color: var(--ink-soft); max-width: 32em; margin: 0 auto 1.3rem; }
.signup-form { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; max-width: 480px; margin: 0 auto; }
.signup-form input[type="text"], .signup-form input[type="email"] {
  flex: 1 1 160px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.signup-form input:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
  border-color: transparent;
}
.signup-form .btn { flex: 0 0 auto; }
.signup-note { margin-top: 0.9rem; font-size: 0.9rem; }
.signup-note:empty { display: none; }
.signup-note.success { color: var(--sage); font-weight: 700; }
.signup-note.error { color: #A32D2D; font-weight: 700; }
@media (max-width: 480px) {
  .signup-form { flex-direction: column; }
  /* flex-direction:column makes the main axis vertical, so the row-mode
     flex-basis:160px above (meant to set a starting WIDTH) would otherwise
     set a starting HEIGHT instead and balloon the inputs — reset it here.
     Matches the [type="..."] attribute selectors above so this actually
     wins on specificity, not just source order (a plain ".signup-form
     input" rule here would lose to the more specific rule above). */
  .signup-form input[type="text"], .signup-form input[type="email"], .signup-form .btn {
    width: 100%;
    flex-basis: auto;
  }
}

/* ---------- email signup (deferred exit-intent/scroll-depth toast) ----------
   A quiet corner card, not a full-screen takeover — bottom-right on desktop
   (where it's triggered by exit-intent), full-width bottom sheet on mobile
   (where it's triggered by scroll depth/time-on-page). Suppressed entirely
   while the checkout panel is in view or the cart has items (see
   canShowSignupToast() in js/app.js) so it never fights with an active
   order or the sticky cart bar, which shares this bottom edge. */
.signup-toast {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 70;
  width: min(360px, calc(100vw - 2rem));
  background: var(--flour);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1.3rem;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease;
}
.signup-toast[hidden] { display: none; }
.signup-toast.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .signup-toast { transition: none; transform: none; }
}
.signup-toast .toast-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: none;
  border: none;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.3em;
}
.signup-toast .toast-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding-right: 1.4rem;
  margin-bottom: 0.35rem;
  color: var(--theme-heading);
}
.signup-toast .toast-sub { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.toast-form { display: flex; gap: 0.5rem; }
.toast-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6em 0.8em;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.toast-form input:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 1px;
  border-color: transparent;
}
.toast-note { font-size: 0.82rem; margin-top: 0.6rem; }
.toast-note:empty { display: none; }
.toast-note.success { color: var(--sage); font-weight: 700; }
.toast-note.error { color: #A32D2D; font-weight: 700; }
@media (max-width: 640px) {
  .signup-toast { left: 1rem; right: 1rem; width: auto; bottom: calc(1rem + env(safe-area-inset-bottom)); }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--butter);
  text-align: center;
  padding: 2.5rem 1rem 5.5rem;
  font-size: 0.95rem;
}
.wordmark-footer { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--cream); }
.wordmark-footer em { color: var(--butter); }
.site-footer a { color: var(--butter); }
.footer-fine { margin-top: 1rem; font-size: 0.8rem; opacity: 0.7; }

/* ---------- sticky cart bar ---------- */
.cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem) calc(0.75rem + env(safe-area-inset-bottom));
  font-weight: 700;
  box-shadow: 0 -4px 16px rgba(56, 40, 26, 0.2);
}
.cart-bar[hidden] { display: none; }

/* ---------- in-panel payment expansion ---------- */
/* Grid-rows trick: animating 0fr -> 1fr on the track lets the panel grow
   and shrink smoothly without ever measuring scrollHeight in JS. The
   wrap div is the sole grid item; it clips while the row is short. */
.pay-inline {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  margin-top: 1.1rem;
}
.pay-inline.open { grid-template-rows: 1fr; }
.pay-inline[hidden] { display: none; } /* covers the state before the very first open */
@media (prefers-reduced-motion: reduce) {
  .pay-inline { transition: none; }
}
.pay-inline-wrap { min-height: 0; overflow: hidden; }
.pay-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}
.pay-inline-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}
.pay-inline-cancel {
  border: none;
  background: none;
  padding: 0.2em 0.3em;
  color: var(--terracotta-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.pay-inline-body { min-height: 380px; display: flex; flex-direction: column; justify-content: center; }
.pay-inline-loading { color: var(--ink-soft); text-align: center; padding: 3rem 0; }
.bar-left { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
/* Same secondary-vs-hero relationship as .cart-strike above, adapted for
   the bar's dark background (muted via opacity rather than --ink-soft,
   which is tuned for the light panel bg, not --ink). */
.bar-strike { font-weight: 400; opacity: 0.6; margin-right: 0.25em; }
.bar-saved { font-size: 0.82rem; font-weight: 700; color: var(--butter); }
.bar-saved:empty { display: none; }
.bar-hint { font-size: 0.82rem; font-weight: 500; color: var(--butter); }
.bar-hint:empty { display: none; }
[hidden] { display: none !important; }
