/* Flyt: the logo's colours (logo 03e, 2026-09-26) on a light, calm
   layout (design direction B). Buyers are Western and have never heard of
   the vendor, so the checkout is calm and light; vendors are mostly
   Chinese and on phones, so vendor pages are compact.
   Ink (#0B1512) for the header and main buttons, green (#0B5D45) for links,
   selection and focus, mint (#9EE6C4) on ink, on a warm cream background.
   "Paid / done" keeps its own badge (--flyt-ok) with a tinted background.
   System fonts only: Google Fonts is blocked in mainland China, and a
   blocked stylesheet would stall the page there. */
:root {
  --flyt-bg: #f5f3ee;
  --flyt-card: #ffffff;
  --flyt-border: #dcd8cf;
  --flyt-border-strong: #b8b2a6;
  --flyt-text: #0b1512;
  --flyt-muted: #505b56;
  --flyt-faint: #6f7974;
  --flyt-ink: #0b1512;
  --flyt-ink-hover: #26332e;
  --flyt-primary: #0b5d45;
  --flyt-primary-hover: #08402f;
  --flyt-primary-soft: #e4f2ea;
  --flyt-navy: #0b1512;
  --flyt-on-navy: #b9c2be;
  --flyt-ok: #0e6b3f;
  --flyt-ok-soft: #e1f3e8;
  --flyt-warn: #8a5a00;
  --flyt-warn-soft: #fff3dc;
  --flyt-danger: #b42318;
  --flyt-danger-soft: #fdecea;
  /* Kept for older markup: the accent is the brand green. */
  --flyt-accent: var(--flyt-primary);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--flyt-bg);
  color: var(--flyt-text);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}
.wrap-wide { max-width: 960px; }

