/* =====================================================================
   FEATURES.CSS: forms, newsletter, help center, lab reports, wholesale,
   accounts, admin inbox, checkout additions.

   Ported from Retabionix's store.css on 8 Oct 2026 and redrawn in Derby
   City's tokens. Colors come from tokens.css only.
   ===================================================================== */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Forms -------------------------------------------------------------- */
.fform { margin: 18px 0 8px; }
.fform--card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-card); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ffield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ffield--wide { grid-column: 1 / -1; }
.ffield label { font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.ffield__opt { text-transform: none; letter-spacing: 0; font-family: var(--font); }
.ffield input, .ffield select, .ffield textarea, .help__search {
  width: 100%; min-height: 48px; padding: 12px 14px; font: 16px/1.4 var(--font); color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.ffield textarea { resize: vertical; min-height: 96px; }
.ffield input:focus, .ffield select:focus, .ffield textarea:focus, .help__search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ffield.is-bad input, .ffield.is-bad select, .ffield.is-bad textarea { border-color: var(--text-error); }
.ffield__err { font-size: 12px; color: var(--text-error); }
.ffield__hint { margin: 0; font-size: 12px; color: var(--text-dim); }
.fattest { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0 14px; }
.fattest legend { padding: 0 6px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.fcheck { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--text); cursor: pointer; }
.fcheck input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.fnote { font-size: 13px; color: var(--text-dim); margin: 14px 0; }
.fstatus { margin: 10px 0 0; font-size: 14px; }
.fstatus:empty { display: none; }
.fstatus.is-bad { color: var(--text-error); }
.fstatus.is-ok { color: var(--text); }
.fdone { margin: 18px 0; padding: 18px 20px; border-radius: var(--radius-sm); border-left: 3px solid var(--accent); background: var(--surface-hover); color: var(--text); font-size: 15px; line-height: 1.6; }
.prose .fform .ffield label { margin: 0; }
.prose .fform p { margin-bottom: 0; }
.prose .fform .fnote { margin: 14px 0; }

/* ---- Newsletter, in the dark footer --------------------------------------
   Reuses .signup's input look; the grid becomes a column so the consent
   box and the status line sit under the row. */
.signup.news { display: block; }
.news__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.signup.news .ffield__err { margin-top: 6px; color: #E39B8F; }
.news__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--band-body); cursor: pointer; max-width: 34rem; }
.signup .news__consent input { width: 18px; height: 18px; min-width: 0; padding: 0; margin-top: 2px; flex: none; border-radius: 4px; accent-color: var(--accent-on-dark); }
.signup.news .fstatus { color: var(--band-body); }
.signup.news .fstatus.is-bad { color: #E39B8F; }
.site-footer--dark .fdone { background: rgba(251,246,236,.06); color: var(--band-ink); border-left-color: var(--accent-on-dark); }
@media (max-width: 860px) { .news__row { grid-template-columns: minmax(0, 1fr); } }

/* ---- Help widget: bottom right ------------------------------------------ */
.help { position: fixed; right: 16px; bottom: 16px; z-index: calc(var(--z-drawer) - 10); }
.help__toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; cursor: pointer;
  border: 0; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink);
  font: var(--fw-med) 15px/1 var(--font-display); box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .45);
}
.help__toggle svg { width: 22px; height: 22px; }
.help.is-open .help__toggle { display: none; }
.help__panel {
  position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
}
.help__panel[hidden] { display: none; }
.help__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 12px; border-bottom: 1px solid var(--line-soft); }
.help__title { font: var(--fw-display) 19px/1.2 var(--font-display); color: var(--text); }
.help__sub { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.help__view { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 18px; overflow-y: auto; }
.help__view[hidden] { display: none; }
.help__list { display: flex; flex-direction: column; gap: 6px; }
.help__item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg); }
.help__item summary { cursor: pointer; padding: 12px 14px; min-height: 44px; font-size: 14px; color: var(--text); list-style: none; }
.help__item summary::-webkit-details-marker { display: none; }
.help__item[open] summary { color: var(--accent-text); }
.help__ans { padding: 0 14px 12px; font-size: 13px; line-height: 1.6; color: var(--text-body); }
.help__ans p { margin: 0 0 8px; }
.help__ans a { color: var(--accent-text); }
.help__none { font-size: 13px; color: var(--text-dim); }
.help__back { align-self: flex-start; background: none; border: 0; color: var(--text-dim); cursor: pointer; min-height: 44px; padding: 0; font-size: 13px; }
.help .fform { margin: 0; }
.help .fgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.help .fnote { font-size: 12px; margin: 10px 0; }
.help .btn { width: 100%; }
/* Product pages: lift the help button above the sticky add-to-cart bar. */
body:has(.stickybar.is-on) .help { bottom: 92px; }
@media (max-width: 640px) {
  .help__toggle span { display: none; }
  .help__toggle { padding: 0; width: 52px; height: 52px; justify-content: center; }
}

