.review-page main,
.contact-page main {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
}

.review-invite,
.contact-card {
  width: min(1080px, 100%);
  padding: clamp(32px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 90px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #e9e1d1;
}

.review-invite h1,
.contact-card h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.review-invite > div > p:last-child,
.contact-card > div > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.review-invite form > button,
.contact-card form > button {
  margin-top: 16px;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.review-loading { color: var(--muted); }
.contact-direct { margin-top: 22px; }
.contact-card [data-support-email] { color: var(--ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-direct a { color: var(--ink); font-weight: 800; overflow-wrap: anywhere; }
.review-invite > *, .contact-card > *, .form-grid > * { min-width: 0; }

@media (max-width: 1000px) {
  .review-invite,
  .contact-card { grid-template-columns: 1fr; }
}

/* Contact form alignment and themed topic picker. */
.form-field { display: grid; align-content: start; gap: 6px; font-size: 12px; font-weight: 800; }
.optional-field { position: relative; }
.optional-field > small { position: absolute; top: 1px; right: 0; }
.topic-picker { position: relative; }
.topic-trigger { width: 100%; min-height: 48px; padding: 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--paper); cursor: pointer; font-weight: 800; text-align: left; }
.topic-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s ease; }
.topic-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.topic-options { position: absolute; z-index: 5; inset: calc(100% + 6px) 0 auto; padding: 6px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 18px 50px rgba(23,25,20,.18); }
.topic-options[hidden] { display: none; }
.topic-options button { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; cursor: pointer; font-weight: 700; text-align: left; }
.topic-options button:hover, .topic-options button:focus-visible, .topic-options button[aria-selected="true"] { color: #fff; background: var(--red); }

/* Order status lookup. */
.order-lookup-panel { min-width: 0; display: grid; align-content: start; }
.form-status { min-height: 20px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-status.error { color: var(--red); font-weight: 700; }
.order-result { margin-top: 26px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.order-result[hidden] { display: none; }
.order-result h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.order-result > p { margin: 0 0 4px; color: var(--muted); line-height: 1.6; }
.order-tracking { font-weight: 700; }
.order-tracking a { color: var(--red); text-decoration: underline; }
.order-result dl { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.order-result dl div { display: grid; gap: 2px; }
.order-result dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.order-result dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.order-lines { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.order-lines li { padding: 11px 0; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-help { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.order-help a { color: var(--ink); font-weight: 800; }
@media (max-width: 560px) { .order-result dl { grid-template-columns: 1fr; } }

/* Back-in-stock alert page. */
.notify-card { align-items: start; }
.notify-mark { width: 54px; height: 54px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); }
.notify-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notify-promises { margin: 22px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; color: var(--muted); font-size: 13px; }
.notify-promises li { display: flex; gap: 10px; line-height: 1.5; }
.notify-promises li::before { content: "✓"; flex: none; color: var(--red); font-weight: 900; }

.notify-panel { display: grid; align-content: start; }
.notify-loading { margin: 0; color: var(--muted); }
.notify-flavors { display: grid; gap: 8px; }
.notify-flavors.single { pointer-events: none; }
.notify-flavors button { padding: 12px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; text-align: left; font: inherit; }
.notify-flavors button:hover { border-color: var(--ink); }
.notify-flavors button[aria-checked="true"] { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.notify-swatch { width: 38px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--swatch, var(--red)); font-weight: 800; }
.notify-flavors strong { display: block; font-size: 14px; }
.notify-flavors small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.notify-done, .notify-empty { display: grid; justify-items: start; gap: 8px; }
.notify-done[hidden], .notify-empty[hidden], .notify-loading[hidden] { display: none; }
.notify-tick { width: 46px; height: 46px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--sage, #405347); font-size: 22px; font-weight: 800; }
.notify-done h2, .notify-empty h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.notify-done p, .notify-empty p { margin: 0; color: var(--muted); line-height: 1.6; }
.notify-secondary { margin-top: 10px; color: var(--ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) { .notify-mark { width: 46px; height: 46px; } }

/* Order confirmation uses the same card, navigation, and typography as support. */
.status-main { width: min(960px, 100%); margin: 0 auto; }
.contact-card.status-card { display: block; max-width: 780px; margin: 0 auto; }
.status-icon { width: 52px; height: 52px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--sage); font-size: 26px; }
.status-icon.is-error { background: var(--red); }
.status-card .order-summary { margin: 28px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.status-card .order-summary[hidden] { display: none; }
.status-card .order-summary div { padding-top: 12px; border-top: 1px solid var(--line); }
.status-card .order-summary dt { color: var(--muted); font-size: 12px; }
.status-card .order-summary dd { margin: 6px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.status-shop-link { margin-top: 20px; min-height: 48px; padding: 14px 22px; display: inline-flex; align-items: center; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; }
.status-shop-link:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.status-card .secure-note { margin-top: 18px; color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .status-card .order-summary { grid-template-columns: 1fr; } }
