/* =============================================================
   Jiminy App — Go! Page Styles (#page-go only)
   /css/go.css

   Page-scoped styles, selectors scoped to #page-go so this file
   cannot accidentally affect any other page. Also includes the
   .purchase-dialog* component styles (copied verbatim from
   css/home.css — see that file's header for why no selector
   rewriting is needed) since this page reuses the same purchase
   dialog as Home/Discover.
============================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#page-go {
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 24px;
}

/* ── PAGE INTRO ────────────────────────────────────────────── */
#page-go .go-page-intro h1 {
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: clamp(32px, 4.4vw, 44px);
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
#page-go .go-page-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 64ch;
}

/* ── SHARED CARD SHELL ─────────────────────────────────────── */
#page-go .go-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(7,31,65,.08);
}
#page-go .go-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
#page-go .go-card__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
#page-go .go-card__header h2 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}
#page-go .go-card__description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 70ch;
}
#page-go .go-empty-state {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--soft, #f4f7fb);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ── SHARED BUTTONS ────────────────────────────────────────── */
#page-go .go-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 40px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
#page-go .go-btn--gold {
  background: var(--gold);
  color: var(--navy);
}
#page-go .go-btn--gold:hover { filter: brightness(1.06); }
#page-go .go-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
#page-go .go-btn--ghost:hover { background: rgba(7,31,65,.06); }
#page-go .go-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── DESTINATION CONTEXT ───────────────────────────────────── */
#page-go .go-destination-context {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}
#page-go .go-destination-context__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(244,184,37,.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
#page-go .go-destination-context__text {
  flex: 1;
  min-width: 0;
}
#page-go .go-destination-context__value {
  margin: 0;
  font-weight: 800;
  color: var(--navy);
  font-size: 14.5px;
}

/* ── CREDIT BANK ───────────────────────────────────────────── */
#page-go .go-credit-bank__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
#page-go .go-credit-bank__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--soft, #f4f7fb);
}
#page-go .go-credit-bank__item-name {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 13.5px;
  margin-bottom: 8px;
}
#page-go .go-credit-bank__counts {
  display: flex;
  gap: 14px;
}
#page-go .go-credit-bank__count {
  display: flex;
  flex-direction: column;
}
#page-go .go-credit-bank__count-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
#page-go .go-credit-bank__count-label {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 3px;
}

/* ── TODAY / USE BUTTONS ───────────────────────────────────── */
#page-go .go-today__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
#page-go .go-use-btn {
  appearance: none;
  border: 1.5px solid var(--navy);
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  text-align: left;
}
#page-go .go-use-btn:hover { background: var(--soft, #f4f7fb); }
#page-go .go-use-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
#page-go .go-use-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
#page-go .go-use-btn__label {
  font-weight: 800;
  color: var(--navy);
  font-size: 13.5px;
}
#page-go .go-use-btn__status {
  font-size: 11.5px;
  color: var(--muted);
}
#page-go .go-use-btn.is-active {
  border-color: var(--gold);
  background: rgba(244,184,37,.1);
}
#page-go .go-use-btn.is-active .go-use-btn__status {
  color: #8a6100;
  font-weight: 700;
}

/* ── ADVISOR PANELS (unlocked-for-today content) ──────────── */
#page-go .go-advisor-panel {
  border-width: 1.5px;
}
#page-go .go-advisor-panel--ride { border-color: #b79ce8; }
#page-go .go-advisor-panel--food { border-color: #8fd6ab; }
#page-go .go-advisor-panel--ride .go-card__eyebrow { color: #7a4fc4; }
#page-go .go-advisor-panel--food .go-card__eyebrow { color: #2f8a55; }
#page-go .go-advisor-panel[hidden] { display: none; }

/* ── IMPORT FROM MY CONTENT ────────────────────────────────── */
#page-go .go-import__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
#page-go .go-import__tab {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--navy);
  cursor: pointer;
}
#page-go .go-import__tab.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
#page-go .go-import__tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

#page-go .go-import__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#page-go .go-import-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft, #f4f7fb);
}
#page-go .go-import-item__text {
  flex: 1;
  min-width: 0;
}
#page-go .go-import-item__name {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 13.5px;
}
#page-go .go-import-item__meta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
#page-go .go-import-item__btn {
  flex-shrink: 0;
  appearance: none;
  border: 1.5px solid var(--navy);
  background: var(--card);
  color: var(--navy);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 36px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