/* ---- Lab report cards and library --------------------------------------- */
.coa__intro { max-width: 64ch; margin: -18px 0 22px; color: var(--text-body); }
.coa__empty { padding: 20px 22px; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--text-dim); max-width: 760px; background: var(--panel); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.rcard {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 22px; background: var(--panel);
  border: 1px solid var(--line-soft); border-left: 3px solid var(--line); border-radius: var(--radius-sm);
}
.rcard[hidden] { display: none; }
.rcard--lot { border-left-color: var(--accent); }
.rcard__kind { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.rcard--lot .rcard__kind { color: var(--accent-text); }
.rcard__kind span { color: var(--text-dim); letter-spacing: .04em; }
.rcard__title { font-size: 19px; margin: 0; }
.rcard__title a { text-decoration: none; color: var(--text); }
.rcard__title a:hover { color: var(--accent-text); }
.rcard__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.rcard__meta dt, .rcard__res dt { font: 500 var(--fs-micro)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.rcard__meta dd { margin: 3px 0 0; font: 500 13px/1.35 var(--font-mono); color: var(--text); overflow-wrap: anywhere; }
.rcard__test { margin: 0; font-size: 13px; color: var(--text-dim); }
.rcard__results { margin: 0; border-top: 1px solid var(--line-faint); }
.rcard__res { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-faint); }
.rcard__res dt { padding-top: 2px; }
.rcard__res dd { margin: 0; font: 600 14px/1.35 var(--font-mono); color: var(--text); text-align: right; }
.rcard__note, .rcard__rel { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-body); }
.rcard__verify { margin-top: auto; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-alt); font-size: 13px; line-height: 1.6; color: var(--text); }
.rcard__verify span { display: block; font: 500 var(--fs-micro)/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.rcard__verify a { color: var(--accent-text); }
.rcard__verify b { font-family: var(--font-mono); font-weight: 600; overflow-wrap: anywhere; }
.rcard__file { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.rsearch { max-width: 640px; margin: 0 0 24px; }
.rsearch__label { display: block; font: 500 12px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.rsearch__input { width: 100%; min-height: 50px; padding: 12px 18px; font: 16px var(--font); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.rsearch__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.rsearch__status { margin: 8px 0 0; font-size: 13px; color: var(--text-dim); }
@media (max-width: 480px) { .rcard__meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---- Wholesale ------------------------------------------------------------ */
.wstats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wstats li { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.wstats b { display: block; font: var(--fw-display) 40px/1 var(--font-display); color: var(--accent-text); letter-spacing: -.03em; }
.wstats span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-body); }
.wbens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wben { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.wben b { display: block; font: var(--fw-display) 18px/1.25 var(--font-display); color: var(--text); margin-bottom: 8px; }
.wben span { font-size: 14px; color: var(--text-body); }
.wsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wstep { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.wstep__n { font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .12em; color: var(--accent-text); }
.wstep h3 { margin: 12px 0 8px; font-size: 20px; }
.wstep p { margin: 0; font-size: 14px; color: var(--text-body); }
.wfit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wfit__col { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.wlist { list-style: none; margin: 8px 0 0; padding: 0; }
.wlist li { position: relative; padding: 9px 0 9px 28px; border-bottom: 1px solid var(--line-faint); font-size: 15px; color: var(--text); }
.wlist li::before { position: absolute; left: 0; top: 9px; font-weight: 700; }
.wlist--yes li::before { content: "\2713"; color: #3F7D52; }
.wlist--no li::before { content: "\2715"; color: var(--text-error); }
.wfit__note { margin: 14px 0 0; font-size: 13px; color: var(--text-dim); }
.wapply { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.wapply__copy { position: sticky; top: 120px; }
.wapply__copy h2 { margin: 10px 0 14px; }
.wapply__small { font-size: 13px; color: var(--text-dim); }
.wapply__small a { color: var(--accent-text); }
@media (max-width: 1024px) {
  .wstats, .wbens, .wsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wapply { grid-template-columns: minmax(0, 1fr); }
  .wapply__copy { position: static; }
}
@media (max-width: 640px) {
  .fgrid, .wfit, .wbens, .wsteps { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Account -------------------------------------------------------------- */
.acct { display: flex; flex-direction: column; gap: 18px; }
.acct--narrow { max-width: 520px; }
.acct__intro p { margin: 0 0 6px; color: var(--text-body); max-width: 68ch; }
.acct__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.acct__card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.acct__card .fform { margin: 8px 0 0; }
.acct__card .btn--block { margin-top: 16px; }
.acct__h { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 6px; }
.acct__lede { margin: 0; color: var(--text-dim); }
.acct__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.acct__stat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.acct__stat p { margin: 8px 0 0; color: var(--text-body); }
.acct__stat .btn { margin-top: 12px; }
.acct__big { font: var(--fw-display) clamp(34px, 4vw, 48px)/1.1 var(--font-display); color: var(--text); margin-top: 8px; }
.acct__big--word { font-size: clamp(24px, 3vw, 32px); }
.acct__orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acct__order { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--panel); }
.acct__orderhead { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.acct__status { font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.acct__ordermeta { margin: 6px 0 0; font-size: 14px; color: var(--text-body); overflow-wrap: anywhere; }
.acct__ledger summary { cursor: pointer; font-weight: 600; color: var(--text); }
.acct__ledger ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-body); font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--accent-text); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) {
  .acct__grid, .acct__stats { grid-template-columns: minmax(0, 1fr); }
  .acct__card .fgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Checkout: Terms box, opt-ins, reward points --------------------------- */
.cfield--check { margin-top: -4px; }
.cfield__check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: var(--fs-small); color: var(--text); min-height: 44px; }
.cfield__check input { accent-color: var(--accent); width: 20px; height: 20px; margin-top: 1px; flex: none; }
.cfield__check a { color: var(--accent-text); }
.cfield__fine { font-size: 12px; line-height: 1.5; color: var(--text-faint); margin: 6px 0 0 30px; max-width: 70ch; }
/* Promotion codes at checkout */
.cocoupon { margin: 12px 0 0; font-size: 14px; color: var(--text-body); }
.cocoupon__row { display: flex; gap: 8px; }
.cocoupon__row input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; font: 15px var(--font); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); text-transform: uppercase; }
.cocoupon__apply { flex: none; min-height: 44px; padding: 0 18px; }   /* the store's button padding leaves the field too narrow at phone width */
.cocoupon__chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; }
.cocoupon__remove { min-height: 44px; padding: 0 8px; background: none; border: 0; color: var(--accent-text); font: inherit; font-weight: 500; cursor: pointer; }
.cocoupon__note { margin: 0 0 8px; font-size: 13px; color: var(--text-faint); }
.corewards { margin: 12px 0 0; font-size: 14px; color: var(--text-body); }
.corewards p { margin: 0 0 8px; }
.corewards a { color: var(--accent-text); }
.corewards__use { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.corewards__use select { min-height: 40px; padding: 6px 10px; font: 15px var(--font); color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cocredit__use { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; color: var(--text); }
.cocredit__use input { accent-color: var(--accent); width: 20px; height: 20px; flex: none; }

/* ---- Account: store credit, saved addresses, order again, returns --------- */
.acct__credit details { margin-top: 12px; }
.acct__topup summary, .acct__return summary { cursor: pointer; font-weight: 600; color: var(--accent-text); min-height: 44px; display: flex; align-items: center; }
.acct__inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0 0; }
.acct__inline .ffield { flex: 1 1 160px; }
.acct__actions { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin-top: 10px; }
.acct__actions .linkbtn { margin-top: 0; min-height: 44px; }
.acct__again { min-height: 44px; }
.acct__againnote { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.acct__againnote p { margin: 0; }
.acct__addrs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acct__addr { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.acct__addrform { margin-top: 10px; }
.acct__check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 8px; cursor: pointer; }
.acct__check input { accent-color: var(--accent); width: 20px; height: 20px; flex: none; }
.acct__return { margin-top: 8px; }
.acct__retline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct__retline select { min-height: 44px; min-width: 72px; }
@media (max-width: 760px) {
  .acct__book .fgrid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Admin inbox ------------------------------------------------------------ */
.admin-body { background: var(--bg); }
.admin { padding-top: 28px; padding-bottom: 60px; }
.admin__top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font: 500 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.admin__top .logo { height: 32px; width: auto; }
.admin__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-f { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 500 13px var(--font); cursor: pointer; }
.chip-f.is-on { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.admin__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; color: var(--text-dim); }
.admin__wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--panel); }
.admin__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin__table th { text-align: left; padding: 10px 12px; font: 500 var(--fs-micro)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin__table td { padding: 10px 12px; border-bottom: 1px solid var(--line-faint); vertical-align: top; color: var(--text); }
.admin__long { min-width: 280px; white-space: pre-wrap; }
.admin__muted { color: var(--text-dim); }

/* Affiliates: the kit's assets/css/affiliates.css, loaded by those pages only. */

/* Where the menu button shows (1024px and down), help opens from the menu
   instead: a floating button covered the order total on phones (Pinnacle,
   24 Oct 2026). The panel itself still opens in the corner when asked for. */
@media (max-width: 1024px) {
  .help__toggle { display: none; }
}

/* ---- Checkout: Contact and Payment, calmer (owner, 16 Nov 2026) --------
   No spaced capitals on checkout, headings and short lines balanced, body
   text pretty, one even rhythm in Contact, and the Payment section as
   plain words in a light box, not a dashed panel with a capitals label. */
.coform__h, .cosum__h { text-wrap: balance; }
.cfield__fine, .cocoupon__note { text-wrap: pretty; }
.coform > .coform__fine, .coform__note, .corewards p, .cartsum__fine { text-wrap: balance; }
/* Tick-box labels are short lines: balanced, so "offers." never sits alone. */
.cfield__check span { text-wrap: balance; }
.cfield__check a { white-space: nowrap; }
.cosum__h { margin: 0 0 6px; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.cartsum .cosum__h + .cosum__line { margin-top: 8px; }

/* Contact: email and phone one width; the consent boxes lined up with
   their words and the SMS fine print under its label; an error row only
   when there is an error, so every gap in the form is the same. */
.coform .cfields { row-gap: 22px; }
.coform .cfield__err:empty { min-height: 0; margin-top: 0; }
.coform .cfield--check { margin-top: 0; }
.cfield__check { gap: 10px; }
.cfield__check input { margin: 1px 0 0; }
.cfield--check .cfield__fine { margin: 6px 0 0 28px; }
/* The same gap above Place order, now the Terms box has no empty error row. */
.coform > button[type="submit"] { margin-top: 22px; }

/* Signed in: the account's email, read-only, and one short line under it
   with the sign-out link beside it (under it on a phone), then the
   form's own gap before the next box. */
.cfield.is-readonly .cfield__input { background: var(--surface); color: var(--text); cursor: default; }
.cfield.is-readonly .cfield__input:focus { outline-color: var(--line); border-color: var(--line); }
.coacct:not(:empty) { margin: 22px 0; }
/* Empty (no email yet): still the form's gap between the email and the next box. */
.coacct:empty { margin: 22px 0 0; }
.coacct:has(> .coacct__in) { margin: 2px 0 12px; }
.coacct__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 0; max-width: none; font-size: 14px; color: var(--text-body, var(--text)); }
.coacct__intext { text-wrap: pretty; }
.coacct__in .linkbtn { display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
.coacct .cfields { margin-bottom: 0; }

/* Payment: one plain line and a note, in a light box. */
.copay__wait { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.copay__lead { margin: 0 0 4px; font: var(--fw-bold) 15px/1.35 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--text); text-wrap: balance; }
.copay__note { margin: 0; max-width: 60ch; font-size: var(--fs-small); color: var(--text-dim); text-wrap: balance; }
/* The test-mode box shares the panel: its first line in plain words too. */
.paymock__head { font: var(--fw-bold) 15px/1.35 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--text); }

/* The code box shows codes in capitals as typed; its placeholder is a
   plain word, not a capitals label. */
.cocoupon__row input::placeholder { text-transform: none; letter-spacing: 0; }
/* Footer column heads: plain bold words, not spaced capitals (they show
   on checkout too). */
.footer-col h4 { font: var(--fw-bold) 15px/1.3 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--text); }

/* Phone and tablet: the order summary, with its code box, comes first,
   above Contact (owner, 16 Nov 2026, as Ezranova #50). Under the form it
   sat after Place order, so shoppers never found the code box. Checkout
   stacks at 1024px here (the cart page still at 860px); desktop keeps the
   summary beside the form. */
@media (max-width: 1024px) {
  #checkoutpage .cartgrid { grid-template-columns: 1fr; }
  #checkoutpage .cartgrid > .cartsum { order: -1; position: static; }
}
