/* Customer-facing returns portal — deliberately separate from style.css (the ops
   chrome), and deliberately NOT its own design system either: every value below
   comes from the storefront's tokens so orders.letscusto.com reads as the same
   brand as www.letscusto.com.

   Source of truth: landing-pages/staging/cta/custo-tokens.css + the design
   charter (landing-pages/staging/DESIGN-CHARTER.md), verified against the live
   site 17.09.26:
     body      Poppins 400, black on white
     chrome    Montserrat 600 uppercase, letter-spacing .05em
     announce  mint #A3CBBD ground, black ink
     buttons   #A0D1CA fill + #0D1117 ink, Montserrat 700 13px uppercase, pill
     line      #E4E4E7   muted ink #6E7278   alt surface #F4F4F4
     radii     12 card / 10 control / 999 pill
   The button pair is the theme's sanctioned ATC pair — do not "fix" #0D1117
   back to #000. One red only: #DC3545.                                      */
:root {
  --ink: #000; --ink-muted: #6E7278; --line: #E4E4E7;
  --surface: #fff; --surface-alt: #F4F4F4;
  --mint: #A3CBBD; --mint-strong: #5E9C87; --mint-tint: #EDF6F2; --mint-deep: #3F7A66;
  --btn: #A0D1CA; --btn-ink: #0D1117;
  --red: #DC3545; --red-tint: #FCEDEE;
  --r-card: 12px; --r-control: 10px; --r-pill: 999px;
  --t-h1: 28.8px; --t-h2: 17px; --t-label: 14px; --t-meta: 12px;
  --heading: Montserrat, "Segoe UI", sans-serif;
  --content-w: 660px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.6 Poppins, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint-deep); }

h1 {
  font-family: var(--heading); font-weight: 600; text-transform: uppercase;
  font-size: var(--t-h1); line-height: 1.15; letter-spacing: .01em; margin: 0 0 8px;
}
h2 {
  font-family: var(--heading); font-weight: 600; text-transform: uppercase;
  font-size: var(--t-h2); letter-spacing: .04em; margin: 0 0 14px;
}
p { margin: 0 0 10px; }
small, .sm { font-size: 13.5px; }
.p-muted { color: var(--ink-muted); }
strong { font-weight: 600; }

/* ── chrome ───────────────────────────────────────────────────────────────── */
.p-announce {
  background: var(--mint); color: var(--ink); text-align: center;
  font-family: var(--heading); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; padding: 9px 16px;
}
.p-top {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.p-logo { display: block; line-height: 0; }
.p-logo img { width: 90px; height: 45px; object-fit: contain; }
.p-nav a {
  margin: 0 12px; font-family: var(--heading); font-size: 13px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--mint-deep);
}
.p-nav a:hover { color: var(--ink); }

.p-wrap { max-width: var(--content-w); margin: 0 auto; padding: 30px 16px 48px; }
.p-hero { padding: 0 0 22px; }
.p-hero.small { padding-bottom: 16px; }
.p-hero p { color: var(--ink-muted); }
.p-crumb {
  display: inline-block; font-family: var(--heading); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; text-decoration: none;
}

/* ── cards + forms ────────────────────────────────────────────────────────── */
.p-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px; margin-bottom: 18px;
}
.p-form label {
  display: block; font-family: var(--heading); font-weight: 600; font-size: var(--t-label);
  letter-spacing: .02em; margin-bottom: 16px;
}
.p-form input[type=text], .p-form select, .p-form textarea {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px;
  font: 400 15px/1.5 Poppins, "Segoe UI", sans-serif; letter-spacing: normal;
  border: 1px solid var(--line); border-radius: var(--r-control);
  background: var(--surface); color: var(--ink);
}
.p-form input:focus, .p-form select:focus, .p-form textarea:focus {
  outline: none; border-color: var(--mint-strong); box-shadow: 0 0 0 3px var(--mint-tint);
}
.p-form small {
  display: block; font-family: Poppins, "Segoe UI", sans-serif; font-weight: 400;
  font-size: 12.5px; letter-spacing: normal; color: var(--ink-muted); margin-top: 5px;
}
.p-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 480px) { .p-grid2 { grid-template-columns: 1fr; } }

