/* Checkout and order tracking pages. Builds on /theme.css (colours, fonts, buttons, fields). */
:root { --gut: max(16px, 4vw); }
body { min-height: 100dvh; display: flex; flex-direction: column; }
.dither { flex: 1; }

/* ---------- Top bar ---------- */
.o-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px var(--gut);
  background: var(--paper); border-bottom: 4px solid var(--ink); box-shadow: 0 4px 0 var(--purple-deep);
}
/* Very small phones: a little less space between the header's buttons, so Back, the logo, the language and Account fit */
@media (max-width: 440px) { .o-top .back { max-width: 100px; padding-inline: 9px; white-space: normal; line-height: 1.15; text-align: left; } }   /* "← Back to site" on two lines */
@media (max-width: 360px) { .o-top { gap: 8px; padding-inline: 12px; } .o-top .lm-btn { padding-inline: 6px; } }
.o-top .back { min-height: 40px; padding: 8px 12px; font-size: 12px; flex: none; }
.o-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font: italic 800 clamp(16px, 2.2vw, 22px)/1 var(--f-head); letter-spacing: -0.03em; }
.o-brand img { flex: none; width: 38px; height: 38px; background: #fff; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); transform: rotate(-4deg); }
.o-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-brand .bar-sep { color: var(--blue); font-style: normal; padding: 0 0.06em; }
.o-top .secure { margin-left: auto; flex: none; }

/* ---------- Page ---------- */
.o-wrap { max-width: 1120px; margin: 0 auto; padding: 28px var(--gut) 120px; }
.o-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 22px; }
.o-title h1 { margin: 0; font-size: clamp(34px, 5.4vw, 60px); }
.o-title h1 em { font-style: normal; color: var(--purple); }
.o-title .chip { transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.o-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.o-grid > * { min-width: 0; }

/* ---------- Steps ---------- */
.step { margin-bottom: 22px; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.step-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--purple); color: #fff;
  border-bottom: var(--bw) solid var(--ink);
}
.step-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); font: 700 15px/1 var(--f-mono); }
.step-head h2 { flex: 1; min-width: 0; margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.step-head .edit { --btn-bg: var(--white); --btn-fg: var(--ink); min-height: 34px; padding: 6px 10px; font-size: 11px; box-shadow: 2px 2px 0 var(--ink); }
.step-body { padding: 18px 18px 20px; }
.step-sum { padding: 12px 18px; font-size: 15px; color: var(--ink); background: var(--lav); }
.step-sum b { font-weight: 700; }
.step.done .step-num { background: var(--blue); }
.step.done .step-num::after { content: "✓"; }
.step.done .step-num span { display: none; }
.step.locked { box-shadow: 4px 4px 0 var(--dot); border-color: #b9b1c4; }
.step.locked .step-head { background: var(--paper-2); color: #5f5869; border-color: #b9b1c4; }
.step.locked .step-num { background: var(--white); color: #5f5869; border-color: #b9b1c4; }
.step:not(.open) .step-body { display: none; }
.step.open .step-sum, .step.locked .step-sum { display: none; }
.step-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.step-foot .btn { min-width: 160px; }
.link { padding: 6px 2px; background: none; border: 0; cursor: pointer; color: var(--purple); font: 700 13px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { color: var(--ink); }

/* Basket lines */
.lines { margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--ink); }
.line:first-child { border-top: 0; padding-top: 0; }
.line .thumb { grid-row: span 2; width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--ink); background: var(--gold) url(/giraffe-print.jpg) center / 140px; }
.line .l-name { min-width: 0; font: 800 18px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.line .l-unit { display: block; margin-top: 4px; font: 700 12px/1 var(--f-mono); color: var(--muted); }
.line .l-total { font: 700 17px/1 var(--f-mono); text-align: right; }
.line .l-ctl { grid-column: 2 / 4; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.line .l-note { grid-column: 1 / 4; }
.line .l-note input { min-height: 40px; font-size: 15px; }
.stepper { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); background: var(--white); box-shadow: 2px 2px 0 var(--ink); }
.stepper button { width: 36px; min-height: 36px; background: var(--white); border: 0; font: 700 18px/1 var(--f-mono); cursor: pointer; }
.stepper button:hover { background: var(--gold); }
.stepper output { display: grid; place-items: center; min-width: 34px; background: var(--ink); color: var(--gold); font: 700 15px/1 var(--f-mono); }
.mini { padding: 4px 0; background: none; border: 0; cursor: pointer; font: 700 11px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.mini.danger { color: var(--red); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 3px solid var(--ink); font: 700 14px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.subtotal b { font-size: 22px; letter-spacing: 0; }
/* Basket extras: suggestions between the basket and the subtotal (Admin → Orders → Basket) */
.extras { margin: 6px 0 18px; padding: 14px 14px 16px; background: var(--lav); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--purple); }
.extras h3 { margin: 0 0 12px; font-size: 20px; }
.x-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.x-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px; background: var(--white); border: 2px solid var(--ink); }
.x-pic { flex: none; width: 52px; height: 52px; object-fit: cover; border: 2px solid var(--ink); background: var(--gold) url(/giraffe-print.jpg) center / 110px; }
.x-text { flex: 1; min-width: 0; }
.x-name { display: block; font: 800 15px/1.15 var(--f-head); text-transform: uppercase; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.x-price { display: block; margin-top: 4px; font: 700 13px/1.2 var(--f-mono); }
.x-price small { font-size: 11px; color: var(--muted); }
.x-add { flex: none; min-height: 38px; padding: 6px 10px; font-size: 12px; box-shadow: 3px 3px 0 var(--ink); }
/* Basket-only products with a headline, a description or choices (Giraffe Express, Show Some Love, Bag Talk) */
.x-rich { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
.x-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.x-rich .x-pic { width: 64px; height: 64px; }
img.x-pic { object-fit: contain; background: var(--white); }   /* a real photo: whole, on white (the print stays for no photo) */
/* The uploaded photo, whole: full card width at its own shape (no crop), buttons kept level along the bottom of the row */
.x-banner { display: block; width: 100%; height: auto; aspect-ratio: auto 16 / 10; border: 2px solid var(--ink); background: var(--white); }
.x-rich.has-banner > :last-child { margin-top: auto; }
.x-headline { display: block; margin-top: 4px; font: 700 12px/1.25 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--purple); }
.x-desc { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink); }
.x-wide { width: 100%; }
.x-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.x-choice { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding: 8px 6px; background: var(--gold); border: 2px solid var(--ink); cursor: pointer;
  font: 700 11px/1.15 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); text-align: center; }
.x-c-label { max-width: 100%; overflow-wrap: anywhere; }   /* a long word (a translation, a new choice) wraps inside the button */
.x-choice b { font-size: 14px; letter-spacing: 0; }
.x-choice:hover { background: var(--white); }
.x-choice:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
/* Bag Talk: the message box on the line, always open */
.l-ask { display: grid; gap: 4px; }
.l-ask-label { font: 700 11px/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); }
.l-ask.bad input { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.x-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.empty-basket { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 6px 0; }
.empty-basket p { margin: 0; font-size: 17px; }

/* Pickup */
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 14px 50px;
  background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.opt::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border: 2px solid var(--ink); background: var(--white); }
.opt b { font: 800 19px/1.1 var(--f-head); text-transform: uppercase; }
.opt span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.opt:hover:not(:disabled) { background: var(--lav); }
.opt[aria-pressed="true"] { background: var(--gold); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.opt[aria-pressed="true"]::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--gold); }
.opt:disabled { cursor: not-allowed; border-color: #b9b1c4; box-shadow: 3px 3px 0 var(--dot); background: var(--paper-2); }
.opt:disabled b { color: #5f5869; }
.opt:disabled::before { border-color: #b9b1c4; }
.closed-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; background: var(--gold); border: 2px solid var(--ink); font-size: 15px; line-height: 1.45; }
.closed-note::before { content: "!"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; background: var(--ink); color: var(--gold); font: 700 15px/1 var(--f-mono); }
.closed-note b { font-weight: 700; }
.days { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 10px 2px; margin: 0 -4px 6px -2px; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 78px; padding: 10px 12px;
  background: var(--white); border: 2px solid var(--ink); cursor: pointer;
  font: 700 12px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.day small { font-weight: 400; letter-spacing: 0.02em; color: var(--muted); }
.day:hover { background: var(--lav); }
.day[aria-pressed="true"] { background: var(--purple); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.day[aria-pressed="true"] small { color: var(--gold); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.slot {
  min-height: 44px; padding: 8px 6px; background: var(--white); border: 2px solid var(--ink);
  font: 700 14px/1 var(--f-mono); cursor: pointer; transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.slot:hover:not(:disabled) { background: var(--lav); }
.slot[aria-pressed="true"] { background: var(--blue); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.slot:disabled { color: #9a93a3; border-color: #cbc3d7; text-decoration: line-through; cursor: not-allowed; background: var(--paper-2); }
.group-label { margin: 16px 0 10px; font: 700 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }

/* Details */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fields .wide { grid-column: 1 / -1; }
.field-label .opt-tag { font-weight: 400; color: var(--muted); letter-spacing: 0.02em; text-transform: none; font-family: var(--f-body); }
.err { display: block; margin-top: 6px; color: var(--red); font: 700 12px/1.3 var(--f-mono); }
.invalid { border-color: var(--red) !important; box-shadow: 3px 3px 0 var(--red) !important; }
.allergy { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red); font-size: 14.5px; line-height: 1.45; }
.allergy b { color: var(--red); }
.account-note { margin: 0 0 16px; padding: 10px 14px; background: var(--white); border: 2px solid var(--ink); font-size: 14.5px; line-height: 1.45; }
.account-note a, .link-btn { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; }
input[readonly] { background: transparent; color: var(--muted); }
.remember { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14.5px; cursor: pointer; }
.remember input { width: 22px; height: 22px; accent-color: var(--purple); }
.remember.tick { align-items: flex-start; line-height: 1.4; }
.remember.tick input { flex: none; margin: 0; }
.remember.tick small { display: block; color: var(--muted); font-size: 13px; }
.remember.tick a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
#e-privacy { margin-left: 32px; }
/* Sign in or create an account (checkout → Your details) */
.auth { padding: 18px; background: var(--white); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--purple); }
.auth-title { margin: 0 0 6px; font: 800 20px/1.2 var(--f-head); }
.auth-lead { margin: 0 0 14px; font-size: 14.5px; line-height: 1.45; }
.auth-row { display: flex; gap: 10px; align-items: stretch; }
.auth-row input { flex: 1 1 auto; min-width: 0; }
.auth-row .btn { flex: none; }
.auth-check { margin-top: 12px; min-height: 0; }
.auth-small { margin: 12px 0 0; font-size: 14px; }
.auth .form-error { margin: 12px 0 0; }
#a-code { letter-spacing: 0.3em; font-family: var(--f-mono); }
@media (max-width: 480px) { .auth-row { flex-direction: column; } .auth-row .btn { width: 100%; } }

/* Review */
.review { display: grid; gap: 12px; }
.review-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 15.5px; }
.review-row .k { font: 700 11px/1.3 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.pay-box { margin-top: 18px; padding: 14px 16px; background: var(--lav); border: 2px solid var(--ink); font-size: 15px; line-height: 1.5; }
.pay-box .chip { margin-right: 6px; }
.form-error { margin: 0 0 16px; padding: 12px 14px; background: #ffdad6; border: 2px solid var(--red); color: #93000a; font-weight: 700; }
.place { width: 100%; min-height: 58px; margin-top: 18px; font-size: 16px; }
.small-print { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Summary (right column) ---------- */
.summary { position: sticky; top: 88px; background: var(--white); border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 var(--purple); }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--ink); color: var(--gold); }
.summary-head h2 { margin: 0; font-size: 20px; color: #fff; }
.summary-body { padding: 14px 16px 16px; }
.s-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.s-line span:last-child { font-family: var(--f-mono); font-weight: 700; white-space: nowrap; }
.l-detail { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; white-space: pre-line; color: var(--muted); }
/* Midweek Mix-Up on a line: a green "applied" tag, the Large price struck through, and the saving in the summary */
.l-offer { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 6px; padding: 4px 8px; border: 2px solid var(--ink); background: var(--green); color: #fff;
  font: 700 11px/1.1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink); }
.l-offer::before { content: "✓"; font-size: 12px; }
.l-name .l-offer, .s-line .l-offer, .b-line .l-offer { display: flex; }
.was { display: block; margin-bottom: 4px; font: 700 12px/1 var(--f-mono); color: var(--muted); text-decoration: line-through; }
.l-unit s { margin-left: 6px; }
.s-save { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 8px 10px; border: 2px solid var(--ink); background: color-mix(in srgb, var(--green) 14%, #fff); font: 700 12px/1.2 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.s-save b { color: var(--green); font-size: 14px; letter-spacing: 0; }
.l-opts, .s-opts { display: block; margin-top: 3px; font: 700 12px/1.2 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--purple-deep); }
/* Promo code (checkout basket step) */
.promo { margin-top: 14px; }
.promo-form { display: grid; gap: 6px; }
.promo-row { display: flex; gap: 10px; }
.promo-row input { flex: 1; min-width: 0; font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.promo-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.promo-row .btn { flex: none; min-width: 0; }
.promo-on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 2px solid var(--ink); background: color-mix(in srgb, var(--green) 14%, #fff); font-size: 14.5px; }
.promo-on.none { background: var(--paper-2); }
.promo-tag { padding: 4px 8px; background: var(--ink); color: var(--gold); font: 700 13px/1 var(--f-mono); letter-spacing: 0.06em; }
.promo-what { flex: 1; min-width: 12ch; }
.promo-on b { font-family: var(--f-mono); color: var(--green); }
.promo-on.none .promo-what { color: var(--muted); }
.s-promo span { overflow-wrap: anywhere; }
.s-save + .s-save { margin-top: 6px; }
.s-line .q { font: 700 13px/1 var(--f-mono); color: var(--purple); margin-right: 4px; }
.s-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 3px solid var(--ink); font: 700 13px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.s-total b { font-size: 26px; letter-spacing: 0; }
.s-pickup { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px; background: var(--gold); border: 2px solid var(--ink); font-size: 14.5px; }
.s-pickup b { display: block; font: 700 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.s-where { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.giraffe-peek { position: absolute; right: -10px; top: -58px; width: 74px; transform: rotate(8deg); filter: drop-shadow(3px 3px 0 var(--ink)); pointer-events: none; }

/* Mobile action bar */
.m-bar { display: none; }

@media (max-width: 900px) {
  .o-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; box-shadow: 6px 6px 0 var(--purple); }
  .summary.collapsed .summary-body { display: none; }
  .summary-head { cursor: pointer; }
  .giraffe-peek { display: none; }
}
@media (max-width: 640px) {
  .when, .fields { grid-template-columns: 1fr; }
  .o-top .secure { display: none; }
  .o-top .secure + .lang-pick { margin-left: auto; }   /* the language switch moves to the right */
  .o-wrap { padding-top: 20px; }
  .step-body { padding: 16px 14px 18px; }
  .review-row { grid-template-columns: 1fr auto; }
  .review-row .k { grid-column: 1 / -1; }
  .step-foot .btn { flex: 1; }
  /* Basket extras scroll sideways on a phone, so a long list doesn't push the subtotal down */
  .extras { padding-inline: 12px 0; }
  .x-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78%, 270px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 12px 6px 0; overscroll-behavior-x: contain; }
  .x-item { scroll-snap-align: start; }
  /* The bigger extras cards (photo, headline, description): narrower and tighter, so the section stays well under a
     screen and the next card shows beside it. The description keeps to 3 lines; the photo stays whole. */
  .x-row { grid-auto-columns: min(66%, 228px); }
  .x-rich { gap: 6px; padding: 8px; }
  .x-rich .x-name { font-size: 14px; }
  .x-headline { margin-top: 3px; font-size: 11px; }
  .x-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; line-height: 1.35; }
  .x-choices { gap: 6px; }
  .x-choice { min-height: 46px; padding: 6px 4px; }
}

/* ---------- Account (/account/) ---------- */
.acc .acc-card { max-width: 640px; }
.acc-loading { color: var(--muted); font: 700 13px/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.acc-lead { margin: 0 0 4px; font-size: 15.5px; line-height: 1.5; }
.acc-check { min-height: 65px; margin-top: 18px; }
.acc-code { max-width: 220px; font: 700 26px/1 var(--f-mono) !important; letter-spacing: 0.3em; text-align: center; }
.acc-links { font-size: 14px; color: var(--muted); }
.acc-hello { margin: -6px 0 22px; font-size: 17px; overflow-wrap: anywhere; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.acc-grid > * { min-width: 0; }
.acc-grid .acc-card { max-width: none; }
.acc-orders { list-style: none; margin: 0; padding: 0; }
.acc-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-bottom: 2px dashed var(--paper-2); }
.acc-order:first-child { padding-top: 0; }
.acc-order-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.acc-order-main b { font: 700 16px/1 var(--f-mono); }
.acc-order-meta { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.acc-order-actions { display: flex; gap: 10px; }
.acc-empty { margin: 0; color: var(--muted); }
#more { margin-top: 16px; }
.acc-email p { margin: 0; overflow-wrap: anywhere; }
.acc-saved { margin: 12px 0 0; color: var(--green); font: 700 13px/1.3 var(--f-mono); }
.acc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.acc-danger { background: var(--red); }
#orders-error a { color: inherit; }
@media (max-width: 900px) {
  .acc-grid { grid-template-columns: 1fr; }
}

/* ---------- Long Neck+ (the membership) ---------- */
.ln-card .step-head { background: var(--ink); color: #fff; }
.ln-card { scroll-margin-top: 96px; }   /* the Join banner scrolls here: clear the sticky top bar */
.ln-plus { color: var(--gold); font: 700 1.2em/0 var(--f-mono); vertical-align: -0.02em; }   /* the heading font draws a small +: make it read as one */
/* Account: the Join Long Neck+ banner (account.js drawPromo). Stacked on the sign-in step;
   on the account home (.wide) the picture and the bar sit side by side on wide screens. */
.ln-promo { display: block; max-width: 640px; margin: 0 0 26px; background: var(--ink); color: #fff; text-decoration: none; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--gold); transition: transform 0.15s ease-out, box-shadow 0.15s ease-out; }
.ln-promo[hidden] { display: none; }
.ln-promo:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--gold); }
.ln-promo:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.ln-promo picture, .ln-promo img { display: block; width: 100%; height: auto; }
.ln-promo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 16px 18px; }
.ln-promo-text { flex: 1 1 260px; font-size: 16px; line-height: 1.45; color: #f1ecf7; }
.ln-promo-go { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 #fff; font: 700 14px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.ln-promo.wide { max-width: none; }
@media (min-width: 900px) {
  .ln-promo.wide { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); }
  .ln-promo.wide .ln-promo-bar { flex-direction: column; align-items: flex-start; justify-content: center; padding: 20px 24px; }
  .ln-promo.wide .ln-promo-text { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .ln-promo { transition: none; } .ln-promo:hover { transform: none; } }
.ln-since { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 700 15px/1.2 var(--f-mono); letter-spacing: 0.02em; }
.ln-badge { padding: 5px 9px; background: var(--ink); color: var(--gold); font: 700 12px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--gold); }
.ln-code-in { max-width: 320px; font-family: var(--f-mono) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.06em; }
.ln-join-box { margin-top: 12px; }
.ln-join-box #p-ln-form { margin-top: 6px; }
/* The tag on Long Neck+ only products, and the locked Add button for everyone else */
.ln-tag { display: inline-block; padding: 4px 8px; background: var(--ink); color: var(--gold); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--gold); font: 700 11px/1.1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ln-lock { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 700 12px/1.1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; max-width: 100%; text-align: center; justify-content: center; }
.ln-lock:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.s-member { background: color-mix(in srgb, var(--gold) 30%, #fff) !important; color: var(--ink) !important; }
.s-member b { color: var(--ink) !important; }
/* Tip (checkout, tracking page): added to the total, so not in the savings green */
.s-tip { background: var(--white) !important; color: var(--ink) !important; }
.s-tip b { color: var(--ink) !important; }
.tip-box { margin-top: 18px; }
.tip-box .group-label { margin-top: 0; }
.tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tips .day { min-width: 0; width: 100%; padding: 12px 6px; font-size: 13px; }
.tip-note { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