#page-go .go-import-item__btn.is-imported {
  border-color: #2f8a55;
  background: rgba(47,138,85,.1);
  color: #2f8a55;
}
#page-go .go-import-item__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
#page-go .go-import__empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ── QUESTIONNAIRE ─────────────────────────────────────────── */
#page-go .go-questionnaire__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#page-go .go-question label,
#page-go .go-question__label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 13.5px;
  margin-bottom: 8px;
}
#page-go .go-question select,
#page-go .go-question input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
}
#page-go .go-question select:focus-visible,
#page-go .go-question input[type="text"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
#page-go .go-question__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#page-go .go-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
#page-go .go-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
#page-go .go-choice:has(input:checked) {
  border-color: var(--gold);
  background: rgba(244,184,37,.14);
}
#page-go .go-choice input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
#page-go .go-questionnaire__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
#page-go .go-questionnaire__status {
  font-size: 12.5px;
  font-weight: 700;
  color: #2f8a55;
}

/* ── GO LIVE ───────────────────────────────────────────────── */
#page-go .go-live__toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  border: 1.5px solid var(--navy);
  background: var(--card);
  color: var(--navy);
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
#page-go .go-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
#page-go .go-live__toggle[aria-pressed="true"] {
  border-color: #c0392b;
  background: #c0392b;
  color: #fff;
}
#page-go .go-live__toggle[aria-pressed="true"] .go-live__dot {
  background: #fff;
  animation: goLivePulse 1.6s ease-in-out infinite;
}
@keyframes goLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  #page-go .go-live__dot { animation: none; }
}
#page-go .go-live__toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
#page-go .go-live__note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--soft, #f4f7fb);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
#page-go .go-live__log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#page-go .go-live__log-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
#page-go .go-live__log-item:last-child { border-bottom: none; }
#page-go .go-live__log-num {
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  min-width: 18px;
}
#page-go .go-live__log-text {
  flex: 1;
  color: var(--ink);
  font-weight: 600;
}
#page-go .go-live__log-time {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 620px) {
  #page-go .go-card { padding: 18px; }
  #page-go .go-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
  #page-go .go-destination-context {
    flex-wrap: wrap;
  }
  #page-go .go-destination-context .go-btn { width: 100%; }
}

/* =============================================================
   JIMINY PURCHASE DIALOG — copied verbatim from css/home.css
   (that file's own header explains why no selector rewriting is
   needed: the dialog is a body-level element, never scoped under
   any #page-* wrapper).
============================================================= */

/* =============================================================
   JIMINY PURCHASE DIALOG
   Explorer Pass / Ride Advisor / Food Advisor — one-time,
   fixed-duration digital access products. Opened from the existing
   #explorerPassBannerTrigger anchor (js/purchase-dialog.js).
   Scoped entirely under .purchase-dialog* / .purchase-product* /
   .purchase-option* so it cannot affect any other component.
============================================================= */

.purchase-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(880px, calc(100vw - 24px));
  width: 100%;
  max-height: calc(100vh - 32px);
  border-radius: 26px;
  overflow: visible;
  color: var(--ink);
}
.purchase-dialog::backdrop {
  background: rgba(4, 13, 28, .62);
}
@media (prefers-reduced-motion: no-preference) {
  .purchase-dialog {
    animation: purchaseDialogIn .22s ease both;
  }
  .purchase-dialog::backdrop {
    animation: purchaseBackdropIn .22s ease both;
  }
}
@keyframes purchaseDialogIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes purchaseBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.purchase-dialog__surface {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  background: var(--cream);
  border: 1px solid var(--navy);
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(4,13,28,.4);
  overflow: hidden;
}

.purchase-dialog__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--navy);
  border-bottom: 1px solid rgba(244,184,37,.35);
}
.purchase-dialog__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-size: 18px;
  color: #fff;
}
.purchase-dialog__brand-icon {
  color: var(--gold);
  font-size: 15px;
}
.purchase-dialog__close {
  appearance: none;
  border: 1px solid rgba(244,184,37,.4);
  background: rgba(244,184,37,.08);
  color: var(--gold);
  width: 36px;
  height: 36px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.purchase-dialog__close:hover {
  background: rgba(244,184,37,.18);
}
.purchase-dialog__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.purchase-dialog__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px 20px 8px;
}
.purchase-dialog__title {
  margin: 0 0 6px;
  font-family: Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--navy);
}
.purchase-dialog__description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 60ch;
}

