/**
 * Perfect Portions — order page.
 *
 * The visual identity (Oswald/Public Sans, deep green on warm cream) is
 * Kathryn's from reference/order-prototype.html and is deliberately preserved:
 * that prototype has already been shown as a sales asset, and restyling it is
 * Matt's call rather than a side effect of restructuring the code.
 *
 * What is new here is everything the prototype had no need for: loading
 * skeletons, error and closed states, submit-in-flight, focus rings, reduced
 * motion, and touch targets that clear 44px.
 */

:root {
  --green-deep: #1C4526;
  --green-mid: #2E6B3E;
  --green-soft: #EAF1E7;
  --sage: #DDE8D8;
  --bg: #FBFAF5;
  --card: #FFFFFF;
  --ink: #22271F;
  --ink-soft: #5C6355;
  --line: #E4E2D6;
  --note: #8A5A2B;
  --bad: #A33B2A;
  --bad-soft: #FBEEEB;
  --radius: 14px;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 -6px 20px rgba(28, 69, 38, .25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/**
 * Make the `hidden` attribute actually win.
 *
 * The browser's own [hidden]{display:none} is a *user-agent* rule, and ANY
 * author rule that sets display beats it — no matter the specificity. So
 * `.cartbar{display:flex}` silently rendered the cart bar on the confirmation
 * screen even with hidden="true" set, and `.tags{display:flex}` would do the
 * same. Caught by screenshotting the confirmation page and seeing a stray
 * "0 items / $0.00" bar under the receipt.
 *
 * !important is the correct tool here rather than a smell: `hidden` means
 * hidden, and this rule exists precisely to restore a guarantee the platform
 * already makes. Every `.hidden = ` in the JS depends on it.
 */
[hidden] { display: none !important; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  padding-bottom: 110px;
  -webkit-text-size-adjust: 100%;
}

button { font-family: inherit; cursor: pointer; }

/* 16px is the threshold below which iOS Safari zooms the viewport on focus.
   Her customers order on phones; a zoom mid-checkout is a real drop-off. */
input, select, textarea { font-family: inherit; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ------------------------------------------------------------- a11y */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--green-deep); padding: 12px 18px;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* One visible focus style everywhere, including the custom controls. The
   prototype removed outlines from its choice buttons entirely. */
:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----------------------------------------------------------- header */

header {
  background: var(--green-deep);
  color: #F7F5EC;
  padding: 26px 20px 22px;
  text-align: center;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .34em;
  color: #BCD3B2;
  margin-top: 4px;
}

.weekline { margin-top: 14px; font-size: 13.5px; color: #DCE8D4; }
.weekline b { color: #fff; }

.cutoff {
  display: inline-block;
  margin-top: 10px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  letter-spacing: .04em;
}

/* ----------------------------------------------------------- layout */

main { max-width: 660px; margin: 0 auto; padding: 0 16px; }
section { margin-top: 34px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 2px solid var(--green-deep);
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.sec-head h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 19px;
  color: var(--green-deep);
}
.sec-head small { font-size: 12px; color: var(--ink-soft); }

.view { display: none; }
.view.on { display: block; animation: fade .25s ease; }
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Focusing a heading on view change must not draw a box around it. */
.view h2:focus { outline: none; }
.view h2:focus-visible { outline: 3px solid var(--green-mid); }

/* --------------------------------------------------------- skeletons */

.skeleton-bundle, .skeleton-card {
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--sage) 30%, #F2F6F0 50%, var(--sage) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  margin-top: 26px;
}
.skeleton-bundle { height: 96px; }
.skeleton-card { height: 250px; margin-top: 16px; }

@keyframes shimmer {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}

/* ----------------------------------------------------------- notices */

.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  margin-top: 40px;
}
.notice h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 20px;
  color: var(--green-deep);
}
.notice p { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; }
.notice-bad { border-color: #E6C9C2; background: var(--bad-soft); }
.notice-bad h2 { color: var(--bad); }
.notice-foot { font-size: 13px; }

.btn {
  margin-top: 18px;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
}
.btn-ghost {
  background: none;
  color: var(--green-deep);
  border: 1.5px solid var(--green-deep);
  width: 100%;
  margin-top: 20px;
}

.linkbtn {
  background: none; border: none; color: var(--green-mid);
  font-weight: 600; text-decoration: underline; padding: 0; font-size: inherit;
}

/* ----------------------------------------------------------- bundle */

/**
 * The Regular Special.
 *
 * It used to be a solid dark-green full-width bar with a large price on the
 * right — which is exactly what the fixed cart bar at the bottom of the screen
 * is. Sitting at the very top of the page, reviewers read it as a running cart
 * summary rather than something to buy. The old rules are gone rather than
 * tweaked, because the resemblance was the whole problem.
 *
 * What replaces it is an offer card: cream on a green outline, a flag along the
 * top, and a struck-through à-la-carte price beside what you actually pay.
 * Dark green is now reserved for the cart bar, so nothing else on the page
 * carries the "this is your order" signal.
 */
.bundle {
  background: var(--card);
  color: var(--ink);
  border: 2px solid var(--green-deep);
  border-radius: var(--radius);
  padding: 0;
  margin: 26px 0;
  overflow: hidden;
}

/* Deliberately the ONLY dark-green block here, and it is a label rather than a
   surface — a strip of text, not a bar with money in it. */
.bundle-flag {
  background: var(--green-deep);
  color: #F7F5EC;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 20px;
}

.bundle-body {
  padding: 18px 20px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.bundle-info { flex: 1; min-width: 200px; }
.bundle-info h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 20px;
  color: var(--green-deep);
}
.bundle-info p { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* Right-aligned so the price sits directly above the stepper that buys it. */
.bundle-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bundle-cost { display: flex; align-items: baseline; gap: 9px; }
.bundle-was {
  font-family: var(--display);
  font-size: 17px;
  color: var(--ink-soft);
  text-decoration-thickness: 2px;
}
.bundle-price {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1;
}
.bundle-save {
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The stepper needs no inversion any more: it sits on white here, exactly like
   every stepper on a meal card, and inherits the base rules unchanged. */

/* The "on request" legend, above the first section. Collapses when there is
   nothing to explain — render.js sets it to '' rather than hiding it. */
.menu-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 18px;
}
.menu-note:empty { display: none; }

/* ------------------------------------------------------------ cards */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.photo {
  display: block;
  width: 100%;
  /* Was 120px, which cropped her food hard on a phone — the reason to have a
     photo at all is that the dish looks like something. object-fit stays
     `cover`, so this is a taller crop window rather than a stretch. */
  height: 172px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--sage);
}
.photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-soft), var(--sage));
  color: var(--green-mid);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-body { padding: 16px; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 17.5px;
  color: var(--green-deep);
  line-height: 1.25;
}
.price { font-family: var(--display); font-weight: 600; font-size: 17.5px; white-space: nowrap; }