/* The storefront's ATC pair. */
.p-btn {
  display: inline-block; padding: 14px 28px; background: var(--btn); color: var(--btn-ink);
  font-family: var(--heading); font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; border: 0; border-radius: var(--r-pill); cursor: pointer;
  text-decoration: none; transition: filter .15s;
}
.p-btn:hover { filter: brightness(.94); }
.p-btn.sm { padding: 10px 20px; font-size: 12px; }
.p-btn.big { display: block; width: 100%; text-align: center; margin-top: 16px; }

.p-alert {
  background: var(--red-tint); color: var(--red); border: 1px solid rgba(220, 53, 69, .3);
  padding: 13px 16px; border-radius: var(--r-control); margin-bottom: 16px;
}
.p-ok {
  background: var(--mint-tint); color: var(--mint-deep); border: 1px solid var(--mint);
  padding: 14px 16px; border-radius: var(--r-control); margin-bottom: 18px;
}

.p-terms-link { margin: 16px 0 0; font-size: 13.5px; }
.p-terms, .p-how { padding-left: 20px; margin: 0; }
.p-terms li, .p-how li { margin-bottom: 14px; line-height: 1.65; }
.p-terms li:last-child, .p-how li:last-child { margin-bottom: 0; }
/* The rule leads each bullet in bold; the qualifier that follows steps back a
   shade so the page can be scanned on the bold alone. */
.p-terms { list-style: none; padding-left: 0; }
.p-terms li { position: relative; padding-left: 20px; color: var(--ink-muted); }
.p-terms li::before {
  content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--mint);
}
.p-terms li strong { color: var(--ink); }

/* ── terms: the three numbers, up top ─────────────────────────────────────── */
.p-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.p-fact {
  background: var(--mint-tint); border-radius: var(--r-card); padding: 16px 14px;
  text-align: center;
}
.p-fact strong {
  display: block; font-family: var(--heading); font-weight: 700; font-size: 21px;
  color: var(--mint-deep); letter-spacing: .01em;
}
.p-fact span { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
@media (max-width: 520px) {
  .p-facts { grid-template-columns: 1fr; gap: 8px; }
  .p-fact { display: flex; align-items: baseline; gap: 10px; text-align: left; padding: 12px 16px; }
  .p-fact strong { font-size: 18px; }
  .p-fact span { margin-top: 0; }
}

.p-sect { padding: 20px 22px; }
.p-sect h2 { color: var(--ink); margin-bottom: 14px; }
.p-cta-row { text-align: center; margin: 22px 0 0; }

/* ── order lines ──────────────────────────────────────────────────────────── */
.p-lines { display: flex; flex-direction: column; gap: 12px; }
.p-line { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-control); }
.p-line-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.p-why-row { font-size: 12.5px; color: var(--ink-muted); margin: 10px 0 0;
             padding-top: 10px; border-top: 1px solid var(--line); }
.p-line.no { background: var(--surface-alt); }
.p-line-main { display: flex; flex-direction: column; }
.p-line-main strong { font-family: var(--heading); font-weight: 600; font-size: 15px; }
.p-line-main span { font-size: 13px; color: var(--ink-muted); }
.p-why { font-size: 12.5px; color: var(--ink-muted); text-align: right; max-width: 230px; }
@media (max-width: 520px) {
  .p-line-row { flex-direction: column; align-items: stretch; }
  .p-why { text-align: left; max-width: none; }
}

