/* ═══════════════════════════════════════════════════════════════════════
   fressocafe.com/card

   Two languages on one page, on purpose. The PAGE speaks the site's: cream,
   ink, hairlines, New Spirit Light headings, no boxes. The things lifted from
   the app – the card faces, the composer, the balance and sign-in sheets –
   speak the APP's: white panels, 16 px rounded fields, the green gradient
   button, the app's system greys. Inside a sheet every type size is the size
   the app DRAWS at (its Dynamic Type pin turns an authored 16 into 18), so a
   field here and a field in the app are the same field.

   Loaded after site.css, which provides the tokens, .wrap, .display, .lede,
   .link, .rise, [data-reveal] and the reduced-motion rule. card-pay.css (the
   payment block inside [data-fc-pay]) belongs to another file. Every class
   here is prefixed fc-.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'New Spirit'; src: url('../fonts/NewSpirit-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('../fonts/HankenGrotesk-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* The app's system colours, light appearance (IOS-FLOW §5.3). */
  --fc-ink: #000;                          /* .primary */
  --fc-2: rgba(60, 60, 67, .6);            /* .secondary */
  --fc-ph: rgba(60, 60, 67, .3);           /* placeholder */
  --fc-green: #265221;                     /* fressoGreen */
  --fc-wash: rgba(38, 82, 33, .08);        /* a selected pill or segment */
  --fc-hair: rgba(142, 142, 147, .3);      /* a control's 1 px edge */
  --fc-hair-2: rgba(142, 142, 147, .2);    /* the header hairline, the checkout divider */
  --fc-row-hair: rgba(0, 0, 0, .08);       /* drawer rows, the card's inner edge */
  --fc-red: #b3261f;                       /* errorRed: a refused field's edge, the checkout line */
  --fc-red-deep: #8f1a14;                  /* errorRedDeep: an inline error */
  --fc-well: #f1f2f0;                      /* the link pill, the details bar */
  --fc-cream: #f7f5f0;
  --fc-holiday: #b31c21;
  --fc-offer: #fbeae8;
  --fc-offer-ink: #291c1c;

  --fc-rail: 20px;
  --fc-card-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 6px 14px rgba(0, 0, 0, .21), 0 12px 32px rgba(0, 0, 0, .07);
  /* spring(0.38, 0.82) – the delivery thumb – as one cubic: a 2 % overshoot. */
  --fc-spring: cubic-bezier(.3, 1.18, .45, 1);
  /* spring(0.5, 0.82) – pills ⇄ the custom field. */
  --fc-spring-soft: cubic-bezier(.28, 1.12, .4, 1);
  --fc-sheet-ease: cubic-bezier(.22, .61, .2, 1);
}

/* ─── The page ──────────────────────────────────────────────────────────── */

.fc-page {
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px));
  padding-bottom: var(--section);
}
.fc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.fc-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fc-ico-fill { fill: currentColor; stroke: none; }

/* The utility row: the app's "Gift cards you've sent" row, turned into the
   way to a balance, and the quiet sign-in beside it. */
.fc-util { display: grid; gap: 14px; justify-items: start; }
.fc-balance-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; height: 56px; padding: 0 16px 0 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  font-weight: 500; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-align: left;
  transition: border-color .25s var(--ease-soft), filter .1s ease-out;
}
/* The row's mark: two of the printed card, stacked a little askew. The art is
   a 160 px cut of public/egift/designs/cream-storefront.jpg (sips -Z 160): a
   cream card on a white row, so each carries a hairline and a small shadow. */
.fc-balance-stack { position: relative; flex: none; width: 48px; height: 34px; }
.fc-balance-stack img {
  position: absolute; left: 4px; top: 4.5px; width: 40px; height: auto; max-width: none;
  aspect-ratio: 1.5858 / 1; object-fit: cover;
  border-radius: 3.74% / 5.931%;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 1px 1.5px rgba(0, 0, 0, .16), 0 2px 5px rgba(0, 0, 0, .13);
}
.fc-balance-stack img:first-child { transform: translate(-3px, -2.5px) rotate(-9deg); }
.fc-balance-stack img:last-child { transform: translate(3px, 2.5px) rotate(3deg); }
.fc-balance-label { flex: 1; }
.fc-balance-chev { width: 18px; height: 18px; color: var(--ink-3); stroke-width: 1.9; }
@media (hover: hover) { .fc-balance-row:hover { border-color: rgba(26, 26, 26, .3); } }
.fc-balance-row:active { filter: brightness(.95); }
.fc-balance-row:focus-visible { outline-offset: 3px; }

.fc-who { font-size: .9375rem; line-height: 1.5; min-height: 26px; }
.fc-who p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.fc-who-cap, .fc-sep { color: var(--ink-2); }
.fc-hey { font-weight: 500; color: var(--ink); }
.fc-quiet { color: var(--ink-2); }

