/* Storefront returns portal — split screen (design B). Standalone page, so it sets its own palette,
   matched to store.teamliquid.com: navy, gold buttons, light blue accents, DM Sans, square buttons. */
:root {
  --rp-navy: #001538;
  --rp-navy-hover: #0d2b5c;
  --rp-gold: #f7c95e;
  --rp-gold-hover: #f2b93a;
  --rp-sky: #e3f1ff;
  --rp-ink: #141414;
  --rp-muted: #525252;
  --rp-faint: #8a8a8a;
  --rp-line: #d9d9d9;
  --rp-soft: #f4f5f7;
  --rp-hero-text: #ffffff;
  --rp-hero-muted: #c3d2ec;
  --rp-danger: #b3261e;
  --rp-danger-bg: #fdecea;
  --rp-radius: 8px;
  --rp-button-radius: 0;
  --rp-font: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
.rp-body { font-family: var(--rp-font); color: var(--rp-ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* ---- layout ---- */
.rp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 100vh; }
.rp-hero {
  position: relative; background: var(--rp-navy); color: var(--rp-hero-text);
  padding: 32px clamp(24px, 5vw, 64px) 48px; display: flex; flex-direction: column;
}
.rp-hero--image { background-image: linear-gradient(rgba(0, 21, 56, 0.78), rgba(0, 21, 56, 0.92)), var(--rp-hero-image); background-size: cover; background-position: center; }
.rp-main { display: flex; justify-content: center; align-items: flex-start; padding: clamp(32px, 8vh, 96px) 24px 64px; }
.rp { width: 100%; max-width: 480px; }

/* ---- hero ---- */
.rp-back { color: var(--rp-hero-muted); text-decoration: none; font-size: 14px; align-self: flex-start; }
.rp-back:hover { color: var(--rp-hero-text); text-decoration: underline; }
.rp-brand { margin-top: clamp(32px, 10vh, 120px); }
.rp-brand img { display: block; max-width: 220px; height: auto; filter: brightness(0) invert(1); }
.rp-wordmark { font-size: 22px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.rp-eyebrow { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rp-gold); }
.rp-headline { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; margin: 28px 0 28px; text-wrap: balance; }
.rp-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 420px; }
.rp-perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--rp-hero-muted); font-size: 15px; }
.rp-icon { width: 22px; height: 22px; flex: none; color: var(--rp-gold); margin-top: 1px; }