/* ── choose a kind ────────────────────────────────────────────────────────── */
.p-kinds { display: flex; flex-direction: column; gap: 12px; }
.p-kind {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-control); cursor: pointer;
  font-family: Poppins, "Segoe UI", sans-serif !important; font-weight: 400 !important;
  letter-spacing: normal !important; transition: border-color .15s, background .15s;
}
.p-kind:hover { border-color: var(--mint); }
.p-kind:has(input:checked) { border-color: var(--mint-strong); background: var(--mint-tint); }
.p-kind input { margin-top: 5px; accent-color: var(--mint-deep); }
.p-kind-body { display: flex; flex-direction: column; gap: 4px; }
.p-kind-body strong {
  font-family: var(--heading); font-weight: 600; font-size: 15px; letter-spacing: .02em;
}
.p-kind-body span { font-size: 13.5px; color: var(--ink-muted); }
.p-kind-body span strong { font-family: inherit; font-size: inherit; color: var(--ink); }

/* ── quote ────────────────────────────────────────────────────────────────── */
.p-qtable { width: 100%; border-collapse: collapse; }
.p-qtable td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.p-qtable td.r { text-align: right; font-variant-numeric: tabular-nums; }
.p-qtable tr.tot td {
  border-bottom: 0; padding-top: 12px; font-family: var(--heading); font-weight: 700;
  font-size: 17px; color: var(--mint-deep);
}

.p-check {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: Poppins, "Segoe UI", sans-serif !important; font-weight: 400 !important;
  letter-spacing: normal !important; font-size: 14px;
}
.p-check input { margin-top: 5px; accent-color: var(--mint-deep); }

/* ── status ───────────────────────────────────────────────────────────────── */
.p-pill {
  display: inline-block; font-family: var(--heading); font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px;
  border-radius: var(--r-pill); background: var(--surface-alt); color: var(--ink-muted);
  vertical-align: middle;
}
.p-pill.st-new { background: var(--mint-tint); color: var(--mint-deep); }
.p-pill.st-approved, .p-pill.st-replacement_raised { background: var(--mint); color: var(--ink); }
.p-pill.st-closed { background: var(--mint-deep); color: #fff; }
.p-pill.st-rejected { background: var(--red-tint); color: var(--red); }

.p-reqs { list-style: none; padding: 0; margin: 0; }
.p-reqs li {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.p-reqs li:last-child { border-bottom: 0; }
.p-reqs a { text-decoration: none; }

.p-steps { list-style: none; padding: 0; margin: 0; }
.p-steps li { position: relative; padding: 7px 0 7px 32px; color: var(--ink-muted); font-size: 15px; }
.p-steps li::before {
  content: ""; position: absolute; left: 6px; top: 14px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
}
.p-steps li::after {
  content: ""; position: absolute; left: 11px; top: 28px; bottom: -8px; width: 2px;
  background: var(--line);
}
.p-steps li:last-child::after { display: none; }
.p-steps li.done { color: var(--ink); }
.p-steps li.done::before { background: var(--mint-deep); border-color: var(--mint-deep); }
.p-steps li.current { color: var(--ink); font-weight: 600; }
.p-steps li.current::before {
  border-color: var(--mint-strong); background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-tint);
}

.p-kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; margin: 0; }
.p-kv dt {
  font-family: var(--heading); font-weight: 600; font-size: var(--t-meta);
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding-top: 2px;
}
.p-kv dd { margin: 0; font-size: 15px; }
@media (max-width: 480px) { .p-kv { grid-template-columns: 1fr; gap: 2px 0; } .p-kv dd { margin-bottom: 10px; } }

/* ── footer ───────────────────────────────────────────────────────────────── */
.p-foot {
  border-top: 1px solid var(--line); margin-top: 8px;
  padding: 26px 16px 44px; font-size: 13.5px; color: var(--ink-muted); text-align: center;
}
.p-foot p { max-width: var(--content-w); margin: 0 auto 6px; }