.fc-head { margin-top: clamp(40px, 6vw, 72px); max-width: 44rem; }
.fc-head .lede { margin-top: 16px; }
/* The hero line: the site's .display (site.css), 3 px smaller at every width. */
.fc-head .display { font-size: calc(clamp(2.25rem, 1.35rem + 3.6vw, 4.25rem) - 3px); }

@media (min-width: 900px) {
  .fc-util { grid-template-columns: 360px 1fr; align-items: center; gap: 24px; }
  .fc-who { justify-self: end; text-align: right; }
}

/* ─── Card faces ──────────────────────────────────────────────────────────
   ID-1 proportions (1.5858 : 1), a corner of 3.74 % of the WIDTH (the
   vertical radius is the same length: 3.74 × 1.5858 = 5.931 % of the height),
   the three-layer .card shadow, a 0.5 px inner hairline. */
.fc-face {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1.5858 / 1;
  border-radius: 3.74% / 5.931%;
  background: var(--fc-cream);
  box-shadow: var(--fc-card-shadow);
  overflow: hidden; isolation: isolate;
}
.fc-face img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .3s var(--ease-soft);
}
.fc-face img.is-loaded { opacity: 1; }
.fc-face::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08);
}
.fc-face.fc-flat { box-shadow: none; }

/* Loading: cream silhouettes with a slow sheen, in carousel geometry. */
.fc-ghost { background: #ece8df; box-shadow: none; }
.fc-ghost::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 70%) -150% 0 / 60% 100% no-repeat;
  animation: fc-sheen 1.6s var(--ease-soft) .09s infinite;
}
.fc-face:not(.fc-ghost):has(img:not(.is-loaded))::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 70%) -150% 0 / 60% 100% no-repeat;
  animation: fc-sheen 1.6s var(--ease-soft) .09s infinite;
}
@keyframes fc-sheen { to { background-position: 250% 0; } }

/* ─── The carousel ────────────────────────────────────────────────────── */

.fc-designs { margin-top: clamp(26px, 4vw, 40px); }
.fc-rail {
  display: flex; gap: 18px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 16px var(--edge) 30px;
  scroll-padding-inline: var(--edge);
  margin-bottom: -14px;
}
.fc-rail::-webkit-scrollbar { display: none; }
/* The scroller draws nothing of its own beside the cards (no fill, no mask,
   no edge), on every width. */
.fc-designs, .fc-rail, .fc-slot {
  background: transparent; border: 0; box-shadow: none;
  -webkit-mask-image: none; mask-image: none;
}
.fc-rail:focus-visible { outline-offset: -3px; }
/* iOS: min(370, max(220, width − rail 20 − gap 18 − peek 32)). */
.fc-slot { flex: none; width: min(370px, max(220px, calc(100vw - var(--edge) - 50px))); scroll-snap-align: start; }
.fc-design { display: block; width: 100%; padding: 0; border-radius: 3.74% / 5.931%; transition: filter .1s ease-out; -webkit-tap-highlight-color: transparent; }
.fc-design:active { filter: brightness(.95); }
.fc-design:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 5px; }
.fc-designs[data-state="failed"] .fc-rail,
.fc-designs[data-state="off"] .fc-rail { display: none; }
.fc-designs-note { margin-top: 4px; color: var(--ink-2); max-width: 34rem; }
.fc-designs-note .link { color: var(--ink); }
.fc-facts { margin-top: 6px; max-width: 40rem; color: var(--ink-3); text-wrap: pretty; }
.fc-noscript { margin-top: 24px; color: var(--ink-2); }

@media (min-width: 900px) {
  .fc-rail { gap: 24px; }
  .fc-slot { width: 370px; }
}

/* ─── The app reminder, the terms ─────────────────────────────────────── */