/* Top bar on vendor and admin pages: brand, "Merchant center", language. */
.topbar {
  background: var(--flyt-card);
  border-bottom: 1px solid var(--flyt-border);
}
.topbar-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-wide { max-width: 960px; }
.topbar-brand { display: flex; align-items: center; flex-shrink: 0; }
.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #0B1512;
  text-decoration: none;
  line-height: 1;
}
.brand-mark { flex-shrink: 0; display: block; }
.brand-logo { display: block; line-height: 0; }
.brand-dot { color: #0B5D45; }
/* "Flyt." with "by Viritas" under it, the two lines centred on the logo. */
.brand-text { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
.brand-home { color: inherit; text-decoration: none; }
.brand-by { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.01em; color: var(--flyt-muted); }
/* The vendor's business name (or "Merchant center", "Admin"), in the
   middle of the top bar, well apart from Flyt's logo. */
.topbar-center { flex: 1; min-width: 0; text-align: center; }
.brand-sub { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; color: var(--flyt-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card {
  background: var(--flyt-card);
  border: 1px solid var(--flyt-border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
}
h1 { font-size: 1.2rem; margin: 0 0 4px; }
h2 { font-size: 0.95rem; margin: 0 0 14px; color: var(--flyt-muted); font-weight: 400; }
p { margin: 0 0 12px; }
p.hint { color: var(--flyt-muted); font-size: 0.85rem; margin-top: -4px; }
label { display: block; font-size: 0.85rem; color: var(--flyt-muted); margin: 14px 0 6px; }
form > label:first-child, .card > label:first-child { margin-top: 0; }
input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="date"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--flyt-card);
  border: 1px solid var(--flyt-border-strong);
  border-radius: 8px;
  color: var(--flyt-text);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--flyt-primary);
  outline-offset: 0;
  border-color: var(--flyt-primary);
}
input:disabled, select:disabled { background: var(--flyt-bg); color: var(--flyt-faint); }
/* A form value with nothing to choose (one currency, #843): plain text, no field. */
.field-static { display: block; font-size: 16px; font-weight: 600; color: var(--flyt-text); padding: 2px 0; }
button, .btn {
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--flyt-ink);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--flyt-ink-hover); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--flyt-primary); outline-offset: 2px; }
.btn-secondary {
  background: var(--flyt-card);
  color: var(--flyt-ink);
  border: 1px solid var(--flyt-ink);
}
.btn-secondary:hover { background: var(--flyt-bg); }
a { color: var(--flyt-primary); }
a:hover { color: var(--flyt-primary-hover); }
.muted { color: var(--flyt-muted); }
.error {
  color: var(--flyt-danger);
  background: var(--flyt-danger-soft);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  margin: 8px 0;
}
/* A friendly heads-up (e.g. waiting for Flyt's approval), not an error. */
.notice {
  color: var(--flyt-warn);
  background: var(--flyt-warn-soft);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  margin: 8px 0;
}
.link-box {
  background: var(--flyt-bg);
  border: 1px solid var(--flyt-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  word-break: break-all;
  margin-top: 8px;
}
.amount { font-size: 2rem; font-weight: 700; margin: 4px 0 20px; font-variant-numeric: tabular-nums; }

/* Language switcher: a small segmented control. */
.lang-switcher {
  display: inline-flex;
  border: 1px solid var(--flyt-border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-link {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--flyt-muted);
  background: var(--flyt-card);
  text-decoration: none;
}
.lang-link + .lang-link { border-left: 1px solid var(--flyt-border); }
.lang-link:hover { color: var(--flyt-text); }
.lang-link.active { color: #ffffff; background: var(--flyt-ink); }
.lang-in-progress-notice {
  font-size: 0.8rem;
  color: var(--flyt-muted);
  background: var(--flyt-card);
  border: 1px solid var(--flyt-border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

/* --- Setup steps: every step of getting started on one screen, the ones
   not reached yet greyed out (signup, payout wallet, first link, share). */
.steps-head { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 10px; }
.steps-head h1 { margin: 0; }
.steps-left { font-size: 0.85rem; color: var(--flyt-muted); }
.steps-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  text-align: center;
}
.steps-bar li { display: flex; flex-direction: column; gap: 6px; color: var(--flyt-faint); }
.steps-bar li::before { content: ""; height: 4px; border-radius: 2px; background: var(--flyt-border); }
.steps-bar li.done { color: var(--flyt-ok); }
.steps-bar li.done::before { background: var(--flyt-ok); }
.steps-bar li.current { color: var(--flyt-primary); font-weight: 700; }
.steps-bar li.current::before { background: var(--flyt-primary); }
.step-done {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--flyt-card);
  border: 1px solid var(--flyt-border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.step-done .check {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--flyt-ok-soft);
  color: var(--flyt-ok);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-done .step-title { flex-grow: 1; }
.step-done .step-detail { font-size: 0.8rem; color: var(--flyt-muted); overflow-wrap: anywhere; text-align: right; }
.card.step-current { border: 2px solid var(--flyt-primary); }
.step-title-row { font-weight: 700; margin-bottom: 4px; }
.step-later {
  background: #faf9f6;
  border: 1px dashed var(--flyt-border-strong);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  color: var(--flyt-faint);
  font-size: 0.9rem;
}
.step-later .step-title-row { margin: 0; }
.step-later .step-note { font-size: 0.8rem; }

/* Choice cards: a radio shown as a tappable card (payout asset, how the
   buyer pays). The native radio stays for keyboards and screen readers. */
.choices { border: none; padding: 0; margin: 14px 0 0; }
.choices legend { padding: 0; margin-bottom: 6px; font-size: 0.85rem; color: var(--flyt-muted); }
.choices legend .required { color: var(--flyt-danger); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
label.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--flyt-border-strong);
  border-radius: 10px;
  background: var(--flyt-card);
  color: var(--flyt-text);
  font-size: 0.95rem;
  cursor: pointer;
}
label.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.choice strong { font-weight: 700; }
label.choice span { font-size: 0.75rem; color: var(--flyt-muted); }
label.choice:has(input:checked) { border: 2px solid var(--flyt-primary); background: var(--flyt-primary-soft); padding: 9px 11px; }
label.choice:has(input:focus-visible) { outline: 2px solid var(--flyt-primary); outline-offset: 2px; }
label.choice.is-disabled { cursor: not-allowed; opacity: 0.55; }
/* Order type, the new-link form's first choice (#1114): two large buttons, then the form. */
.order-type-step[hidden], form[data-order-type-form][hidden], .digital-fields[hidden] { display: none; }
.order-type-question { margin: 4px 0 10px; font-size: 1.05rem; }
a.choice.order-type-choice {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; min-height: 96px;
  border: 1px solid var(--flyt-border-strong); border-radius: 10px; background: var(--flyt-card);
  color: var(--flyt-text); text-decoration: none; font-size: 1rem;
}
a.choice.order-type-choice:hover, a.choice.order-type-choice:focus-visible { border: 2px solid var(--flyt-primary); background: var(--flyt-primary-soft); padding: 15px 13px; }
a.choice.order-type-choice strong { font-weight: 700; font-size: 1.05rem; }
a.choice.order-type-choice span { font-size: 0.85rem; color: var(--flyt-muted); }
.order-type-chip { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.order-type-chip .tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--flyt-primary-soft); color: var(--flyt-primary); font-weight: 700; font-size: 0.85rem; }
.tag-digital { font-weight: 700; color: var(--flyt-primary); }
/* Payout rail picker (ADR 0003): the rails stacked, then only the chosen rail's fields. */
.choice-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
fieldset.rail-fields { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
fieldset.rail-fields .field-label { margin: 18px 0 0; font-weight: 600; font-size: 0.9rem; }
fieldset.sells-order-types { border: 0; padding: 4px 0 10px 28px; margin: 0; min-width: 0; }
fieldset.sells-order-types legend { font-weight: 600; padding: 0; margin-bottom: 4px; }

/* --- Vendor dashboard --- */
.account-row { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; color: var(--flyt-muted); margin: 0 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.tile {
  background: var(--flyt-card);
  border: 1px solid var(--flyt-border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tile-label { font-size: 0.75rem; color: var(--flyt-muted); }
.tile-value { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-sub { font-size: 0.7rem; color: var(--flyt-muted); }
.tile-sub.warn { color: var(--flyt-warn); }
.card-title { font-size: 1rem; font-weight: 700; margin: 0 0 10px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid label { margin: 0 0 4px; }
.amount-row { display: flex; gap: 8px; }
.amount-row input[type="number"] { flex: 1; min-width: 0; }
.amount-row select { width: 96px; flex-shrink: 0; }

.card-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.card-header-row h1, .card-header-row .card-title { margin: 0; }
.request-list { display: flex; flex-direction: column; }
.request-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #efece5;
}
.request-row:last-child { border-bottom: none; }
.request-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.request-title { font-weight: 700; font-size: 0.95rem; overflow-wrap: anywhere; }
.request-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.request-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.78rem; color: var(--flyt-muted); }
.status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--flyt-warn-soft);
  color: var(--flyt-warn);
}
.status.paid { background: var(--flyt-ok-soft); color: var(--flyt-ok); }
.status.expired { background: #efece5; color: var(--flyt-muted); }
.request-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.request-actions form { margin: 0; }
.btn-small, .copy-btn, .delete-btn, .qr-toggle {
  width: auto;
  margin-top: 0;
  padding: 7px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
}
.qr-toggle { display: inline-block; font-weight: 600; line-height: inherit; cursor: pointer; margin-bottom: 0; }
.request-actions { align-items: flex-start; }
.copy-btn, .qr-toggle {
  background: var(--flyt-card);
  color: var(--flyt-text);
  border: 1px solid var(--flyt-border-strong);
}
.copy-btn:hover, .qr-toggle:hover { background: var(--flyt-primary-soft); }
.delete-form { margin-left: auto !important; }
.delete-btn { background: transparent; color: var(--flyt-danger); padding: 7px 4px; }
.delete-btn:hover { background: transparent; text-decoration: underline; }
.ship-form { display: flex; gap: 8px; margin: 0; }
.ship-form input { flex-grow: 1; min-width: 0; padding: 8px 10px; }
.ship-form button { width: auto; margin-top: 0; padding: 8px 12px; font-size: 0.85rem; white-space: nowrap; }
.ship-form-carrier { flex-wrap: wrap; }
.ship-form-carrier select { flex-basis: 100%; margin: 0; padding: 8px 10px; }
.ship-form .test-tracking-btn { flex-basis: 100%; background: #fff3dc; color: #8a5a00; border: 1px solid #e8d3a6; }
.delivered-form { margin-top: 8px; align-items: center; }
.delivered-form .delivered-check { display: flex; align-items: center; gap: 6px; flex-grow: 1; margin: 0; font-size: 0.9rem; }
.delivered-form .delivered-check input { flex-grow: 0; width: auto; padding: 0; }
.row-hint { font-size: 0.78rem; color: var(--flyt-muted); }
.ship-edit { margin-top: 6px; }
.same-parcel { flex-basis: 100%; margin: 4px 0 0; padding: 8px 10px; border: 1px solid var(--flyt-border); border-radius: 8px; }
.same-parcel legend { font-size: 0.8rem; font-weight: 600; padding: 0 4px; }
.same-parcel label { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 0.85rem; }
.same-parcel input { width: auto; flex-grow: 0; padding: 0; }
.ship-edit summary { font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--flyt-primary); }
.ship-edit .ship-form { margin-top: 8px; }
.qr-code {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--flyt-border);
}
details.qr summary { list-style: none; }
details.qr summary::-webkit-details-marker { display: none; }
details.qr[open] .qr-code { margin-top: 8px; display: block; }

/* The share panel after a link is created. */
.share { text-align: center; }
.share-total-label { font-size: 0.85rem; color: var(--flyt-muted); }
.share-total { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.share-sub { font-size: 0.85rem; color: var(--flyt-muted); margin-bottom: 12px; }
.share .qr-code { width: 200px; height: 200px; margin: 0 auto 12px; display: block; }
.share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.share-actions .btn, .share-actions button { margin-top: 0; }
.next-steps { text-align: left; margin: 12px 0 0; padding: 12px 14px 12px 32px; border-radius: 10px; background: var(--flyt-bg); font-size: 0.85rem; color: var(--flyt-muted); }
.next-steps li + li { margin-top: 4px; }
.fee-note { font-size: 0.8rem; color: var(--flyt-muted); margin-top: 8px; }

/* What the buyer pays, on the new-link form (price + Flyt's handling fee). */
.fee-preview { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--flyt-bg); border: 1px solid var(--flyt-border); }
.fee-preview-title { font-weight: 700; margin-bottom: 6px; }
.fee-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; padding: 2px 0; font-variant-numeric: tabular-nums; }
.fee-line[hidden] { display: none; }
.fee-rule { color: var(--flyt-muted); font-size: 0.85rem; }
.fee-partner { color: var(--flyt-muted); font-size: 0.85rem; }
.fee-total { border-top: 1px solid var(--flyt-border); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 1.15rem; }
.fee-hint { font-size: 0.85rem; color: var(--flyt-muted); margin: 6px 0 0; }
.fee-line > span:last-child { white-space: nowrap; }
/* A one-part line (a note, no amount) wraps like text: on a phone it ran out of the preview (#997). */
.fee-line > span:only-child { white-space: normal; }

/* The "..." menu on the payment list. */
.menu { position: relative; }
.menu-btn {
  width: auto;
  margin-top: 0;
  padding: 4px 10px;
  font-size: 1.1rem;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--flyt-border);
  color: var(--flyt-muted);
}
.menu-btn:hover { color: var(--flyt-text); background: var(--flyt-bg); }
.menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  min-width: 260px;
  background: var(--flyt-card);
  border: 1px solid var(--flyt-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 21, 18, 0.12);
  padding: 6px;
}
.menu-dropdown form { margin: 0; }
.menu-item {
  width: 100%;
  margin-top: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--flyt-text);
  font-weight: 500;
  font-size: 0.85rem;
  text-align: left;
  border-radius: 6px;
}
.menu-item:hover { background: var(--flyt-bg); }

/* --- Buyer checkout: a navy header with the total, then the details. --- */
.checkout-hero { background: var(--flyt-navy); color: #ffffff; }
.checkout-hero-inner { max-width: 480px; margin: 0 auto; padding: 16px 16px 56px; }
.checkout-hero .hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.checkout-hero .brand { color: #ffffff; }
.checkout-hero .brand-dot { color: #9EE6C4; }
.checkout-hero .brand-by { color: var(--flyt-on-navy); }
.checkout-hero .secure { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--flyt-on-navy); }
.checkout-hero .lang-switcher { border-color: rgba(255, 255, 255, 0.25); }
.checkout-hero .lang-link { background: transparent; color: var(--flyt-on-navy); }
.checkout-hero .lang-link + .lang-link { border-left-color: rgba(255, 255, 255, 0.25); }
.checkout-hero .lang-link.active { background: #9EE6C4; color: var(--flyt-navy); }
.hero-pay-to { font-size: 0.85rem; color: var(--flyt-on-navy); }
.hero-total { font-size: 2.3rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.hero-desc { font-size: 0.85rem; color: var(--flyt-on-navy); overflow-wrap: anywhere; }
.checkout-body { margin-top: -40px; padding-top: 0; }
.checkout-body .card { padding: 16px; }
.price-summary { margin: 0; }
.price-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 0.9rem; }
.price-summary dt { color: var(--flyt-muted); }
.price-summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.price-summary .price-total { border-top: 1px solid var(--flyt-border); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.price-summary .price-total dt { color: var(--flyt-text); }
.checkout-body .price-hint { font-size: 0.78rem; color: var(--flyt-muted); margin: 8px 0 0; }
.methods { border: none; padding: 0; margin: 4px 0 0; }
.methods legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--flyt-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
label.method-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  padding: 12px 14px;
  background: var(--flyt-card);
  border: 1px solid var(--flyt-border);
  border-radius: 10px;
  color: var(--flyt-text);
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
}
label.method-option:first-of-type { margin-top: 0; }
.method-option input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.method-option:has(input:checked) { border-color: var(--flyt-primary); box-shadow: 0 0 0 1px var(--flyt-primary) inset; }
.method-option:has(input:focus-visible) { outline: 2px solid var(--flyt-primary); outline-offset: 2px; }
.method-option.is-disabled { cursor: not-allowed; opacity: 0.5; }
.method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--flyt-bg);
  color: var(--flyt-muted);
  flex-shrink: 0;
}
.method-option:has(input:checked) .method-icon { color: var(--flyt-primary); background: var(--flyt-primary-soft); }
.method-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.method-name { font-weight: 600; }
.method-detail { font-size: 0.8rem; color: var(--flyt-muted); }
.method-form button { margin-top: 12px; font-size: 1.05rem; padding: 14px 16px; }
.stripe-embed { min-height: 120px; }
.stripe-embed #stripe-payment { margin-top: 14px; }
.stripe-embed .btn { margin-top: 8px; }
.checkout-summary .card, .checkout-pay .card { margin-bottom: 12px; }
/* Laptops: the order on the left (it stays in view), paying on the right. */
@media (min-width: 880px) {
  .checkout-hero-inner, main.checkout-body { max-width: 920px; }
  .checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
  .checkout-summary { position: sticky; top: 16px; }
}
.protection {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--flyt-card);
  border: 1px solid var(--flyt-border);
  font-size: 0.85rem;
  margin-top: 12px;
}
.protection svg { flex-shrink: 0; color: var(--flyt-ok); margin-top: 1px; }
.checkout-foot { text-align: center; font-size: 0.78rem; color: var(--flyt-muted); margin-top: 14px; }
.return-link { display: inline-block; margin-top: 12px; }
.done-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--flyt-ok-soft);
  color: var(--flyt-ok);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* --- Admin dashboard (src/adminViews.js) --- */