/* ── the photo the customer sent, and what they owe ───────────────────────── */
.p-shots { display: flex; flex-wrap: wrap; gap: 8px; }
.p-shots img { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--line);
               border-radius: var(--r-control); }
.p-review-note { margin: 12px 0 0; }
.p-pay { background: var(--mint-tint); border-color: var(--mint); text-align: center; }
.p-pay-amt { font-family: var(--heading); font-weight: 700; font-size: 32px;
             color: var(--mint-deep); margin: 0 0 4px; }
.p-form input[type=file] {
  display: block; width: 100%; margin-top: 7px; padding: 14px;
  font: 400 13.5px/1.4 Poppins, "Segoe UI", sans-serif; letter-spacing: normal;
  border: 1px dashed var(--mint-strong); border-radius: var(--r-control);
  background: var(--mint-tint); color: var(--ink-muted); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.p-form input[type=file]:hover { background: var(--surface); border-color: var(--mint-deep); }
/* The native button is the ugly part: make it the same pill as every other action. */
.p-form input[type=file]::file-selector-button {
  margin-right: 12px; padding: 9px 18px; border: 0; border-radius: var(--r-pill);
  background: var(--btn); color: var(--btn-ink); cursor: pointer;
  font-family: var(--heading); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; transition: filter .15s;
}
.p-form input[type=file]::file-selector-button:hover { filter: brightness(1.08); }
/* What to attach, one short line each. */
.p-hints {
  margin: 9px 0 0; padding-left: 18px; font-family: Poppins, "Segoe UI", sans-serif;
  font-weight: 400; font-size: 12.5px; line-height: 1.6; letter-spacing: normal;
  color: var(--ink-muted);
}

/* ── order help (/portal/order) ───────────────────────────────────────────── */
/* What the landing page offers, as four quiet tiles under the lookup form. */
.p-offer {
  list-style: none; padding: 0; margin: 0 0 6px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.p-offer li { background: var(--mint-tint); border-radius: var(--r-card); padding: 14px 16px; }
.p-offer strong {
  display: block; font-family: var(--heading); font-weight: 600; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--mint-deep);
}
.p-offer span { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }

.p-eyebrow {
  font-family: var(--heading); font-size: var(--t-meta); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0 0 4px;
}
.p-headline { font-size: 22px; text-transform: none; letter-spacing: .005em; margin-bottom: 18px; }
.p-headline span { color: var(--ink-muted); font-weight: 400; }
.p-status.st-cancelled .p-headline, .p-status.st-undelivered .p-headline,
.p-status.st-rto .p-headline { color: var(--red); margin-bottom: 8px; }
.p-status.st-delivered .p-headline { color: var(--mint-deep); }

/* The stepper: a row of dots joined by a rail, done in deep mint. Vertical on phones. */
.p-track { list-style: none; padding: 0; margin: 0; display: flex; }
.p-track li { flex: 1; position: relative; text-align: center; font-size: 12.5px; color: var(--ink-muted); }
.p-track li::before {
  content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px;
  background: var(--line);
}
.p-track li:first-child::before { display: none; }
.p-track li.done::before, .p-track li.current::before { background: var(--mint-deep); }
.p-dot {
  position: relative; display: block; width: 16px; height: 16px; margin: 0 auto 8px;
  border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
}
.p-track li.done .p-dot { background: var(--mint-deep); border-color: var(--mint-deep); }
.p-track li.current .p-dot {
  border-color: var(--mint-strong); background: var(--mint); box-shadow: 0 0 0 4px var(--mint-tint);
}
.p-track li.done, .p-track li.current { color: var(--ink); }
.p-track li.current .p-lbl { font-weight: 600; }
@media (max-width: 480px) {
  .p-track { flex-direction: column; }
  .p-track li { display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px 0; font-size: 14px; }
  .p-track li::before { top: -50%; left: 7px; width: 2px; height: 100%; }
  .p-dot { margin: 0; flex: none; }
}

.p-awb {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.p-awb div { display: flex; flex-direction: column; }
.p-awb strong { font-family: var(--heading); font-size: 16px; letter-spacing: .04em; }
@media (max-width: 480px) { .p-awb { flex-direction: column; align-items: stretch; } .p-awb .p-btn { text-align: center; } }

.p-note {
  margin: 16px 0 0; padding: 11px 14px; border-radius: var(--r-control);
  background: var(--surface-alt); font-size: 13.5px; color: var(--ink);
}
.p-callout { background: var(--mint-tint); border-color: var(--mint); }

/* Action tiles: the things a customer can do themselves. A tile they can't use
   stays on the page, greyed, with the reason — so nobody hunts for a button. */
.p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .p-actions { grid-template-columns: 1fr; } }
.p-act {
  display: flex; flex-direction: column; gap: 4px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-control);
  text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s;
}
a.p-act:hover { border-color: var(--mint-strong); background: var(--mint-tint); }
.p-act strong { font-family: var(--heading); font-weight: 600; font-size: 14.5px; letter-spacing: .02em; }
a.p-act strong::after { content: " →"; color: var(--mint-deep); }
.p-act span { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.p-act.off { background: var(--surface-alt); }
.p-act.off strong { color: var(--ink-muted); }

.p-items { list-style: none; padding: 0; margin: 0; }
.p-items li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.p-items li:last-child { border-bottom: 0; }
.p-items li div { display: flex; flex-direction: column; }
.p-items strong { font-weight: 500; font-size: 15px; }
.p-qty { font-variant-numeric: tabular-nums; color: var(--ink-muted); white-space: nowrap; }
.p-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line);
}
.p-total span { font-size: 14px; color: var(--ink-muted); }
.p-total strong { font-family: var(--heading); font-weight: 700; font-size: 18px; }