/* "Free" reads as a claim rather than a price unless it is coloured like one.
   Green, matching the Special saving on the totals block — the page's one
   existing signal for "this is money you are not paying". */
.price-free { color: var(--green-mid); }

/* The one-free-item line on the back-to-school card. Sits directly under the
   title, above the description, because it is the offer — the description is
   just what the food is. */
.staff-flag {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: .01em;
}
.desc { font-size: 13.5px; color: var(--ink-soft); margin-top: 5px; }

.tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; list-style: none; }
.tag {
  background: var(--sage);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 4px;
}
/* "on request" — softer than a firm auto-GF/DF chip so the two read differently. */
.tag-soft {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: .04em;
}

/* What you already have of the flavours you are not currently looking at. */
.variant-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--green-mid);
  text-align: right;
}

.nutri {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: .03em;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

/* --------------------------------------------- protein size chooser */

.oz-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.oz-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-right: 2px;
}
.oz {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.oz:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 2px; }
.oz.sel {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #fff;
}
.oz-note {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-mid);
  letter-spacing: .04em;
}

/* --------------------------------------------------------- steppers */

.stepper-row { display: flex; justify-content: flex-end; margin-top: 12px; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--green-deep);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.stepper .step-btn {
  width: 44px;              /* 44px is the accessible minimum tap target and */
  height: 44px;             /* the prototype's 40x38 missed it. */
  border: none;
  background: #fff;
  color: var(--green-deep);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  transition: background .12s ease;
}
.stepper .step-btn:active { background: var(--green-soft); }
.stepper .step-btn:disabled { opacity: .3; cursor: default; }
.stepper .qty {
  min-width: 46px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums; /* stops the row twitching as digits change */
}
.stepper.active { background: var(--green-deep); }
.stepper.active .step-btn { background: var(--green-deep); color: #fff; }
.stepper.active .qty { color: #fff; }

/* -------------------------------------------------------- row items */

.row-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-item .info { flex: 1; min-width: 0; }
.row-item h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 15px;
  color: var(--green-deep);
}
.row-item .sub { font-size: 12.5px; color: var(--ink-soft); }
.unit { font-size: 11px; color: var(--ink-soft); text-align: center; margin-top: 3px; letter-spacing: .05em; }

/* ---------------------------------------------------------- cartbar */

.cartbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--green-deep);
  color: #fff;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transform: translateY(110%);
  transition: transform .25s ease;
  z-index: 50;
}
.cartbar.show { transform: translateY(0); }
.cartbar .sum { font-size: 13px; color: #CFE0C5; }
.cartbar .sum strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  color: #fff;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.cartbar .go {
  background: #fff;
  color: var(--green-deep);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
}