/* ---- form card ---- */
.rp-card { display: flex; flex-direction: column; gap: 14px; }
.rp-title { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 0; outline: none; }
.rp-muted { color: var(--rp-muted); font-size: 14px; margin: 0; }
.rp label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--rp-ink); }
.rp .rp-card > label { margin-top: 4px; }
.rp input:not([type="checkbox"]):not([type="radio"]), .rp select, .rp textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--rp-ink); background: #fff;
  border: 1px solid var(--rp-line); border-radius: var(--rp-radius); padding: 11px 12px; width: 100%;
}
.rp input::placeholder, .rp textarea::placeholder { color: var(--rp-faint); }
.rp input:focus-visible, .rp select:focus-visible, .rp textarea:focus-visible { outline: 2px solid var(--rp-navy); outline-offset: 1px; border-color: var(--rp-navy); }
.rp button:focus-visible, .rp a:focus-visible, .rp-back:focus-visible { outline: 2px solid var(--rp-navy); outline-offset: 2px; }
.rp-back:focus-visible { outline-color: #fff; }

.rp-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: var(--rp-button-radius); border: 1px solid var(--rp-gold);
  background: var(--rp-gold); color: var(--rp-navy); font-weight: 700; margin-top: 6px;
}
.rp-button:hover:not(:disabled) { background: var(--rp-gold-hover); border-color: var(--rp-gold-hover); }
.rp-button:disabled { background: var(--rp-soft); border-color: var(--rp-soft); color: var(--rp-faint); cursor: not-allowed; }
.rp-button--secondary { background: #fff; color: var(--rp-navy); border-color: var(--rp-navy); font-weight: 600; margin-top: 0; }
.rp-button--secondary:hover:not(:disabled) { background: var(--rp-sky); border-color: var(--rp-navy); }
.rp-link { font: inherit; font-size: 15px; background: none; border: 0; padding: 8px 0; color: var(--rp-ink); text-decoration: underline; cursor: pointer; }
.rp-divider { display: flex; align-items: center; gap: 12px; color: var(--rp-faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0; }
.rp-divider::before, .rp-divider::after { content: ""; flex: 1; height: 1px; background: var(--rp-line); }
.rp-policy { align-self: center; color: var(--rp-muted); font-size: 14px; margin-top: 6px; }
.rp-address { font-weight: 600; line-height: 1.5; margin: 4px 0 12px; }
.rp-help { color: var(--rp-muted); font-size: 13px; margin: -8px 0 0; }
.rp-center { align-self: center; }
.rp-notice--good { border-color: #9fd9bd; background: #eefaf3; display: flex; flex-direction: column; gap: 6px; }
.rp-code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rp-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; overflow-wrap: anywhere; }
.rp-photos { display: grid; gap: 8px; }
.rp-photos-label { font-size: 14px; font-weight: 600; }
.rp-photo-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-photo { position: relative; width: 72px; height: 72px; }
.rp-photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--rp-line); }
.rp-photo-remove { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--rp-ink); color: #fff; font-size: 16px; line-height: 24px; cursor: pointer; }
.rp .rp-photo-add { width: 72px; height: 72px; border: 1.5px dashed var(--rp-line); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px; }
.rp-photo-add:focus-within { outline: 2px solid var(--rp-navy); outline-offset: 2px; }
.rp-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.rp-actions .rp-button { width: auto; margin-top: 0; min-width: 180px; }

/* ---- items ---- */
.rp-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rp-item { border: 1px solid var(--rp-line); border-radius: 10px; padding: 12px; background: #fff; }
.rp-item:has(input[type="checkbox"]:checked) { border-color: var(--rp-navy); box-shadow: 0 0 0 1px var(--rp-navy); background: var(--rp-sky); }
.rp-item--disabled { background: var(--rp-soft); }
.rp-item--disabled .rp-item-text strong { color: var(--rp-muted); }
.rp .rp-item-row { flex-direction: row; align-items: center; gap: 12px; cursor: pointer; font-weight: 400; }
.rp-item--disabled .rp-item-row { cursor: default; }
.rp-item-row input { width: 20px; height: 20px; flex: none; accent-color: var(--rp-navy); }
.rp-item-row img, .rp-img-placeholder { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: var(--rp-soft); }
.rp-item-text { display: flex; flex-direction: column; min-width: 0; font-size: 15px; }
.rp-item-text strong { font-weight: 600; overflow-wrap: anywhere; }
.rp-item-details { display: grid; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rp-line); }
.rp-item-details label { font-weight: 500; }

/* ---- resolution ---- */
.rp-options { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rp .rp-option { flex-direction: row; align-items: flex-start; gap: 12px; border: 1px solid var(--rp-line); border-radius: 10px; padding: 14px; cursor: pointer; font-weight: 400; }
.rp-option > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.rp-option strong { font-weight: 600; }
.rp-option-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-badge { font-size: 12px; font-weight: 700; color: var(--rp-navy); background: var(--rp-gold); border-radius: 999px; padding: 2px 8px; }
.rp-amount { font-weight: 600; margin-top: 4px; }
.rp-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--rp-navy); }
.rp-option--selected { border-color: var(--rp-navy); box-shadow: 0 0 0 1px var(--rp-navy); background: var(--rp-sky); }
.rp-exchange { display: grid; gap: 12px; }