.fc-app {
  margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
  display: grid; gap: 14px;
}
.fc-app-copy p:first-child { color: var(--ink-2); max-width: 34rem; text-wrap: pretty; }
.fc-app-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.fc-terms { margin-top: clamp(36px, 5vw, 56px); padding-top: 26px; border-top: 1px solid var(--line); font-size: .9375rem; }
@media (min-width: 900px) {
  .fc-app { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
}

/* ═══ The sheet ═══════════════════════════════════════════════════════════
   One modal component for the composer, the balance check and sign-in.
   Phones: a full-height white panel that slides up. From 700 px: a centred
   white panel, 520 wide, over a scrim. Each step is its own column (header,
   scrolling body, floating bar) stacked in one grid cell, so the panel sizes
   to the step on screen and a step change can slide one over the other. */

html.fc-locked, html.fc-locked body { overflow: hidden; }
html.fc-locked body { overscroll-behavior: none; }

.fc-sheets { display: contents; }
.fc-sheet {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  color: var(--fc-ink); letter-spacing: 0;
  font-family: var(--text); font-size: 18px; line-height: 1.35;
}
.fc-sheet[hidden] { display: none; }
.fc-sheet + .fc-sheet { z-index: 81; }
.fc-sheet + .fc-sheet + .fc-sheet { z-index: 82; }
.fc-scrim {
  position: absolute; inset: 0; background: rgba(15, 22, 17, .45);
  opacity: 0; transition: opacity .38s var(--fc-sheet-ease);
}
.fc-sheet.is-open .fc-scrim { opacity: 1; }

.fc-panel {
  position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 100%; height: 100%; height: 100dvh;
  background: #fff; overflow: hidden;
  transform: translateY(100%);
  transition: transform .38s var(--fc-sheet-ease);
  will-change: transform;
}
.fc-sheet.is-open .fc-panel { transform: none; }
/* A sheet stacked over another (sign-in over the composer) on a phone. */

@media (min-width: 700px) {
  .fc-sheet { align-items: center; padding: 24px; }
  .fc-panel {
    width: 520px; max-width: 100%;
    height: auto; max-height: min(92vh, 900px);
    border-radius: 24px;
    box-shadow: 0 30px 80px -20px rgba(10, 14, 11, .45), 0 2px 8px rgba(10, 14, 11, .12);
    transform: translateY(14px) scale(.985); opacity: 0;
    transition: transform .38s var(--fc-sheet-ease), opacity .28s var(--ease-soft);
  }
  .fc-sheet.is-open .fc-panel { transform: none; opacity: 1; }
  :root { --fc-rail: 24px; }
}

.fc-step {
  grid-area: 1 / 1; min-height: 0; min-width: 0;
  display: flex; flex-direction: column;
  position: relative; background: #fff;
}
.fc-step[hidden] { display: none; }
@media (min-width: 700px) { .fc-step { max-height: min(92vh, 900px); } }

.fc-step-head {
  flex: none; position: relative;
  padding: calc(9px + env(safe-area-inset-top)) var(--fc-rail) 16px;
}
@media (min-width: 700px) { .fc-step-head { padding-top: 9px; } }
.fc-step-head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: .5px;
  background: var(--fc-hair-2); opacity: 0; transition: opacity .15s ease-in-out;
}
.fc-step-head.is-scrolled::after { opacity: 1; }
.fc-step-head-bare { padding-bottom: 0; }
.fc-icon-btn {
  width: 44px; height: 44px; margin-left: -11px;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--fc-ink); -webkit-tap-highlight-color: transparent;
}
.fc-icon-btn .fc-ico { width: 22px; height: 22px; stroke-width: 1.55; }
.fc-icon-btn[disabled] { opacity: .3; cursor: default; }
.fc-icon-btn:focus-visible { outline: 1.5px solid currentColor; outline-offset: -2px; }
.fc-step-title:focus, .fc-success-title:focus { outline: none; }
.fc-step-title {
  margin-top: -3px;
  font-family: var(--display); font-weight: 300; font-size: 26px; line-height: 1.2;
  letter-spacing: -.3px;
}