/* --------------------------------------------------------- checkout */

.back {
  background: none;
  border: none;
  color: var(--green-mid);
  font-weight: 600;
  font-size: 14px;
  margin: 18px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
}
.panel h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 15px;
  color: var(--green-deep);
  margin-bottom: 12px;
}
.panel-sub { font-size: 12.5px; color: var(--ink-soft); margin: -6px 0 12px; }

.lineitem { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; }
.lineitem span:first-child { color: var(--ink-soft); }
.lineitem span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The dishes inside The Regular Special, under its line. list-style stays off
   and the names are separated by a rule-drawn dot, so a screen reader announces
   six list items while the eye reads one wrapped phrase. */
.line-contains {
  list-style: none;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-soft);
  opacity: .85;
}
.line-contains li { display: inline; }
.line-contains li + li::before { content: ' · '; }

/* A saving is the one figure in the totals block that is not a charge. */
.lineitem.save span { color: var(--green-mid); }

.totals { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.totals .grand { font-weight: 700; font-size: 16px; }
.totals .grand span:first-child { color: var(--ink); }
.empty { font-size: 14px; color: var(--ink-soft); }

/* ----------------------------------------------------------- fields */

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.field label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; }

.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input.bad, .field select.bad, .field textarea.bad {
  border-color: var(--bad);
  background: var(--bad-soft);
}

.field-err { color: var(--bad); font-size: 12.5px; margin-top: 5px; font-weight: 600; }
/* Stands in for the address form when a free drop-off is chosen. Bordered
   rather than plain text so the panel does not simply lose a chunk of itself —
   something visibly replaced the fields rather than the fields going missing. */
.site-note {
  background: var(--green-soft);
  border-left: 3px solid var(--green-mid);
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--green-deep);
}

.hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }
.hint.warn { color: var(--note); font-weight: 600; }

.choice-grid, .paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paygrid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.choice {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
  min-height: 44px;
  transition: border-color .12s ease, background .12s ease;
}
.choice small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.choice.sel { border-color: var(--green-deep); background: var(--green-soft); font-weight: 600; }
.choice.sel small { color: var(--green-mid); }

#pickup-fields, #delivery-fields { margin-top: 14px; }