.small { font-size: 0.8rem; }
.admin-vendor-row { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.admin-fee-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.admin-fee-form input[type="number"] { width: 64px; padding: 6px 8px; }
.admin-fee-form button { width: auto; margin-top: 0; padding: 6px 12px; font-size: 0.85rem; }
.admin-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--flyt-border);
}
.admin-nav a {
  padding: 8px 12px;
  color: var(--flyt-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-nav a.active { color: var(--flyt-text); border-bottom-color: var(--flyt-primary); }
.admin-nav .admin-logout { margin-left: auto; font-weight: 500; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { margin: 0; }
.segmented { display: inline-flex; border: 1px solid var(--flyt-border); border-radius: 8px; overflow: hidden; }
.segmented a { padding: 6px 12px; font-size: 0.8rem; font-weight: 600; color: var(--flyt-muted); text-decoration: none; background: var(--flyt-card); }
.segmented a + a { border-left: 1px solid var(--flyt-border); }
.segmented a.active { background: var(--flyt-ink); color: #ffffff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--flyt-card); border: 1px solid var(--flyt-border); border-radius: 12px; padding: 16px; }
.stat-label { font-size: 0.8rem; color: var(--flyt-muted); }
.stat-value { font-size: 1.4rem; font-weight: 700; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 0.75rem; color: var(--flyt-muted); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.admin-grid .card { margin-bottom: 0; }
.admin-grid + .card { margin-top: 16px; }
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--flyt-border);
}
.admin-row:last-child { border-bottom: none; }
.admin-row-link { color: inherit; text-decoration: none; }
.admin-row-link:hover .admin-row-main strong { color: var(--flyt-primary); }
.admin-row-main { min-width: 0; }
.admin-row-figures { text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efece5;
  color: var(--flyt-muted);
  vertical-align: middle;
}
.pill-good { background: var(--flyt-ok-soft); color: var(--flyt-ok); }
.pill-bad { background: var(--flyt-danger-soft); color: var(--flyt-danger); }
.pill-warn { background: var(--flyt-warn-soft); color: var(--flyt-warn); }
.approval-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.approval-actions form { margin: 0; }
/* Payout options tick boxes (#1240): side by side, wrapping on a phone. */
.inline-check { display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 4px 0; font-weight: 400; }
.inline-check input { width: auto; margin: 0; }
[data-approve-rails] { margin: 0 0 6px; }
.flash {
  background: var(--flyt-ok-soft);
  color: var(--flyt-ok);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.flash-error { background: var(--flyt-danger-soft); color: var(--flyt-danger); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 0.9rem; }
.kv dt { color: var(--flyt-muted); white-space: nowrap; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > div { flex: 1 1 160px; }
.field-row > .field-narrow { flex: 0 1 140px; }
.admin-product-form p.eur-price { margin: 6px 0 0; line-height: 1.35; }
.field-row label { margin-top: 0; }
.btn-danger { background: transparent; border: 1px solid var(--flyt-danger); color: var(--flyt-danger); }
.btn-danger:hover { background: var(--flyt-danger-soft); }
.admin-row-form { display: block; }
.partner-form { margin: 0; }
.partner-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }

/* Developers page: API keys, webhook deliveries. */
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 8px 0 16px; }
.table th { text-align: left; color: var(--flyt-muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--flyt-border); }
.table td { padding: 8px; border-bottom: 1px solid var(--flyt-border); vertical-align: middle; }
.table form { margin: 0; }
.link-button { background: none; border: none; padding: 0; width: auto; margin: 0; color: var(--flyt-primary); font: inherit; cursor: pointer; text-decoration: underline; }
.link-button:hover { background: none; color: var(--flyt-primary-hover); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; word-break: break-all; }
details summary { cursor: pointer; color: var(--flyt-primary); margin-bottom: 8px; }

@media (max-width: 560px) {
  .stat { padding: 12px; }
  .stat-value { font-size: 1.1rem; }
  .admin-row { flex-direction: column; }
  .admin-row-figures { text-align: left; }
  .table { display: block; overflow-x: auto; }
}

/* Admin payouts: the row's actions (hold, release, refund). */
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.admin-actions form { margin: 0; }
.vendor-payout form { width: 100%; margin: 0; }
.vendor-payout-list { margin: 8px 0; padding-left: 18px; }
.vendor-payout-list li { margin: 2px 0; }
.vendor-payout .wallet { word-break: break-all; }
.vendor-payout-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.vendor-payout-fields label { flex: 1 1 220px; margin: 0; }
.payout-tx { word-break: break-all; }
.admin-deploy { margin-top: 24px; text-align: center; }

/* The vendor's payout for a paid request (views.js payoutLine). */
.payout-line { font-size: 0.8rem; color: var(--flyt-muted); margin: 2px 0 4px; }
.payout-line.payout-paid_out { color: var(--flyt-ok); }
.payout-line.payout-on_hold { color: var(--flyt-warn); }

/* Flyt-Shop (src/shopViews.js): product grid, product page, legal pages. */
.shop-currency { display: flex; gap: 4px; }
.shop-currency a { padding: 4px 10px; border: 1px solid var(--flyt-border); border-radius: 999px; font-size: 0.8rem; color: var(--flyt-muted); text-decoration: none; }
.shop-currency a.active { background: var(--flyt-ink); border-color: var(--flyt-ink); color: #ffffff; }
.shop-intro { margin: 8px 0 20px; }
.shop-intro h1 { font-size: 1.5rem; }
/* /pricing (#1083) */
.pricing-intro { margin: 8px 0 20px; }
.pricing-toggle { display: inline-flex; gap: 4px; margin: 8px 0; }
.pricing-toggle button[aria-pressed="false"] { opacity: 0.6; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pricing-price { font-size: 1.6rem; font-weight: 700; margin: 8px 0; }
.pricing-per { font-size: 1rem; font-weight: 400; }
.pricing-year { margin: 0 0 8px; }
.pricing-draft { display: inline-block; font-size: 15px; font-weight: 700; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; vertical-align: middle; }
.pricing-draft-note { font-weight: 600; }
/* Terms, privacy, refunds, contact (#1137) */
.legal-page h2 { font-size: 1.1rem; margin: 20px 0 6px; }
.legal-page ul { padding-left: 20px; }
.legal-details div { display: flex; gap: 12px; margin: 4px 0; }
.legal-details dt { font-weight: 600; min-width: 160px; }
.legal-details dd { margin: 0; }
.legal-nav { margin: 16px 0; text-align: center; line-height: 2; }
.shop-sections { margin: 8px 0 0; font-weight: 600; }
.shop-section { margin: 0 0 28px; scroll-margin-top: 72px; }
.shop-section h2 { font-size: 1.25rem; margin: 0 0 12px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.product-card { display: flex; flex-direction: column; gap: 8px; background: var(--flyt-card); border: 1px solid var(--flyt-border); border-radius: 12px; padding: 12px; }
.product-card:hover { border-color: var(--flyt-border-strong); }
.product-card-link { display: flex; flex-direction: column; gap: 4px; color: var(--flyt-text); text-decoration: none; }
.product-card-link:hover { color: var(--flyt-text); }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.add-form-inline { margin: 0; }
.add-form-inline button { width: auto; margin: 0; padding: 8px 12px; font-size: 0.85rem; }
.product-thumb, .product-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--flyt-bg); margin-bottom: 6px; }
.product-image { border: 1px solid var(--flyt-border); border-radius: 12px; }
.shop-no-image { display: flex; align-items: center; justify-content: center; }
.product-card-name { font-weight: 600; }
.product-card-size { font-size: 0.85rem; color: var(--flyt-muted); }
.product-card-price { font-weight: 600; }
.product-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .product-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.product-price { font-size: 1.5rem; font-weight: 700; margin: 8px 0 4px; }
.product-text { white-space: pre-line; font-size: 0.92rem; }
.shop-narrow { max-width: 560px; margin: 0 auto; }
.shop-legal { max-width: 720px; margin: 0 auto; }
.shop-legal h2 { color: var(--flyt-text); font-weight: 600; margin: 20px 0 6px; }
.shop-details div { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--flyt-border); }
.shop-details dt { width: 170px; flex-shrink: 0; color: var(--flyt-muted); }
.shop-details dd { margin: 0; }
.shop-not-set { color: var(--flyt-danger); font-weight: 600; }
.shop-footer { border-top: 1px solid var(--flyt-border); background: var(--flyt-card); }
.shop-footer-inner { max-width: 960px; margin: 0 auto; padding: 20px 16px 32px; font-size: 0.82rem; color: var(--flyt-muted); }
.shop-footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.admin-product-form textarea { min-height: 90px; }
.admin-product-form .check { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: var(--flyt-text); }
.admin-product-form .check input { width: auto; }

/* The box bar: sticks under the top of the screen on every shop page. */
.box-bar { position: sticky; top: 0; z-index: 10; background: var(--flyt-ink); color: #ffffff; box-shadow: 0 2px 8px rgba(11, 21, 18, 0.18); }
.box-bar-inner { max-width: 960px; margin: 0 auto; padding: 10px 16px; }
.box-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.box-bar-size { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; line-height: 1.3; }
.box-bar .muted, .box-bar-detail, .box-bar-hint { color: var(--flyt-on-navy); }
.box-bar-detail { font-size: 0.82rem; }
.box-bar-hint { font-size: 0.8rem; margin-top: 4px; }
.box-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 8px; background: #9EE6C4; color: var(--flyt-ink); font-weight: 700; }
.box-bar-btn { width: auto; margin: 0; padding: 8px 14px; background: #ffffff; color: var(--flyt-ink); font-size: 0.88rem; white-space: nowrap; }
.box-bar-btn:hover { background: var(--flyt-bg); color: var(--flyt-ink); }
.box-notice { font-size: 0.85rem; margin-bottom: 6px; color: #9EE6C4; }
.box-notice-error { color: #ffb4ab; }
.box-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--flyt-border); }
.box-line-name { flex: 1; color: var(--flyt-text); text-decoration: none; font-weight: 600; }
.box-line-qty { margin: 0; display: flex; gap: 6px; }
.box-line-qty select { width: auto; padding: 6px 8px; }
.box-line-qty button { margin: 0; }
.box-line-total { min-width: 80px; text-align: right; }
.box-line-delete, .box-empty { margin: 0; }
.box-empty { margin-top: 12px; text-align: center; }
.box-sizes .box-current td { background: var(--flyt-primary-soft); }

/* The buyer's delivery address on a paid request (dashboard). */
.ship-to { margin: 6px 0; font-size: 14px; }
.ship-to-label { display: block; color: var(--flyt-muted); font-size: 12px; }
.ship-to address { font-style: normal; }
.stripe-embed .field-label { margin: 12px 0 6px; font-weight: 600; }
.method-form fieldset.address { border: 0; padding: 0; margin: 0 0 16px; }
.method-form fieldset.address legend { font-weight: 600; margin-bottom: 6px; }
.protection ul { margin: 4px 0 0; padding-left: 18px; }
.protection li { margin: 2px 0; }

/* Invoice (/pay/:id/invoice, src/invoice.js) */
.invoice h2 { font-size: 15px; margin: 18px 0 6px; }
.invoice-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0; }
.invoice-facts dt { color: var(--muted, #5b6762); }
.invoice-facts dd { margin: 0; }
.invoice-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.invoice-items th, .invoice-items td { padding: 7px 4px; border-bottom: 1px solid #e6e2d9; text-align: left; vertical-align: top; }
.invoice-items .num { text-align: right; white-space: nowrap; }
.invoice-items tfoot td { border-bottom: none; }
.invoice-total td { font-weight: 700; border-top: 2px solid #0B1512; }
@media print {
  .no-print, .lang-switcher, .checkout-hero, [data-staging-footer] { display: none !important; }
  .invoice { box-shadow: none; border: none; }
}
.invoice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invoice-head h1 { margin: 0; }
.invoice-actions { display: grid; gap: 8px; margin-top: 14px; }
.share-actions > :nth-child(3) { grid-column: span 2; }
.hero-invoice { display: inline-block; margin-top: 8px; font-size: 0.85rem; color: var(--flyt-on-navy); text-decoration: underline; }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 2px 0; }

/* Admin → Vendors: a fee (total % + minimum) with its customer/vendor split
   slider (migration 029). Two aligned columns on a laptop, one on a phone. */
.admin-grid .card-wide { grid-column: 1 / -1; }
/* A vendor in Admin (#1284): two columns that stack their own cards, so a short card never stretches to
   its neighbour's height; one column on a phone. */
.admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: 16px; }
.admin-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-col .card { margin-bottom: 0; }
.admin-grid-after { margin-top: 16px; }
@media (max-width: 760px) { .admin-columns { grid-template-columns: 1fr; } }
/* One payment in Admin (/admin/requests/:id): full-width sections, label/value pairs two to a
   row on a wide screen, long ids and hashes on a row of their own, and the money as two
   statement columns (Charge, Payout) with amounts right-aligned. */
.detail-stack { grid-template-columns: minmax(0, 1fr); }
.detail-stack .card h3 { margin: 0 0 6px; font-size: 1rem; }
.kv-cols { gap: 10px 24px; }
.kv-cols dd.kv-wide, .kv-ref dd { overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .kv-cols { grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); }
  .kv-cols dd:not(.kv-wide) { overflow-wrap: normal; }
  .kv-cols dt.kv-wide { grid-column: 1; }
  .kv-cols dd.kv-wide { grid-column: 2 / -1; }
}
.money-split { display: grid; gap: 16px 40px; }
@media (min-width: 720px) { .money-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.statement { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; }
.statement dt, .statement dd { padding: 7px 0; border-bottom: 1px solid var(--flyt-border); }
.statement dt { color: var(--flyt-muted); padding-right: 16px; }
.statement dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kv-ref { margin-top: 14px; }
.fee-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; align-items: end; }
.fee-fields label { margin-top: 14px; font-size: 0.95rem; }
.fee-fields input { font-size: 1.05rem; }
.fee-fields-note { margin: 6px 0 0; }
.fee-flow-title { margin: 18px 0 0; font-size: 1rem; font-weight: 600; }
.fee-flow-title:first-child { margin-top: 0; }
.fee-split { margin: 18px 0 8px; }
/* How much of Flyt's fee the vendor covers (#1100): − amount + in one row. */
.fee-split-q { margin: 0 0 10px; font-size: 1rem; font-weight: 600; color: var(--flyt-ink); }
.fee-cover { display: flex; align-items: center; gap: 12px; }
.fee-step {
  flex: 0 0 auto; width: 52px; height: 52px; margin: 0; padding: 0;
  border-radius: 50%; border: 2px solid var(--flyt-primary); background: #fff; color: var(--flyt-primary);
  font-size: 1.7rem; line-height: 1; font-weight: 600; cursor: pointer;
}
.fee-step:hover:not(:disabled) { background: var(--flyt-primary); color: #fff; }
.fee-step:disabled, .fee-step:disabled:hover { background: #fff; border-color: var(--flyt-border); color: var(--flyt-muted); cursor: default; }
.fee-step:focus-visible { outline: 3px solid var(--flyt-primary-soft, #cfe8de); outline-offset: 2px; }
.fee-cover-value { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.fee-cover-value strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; color: var(--flyt-ink); }
.fee-cover-value span { font-size: 0.95rem; color: var(--flyt-muted); }
.fee-split-note { margin: 10px 0 0; }
.fee-split-note strong { font-variant-numeric: tabular-nums; }

/* Checkout: what the buyer is paying for, above the price breakdown. */
.order-card .order-label, [data-parcel] .order-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--flyt-muted); margin-bottom: 6px; }
.order-card .order-item { font-size: 1.35rem; font-weight: 700; line-height: 1.3; color: var(--flyt-ink); overflow-wrap: anywhere; white-space: pre-line; }
.order-card .order-meta { margin: 14px 0 0; display: grid; gap: 6px; }
.order-card .order-meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.order-card .order-meta dt { color: var(--flyt-muted); }
.order-card .order-meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

/* New-link fee preview in two parts (2026-10-10): what the buyer pays and
   what the vendor receives, each labelled; grey example figures until the
   vendor types an amount. */
.fee-section + .fee-section { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--flyt-border); }
.fee-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; vertical-align: middle; background: var(--flyt-primary-soft); color: var(--flyt-primary); }
.fee-section-vendor .fee-tag { background: var(--flyt-surface, #fff); color: var(--flyt-muted); border: 1px solid var(--flyt-border); }
.fee-example-note { margin: 0 0 10px; font-size: 0.85rem; color: var(--flyt-muted); font-style: italic; }
.fee-example-note[hidden] { display: none; }
/* Fine print (Bitcoin payout costs, 2026-10-11): present, not prominent. */
.fee-fineprint { margin: 10px 0 0; font-size: 0.75rem; line-height: 1.4; color: var(--flyt-muted); }
.fee-preview.is-example .fee-line > span:last-child,
.fee-preview.is-example .fee-rule { color: #a3a6a1; font-style: italic; }

/* New payment link: item lines (2026-10-10). Qty | item | unit price | ×
   on a laptop; on a phone the item name takes its own line. */
.items { border: 0; padding: 0; margin: 14px 0 0; }
.items legend { font-size: 0.85rem; color: var(--flyt-muted); padding: 0; margin-bottom: 4px; }
.item-row { display: grid; grid-template-columns: 72px 1fr 120px 36px; gap: 8px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--flyt-border); }
.item-row label { margin: 0 0 4px; font-size: 0.78rem; }
.item-row input { margin: 0; }
.item-remove { width: 36px; height: 40px; margin: 0; padding: 0; border-radius: 8px; background: transparent; color: var(--flyt-muted); border: 1px solid var(--flyt-border); font-size: 1.2rem; line-height: 1; }
.item-remove[hidden] { visibility: hidden; display: block; }
.item-add { width: auto; margin: 10px 0 0; padding: 8px 14px; background: transparent; color: var(--flyt-primary); border: 1px dashed var(--flyt-primary); }
.item-add[hidden] { display: none; }
.items-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .item-row { grid-template-columns: 72px 1fr 36px; grid-template-areas: "name name name" "qty price remove"; }
  .item-row .item-name { grid-area: name; }
  .item-row .item-qty { grid-area: qty; }
  .item-row .item-price { grid-area: price; }
  .item-row .item-remove { grid-area: remove; }
}

/* Checkout: the item lines in the "You're paying for" card. */
.order-lines { list-style: none; margin: 0; padding: 0; }
.order-lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 1.15rem; font-weight: 600; color: var(--flyt-ink); border-bottom: 1px solid var(--flyt-border); }
.order-lines li:last-child { border-bottom: 0; }
.order-lines .ol-qty { color: var(--flyt-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.order-lines .ol-name { overflow-wrap: anywhere; }
.order-lines .ol-price { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* The buyer's order page (/track/:token): Paid → Shipped → Delivered. */
.track-steps { list-style: none; padding: 0; margin: 14px 0 0; }
.track-step { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--flyt-muted); }
.track-step.done { color: var(--flyt-ink); font-weight: 600; }
.track-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--flyt-border-strong); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.track-step.done .track-dot { background: var(--flyt-primary); border-color: var(--flyt-primary); color: #fff; }
.track-dot svg { width: 14px; height: 14px; }
[data-parcel] .btn { display: block; text-align: center; margin-top: 8px; }

/* Vendor pages (#384): the tab bar under the top bar stays at the top while
   the page scrolls; on a laptop the page is up to 1120 px wide, the payment
   list beside the new-link form and the settings cards in a grid. */
.topbar-vendor, .wrap-vendor { max-width: 1120px; }
.tabbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--flyt-card);
  border-bottom: 1px solid var(--flyt-border);
  box-shadow: 0 1px 4px rgba(11, 21, 18, 0.06);
}
.tabbar-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 8px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabbar-inner::-webkit-scrollbar { display: none; }
.tabbar-inner.topbar-wide { max-width: 960px; }
.tabbar-inner.topbar-vendor { max-width: 1120px; }
.tab {
  flex: 0 0 auto;
  padding: 12px 10px 10px;
  font-size: 0.9rem;
  color: var(--flyt-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tab:hover { color: var(--flyt-text); }
.tab.active { color: var(--flyt-text); font-weight: 600; border-bottom-color: var(--flyt-primary); }
.tab-logout { margin-left: auto; font-size: 0.8rem; }
@media (max-width: 420px) {
  .tab { padding: 12px 7px 10px; font-size: 0.85rem; }
}
.dash-cols, .dash-grid { display: block; }
@media (min-width: 900px) {
  .dash-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
  .dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .dash-grid > .card { margin-bottom: 0; }
}
.kv-list { margin: 0; }
.kv-list div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--flyt-border); font-size: 0.9rem; }
.kv-list div:last-child { border-bottom: 0; }
.kv-list dt { color: var(--flyt-muted); }
.kv-list dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

/* Admin: the card flow's fee grid per currency × payout rail (#702). */
.fee-grids { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; margin-top: 10px; }
.fee-grid { width: 100%; border-collapse: collapse; }
.fee-grid caption { text-align: left; font-weight: 600; font-size: 0.95rem; padding-bottom: 4px; }
.fee-grid th, .fee-grid td { padding: 4px 6px 4px 0; text-align: left; font-size: 0.9rem; }
.fee-grid th[scope="row"] { font-weight: 500; white-space: nowrap; }
.fee-grid input { width: 100%; min-width: 0; margin: 0; font-size: 1rem; }

/* A fund vendor's Overview and Payments (#1163): plain tables that scroll sideways on a phone. */
.fund-table-wrap { overflow-x: auto; }
.fund-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.fund-table th, .fund-table td { padding: 8px 10px 8px 0; text-align: left; border-bottom: 1px solid var(--flyt-border); white-space: nowrap; }
.fund-table thead th { font-weight: 600; }
.fund-table td:nth-child(n+3) { font-variant-numeric: tabular-nums; }
.fund-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.fund-filters > div { flex: 1 1 160px; }
.fund-filters label { margin-top: 0; }
.fund-filters input, .fund-filters select, .fund-filters button { width: 100%; margin: 0; }
.fund-filters + .hint { margin: 12px 0 16px; }
.fund-table-wrap + .hint { margin-top: 14px; }

/* --- Admin: readable for Henrik (#766, 2026-10-23: "I cannot read that grey tiny text, make sure all
   information that matters are readable for me, if small you need to use more contrast to compensate").
   Only pages with <body class="admin"> (src/adminViews.js adminLayout, the admin login): every text colour
   at least 7:1 against what it sits on and nothing under 15px; vendor and buyer pages keep the look above
   (tests/vendor-app/adminReadable.test.js holds both). A rule above that sets a font under 15px gets its
   selector added to the list below. --- */
body.admin {
  --flyt-muted: #39433F;
  --flyt-faint: #39433F;
  --flyt-primary: #08402F;
  --flyt-primary-hover: #052A1F;
  --flyt-accent: var(--flyt-primary);
  --flyt-ok: #0A4A2B;
  --flyt-warn: #5C3C00;
  --flyt-danger: #8A1A12;
}
body.admin :is(
  .brand-by, p.hint, label, .error, .notice, .link-box, .lang-link, .lang-in-progress-notice, .steps-left,
  .steps-bar, .step-done, .step-done .step-detail, .step-later, .step-later .step-note, .choices legend,
  label.choice span, fieldset.rail-fields .field-label, .account-row, .tile-label, .tile-sub, .request-meta,
  .status, .btn-small, .copy-btn, .delete-btn, .qr-toggle, .ship-form button,
  .delivered-form .delivered-check, .row-hint, .same-parcel legend, .same-parcel label, .ship-edit summary,
  .share-total-label, .share-sub, .next-steps, .fee-note, .fee-rule, .fee-partner, .fee-hint, .menu-item,
  .checkout-hero .secure, .hero-pay-to, .hero-desc, .price-summary div, .checkout-body .price-hint,
  .methods legend, .method-detail, .protection, .checkout-foot, .small, .admin-fee-form button, .admin-nav a,
  .segmented a, .stat-label, .stat-sub, .pill, .flash, .kv, .table, .payout-line, .shop-currency a,
  .add-form-inline button, .product-card-size, .product-text, .shop-footer-inner, .box-bar-size,
  .box-bar-detail, .box-bar-hint, .box-bar-btn, .box-notice, .ship-to, .ship-to-label, .invoice-items,
  .hero-invoice, .order-card .order-label, [data-parcel] .order-label, .fee-tag, .fee-example-note,
  .fee-fineprint, .items legend, .item-row label, .tab, .tab-logout, .kv-list div, .fee-grid th,
  .fee-grid td, .statement, .order-type-question, a.choice.order-type-choice, a.choice.order-type-choice strong,
  a.choice.order-type-choice span, .order-type-chip .tag
) { font-size: 15px; }
body.admin code { font-size: max(15px, 0.85em); }
/* The staging footer carries its look inline (src/stagingFooter.js). */
body.admin .staging-footer { font-size: 15px !important; color: #5C3C00 !important; }

