/* EMEKS Returns – customer portal. Colours and fonts are set here. */
.emr {
  --emr-ink: #111111;
  --emr-dark: #0e0e0e;
  --emr-accent: #00c8f0;
  --emr-muted: #4a4a4a;
  --emr-line: #e4e4e4;
  --emr-bad: #b42318;
  /* Matches the site font. "ChakraPetchSemiBoldItalic" is the theme's font if it has one by that name; Chakra Petch 600 italic from Google Fonts is the fallback. */
  --emr-font: "ChakraPetchSemiBoldItalic", "Chakra Petch", "Helvetica Neue", Arial, sans-serif;
  --emr-display: var(--emr-font);
  --emr-body: var(--emr-font);
  font-family: var(--emr-body);
  color: var(--emr-ink);
  padding: 32px 16px 64px;
  scroll-margin-top: 120px;
}
.emr *, .emr *::before, .emr *::after { box-sizing: border-box; }
.emr-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.emr svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.emr a { color: var(--emr-ink); font-weight: 600; }
.emr-progress { height: 6px; background: #ededed; }
.emr-progress span { display: block; height: 100%; background: var(--emr-accent); transition: width .3s; }
.emr-head { display: flex; flex-direction: column; gap: 8px; }
.emr-eyebrow, .emr-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #5a5a5a; }
.emr-title { margin: 0; font-family: var(--emr-display); font-weight: 800; font-size: clamp(36px, 7vw, 48px); line-height: 1; text-transform: uppercase; letter-spacing: 0; }
.emr-intro { margin: 0; font-size: 16px; line-height: 1.5; color: #3d3d3d; }
.emr-stack { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.emr-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.emr-field input, .emr-field select, .emr-field textarea {
  font: 400 16px var(--emr-body); color: var(--emr-ink); background: #fff;
  border: 2px solid var(--emr-ink); border-radius: 4px; padding: 0 14px; min-height: 52px; width: 100%; margin: 0;
}
.emr-field textarea { padding: 10px 14px; min-height: 72px; resize: vertical; border-color: #c4c4c4; }
.emr-field input:focus, .emr-field select:focus, .emr-field textarea:focus { outline: 3px solid var(--emr-accent); outline-offset: 0; }
.emr-btn {
  display: flex; align-items: center; justify-content: center; min-height: 56px; width: 100%; padding: 0 20px;
  background: var(--emr-ink); color: #fff !important; border: 2px solid var(--emr-ink); border-radius: 4px; cursor: pointer;
  font: 700 20px var(--emr-display); letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
}
.emr-btn:hover { background: #2a2a2a; }
.emr-btn:disabled { opacity: .45; cursor: not-allowed; }
.emr-btn-ghost { background: #fff; color: var(--emr-ink) !important; font-size: 18px; min-height: 52px; }
.emr-btn-ghost:hover { background: #f4f4f4; }
.emr-back, .emr-link { background: none; border: 0; padding: 0; font: 600 15px var(--emr-body); color: var(--emr-ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 44px; }
.emr-link { text-decoration: underline; min-height: 0; display: inline; }
.emr-back svg { width: 18px; height: 18px; }
.emr-error { background: #fdecea; border: 2px solid var(--emr-bad); color: #7a1610; border-radius: 4px; padding: 12px 14px; font-size: 15px; line-height: 1.4; }
.emr-note { background: #e3f9fe; border: 2px solid var(--emr-ink); border-radius: 4px; padding: 12px 14px; font-size: 15px; }
.emr-card { border: 2px solid var(--emr-line); border-radius: 4px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.emr-card h2, .emr-dark h2, .emr-steps h2 { margin: 0; font: 700 22px var(--emr-display); text-transform: uppercase; letter-spacing: 0; }
.emr-rules p { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.emr-rules .emr-no svg { color: var(--emr-bad); }

.emr-item { border: 2px solid var(--emr-line); border-radius: 4px; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.emr-item.is-on { border-color: var(--emr-ink); }
.emr-item.is-blocked { flex-direction: row; align-items: center; gap: 12px; background: #f6f6f6; cursor: not-allowed; }
.emr-item.is-blocked img, .emr-item.is-blocked strong { opacity: .5; } /* greyed out: can't be picked */
.emr-item-row { display: flex; gap: 12px; align-items: center; }
.emr-item-more { display: flex; flex-direction: column; gap: 12px; }
.emr-item-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: 14px; color: var(--emr-muted); }
.emr-item-text strong { font-size: 16px; color: var(--emr-ink); }
.emr-price { font-weight: 600; font-size: 15px; }
.emr-bad { color: var(--emr-bad) !important; font-weight: 600; font-size: 13px; }
.emr-warn { color: #8a4b00; font-weight: 600; font-size: 13px; }
.emr-thumb { width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; background: #ececec; border-radius: 4px; }
.emr-check { width: 28px; height: 28px; flex-shrink: 0; border: 2px solid var(--emr-ink); border-radius: 4px; background: #fff; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.emr-check::after { content: ""; position: absolute; inset: -8px; }
.emr-check[aria-checked="true"] { background: var(--emr-ink); color: var(--emr-accent); }
.emr-check svg { width: 18px; height: 18px; stroke-width: 3; }
.emr-check-space { width: 28px; flex-shrink: 0; }
.emr-foot { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--emr-line); padding-top: 16px; font-size: 14px; color: var(--emr-muted); }

.emr-options { display: flex; flex-direction: column; gap: 12px; }
.emr-option { border: 2px solid #d0d0d0; border-radius: 4px; }
.emr-option.is-on { border: 3px solid var(--emr-ink); }
.emr-option > button { width: 100%; background: none; border: 0; padding: 16px; display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer; font-family: var(--emr-body); color: var(--emr-ink); }
.emr-option.is-blocked > button { cursor: not-allowed; opacity: .6; }
.emr-radio { width: 24px; height: 24px; flex-shrink: 0; border: 2px solid var(--emr-ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.emr-option.is-on .emr-radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--emr-ink); }
.emr-option-text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; color: var(--emr-muted); }
.emr-option-title { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 700; font-size: 17px; color: var(--emr-ink); }
.emr-tag { background: var(--emr-accent); color: var(--emr-ink); font-style: normal; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.emr-sizes { padding: 0 16px 16px 52px; display: flex; flex-direction: column; gap: 10px; }
.emr-sizes .emr-label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--emr-ink); }
.emr-size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.emr-size { min-height: 44px; border: 2px solid var(--emr-ink); border-radius: 4px; background: #fff; font: 600 15px var(--emr-body); color: var(--emr-ink); cursor: pointer; }
.emr-size.is-on { background: var(--emr-ink); color: var(--emr-accent); font-weight: 700; }
.emr-size.is-current, .emr-size.is-out { border-color: #d0d0d0; background: #f3f3f3; color: #6b6b6b; cursor: not-allowed; }
.emr-size.is-out { text-decoration: line-through; }
.emr-small { font-size: 13px; color: var(--emr-muted); line-height: 1.4; margin: 0; }

.emr-want { display: flex; align-items: center; gap: 10px; background: #f4f4f4; border-radius: 4px; padding: 12px; font-size: 15px; }
.emr-dark { background: var(--emr-dark); color: #fff; border-radius: 4px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.emr-dark h2 { color: var(--emr-accent); }
.emr-num { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.emr-num b { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--emr-accent); color: var(--emr-ink); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.emr-address { display: block; margin-top: 6px; color: #e8e8e8; white-space: pre-line; }
.emr-address-dark { color: var(--emr-ink); margin: 0; }
.emr-agree { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; cursor: pointer; }
.emr-agree input { width: 24px; height: 24px; flex-shrink: 0; margin: 0; accent-color: var(--emr-ink); }

.emr-done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--emr-accent); display: flex; align-items: center; justify-content: center; }
.emr-done-icon svg { width: 30px; height: 30px; stroke-width: 3; }
.emr-ref { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 2px solid var(--emr-ink); border-radius: 4px; padding: 14px 16px; }
.emr-ref-code { font: 700 26px var(--emr-display); letter-spacing: 2px; }
.emr-ref-want { font-size: 14px; font-weight: 600; text-align: right; }
.emr-steps { display: flex; flex-direction: column; }
.emr-steps h2 { margin-bottom: 14px; }
.emr-step { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; font-weight: 600; color: var(--emr-muted); position: relative; padding-bottom: 28px; }
.emr-step:last-child { padding-bottom: 0; }
.emr-step:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: #c4c4c4; }
.emr-step.is-done::before { background: var(--emr-ink); }
.emr-step.is-done, .emr-step.is-now { color: var(--emr-ink); font-weight: 700; }
.emr-dot { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 2px solid #8a8a8a; display: flex; align-items: center; justify-content: center; }
.emr-step.is-done .emr-dot { background: var(--emr-ink); border-color: var(--emr-ink); color: var(--emr-accent); }
.emr-step.is-now .emr-dot { border: 3px solid var(--emr-ink); background: var(--emr-accent); }
.emr-dot svg { width: 16px; height: 16px; stroke-width: 3; }

/* One font everywhere: Chakra Petch SemiBold Italic. Headings in full caps. */
.emr, .emr *:not(svg):not(path) { font-family: var(--emr-font) !important; font-style: italic !important; font-weight: 600 !important; }
.emr h1, .emr h2, .emr h3, .emr-title, .emr-btn, .emr-option-title, .emr-label, .emr-eyebrow { text-transform: uppercase; }
.emr-tag { font-style: italic; }

/* Background image on the first page (set in EMEKS Returns → Settings). */
.emr.emr-hero {
  background-color: var(--emr-dark);
  background-image: var(--emr-hero-d);
  background-size: cover;
  background-position: center;
  padding: clamp(40px, 9vw, 120px) 16px;
}
@media (max-width: 749px) {
  .emr.emr-hero { background-image: var(--emr-hero-m); padding: 32px 12px; }
}
.emr.emr-hero .emr-inner { background: rgba(255, 255, 255, var(--emr-panel-a, 1)); padding: 28px 24px 32px; border-radius: 4px; box-shadow: 0 24px 64px rgba(0, 0, 0, calc(.35 * var(--emr-panel-a, 1))); }
/* Inputs stay solid white so they're always readable over the image. */
.emr.emr-hero .emr-field input { background: #fff; }
@media (max-width: 749px) {
  .emr.emr-hero .emr-inner { padding: 22px 16px 26px; }
}

/* Exchanges: product image on the left, sizes stacked on the right */
.emr-option-body { padding: 0 16px 16px 52px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 560px) { .emr-option-body { padding: 0 12px 14px; } }
.emr-swap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
@media (max-width: 420px) { .emr-swap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 10px; } }
.emr-swap-img { aspect-ratio: 1 / 1; background: #f1f1f1; border-radius: 4px; overflow: hidden; }
.emr-swap-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emr-swap-sizes { display: flex; flex-direction: column; gap: 6px; }
.emr-swap-sizes .emr-label { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; color: var(--emr-ink); margin-bottom: 2px; }
.emr-size-row { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 8px 12px; text-align: left; border: 2px solid var(--emr-ink); border-radius: 4px; background: #fff; color: var(--emr-ink); font-size: 14px; line-height: 1.2; cursor: pointer; }
.emr-size-row span:not(.emr-size-dot) { flex: 1; min-width: 0; }
.emr-size-row em { font-style: italic; font-size: 12px; color: var(--emr-muted); white-space: nowrap; }
.emr-size-dot { width: 16px; height: 16px; flex-shrink: 0; border: 2px solid var(--emr-ink); border-radius: 50%; }
.emr-size-row.is-on { background: var(--emr-ink); color: #fff; }
.emr-size-row.is-on em { color: var(--emr-accent); }
.emr-size-row.is-on .emr-size-dot { border-color: var(--emr-accent); background: var(--emr-accent); box-shadow: inset 0 0 0 3px var(--emr-ink); }
.emr-size-row.is-out, .emr-size-row.is-current { border-color: #d0d0d0; background: #f3f3f3; color: #6b6b6b; cursor: not-allowed; }
.emr-size-row.is-out span:not(.emr-size-dot) { text-decoration: line-through; }
.emr-size-row.is-out .emr-size-dot { border-color: #c4c4c4; }
.emr-size-row.is-current { padding-left: 38px; }
.emr-size-row:not(:disabled):hover { border-color: var(--emr-accent); }

.emr-diff { border-radius: 4px; padding: 12px 14px; font-size: 14px; line-height: 1.45; background: #f4f4f4; border: 2px solid #d0d0d0; }
.emr-diff strong { display: block; font-size: 16px; }
.emr-diff.is-pay { background: #e3f9fe; border-color: var(--emr-accent); }
.emr-diff.is-back { background: #eefbe9; border-color: #3f9c35; }
.emr-want-diff { color: var(--emr-muted); font-size: 13px; }

.emr-swap-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.emr-search { display: flex; flex-direction: column; gap: 12px; }
.emr-search-row { display: flex; gap: 8px; }
.emr-search-row input { flex: 1; min-width: 0; }
.emr-search-row .emr-btn { width: auto; min-height: 52px; font-size: 16px; padding: 0 16px; }
.emr-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 520px; overflow-y: auto; }
.emr-result { display: flex; flex-direction: column; gap: 6px; padding: 8px; text-align: left; background: #fff; border: 2px solid var(--emr-line); border-radius: 4px; cursor: pointer; color: var(--emr-ink); font-size: 13px; line-height: 1.25; }
.emr-result:hover, .emr-result:focus-visible { border-color: var(--emr-ink); }
.emr-result img, .emr-result-ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f1f1f1; border-radius: 3px; display: block; }
.emr-result span { color: var(--emr-muted); font-size: 12px; }

/* Exchange image: show the whole product (no cropping), centred vertically next to the sizes */
.emr-swap { align-items: center; }
.emr-swap-img { aspect-ratio: auto; background: none; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.emr-swap-img img { width: 100%; height: auto; max-height: 420px; object-fit: contain; }

/* Photo proof */
.emr-photos { display: flex; flex-direction: column; gap: 10px; border: 2px dashed var(--emr-accent); border-radius: 4px; padding: 12px; background: #f5fdff; }
.emr-photos-head { display: flex; flex-direction: column; gap: 2px; }
.emr-photos-head .emr-label { color: var(--emr-ink); font-size: 13px; }
.emr-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.emr-photo, .emr-photo-add { position: relative; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; }
.emr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emr-photo.is-busy { background: #e9e9e9; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--emr-muted); }
.emr-photo-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.75); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.emr-photo-x svg { width: 14px; height: 14px; }
.emr-photo-add { border: 2px solid var(--emr-ink); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; text-align: center; cursor: pointer; }
.emr-photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.emr-photo-add:hover { border-color: var(--emr-accent); }
.emr-photo-add:focus-within { outline: 3px solid var(--emr-accent); }

/* Review: totals and the line under the button */
.emr-totals { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--emr-line); padding-top: 12px; }
.emr-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.emr-totals em { font-size: 12px; color: var(--emr-muted); }
.emr-totals .is-total { font-size: 18px; border-top: 2px solid var(--emr-ink); padding-top: 10px; }
.emr-after { margin: -4px 0 0; font-size: 14px; line-height: 1.45; color: var(--emr-muted); text-align: center; }

/* Free exchange delivery: shown as a bonus */
.emr-free b { color: var(--emr-ink); background: var(--emr-accent); padding: 1px 8px; border-radius: 3px; }
.emr-free s { color: var(--emr-muted); margin-right: 6px; }
.emr-gift { display: flex; gap: 10px; align-items: flex-start; background: #e3f9fe; border: 2px solid var(--emr-accent); border-radius: 4px; padding: 10px 12px; font-size: 14px; line-height: 1.4; }
.emr-gift svg { width: 22px; height: 22px; margin-top: 1px; }


/* mobile: scale down every step (the opening panel has its own sizes above) */
@media (max-width: 749px) {
  .emr:not(.emr-hero) { padding: 18px 14px 40px; }
  .emr:not(.emr-hero) .emr-inner { gap: 12px; }
  .emr:not(.emr-hero) .emr-head { gap: 4px; }
  .emr:not(.emr-hero) .emr-eyebrow { font-size: 11px; }
  .emr:not(.emr-hero) .emr-title { font-size: 22px; line-height: 1.1; }
  .emr:not(.emr-hero) .emr-intro { font-size: 14px; line-height: 1.4; }
  .emr:not(.emr-hero) .emr-stack { gap: 10px; }
  .emr:not(.emr-hero) .emr-back { min-height: 36px; font-size: 14px; }
  .emr:not(.emr-hero) .emr-card, .emr:not(.emr-hero) .emr-dark { padding: 12px; gap: 8px; }
  .emr:not(.emr-hero) .emr-card h2, .emr:not(.emr-hero) .emr-dark h2, .emr:not(.emr-hero) .emr-steps h2 { font-size: 16px; }
  .emr:not(.emr-hero) .emr-steps h2 { margin-bottom: 10px; }
  .emr:not(.emr-hero) .emr-item { padding: 10px; gap: 10px; }
  .emr:not(.emr-hero) .emr-item-text { font-size: 13px; }
  .emr:not(.emr-hero) .emr-item-text strong { font-size: 14px; }
  .emr:not(.emr-hero) .emr-options { gap: 8px; }
  .emr:not(.emr-hero) .emr-option > button { padding: 12px; gap: 10px; }
  .emr:not(.emr-hero) .emr-option-title { font-size: 15px; }
  .emr:not(.emr-hero) .emr-option-text { font-size: 13px; }
  .emr:not(.emr-hero) .emr-option-body, .emr:not(.emr-hero) .emr-sizes { padding: 0 12px 12px; gap: 8px; }
  .emr:not(.emr-hero) .emr-size-row { min-height: 40px; padding: 6px 10px; font-size: 13px; }
  .emr:not(.emr-hero) .emr-field { font-size: 13px; }
  .emr:not(.emr-hero) .emr-field input, .emr:not(.emr-hero) .emr-field select { min-height: 44px; font-size: 16px; }
  .emr:not(.emr-hero) .emr-btn { min-height: 48px; font-size: 16px; }
  .emr:not(.emr-hero) .emr-btn-ghost { min-height: 44px; font-size: 15px; }
  .emr:not(.emr-hero) .emr-want, .emr:not(.emr-hero) .emr-diff, .emr:not(.emr-hero) .emr-gift, .emr:not(.emr-hero) .emr-note, .emr:not(.emr-hero) .emr-error { padding: 10px; font-size: 13px; }
  .emr:not(.emr-hero) .emr-totals > div { font-size: 14px; }
  .emr:not(.emr-hero) .emr-totals .is-total { font-size: 16px; }
  .emr:not(.emr-hero) .emr-after { font-size: 12px; }
  .emr:not(.emr-hero) .emr-agree, .emr:not(.emr-hero) .emr-num { font-size: 13px; }
  .emr:not(.emr-hero) .emr-ref { padding: 10px 12px; }
  .emr:not(.emr-hero) .emr-step { font-size: 14px; padding-bottom: 20px; }
  .emr:not(.emr-hero) .emr-swap-img img { max-height: 260px; }
}

/* compact opening panel (order lookup) */
.emr.emr-hero .emr-inner { max-width: 440px; gap: 14px; padding: 22px 22px 24px; }
.emr.emr-hero .emr-title { font-size: clamp(26px, 5vw, 34px); }
.emr.emr-hero .emr-intro { font-size: 15px; line-height: 1.45; }
.emr.emr-hero .emr-stack { gap: 12px; }
.emr.emr-hero .emr-field { font-size: 13px; gap: 4px; }
.emr.emr-hero .emr-field input { min-height: 44px; font-size: 15px; }
.emr.emr-hero .emr-btn { min-height: 48px; font-size: 17px; }
.emr.emr-hero .emr-card { padding: 14px 16px; gap: 8px; }
.emr.emr-hero .emr-card h2 { font-size: 17px; }
.emr.emr-hero .emr-rules p { font-size: 14px; }
@media (max-width: 749px) { .emr.emr-hero .emr-inner { padding: 18px 14px 20px; } }

/* compact opening panel – mobile */
@media (max-width: 749px) {
  .emr.emr-hero { padding: 28px 24px; }
  .emr.emr-hero .emr-inner { max-width: 340px; gap: 12px; padding: 16px 14px 18px; }
  .emr.emr-hero .emr-title { font-size: 24px; }
  .emr.emr-hero .emr-intro { font-size: 14px; }
  .emr.emr-hero .emr-eyebrow { font-size: 11px; }
  .emr.emr-hero .emr-stack { gap: 10px; }
  .emr.emr-hero .emr-field input { min-height: 42px; font-size: 16px; }
  .emr.emr-hero .emr-btn { min-height: 46px; font-size: 16px; }
  .emr.emr-hero .emr-card { padding: 12px 12px; gap: 6px; }
  .emr.emr-hero .emr-card h2 { font-size: 15px; }
  .emr.emr-hero .emr-rules p { font-size: 13px; gap: 8px; }
}

/* even smaller on mobile */
@media (max-width: 749px) {
  .emr.emr-hero { padding: 24px 32px; }
  .emr.emr-hero .emr-inner { max-width: 300px; gap: 10px; padding: 14px 12px 16px; }
  .emr.emr-hero .emr-title { font-size: 21px; }
  .emr.emr-hero .emr-intro { font-size: 13px; line-height: 1.4; }
  .emr.emr-hero .emr-stack { gap: 8px; }
  .emr.emr-hero .emr-field { font-size: 12px; }
  .emr.emr-hero .emr-field input { min-height: 40px; padding: 0 10px; }
  .emr.emr-hero .emr-btn { min-height: 42px; font-size: 15px; }
  .emr.emr-hero .emr-card { padding: 10px; }
  .emr.emr-hero .emr-card h2 { font-size: 14px; }
  .emr.emr-hero .emr-rules p { font-size: 12px; }
  .emr.emr-hero .emr-rules svg { width: 16px; height: 16px; }
}

/* make the policy link obviously a link */
.emr-rules a { color: #0089a8; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.emr-rules a:hover { color: #006b84; }

/* mobile: "What are you sending back" */
@media (max-width: 749px) {
  .emr-size-word { display: none; }
  .emr:not(.emr-hero) .emr-thumb { width: 56px; height: auto; max-height: 96px; object-fit: contain; background: none; align-self: center; }
  .emr:not(.emr-hero) div.emr-thumb { height: 56px; background: #ececec; }
  .emr:not(.emr-hero) .emr-item-row { gap: 10px; }
  .emr:not(.emr-hero) .emr-inner { gap: 8px; }
  .emr:not(.emr-hero) .emr-stack { gap: 6px; }
  .emr:not(.emr-hero) .emr-item { padding: 8px; gap: 8px; }
  .emr:not(.emr-hero) .emr-item-more { gap: 8px; }
}

/* mobile: product title on one line, price tucked under it on the right */
@media (max-width: 749px) {
  .emr:not(.emr-hero) .emr-item-row { position: relative; }
  .emr:not(.emr-hero) .emr-item-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .emr:not(.emr-hero) .emr-item-text > span:first-of-type { padding-right: 64px; }
  .emr:not(.emr-hero) .emr-item-row > .emr-price { position: absolute; right: 0; bottom: 0; font-size: 13px; }
  .emr:not(.emr-hero) .emr-item-row:has(.emr-warn) > .emr-price { bottom: auto; top: 50%; }
}

/* desktop: same item layout as mobile – whole photos, no "Size" word, one-line titles, tighter boxes */
@media (min-width: 750px) {
  .emr-size-word { display: none; }
  .emr:not(.emr-hero) .emr-thumb { width: 72px; height: auto; max-height: 120px; object-fit: contain; background: none; align-self: center; }
  .emr:not(.emr-hero) div.emr-thumb { height: 72px; background: #ececec; }
  .emr:not(.emr-hero) .emr-stack { gap: 10px; }
  .emr:not(.emr-hero) .emr-item { padding: 12px; gap: 10px; }
  .emr:not(.emr-hero) .emr-item-row { position: relative; }
  .emr:not(.emr-hero) .emr-item-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .emr:not(.emr-hero) .emr-item-text > span:first-of-type { padding-right: 80px; }
  .emr:not(.emr-hero) .emr-item-row > .emr-price { position: absolute; right: 0; bottom: 0; }
  .emr:not(.emr-hero) .emr-item-row:has(.emr-warn) > .emr-price { bottom: auto; top: 50%; }
}

/* never crop product photos – exchange panel, shop search results and item thumbnails */
.emr-swap-img { aspect-ratio: auto !important; overflow: visible; background: none !important; }
.emr-swap-img img { width: 100%; height: auto !important; max-height: 380px; object-fit: contain !important; }
.emr-result img, .emr-result-ph { aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
.emr .emr-thumb { object-fit: contain; }
@media (max-width: 749px) { .emr-swap-img img { max-height: 260px; } }

/* desktop: smaller headings on every step after the opening panel */
@media (min-width: 750px) {
  .emr:not(.emr-hero) .emr-inner { gap: 14px; }
  .emr:not(.emr-hero) .emr-head { gap: 6px; }
  .emr:not(.emr-hero) .emr-title { font-size: 30px; line-height: 1.1; }
  .emr:not(.emr-hero) .emr-intro { font-size: 15px; }
  .emr:not(.emr-hero) .emr-card h2, .emr:not(.emr-hero) .emr-dark h2, .emr:not(.emr-hero) .emr-steps h2 { font-size: 18px; }
  .emr:not(.emr-hero) .emr-option-title { font-size: 16px; }
  .emr:not(.emr-hero) .emr-options { gap: 10px; }
  .emr:not(.emr-hero) .emr-option > button { padding: 14px; }
  .emr:not(.emr-hero) .emr-card, .emr:not(.emr-hero) .emr-dark { padding: 14px; gap: 10px; }
  .emr:not(.emr-hero) .emr-btn { min-height: 50px; font-size: 18px; }
}

/* exchange: filter buttons above the shop search results */
.emr-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.emr-filter { border: 2px solid var(--emr-ink); background: #fff; color: var(--emr-ink); border-radius: 999px; padding: 6px 14px; min-height: 36px; font: inherit; font-size: 13px; text-transform: uppercase; cursor: pointer; }
.emr-filter:hover { border-color: var(--emr-accent); }
.emr-filter.is-on { background: var(--emr-ink); color: #fff; }
@media (max-width: 749px) { .emr-filter { padding: 5px 11px; min-height: 32px; font-size: 12px; } }

.emr-more { min-height: 42px !important; font-size: 15px !important; }

/* no letter-spacing anywhere in the portal (the theme spaces out labels); the agreement line reads as normal text */
.emr, .emr * { letter-spacing: 0 !important; }
.emr label, .emr .emr-field > span { font-family: var(--emr-body); }
.emr .emr-agree, .emr .emr-agree * { text-transform: none !important; font-size: 15px; line-height: 1.4; }
@media (max-width: 749px) { .emr .emr-agree, .emr .emr-agree * { font-size: 13px; } }

/* every text link in the portal is underlined so it's clearly clickable */
.emr a:not(.emr-btn) { color: #0089a8; text-decoration: underline !important; text-underline-offset: 3px; font-weight: 600; }
.emr a:not(.emr-btn):hover { color: #006b84; }
.emr .emr-link { text-decoration: underline; text-underline-offset: 3px; }

/* several items: make it obvious which one you're on and that there's another to do */
.emr-multi { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #e3f9fe; border: 2px solid var(--emr-accent); border-radius: 6px; padding: 8px 12px; }
.emr-count { color: #0089a8; font-weight: 700; font-size: 20px; text-transform: uppercase; white-space: nowrap; }
.emr-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.emr-dot { position: relative; width: 38px; height: 46px; border: 2px solid #c4c4c4; border-radius: 4px; background: #fff; overflow: hidden; opacity: .55; }
.emr-dot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.emr-dot.is-now { border-color: #0089a8; opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0089a8; }
.emr-dot.is-done { opacity: 1; border-color: var(--emr-ink); }
.emr-dot b { position: absolute; right: 1px; bottom: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--emr-accent); color: var(--emr-ink); display: flex; align-items: center; justify-content: center; }
.emr-dot b svg { width: 11px !important; height: 11px !important; stroke-width: 3.5; }
.emr-next-hint { margin: -2px 0 0; text-align: center; font-size: 14px; color: var(--emr-muted); }
@media (max-width: 749px) {
  .emr-multi { padding: 6px 10px; }
  .emr-count { font-size: 17px; }
  .emr-dot { width: 30px; height: 38px; }
  .emr-next-hint { font-size: 12px; }
}