/* ---- notices ---- */
.rp-notice { border: 1px solid var(--rp-line); background: var(--rp-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.rp-notice ul { margin: 4px 0 0; padding-left: 18px; }
.rp-notice a { color: var(--rp-ink); }
.rp-error { border: 1px solid var(--rp-danger); background: var(--rp-danger-bg); color: var(--rp-danger); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.rp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- phones: hero shrinks to a banner above the form ---- */
@media (max-width: 800px) {
  .rp-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rp-hero { padding: 16px 16px 20px; }
  .rp-brand { margin-top: 14px; }
  .rp-brand img { max-width: 140px; }
  .rp-headline { font-size: 26px; margin: 10px 0 12px; }
  .rp-perks { gap: 6px; }
  .rp-perks li { font-size: 13px; }
  .rp-icon { width: 18px; height: 18px; }
  .rp-main { padding: 24px 16px 48px; }
  /* Past the first step the hero shrinks to a slim branded bar. */
  .rp-in-progress .rp-headline, .rp-in-progress .rp-perks { display: none; }
  .rp-in-progress .rp-hero { flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 16px; }
  .rp-in-progress .rp-brand { margin: 0; order: -1; }
  .rp-in-progress .rp-brand img { max-width: 110px; }
  .rp-in-progress .rp-eyebrow { display: none; }
  .rp-actions .rp-button { width: 100%; }
}

/* ---- exchange for any item ---- */
.rp-exchange-item { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--rp-line); }
.rp-exchange-item .rp-help { margin: 0; }
.rp-exchange-item > .rp-link { justify-self: start; padding: 2px 0; font-size: 14px; }
.rp-search { display: grid; gap: 10px; padding: 12px; background: var(--rp-sky); border-radius: var(--rp-radius); }
.rp-search .rp-muted { margin: 0; font-size: 13px; }
.rp-search-row { display: flex; gap: 8px; }
.rp-search-row input { flex: 1; min-width: 0; }
.rp-search-row .rp-button { width: auto; flex: none; }
.rp-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-product { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--rp-radius); padding: 8px; }
.rp-product img, .rp-product .rp-img-placeholder { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; }
.rp-product .rp-item-text { flex: 1; gap: 4px; }
.rp-product select { font-size: 13px; padding: 6px 8px; }
.rp-product .rp-button { width: auto; flex: none; padding: 10px 14px; }

/* ---- QR code ---- */
.rp-qr { display: block; width: 200px; height: 200px; margin: 4px auto 8px; image-rendering: pixelated; }

/* ---- return status ---- */
.rp-subtitle { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--rp-navy); }
.rp-status-list { display: grid; gap: 12px; margin-bottom: 20px; }
.rp-status { border: 1px solid var(--rp-line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; font-size: 14px; }
.rp-status p { margin: 0; }
.rp-status-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--rp-navy); }
.rp-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; padding: 0; counter-reset: step; }
.rp-step { font-size: 12px; color: var(--rp-faint); padding-top: 8px; border-top: 4px solid var(--rp-line); }
.rp-step--done { color: var(--rp-navy); font-weight: 600; border-top-color: var(--rp-gold); }
.rp-status-items { margin: 0; padding-left: 18px; color: var(--rp-muted); }
.rp-status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-status-actions:empty { display: none; }
.rp-status-actions .rp-button { width: auto; padding: 10px 16px; font-size: 14px; }
.rp-contact { font-size: 13px; margin: 0; }
.rp-contact a { color: var(--rp-ink); font-weight: 600; }

/* ---- picked for you ---- */
.rp-picks { display: grid; gap: 8px; }
.rp-picks-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rp-picks-grid a { display: grid; gap: 4px; text-decoration: none; color: var(--rp-ink); font-size: 14px; }
.rp-picks-grid img, .rp-picks-grid .rp-img-placeholder { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--rp-radius); background: var(--rp-soft); }
.rp-picks-title { font-weight: 600; overflow-wrap: anywhere; }