.p-addr { line-height: 1.7; margin-bottom: 12px; }
.p-link {
  font-family: var(--heading); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
}

.p-topics { display: flex; flex-direction: column; }
.p-topic {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.p-topic:last-child { border-bottom: 0; }
.p-topic > span:first-child { display: flex; flex-direction: column; }
.p-topic strong { font-weight: 500; font-size: 15px; }
.p-topic:hover strong { color: var(--mint-deep); }
.p-go { color: var(--mint-deep); font-size: 18px; }
.p-topics-foot { margin: 12px 0 0; }

.p-btn-danger { background: var(--red); color: #fff; }
/* `.p-form label` is display:block and outranks `.p-kind`, which stacked the radio
   above its text on every form. Put the row back. */
.p-form .p-kind { display: flex; margin-bottom: 0; }

/* ── my orders (/portal/orders) ───────────────────────────────────────────── */
.p-orders { display: flex; flex-direction: column; gap: 12px; }
.p-order-row {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-card);
  text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s;
}
.p-order-row:hover { border-color: var(--mint-strong); background: var(--mint-tint); }
.p-order-row.cur { border-color: var(--mint); }
.p-order-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-order-top strong { font-family: var(--heading); font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.p-order-items { font-size: 14px; }
.p-pill.st-o-delivered { background: var(--mint-deep); color: #fff; }
.p-pill.st-o-shipped, .p-pill.st-o-out_for_delivery, .p-pill.st-o-packed { background: var(--mint); color: var(--ink); }
.p-pill.st-o-confirmed, .p-pill.st-o-placed { background: var(--mint-tint); color: var(--mint-deep); }
.p-pill.st-o-cancelled, .p-pill.st-o-rto, .p-pill.st-o-undelivered { background: var(--red-tint); color: var(--red); }

/* ── returns inside the order page: a button on each item that can come back ── */
.p-item-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.p-why-inline { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; }
.p-items-foot { margin: 14px 0 0; }
.p-alert-in { margin: 14px 0 0; }
@media (max-width: 480px) {
  .p-items li { flex-wrap: wrap; }
  .p-item-act { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