.feenote {
  font-size: 12.5px;
  color: var(--note);
  margin-top: 10px;
  background: #FBF6EF;
  border-radius: 8px;
  padding: 10px 12px;
}

.submit {
  width: 100%;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-top: 18px;
  min-height: 52px;
  transition: opacity .15s ease;
}
.submit:disabled { opacity: .55; cursor: not-allowed; }
.submit.busy { position: relative; }

.form-err {
  color: var(--bad);
  background: var(--bad-soft);
  border: 1px solid #E6C9C2;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-top: 12px;
  font-weight: 500;
}

/* ----------------------------------------------------- confirmation */

.confirm-hero {
  background: var(--green-deep);
  color: #F7F5EC;
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  margin-top: 18px;
}
/* The queued path: the order is safe but did not land cleanly. Warm amber, not
   alarming red — nothing has gone wrong from the customer's point of view. */
.confirm-hero.confirm-warn { background: #6B4A22; }

.confirm-hero .check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
}
.confirm-hero h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 21px;
}
.confirm-hero p { font-size: 14px; color: #D8E5CF; margin-top: 8px; }
.confirm-bag { font-size: 13.5px; }

/* Checkbox + label as one 44px tap target — the whole row is clickable, which
   matters more here than anywhere: this is the control standing between a staff
   member and their special. */
/**
 * Scoped `.field label.checkfield`, not `.checkfield`, and that is the whole
 * point of the rule.
 *
 * This box lives inside a `.field`, and `.field label` is `display: block` +
 * uppercase + 700 + 12.5px + grey — the styling every other form label wants.
 * At 0-1-1 it outranks a bare `.checkfield` at 0-1-0, so it won no matter what
 * order the two appeared in: the attestation rendered as a tiny grey uppercase
 * heading stacked UNDER its own checkbox. Every property `.field label` sets is
 * therefore restated here, not just `display`.
 */
.field label.checkfield {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  line-height: 1.35;
}
.checkfield input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--green-mid);
  margin: 0;
}

.paybox {
  background: #fff;
  border: 1.5px dashed var(--green-mid);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-size: 14.5px;
  margin-top: 14px;
}
.paybox b { font-size: 17px; }
.paybox-card { border-color: var(--note); }

/* The Venmo / PayPal deep link. Sized as a real tap target (44px) because this
   is the one control on the confirmation screen anyone is meant to press.
   Wearing the destination's own colour is the point: someone who has just been
   told "pay on Venmo" is looking for that blue, and a green house-styled button
   is one more thing to read. */
.paybtn {
  display: block;
  margin: 12px auto 0;
  max-width: 280px;
  min-height: 44px;
  padding: 12px 18px;
  background: #008CFF;               /* Venmo's blue — this button is theirs */
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  line-height: 20px;
}
.paybtn:hover { background: #0077DB; }
.paybtn-paypal { background: #0070BA; }   /* PayPal's blue, same reasoning */
.paybtn-paypal:hover { background: #005C99; }
.paybtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.venmo-qr { margin: 14px 0 0; }
.venmo-qr img {
  display: block;
  margin: 0 auto;
  width: 180px;
  height: auto;
  border-radius: 6px;
}
.venmo-qr figcaption {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.confirm-id {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* ------------------------------------------------------------ toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #F4F2E9;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 60;
  max-width: calc(100% - 32px);
  text-align: center;
  animation: toast-in .3s ease;
  transition: opacity .4s ease;
}
.toast.go { opacity: 0; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

footer { text-align: center; font-size: 12px; color: var(--ink-soft); padding: 40px 16px 20px; }

/* ----------------------------------------------------- wider screens */

@media (min-width: 620px) {
  .photo { height: 180px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
}

/* Respect a forced-colors / high-contrast mode rather than fighting it. */
@media (forced-colors: active) {
  .stepper, .choice, .card, .panel { border: 1px solid CanvasText; }
  .choice.sel { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