.purchase-destination {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 16px;
  background: var(--soft, #f4f7fb);
}
.purchase-destination__label {
  padding: 0;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}
.purchase-destination__toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.purchase-destination__option {
  position: relative;
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--navy);
  font-weight: 800;
  font-size: 13.5px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.purchase-destination__option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.purchase-destination__option:has(input:checked) {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.purchase-destination__option:hover {
  border-color: var(--navy);
}
.purchase-destination__option input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.purchase-destination__note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.purchase-dialog__status {
  min-height: 20px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.purchase-dialog__status--error {
  color: #a13a2f;
}
.purchase-dialog__status:empty {
  margin-bottom: 0;
}

.purchase-products {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.purchase-product {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px 20px;
  color: #fff;
}
.purchase-product--explorer {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy2) 100%);
  border: 1px solid var(--gold);
}
.purchase-product--ride {
  background: linear-gradient(150deg, #4a2f78 0%, #2c1a4d 100%);
  border: 1px solid #b79ce8;
}
.purchase-product--food {
  background: linear-gradient(150deg, #1f4a34 0%, #12301f 100%);
  border: 1px solid #8fd6ab;
}

.purchase-product__decoration {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 72px;
  height: 72px;
  opacity: .9;
  pointer-events: none;
}
.purchase-product--explorer .purchase-product__decoration { color: var(--gold); }
.purchase-product--ride .purchase-product__decoration { color: #d8c6ff; }
.purchase-product--food .purchase-product__decoration { color: #bdeecb; }
.purchase-product__decoration img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.purchase-product__spark {
  position: absolute;
  font-size: 9px;
  opacity: .85;
}
.purchase-product__spark--1 { top: -2px; right: -6px; }
.purchase-product__spark--2 { bottom: 4px; left: -8px; font-size: 7px; }
@media (prefers-reduced-motion: no-preference) {
  .purchase-product__spark {
    animation: purchaseSparkle 3s ease-in-out infinite;
  }
  .purchase-product__spark--2 { animation-delay: .5s; }
}
@keyframes purchaseSparkle {
  0%, 100% { opacity: .5; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

.purchase-product__badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.purchase-product__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.purchase-product--explorer .purchase-product__eyebrow { color: var(--gold); }
.purchase-product--ride .purchase-product__eyebrow { color: #d8c6ff; }
.purchase-product--food .purchase-product__eyebrow { color: #bdeecb; }

.purchase-product__title {
  margin: 0 0 6px;
  font-family: Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  color: #fff;
  max-width: 80%;
}
.purchase-product__includes {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.purchase-product__description {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
  max-width: 46ch;
}

.purchase-product__pricing {
  border: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.purchase-option {
  position: relative;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.purchase-option:hover {
  background: rgba(255,255,255,.12);
}
.purchase-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.purchase-option__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  position: relative;
}
.purchase-option__check::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .12s ease, transform .12s ease;
}
.purchase-option input:checked ~ .purchase-option__check {
  border-color: var(--gold);
}
.purchase-option input:checked ~ .purchase-option__check::after {
  opacity: 1;
  transform: scale(1);
}
.purchase-option:has(input:checked) {
  border-color: var(--gold);
  background: rgba(244,184,37,.14);
}
.purchase-option input:focus-visible ~ .purchase-option__check {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.purchase-option__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.purchase-option__duration {
  font-weight: 900;
  font-size: 13.5px;
  color: #fff;
}
.purchase-option__access {
  font-size: 11px;
  color: rgba(255,255,255,.7);
}
.purchase-option__price {
  flex-shrink: 0;
  font-weight: 900;
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
}

.purchase-product__value {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold);
}

.purchase-product__button {
  appearance: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14.5px;
  cursor: pointer;
  transition: filter .15s ease, opacity .15s ease;
}
.purchase-product--explorer .purchase-product__button {
  background: var(--gold);
  color: var(--navy);
}
.purchase-product--ride .purchase-product__button {
  background: #c9b3f5;
  color: #2c1a4d;
}
.purchase-product--food .purchase-product__button {
  background: #a9e8bf;
  color: #12301f;
}
.purchase-product__button:hover {
  filter: brightness(1.06);
}
.purchase-product__button:active {
  filter: brightness(.96);
}
.purchase-product__button:disabled {
  opacity: .7;
  cursor: not-allowed;
}
.purchase-product__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.purchase-dialog__footer {
  flex-shrink: 0;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.purchase-dialog__restore {
  appearance: none;
  border: none;
  background: none;
  padding: 4px 0;
  margin-bottom: 3px;
  color: var(--navy);
  font-weight: 800;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  min-height: 32px;
}
.purchase-dialog__restore:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.purchase-dialog__restore:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.purchase-dialog__disclaimer {
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}

@media (min-width: 760px) {
  .purchase-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .purchase-product {
    display: flex;
    flex-direction: column;
  }
  .purchase-product__button {
    margin-top: auto;
  }
  .purchase-product__pricing {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .purchase-dialog {
    position: fixed;
    top: calc(66px + env(safe-area-inset-top, 0px));
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    right: 12px;
    margin: 0;
    max-width: none;
    width: auto;
    max-height: none;
    height: auto;
  }
  .purchase-dialog__surface {
    max-height: 100%;
    height: 100%;
  }
  .purchase-dialog__body {
    padding: 16px 14px 4px;
  }
  .purchase-product {
    padding: 18px 16px;
  }
  .purchase-product__decoration {
    width: 52px;
    height: 52px;
  }
  .purchase-product__decoration img {
    width: 52px;
    height: 52px;
  }
  .purchase-option {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-dialog,
  .purchase-dialog::backdrop,
  .purchase-product__spark {
    animation: none;
  }
}