.fc-step-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 6px var(--fc-rail) 24px;
}
/* The floating bar: the button over a white fade, the content scrolling under. */
.fc-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 28px var(--fc-rail) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .92) 34%, #fff 55%);
  pointer-events: none;
}
.fc-bar > * { pointer-events: auto; }
/* The success page's Done: its fade starts 40 above the bar's top. */
.fc-bar-tall { padding-top: 68px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.fc-step:has(> .fc-bar) .fc-step-body { padding-bottom: calc(24px + 98px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .fc-bar { padding-bottom: 20px; } }

/* ─── The primary button (PrimaryButton) ──────────────────────────────── */

.fc-primary {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 58px; padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(90deg, #26522e, #14331a);
  color: #fff; font-family: var(--text); font-weight: 500; font-size: 20px; line-height: 26px;
  letter-spacing: -.02em; text-align: center;
  transition: filter .1s ease-out, background .2s var(--ease-soft);
  -webkit-tap-highlight-color: transparent;
}
.fc-primary:active:not([disabled]) { filter: brightness(.92); }
.fc-primary:focus-visible { outline: 2px solid var(--fc-green); outline-offset: 3px; }
.fc-primary[disabled] { background: #c7c7c7; cursor: default; }
.fc-primary.is-busy, .fc-primary.is-busy[disabled] { background: #809e85; cursor: progress; }
.fc-inline-btn { margin-top: 24px; }
.fc-bullet { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 500; margin: 0 .1em; }

/* Money: the "$" at 70 % of the digits, its foot a hair below their baseline. */
.fc-amt { white-space: nowrap; font-variant-numeric: lining-nums; }
.fc-cur { font-size: .7em; position: relative; top: .05em; margin-right: .06em; }
.fc-struck { position: relative; display: inline-block; }
.fc-struck::after { content: ''; position: absolute; left: -1px; right: -1px; top: 52%; height: 1px; background: currentColor; }

/* ─── Fields (EGiftFieldChrome) ───────────────────────────────────────── */

.fc-form { display: block; }
.fc-gap-30 { margin-top: 30px; }
.fc-gap-26 { margin-top: 26px; }
.fc-field { min-width: 0; }
.fc-label { display: block; margin-bottom: 8px; font-size: 15.5px; font-weight: 500; line-height: 1.3; color: var(--fc-2); }
.fc-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fc-label-row .fc-label { margin-bottom: 0; }
.fc-label-row-start { justify-content: flex-start; gap: 6px; }
.fc-optional { font-size: 14.5px; color: rgba(60, 60, 67, .42); }

.fc-input {
  display: block; width: 100%;
  padding: 14px; margin: 0;
  background: #fff; color: var(--fc-ink);
  border: 1px solid var(--fc-hair); border-radius: 16px;
  font: 500 18px/1.3 var(--text); letter-spacing: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
.fc-input::placeholder { color: var(--fc-ph); opacity: 1; }
.fc-input:focus { outline: none; border-color: rgba(38, 82, 33, .5); box-shadow: 0 0 0 3px rgba(38, 82, 33, .1); }
.fc-input.is-refused, .fc-input[aria-invalid="true"] { border-color: var(--fc-red); }
.fc-input.is-refused:focus { box-shadow: 0 0 0 3px rgba(179, 38, 31, .1); }
.fc-textarea { font-weight: 400; resize: none; min-height: calc(3 * 1.3em + 30px); line-height: 1.3; overflow-y: hidden; }

/* An inline error, folding open under its field. */
.fc-err { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease-in-out; }
.fc-err > p, .fc-err > div { overflow: hidden; min-height: 0; }
.fc-err p {
  font-size: 15.5px; line-height: 1.35; color: var(--fc-red-deep);
  opacity: 0; transition: opacity .12s ease-out;
}
/* The 6 px above the sentence is CONTENT, not padding: padding survives a 0fr
   row, and would leave 6 px under every field that has nothing to say. */
.fc-err p::before { content: ''; display: block; height: 6px; }
.fc-err.is-on { grid-template-rows: 1fr; }
.fc-err.is-on p { opacity: 1; transition: opacity .18s ease-in .08s; }
.fc-err-action { margin-top: 8px; }
.fc-err-note { margin-top: 8px; font-size: 15.5px; line-height: 1.4; color: var(--fc-2); }

.fc-hint, .fc-caption, .fc-caption-static, .fc-counter { font-size: 15.5px; line-height: 1.35; color: var(--fc-2); }
.fc-caption-static { margin-top: 6px; }
.fc-hint { margin-top: 6px; }
.fc-hint.is-refused { color: var(--fc-red-deep); }
.fc-counter { margin-top: 6px; text-align: right; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.fc-counter.is-full { color: var(--fc-red-deep); }

/* A green word: "Custom", "Default amounts", "Sign in" inside the sheets. */
.fc-word {
  position: relative; color: var(--fc-green); font-weight: 500; font-size: 17px; line-height: 1.3;
  transition: opacity .22s ease-out;
}
.fc-word::before { content: ''; position: absolute; inset: -10px -8px; }
.fc-word:focus-visible { outline: 1.5px solid currentColor; outline-offset: 3px; border-radius: 3px; }
.fc-word.is-away { opacity: 0; pointer-events: none; transition-duration: .14s; }

/* ─── Amount ──────────────────────────────────────────────────────────── */

.fc-amount-slot { display: grid; }
.fc-amount-slot > * { grid-area: 1 / 1; }
.fc-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; transform-origin: left center; transition: opacity .14s ease-out, transform .14s ease-out; }
.fc-pills.is-away { opacity: 0; transform: scale(.97); pointer-events: none; visibility: hidden; transition: opacity .14s ease-out, transform .14s ease-out, visibility 0s .14s; }
.fc-pill-btn {
  display: flex; flex-direction: row; align-items: baseline; justify-content: center; gap: 4px;
  min-height: 42px; padding: 9px 4px;
  background: #fff; border: 1px solid var(--fc-hair); border-radius: 8px;
  font-weight: 600; font-size: 18px; line-height: 22px; color: var(--fc-ink);
  white-space: nowrap;
  transition: border-color .16s ease-out, background-color .16s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.fc-pill-btn.is-offer { padding-inline: 6px; }
.fc-pill-btn[aria-checked="true"] { border-color: var(--fc-green); background: var(--fc-wash); }
.fc-pill-btn:focus-visible { outline: 2px solid var(--fc-green); outline-offset: 2px; }
.fc-pill-btn .fc-was { font-weight: 400; font-size: 14.5px; color: var(--fc-2); }
.fc-pills.is-stacked .fc-pill-btn { flex-direction: column; align-items: center; gap: 0; line-height: 20px; padding-block: 7px; }

.fc-custom {
  display: flex; align-items: center; gap: 18px;
  transform-origin: left center;
  transition: opacity .22s ease-out, transform .5s var(--fc-spring-soft);
}
.fc-custom.is-pre { opacity: 0; transform: scale(.96); }
.fc-custom-field {
  flex: 1 1 auto; min-width: 0; max-width: 220px;
  display: flex; align-items: baseline; gap: 2px;
  min-height: 42px; padding: 9px 14px;
  background: var(--fc-wash); border: 1px solid var(--fc-green); border-radius: 8px;
  font-weight: 600; font-size: 18px; line-height: 22px;
}
.fc-custom-field:focus-within { box-shadow: 0 0 0 3px rgba(38, 82, 33, .12); }
.fc-custom-field.is-refused { border-color: var(--fc-red); background: #fff; }
.fc-custom-cur { font-size: .7em; position: relative; top: .05em; }
.fc-custom-input {
  flex: 1; min-width: 0; width: 100%; padding: 0; margin: 0;
  border: 0; background: transparent; outline: none;
  font: inherit; color: var(--fc-ink); letter-spacing: 0;
}
.fc-custom-input::placeholder { color: rgba(60, 60, 67, .35); }
@media (max-width: 339px) { .fc-custom { flex-wrap: wrap; gap: 8px; } }

/* The offer tag (EGiftOfferTag). */
.fc-offer-tag {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px; padding: 10px 12px;
  background: var(--fc-offer); border-radius: 8px;
  font-size: 15.5px; line-height: 1.35; color: var(--fc-offer-ink);
  transform-origin: top left;
  animation: fc-tag-in .22s ease-out;
}
.fc-offer-tag .fc-ico { width: 15px; height: 15px; color: var(--fc-holiday); margin-top: 2px; }
.fc-offer-tag strong { font-weight: 600; color: var(--fc-holiday); }
@keyframes fc-tag-in { from { opacity: 0; transform: scale(.97); } }

.fc-guest-line { margin-top: 12px; font-size: 15.5px; line-height: 1.35; color: var(--fc-2); }
.fc-guest-line button { color: var(--fc-green); font-weight: 500; }

/* ─── Delivery toggle ─────────────────────────────────────────────────── */

.fc-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  height: 50px; padding: 4px;
  background: #fff; border: 1px solid var(--fc-hair); border-radius: 16px;
}
.fc-toggle-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--fc-wash); border: 1px solid var(--fc-green); border-radius: 12px;
  transition: transform .45s var(--fc-spring);
}
.fc-toggle[data-value="email"] .fc-toggle-thumb { transform: translateX(100%); }
.fc-seg {
  position: relative; z-index: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 8px; border-radius: 12px;
  font-weight: 500; font-size: 17px; line-height: 1; color: var(--fc-2); white-space: nowrap;
  transition: color .2s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.fc-seg span { overflow: hidden; text-overflow: ellipsis; }
.fc-seg .fc-ico { width: 19px; height: 19px; stroke-width: 1.7; }
.fc-seg[aria-checked="true"] { color: var(--fc-ink); }
.fc-seg[aria-checked="true"] .fc-ico { color: var(--fc-green); animation: fc-bounce .45s var(--fc-spring); }
.fc-seg:focus-visible { outline: 2px solid var(--fc-green); outline-offset: -2px; }
@keyframes fc-bounce { 40% { transform: scale(1.18); } }
/* The glyph goes first when the segment is too narrow for both. */
@media (max-width: 359px) { .fc-seg .fc-ico { display: none; } }

/* Only the VISIBLE caption takes room: the other lies over it, out of flow,
   so a long hidden caption (email unavailable: two lines) opens no gap. */
.fc-captions { position: relative; margin-top: 8px; }
.fc-caption { position: absolute; top: 0; left: 0; right: 0; opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity .3s ease-out, transform .45s var(--fc-spring); }
.fc-caption.is-on { position: relative; opacity: 1; transform: none; pointer-events: auto; }

/* The recipient's email grows in under the caption. */
.fc-grow { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--fc-sheet-ease); }
.fc-grow > div { overflow: hidden; min-height: 0; margin: 0 -1px; padding: 0 1px; }
.fc-grow-in { padding: 10px 0 1px; opacity: 0; transform: translateY(-12px); transition: opacity .25s ease-out, transform .4s var(--fc-sheet-ease); }
.fc-grow.is-open { grid-template-rows: 1fr; }
.fc-grow.is-open .fc-grow-in { opacity: 1; transform: none; }

/* ─── Terms + notice ──────────────────────────────────────────────────── */

.fc-terms-line { margin-top: 18px; font-size: 15.5px; line-height: 1.4; color: var(--fc-2); }
.fc-terms-line a { color: var(--fc-green); font-weight: 500; }
.fc-terms-line a:focus-visible { outline: 1.5px solid currentColor; outline-offset: 2px; }
.fc-notice {
  margin-top: 16px; padding: 14px 16px;
  background: var(--fc-cream); border-radius: 12px;
  font-size: 15.5px; line-height: 1.4; color: rgba(0, 0, 0, .72);
}

/* The chosen card, full rail width, on the form. */
.fc-compose-card { padding-top: 0; }

/* ─── Checkout ────────────────────────────────────────────────────────── */

.fc-summary { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.fc-thumb { width: 64px; flex: none; }
.fc-thumb .fc-face { box-shadow: none; }
.fc-summary-name { font-weight: 500; font-size: 18px; line-height: 1.3; }
.fc-summary-for { font-size: 15.5px; color: var(--fc-2); margin-top: 2px; overflow-wrap: anywhere; }
.fc-greet { margin-top: 22px; font-size: 15.5px; line-height: 1.4; color: var(--fc-2); }
.fc-greet strong { font-weight: 500; color: var(--fc-ink); }
.fc-greet button { color: var(--fc-green); font-weight: 500; }
.fc-pay-label { margin-top: 18px; }
.fc-pay { min-height: 58px; }
.fc-pay-missing { font-size: 15.5px; line-height: 1.4; color: var(--fc-2); padding: 14px 0; }
.fc-pay-missing button { color: var(--fc-green); font-weight: 500; margin-left: 4px; }

.fc-rows { margin-top: 20px; padding-top: 18px; border-top: .5px solid var(--fc-hair-2); display: grid; gap: 10px; }
.fc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 18px; line-height: 1.3; }
.fc-row dt, .fc-row > span:first-child { color: var(--fc-2); }
.fc-row-off > span:last-child { color: var(--fc-holiday); }
.fc-row-total { font-weight: 600; font-size: 21px; }
.fc-row-total > span:first-child { color: var(--fc-ink); }

.fc-refusal {
  margin-top: 12px; text-align: center;
  font-size: 15.5px; line-height: 1.25; color: var(--fc-red);
  animation: fc-fade-in .18s ease-in;
}
.fc-secure { margin-top: 14px; text-align: center; font-size: 14.5px; color: var(--fc-2); }
@keyframes fc-fade-in { from { opacity: 0; } }

/* ─── Success (the compose page, transformed) ─────────────────────────── */

/* The scroll content ends 24 px above the Done bar (68 fade + 58 button +
   10 / 20 bottom), so the receipt and the last line are never under its fade. */
.fc-step.fc-success { --fc-done-bar: calc(68px + 58px + 10px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .fc-step.fc-success { --fc-done-bar: calc(68px + 58px + 20px); } }
.fc-step.fc-success .fc-step-body { padding-top: calc(20px + env(safe-area-inset-top)); padding-bottom: calc(var(--fc-done-bar) + 24px); text-align: center; }
@media (min-width: 700px) { .fc-step.fc-success .fc-step-body { padding-top: 28px; } }
.fc-success-card { width: 100%; max-width: 320px; margin: 0 auto; position: relative; z-index: 1; }
.fc-success-title {
  margin-top: 37px;
  font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.05;
  letter-spacing: -.035em; text-wrap: balance;
}
.fc-success-lead {
  margin: 12px auto 0; max-width: 304px;
  font-size: 18px; line-height: 23px; letter-spacing: -.02em; text-wrap: pretty;
  overflow-wrap: break-word;
}

.fc-pill {
  position: relative; display: flex; align-items: center;
  height: 60px; margin-top: 30px; padding: 8px 8px 8px 23px;
  background: var(--fc-well); border-radius: 30px; text-align: left;
}
.fc-pill-link {
  position: relative; flex: 1 1 auto; min-width: 0; height: 44px; margin-right: 16px;
  display: grid; align-items: center; text-align: left;
  font-weight: 500; font-size: 17px; letter-spacing: -.01em; color: var(--fc-ink);
}
.fc-pill-url, .fc-pill-copied {
  grid-area: 1 / 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  transition: opacity .25s cubic-bezier(.3, 1.3, .5, 1), transform .25s cubic-bezier(.3, 1.3, .5, 1);
}
.fc-pill-copied { opacity: 0; transform: translateY(6px); color: var(--fc-green); font-weight: 600; text-align: center; padding-left: 9px; }
.fc-pill.is-copied .fc-pill-url { opacity: 0; transform: translateY(-6px); }
.fc-pill.is-copied .fc-pill-copied { opacity: 1; transform: none; }
.fc-pill.is-reverting .fc-pill-url, .fc-pill.is-reverting .fc-pill-copied { transition-duration: .45s; transition-timing-function: ease-in-out; }
.fc-pill-link:focus-visible { outline: 1.5px solid currentColor; outline-offset: 2px; border-radius: 6px; }
.fc-circle { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.fc-circle + .fc-circle { margin-left: 6px; }
.fc-circle-in { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: filter .1s ease-out; }
.fc-circle:active .fc-circle-in { filter: brightness(.92); }
.fc-circle:focus-visible { outline: 2px solid var(--fc-green); outline-offset: 0; }
.fc-circle .fc-ico { grid-area: 1 / 1; width: 17px; height: 17px; stroke-width: 2.2; transition: opacity .25s ease-in-out, transform .25s ease-in-out; }
.fc-circle-copy .fc-circle-in { background: rgba(38, 82, 33, .12); color: var(--fc-green); }
.fc-circle-share .fc-circle-in { background: var(--fc-green); color: #fff; }
.fc-circle-share .fc-ico { transform: translateY(-1px); }
.fc-ico-done { opacity: 0; transform: scale(.7); }
.fc-pill.is-copied .fc-ico-copy { opacity: 0; transform: scale(.7); }
.fc-pill.is-copied .fc-ico-done { opacity: 1; transform: none; }

.fc-details { margin-top: 20px; background: var(--fc-well); border-radius: 12px; text-align: left; }
.fc-pill[hidden] + .fc-details { margin-top: 33px; }
.fc-details-bar {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  height: 48px; padding: 0 16px 0 20px; border-radius: 12px;
  font-weight: 500; font-size: 18px; letter-spacing: -.02em; color: var(--fc-2);
}
.fc-details-bar:focus-visible { outline: 2px solid var(--fc-green); outline-offset: 2px; }
.fc-details-chev { width: 17px; height: 17px; stroke-width: 2; transition: transform .45s ease-in-out; }
.fc-details-bar[aria-expanded="true"] .fc-details-chev { transform: rotate(90deg); }
.fc-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease-in-out .14s; }
.fc-drawer > div { overflow: hidden; min-height: 0; }
.fc-drawer-rows { padding: 4px 20px 20px; opacity: 0; transition: opacity .18s ease-out; }
.fc-details.is-open .fc-drawer { grid-template-rows: 1fr; transition: grid-template-rows .5s ease-in-out; }
.fc-details.is-open .fc-drawer-rows { opacity: 1; transition: opacity .3s ease-in .4s; }
.fc-drawer-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: .5px solid var(--fc-row-hair); }
.fc-drawer-row:first-child { border-top: 0; padding-top: 6px; }
.fc-drawer-row dt { font-size: 15.5px; color: var(--fc-2); flex: none; }
.fc-drawer-row dd { font-weight: 500; font-size: 18px; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.fc-drawer-row.is-stack { display: block; }
.fc-drawer-row.is-stack dd { margin-top: 4px; font-weight: 400; text-align: left; white-space: pre-line; }

.fc-after { margin-top: 22px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.fc-after p + p { margin-top: 2px; }

/* The reveal: nothing is tappable and the panel does not scroll until the
   card is level; then the words rise in on the iOS stagger. */
.fc-reveal { opacity: 0; transform: translateY(10px); pointer-events: none; }
.fc-success.is-revealed .fc-reveal {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .4s ease-out var(--d, 0s), transform .4s ease-out var(--d, 0s);
}
.fc-success.is-gag .fc-step-body { overflow: hidden; }
.fc-success .fc-bar.fc-reveal { pointer-events: none; }
.fc-success.is-revealed .fc-bar.fc-reveal { pointer-events: none; }
.fc-success.is-revealed .fc-bar.fc-reveal > * { pointer-events: auto; }

/* ─── Balance ─────────────────────────────────────────────────────────── */

.fc-lead-label { display: block; margin-bottom: 14px; font-size: 18px; line-height: 1.4; color: var(--fc-ink); }
.fc-number { font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: 20px; }
.fc-number::placeholder { letter-spacing: .04em; }
.fc-quiet-note { margin-top: 16px; font-size: 15.5px; line-height: 1.4; color: var(--fc-2); text-align: center; }
.fc-result-card { max-width: 320px; margin: 4px auto 0; }
.fc-big {
  margin-top: 30px; text-align: center;
  font-family: var(--display); font-weight: 300; font-size: 51px; line-height: 1; letter-spacing: -.02em;
}
.fc-ending { margin-top: 10px; text-align: center; font-size: 16px; color: var(--fc-2); font-variant-numeric: tabular-nums; }
.fc-result-note { margin-top: 18px; }
.fc-result-again { margin-top: 18px; text-align: center; }
.fc-reload-card { font-size: 16px; color: var(--fc-2); font-variant-numeric: tabular-nums; }

.fc-done-step .fc-step-body { text-align: center; padding-top: 24px; }
.fc-check-mark { width: 64px; height: 64px; margin: 8px auto 0; fill: none; stroke: var(--fc-green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fc-check-mark circle { stroke-width: 2; opacity: .25; }
.fc-check-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.fc-check-mark.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease-out .1s; }
.fc-done-step .fc-success-title { margin-top: 24px; }
.fc-added-receipt { color: var(--fc-2); font-size: 15.5px; line-height: 1.45; margin-top: 10px; }

/* ─── Sign in ─────────────────────────────────────────────────────────── */

.fc-auth { display: grid; }
.fc-auth-step { grid-area: 1 / 1; min-width: 0; }
.fc-auth-step[hidden] { display: none; }
.fc-auth-step > .fc-field + .fc-field, .fc-auth-step > .fc-pair + .fc-field, .fc-auth-step > .fc-field + .fc-pair { margin-top: 20px; }
.fc-auth-h { font-family: var(--display); font-weight: 300; font-size: 23px; line-height: 1.2; letter-spacing: -.3px; }
.fc-auth-sub { font-size: 16px; line-height: 1.45; color: var(--fc-2); margin-bottom: 20px; }
.fc-auth-h + .fc-auth-sub { margin-top: 8px; }
.fc-auth-unknown { color: var(--fc-ink); font-size: 18px; margin-bottom: 0; }
.fc-auth-ok { margin-bottom: 16px; font-size: 15.5px; color: var(--fc-green); }
.fc-echo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 20px; }
.fc-echo-in { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font: 500 17px var(--text); color: var(--fc-ink); outline: none; }
.fc-secret { position: relative; }
.fc-secret .fc-input { padding-right: 72px; }
.fc-reveal-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 12px; font-size: 15.5px; font-weight: 500; color: var(--fc-green); }
.fc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fc-pair[hidden] { display: none; }
.fc-pair .fc-field[hidden] { display: none; }
.fc-pair.is-single { grid-template-columns: 1fr; }
.fc-pair-err { grid-column: 1 / -1; }
.fc-auth-links { margin-top: 18px; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 12px; }
.fc-auth-sent { font-size: 15.5px; color: var(--fc-2); }
.fc-auth-step .fc-err[data-fc-err="form"] p { text-align: center; color: var(--fc-red); }
.fc-auth-step .fc-err[data-fc-err="form"].is-on { margin-top: 8px; }

/* ─── Selection ───────────────────────────────────────────────────────────
   A selection paints behind TEXT and nothing else. Safari (WebKit) also fills
   the gaps a selection crosses (the rest of each line out to the page edge,
   the space between and beside blocks) with the ::selection colour of the
   block that owns the gap; with the site's green that is a green band over
   blank page. Two rules stop it, and neither moves a pixel of layout:
   1. a block that only holds other blocks paints its gaps in no colour, and
      keeps its own text colour should it ever hold text directly (site.css
      would otherwise turn that text cream, on cream);
   2. a block of text gets an identity `translate`: WebKit fills no gaps for a
      transformed block, so the highlight ends where the words do.
   Chrome and Firefox never filled the gaps; nothing changes there.

   The highlight itself, on this page: a very light Fresso green with the
   words keeping their own colour (the site's is solid green, cream words).
   It has an alpha on purpose: WebKit repaints an opaque ::selection colour as
   a blend of its own, and leaves a translucent one alone. */
.card-page ::selection { background: rgba(38, 82, 33, .18); color: currentColor; }
.card-page::selection,
.card-page :is(main, section, article, aside, header, footer, nav, form, fieldset, ul, ol, dl, div)::selection { background: transparent; color: currentColor; }
.card-page :is(h1, h2, h3, h4, p, li, dt, dd, label, legend, figcaption, .fc-label) { translate: 0 0; }
/* A field the selection merely passes over is not text either (WebKit would
   paint the whole empty field). Selecting INSIDE a field focuses it, and the
   highlight is there. */
.card-page :is(input, textarea):not(:focus)::selection { background: transparent; color: currentColor; }

/* Controls and pictures are not text. `pointer-events: none` on the art also
   keeps Safari's Live Text from finding the words printed on a card (the
   click belongs to the button around it either way). */
.card-page button, .fc-util, .fc-rail, .fc-face { -webkit-user-select: none; user-select: none; }
.fc-face img, .fc-balance-stack img {
  pointer-events: none; -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none;
}
.fc-design { -webkit-touch-callout: none; }

/* ─── Small phones ────────────────────────────────────────────────────── */

@media (max-width: 359px) {
  .fc-pill-btn { font-size: 17px; }
  .fc-success-title { font-size: 34px; }
}

/* ─── Reduced motion ──────────────────────────────────────────────────────
   site.css stills every transition. The sheets keep their cross-fades (and
   only those): opacity, never movement. */
@media (prefers-reduced-motion: reduce) {
  .fc-panel, .fc-sheet.is-open .fc-panel { transform: none !important; }
  .fc-panel { opacity: 0; }
  .fc-sheet.is-open .fc-panel { opacity: 1; }
  .fc-panel, .fc-scrim, .fc-success.is-revealed .fc-reveal {
    transition-property: opacity !important; transition-duration: .3s !important; transition-timing-function: ease-in-out !important;
  }
  .fc-success.is-revealed .fc-reveal { transition-duration: .25s !important; }
  .fc-reveal { transform: none; }
  .fc-ghost::before, .fc-face::before { animation: none !important; }
  .fc-seg .fc-ico { animation: none !important; }
  .fc-check-mark path { stroke-dashoffset: 0; }
}
