/* ==========================================================================
   wallet.css — Customer Stored-Value Wallet (ITT Heal / Integrative Touch Therapies)
   A premium, luxury-spa "prepaid session balance" experience.
   All styling external. Mobile-first 344 / 768 / 1920. WCAG 2.1 AA.
   "wallet balance" = customer's own loaded money (NEVER "credits" — that is the
   separate referral system). Non-expiring, non-refundable except as required by law.
   Contrast fixes applied per css-code-reviewer (hero gradient, credit, debit).
   ========================================================================== */

:root {
  /* Brand palette (DESIGN_SYSTEM.md §2) */
  --w-sage:        #8aa77b;
  --w-sage-deep:   #5a685a;
  --w-sage-soft:   #e8ece8;
  --w-mocha:       #9b8579;
  --w-cream:       #f5f1e8;
  --w-cream-warm:  #faf7f0;
  --w-sand:        #d4c5b0;
  --w-teal:        #608c8d;   /* focus rings — 3.73:1 on white, 3.31:1 on cream (WCAG 1.4.11) */
  --w-terracotta:  #c98a7d;
  --w-ink:         #2f3830;   /* primary text on cream — ~11:1 on cream */
  --w-ink-soft:    #5b6459;   /* secondary text — ~5.6:1 on cream */
  --w-white:       #ffffff;

  /* Semantic (transaction directions / states) — distinct hues, glance-separable, AA on cream */
  --w-credit:      #2f6b45;   /* load / refund (money in) — 5.6:1 on cream */
  --w-credit-bg:   #e6efe6;
  --w-debit:       #78584c;   /* charge (money out) — warm brown, 5.6:1 on cream */
  --w-debit-bg:    #efe7e1;
  --w-adjust:      #6b6a86;   /* adjustment — muted indigo (brand-intentional, not AI autopilot) */
  --w-adjust-bg:   #e9e8ef;
  --w-caution:     #b07d3c;   /* low-balance nudge — amber/bronze */
  --w-caution-bg:  #f6ecd9;
  --w-caution-ink: #6f5326;   /* nudge text — 6:1 on caution-bg */
  --w-error:       #b1483d;
  --w-error-bg:    #f6e5e2;

  /* Spacing scale */
  --w-space-1: 0.25rem; --w-space-2: 0.5rem;  --w-space-3: 0.75rem;
  --w-space-4: 1rem;    --w-space-5: 1.5rem;  --w-space-6: 2rem;
  --w-space-7: 3rem;    --w-space-8: 4rem;

  /* Intentional radii (not 8px-everything) */
  --w-radius-sm: 6px;
  --w-radius-md: 14px;
  --w-radius-lg: 22px;
  --w-radius-pill: 999px;

  /* Purposeful elevation (warm-tinted, not generic rgba black) */
  --w-shadow-sm: 0 2px 8px rgba(90, 104, 90, 0.08);
  --w-shadow-md: 0 10px 30px -12px rgba(90, 104, 90, 0.28);
  --w-shadow-lg: 0 26px 60px -20px rgba(75, 90, 70, 0.40);

  --w-font-display: 'Playfair Display', Georgia, serif;
  --w-font-body: 'Open Sans', system-ui, sans-serif;

  --w-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body.wallet-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--w-font-body);
  color: var(--w-ink);
  line-height: 1.6;
  /* Warm layered spa atmosphere — soft sage/cream, NOT a flat gray or AI-purple gradient */
  background:
    radial-gradient(1200px 600px at 50% -10%, #eef3ea 0%, transparent 60%),
    linear-gradient(180deg, var(--w-cream-warm) 0%, var(--w-cream) 100%);
  background-attachment: fixed;
}

.wallet { width: 100%; min-width: 0; }

/* ---------- Shell: header / main / footer ---------- */
.wallet__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--w-space-3);
  padding: var(--w-space-5) var(--w-space-4) var(--w-space-3);
}
.wallet__logo { width: 38px; height: 38px; flex: none; object-fit: contain; }
.wallet__brand {
  font-family: var(--w-font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--w-sage-deep);
  margin: 0;
}
.wallet__main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--w-space-3) var(--w-space-4) var(--w-space-8);
  min-width: 0;
  overflow-x: hidden;
}

.wallet__state { display: none; animation: wallet-fade 0.5s var(--w-ease) both; }
.wallet__state.is-active { display: block; }

/* State headings receive programmatic focus (tabindex="-1") purely so screen readers announce
   the new state — they are not keyboard-tabbable, so the visible focus ring is suppressed to
   avoid a stray box around the heading. Interactive controls keep their :focus-visible rings. */
.wallet__state [tabindex="-1"]:focus { outline: none; }

@keyframes wallet-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Loading skeleton (matches dashboard shape) ---------- */
.wallet__skeleton-hero,
.wallet__skeleton-row {
  border-radius: var(--w-radius-md);
  background: linear-gradient(100deg, #eceee9 30%, #f4f6f1 50%, #eceee9 70%);
  background-size: 220% 100%;
  animation: wallet-shimmer 1.4s ease-in-out infinite;
}
.wallet__skeleton-hero { height: 190px; border-radius: var(--w-radius-lg); margin-bottom: var(--w-space-5); }
.wallet__skeleton-row { height: 60px; margin-bottom: var(--w-space-3); }
@keyframes wallet-shimmer {
  from { background-position: 180% 0; }
  to   { background-position: -40% 0; }
}

/* ---------- Balance hero (the premium centerpiece) ---------- */
.wallet__hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--w-radius-lg);
  padding: var(--w-space-6) var(--w-space-5);
  text-align: center;
  color: var(--w-white);
  /* Deepened sage→teal so white text clears WCAG AA (>=4.7:1 on every stop) */
  background:
    radial-gradient(120% 140% at 12% 8%, rgba(255,255,255,0.14) 0%, transparent 42%),
    linear-gradient(150deg, #5e7a67 0%, #517b6f 55%, #45645c 100%);
  box-shadow: var(--w-shadow-lg);
}
.wallet__hero::after {
  /* soft foil sheen confined to the lower-right (no text there) — spa-luxe, not gaudy */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 70% at 88% 122%, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.wallet__hero-label {
  margin: 0 0 var(--w-space-2);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.94);
}
.wallet__hero-amount {
  font-family: var(--w-font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 14vw, 4.6rem);
  line-height: 1;
  margin: 0;
  text-shadow: 0 2px 18px rgba(30, 45, 35, 0.35);
}
.wallet__hero-amount .wallet__cents { font-size: 0.5em; vertical-align: super; opacity: 0.92; }
.wallet__hero-sub {
  margin: var(--w-space-3) 0 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.94);
}
.wallet__hero-trust {
  display: inline-flex;
  align-items: center;
  gap: var(--w-space-2);
  margin-top: var(--w-space-4);
  padding: var(--w-space-1) var(--w-space-3);
  border-radius: var(--w-radius-pill);
  background: rgba(255,255,255,0.18);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

/* ---------- Section titles ---------- */
.wallet__section { margin-top: var(--w-space-6); }
.wallet__section-title {
  font-family: var(--w-font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--w-sage-deep);
  margin: 0 0 var(--w-space-3);
}

/* ---------- Load funds ---------- */
.wallet__presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--w-space-3);
}
.wallet__preset {
  font-family: var(--w-font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--w-sage-deep);
  background: var(--w-white);
  border: 1.5px solid var(--w-sand);
  border-radius: var(--w-radius-md);
  padding: var(--w-space-4);
  min-height: 56px;
  cursor: pointer;
  transition: transform 0.2s var(--w-ease), border-color 0.2s var(--w-ease), box-shadow 0.2s var(--w-ease), background 0.2s var(--w-ease);
}
.wallet__preset:hover { transform: translateY(-2px); border-color: var(--w-sage); box-shadow: var(--w-shadow-sm); }
.wallet__preset:focus-visible { outline: 3px solid var(--w-teal); outline-offset: 2px; }
.wallet__preset.is-selected {
  background: var(--w-sage-soft);
  border-color: var(--w-sage);
  color: var(--w-sage-deep);
  box-shadow: inset 0 0 0 1.5px var(--w-sage);
}
.wallet__preset-note { display: block; font-size: 0.72rem; font-weight: 400; color: var(--w-ink-soft); margin-top: 2px; }

.wallet__custom { margin-top: var(--w-space-3); }
.wallet__custom-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--w-ink-soft); margin-bottom: var(--w-space-2); }
.wallet__input-wrap { position: relative; display: flex; align-items: center; }
.wallet__input-prefix { position: absolute; left: var(--w-space-4); font-size: 1.1rem; color: var(--w-ink-soft); pointer-events: none; }
.wallet__input {
  width: 100%;
  min-width: 0;
  font-family: var(--w-font-body);
  font-size: 1.1rem;
  color: var(--w-ink);
  background: var(--w-white);
  border: 1.5px solid var(--w-sand);
  border-radius: var(--w-radius-md);
  padding: var(--w-space-4) var(--w-space-4) var(--w-space-4) 2.2rem;
  transition: border-color 0.2s var(--w-ease), box-shadow 0.2s var(--w-ease);
}
.wallet__input:focus-visible { outline: none; border-color: var(--w-sage); box-shadow: 0 0 0 3px rgba(138,167,123,0.28); }
.wallet__input[aria-invalid="true"] { border-color: var(--w-error); box-shadow: 0 0 0 3px rgba(177,72,61,0.18); }
.wallet__error-text { display: none; margin: var(--w-space-2) 0 0; font-size: 0.82rem; color: var(--w-error); }
.wallet__error-text.is-visible { display: block; }

/* ---------- Buttons ---------- */
.wallet__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--w-space-2);
  width: 100%;
  min-height: 54px;
  font-family: var(--w-font-body);
  font-size: 1.02rem;
  font-weight: 600;
  border: none;
  border-radius: var(--w-radius-pill);
  cursor: pointer;
  transition: transform 0.2s var(--w-ease), box-shadow 0.2s var(--w-ease), background 0.2s var(--w-ease), opacity 0.2s var(--w-ease);
}
.wallet__btn--primary {
  color: var(--w-white);
  background: linear-gradient(135deg, #6f9285 0%, #567a6e 100%);
  box-shadow: var(--w-shadow-md);
  margin-top: var(--w-space-4);
}
.wallet__btn--primary:hover { transform: translateY(-2px); box-shadow: var(--w-shadow-lg); }
.wallet__btn--primary:focus-visible { outline: 3px solid var(--w-teal); outline-offset: 3px; }
.wallet__btn--ghost {
  color: var(--w-sage-deep);
  background: transparent;
  border: 1.5px solid var(--w-sage);
}
.wallet__btn--ghost:hover { background: var(--w-sage-soft); }
.wallet__btn--ghost:focus-visible { outline: 3px solid var(--w-teal); outline-offset: 2px; }
.wallet__btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.wallet__btn[aria-busy="true"] { color: transparent; position: relative; pointer-events: none; }
.wallet__btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.55);
  border-top-color: var(--w-white);
  border-radius: 50%;
  animation: wallet-spin 0.7s linear infinite;
}
.wallet__btn--ghost[aria-busy="true"]::after { border-color: rgba(90,104,90,0.4); border-top-color: var(--w-sage-deep); }
@keyframes wallet-spin { to { transform: rotate(360deg); } }

/* ---------- Transaction history (native flex card-list, not a table) ---------- */
.wallet__txns { list-style: none; margin: 0; padding: 0; }
.wallet__txn {
  display: flex;
  align-items: center;
  gap: var(--w-space-3);
  padding: var(--w-space-3) var(--w-space-4);
  background: var(--w-white);
  border: 1px solid #ece5d9;
  border-radius: var(--w-radius-md);
  margin-bottom: var(--w-space-3);
  box-shadow: var(--w-shadow-sm);
}
.wallet__txn-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--w-radius-pill);
  font-size: 1rem;
}
.wallet__txn--load .wallet__txn-icon,
.wallet__txn--refund .wallet__txn-icon { background: var(--w-credit-bg); color: var(--w-credit); }
.wallet__txn--charge .wallet__txn-icon { background: var(--w-debit-bg); color: var(--w-debit); }
.wallet__txn--adjustment .wallet__txn-icon { background: var(--w-adjust-bg); color: var(--w-adjust); }
.wallet__txn-body { flex: 1; min-width: 0; }
.wallet__txn-label { font-weight: 600; font-size: 0.94rem; color: var(--w-ink); margin: 0; }
.wallet__txn-meta { font-size: 0.78rem; color: var(--w-ink-soft); margin: 2px 0 0; }
.wallet__txn-right { flex: none; text-align: right; }
.wallet__txn-amount { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; margin: 0; }
.wallet__txn--load .wallet__txn-amount,
.wallet__txn--refund .wallet__txn-amount { color: var(--w-credit); }
.wallet__txn--charge .wallet__txn-amount { color: var(--w-debit); }
.wallet__txn--adjustment .wallet__txn-amount { color: var(--w-adjust); }
.wallet__txn-after { display: block; font-size: 0.72rem; font-weight: 400; color: var(--w-ink-soft); margin-top: 2px; }

/* ---------- Empty / onboarding ---------- */
.wallet__empty { text-align: center; padding: var(--w-space-5) var(--w-space-3); }
.wallet__empty-art { width: 96px; height: 96px; margin: 0 auto var(--w-space-4); object-fit: contain; }
.wallet__empty-title { font-family: var(--w-font-display); font-size: 1.6rem; color: var(--w-sage-deep); margin: 0 0 var(--w-space-3); }
.wallet__empty-text { color: var(--w-ink-soft); max-width: 40ch; margin: 0 auto var(--w-space-5); }
.wallet__perks { list-style: none; margin: 0 0 var(--w-space-5); padding: 0; display: grid; gap: var(--w-space-3); text-align: left; }
.wallet__perk { display: flex; gap: var(--w-space-3); align-items: flex-start; padding: var(--w-space-3) var(--w-space-4); background: var(--w-white); border-radius: var(--w-radius-md); box-shadow: var(--w-shadow-sm); }
.wallet__perk-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--w-sage); }
.wallet__perk-title { font-weight: 600; margin: 0; font-size: 0.92rem; }
.wallet__perk-text { margin: 2px 0 0; font-size: 0.82rem; color: var(--w-ink-soft); }

/* ---------- Low-balance nudge (Silent Last Call) ---------- */
.wallet__nudge {
  display: flex;
  align-items: center;
  gap: var(--w-space-3);
  padding: var(--w-space-3) var(--w-space-4);
  margin-top: var(--w-space-5);
  background: var(--w-caution-bg);
  border: 1px solid #ecd9b4;
  border-radius: var(--w-radius-md);
}
.wallet__nudge-icon { flex: none; color: var(--w-caution); }
.wallet__nudge-text { flex: 1; min-width: 0; font-size: 0.86rem; color: var(--w-caution-ink); margin: 0; }
.wallet__nudge-dismiss {
  flex: none; background: none; border: none; cursor: pointer;
  color: var(--w-caution-ink); font-size: 1.1rem; line-height: 1; padding: var(--w-space-2);
  border-radius: var(--w-radius-pill); min-width: 44px; min-height: 44px;
}
.wallet__nudge-dismiss:hover { background: rgba(176,125,60,0.14); }
.wallet__nudge-dismiss:focus-visible { outline: 3px solid var(--w-caution); outline-offset: 2px; }

/* ---------- Identify / email ---------- */
.wallet__panel {
  background: var(--w-white);
  border-radius: var(--w-radius-lg);
  padding: var(--w-space-6) var(--w-space-5);
  box-shadow: var(--w-shadow-md);
  text-align: center;
}
.wallet__panel-title { font-family: var(--w-font-display); font-size: 1.5rem; color: var(--w-sage-deep); margin: 0 0 var(--w-space-3); }
.wallet__panel-text { color: var(--w-ink-soft); margin: 0 auto var(--w-space-5); max-width: 42ch; }
.wallet__field { text-align: left; margin-bottom: var(--w-space-3); }
.wallet__why { font-size: 0.78rem; color: var(--w-ink-soft); margin: var(--w-space-3) 0 0; }

/* ---------- Celebration ---------- */
.wallet__celebrate { text-align: center; padding: var(--w-space-6) var(--w-space-3); position: relative; }
.wallet__celebrate-badge {
  width: 108px; height: 108px; margin: 0 auto var(--w-space-4);
  display: grid; place-items: center;
  border-radius: var(--w-radius-pill);
  background: radial-gradient(circle at 50% 40%, #7fa576 0%, #567a6e 100%);
  box-shadow: 0 18px 44px -14px rgba(86, 122, 110, 0.7);
  animation: wallet-pop 0.7s var(--w-ease) both;
}
.wallet__celebrate-check { width: 54px; height: 54px; color: var(--w-white); }
.wallet__celebrate-check path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: wallet-draw 0.6s 0.25s var(--w-ease) forwards; }
.wallet__celebrate-title { font-family: var(--w-font-display); font-size: 1.8rem; color: var(--w-sage-deep); margin: 0 0 var(--w-space-2); }
.wallet__celebrate-text { color: var(--w-ink-soft); margin: 0 auto var(--w-space-5); max-width: 40ch; }
.wallet__spark { position: absolute; top: 40px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--w-sand); opacity: 0; }
.wallet__spark:nth-child(1) { animation: wallet-spark 1s 0.2s var(--w-ease) both; --sx: -120px; --sy: -20px; }
.wallet__spark:nth-child(2) { animation: wallet-spark 1s 0.3s var(--w-ease) both; --sx: 120px; --sy: -10px; background: var(--w-teal); }
.wallet__spark:nth-child(3) { animation: wallet-spark 1s 0.25s var(--w-ease) both; --sx: -80px; --sy: 60px; background: var(--w-terracotta); }
.wallet__spark:nth-child(4) { animation: wallet-spark 1s 0.35s var(--w-ease) both; --sx: 90px; --sy: 70px; }
@keyframes wallet-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes wallet-draw { to { stroke-dashoffset: 0; } }
@keyframes wallet-spark { 0% { opacity: 0; transform: translate(-50%,0) scale(0.3); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--sx)), var(--sy)) scale(1); } }
.wallet__processing-note { font-size: 0.84rem; color: var(--w-ink-soft); margin-top: var(--w-space-3); }

/* ---------- Generic state icons (cancelled / error) ---------- */
.wallet__state-icon { width: 72px; height: 72px; margin: 0 auto var(--w-space-4); display: grid; place-items: center; border-radius: var(--w-radius-pill); font-size: 2rem; }
.wallet__state-icon--warn { background: var(--w-caution-bg); color: var(--w-caution); }
.wallet__state-icon--error { background: var(--w-error-bg); color: var(--w-error); }
/* Calm/reassuring treatment — used where the copy says "all good" (e.g. cancelled = "No charge
   was made") so a caution hue doesn't visually contradict the reassuring message. */
.wallet__state-icon--calm { background: var(--w-sage-soft); color: var(--w-sage-deep); }

/* ---------- Footer / trust ---------- */
.wallet__footer { text-align: center; padding: var(--w-space-6) var(--w-space-4) var(--w-space-4); color: var(--w-ink-soft); font-size: 0.82rem; }
.wallet__stripe { display: inline-flex; align-items: center; gap: var(--w-space-2); margin-bottom: var(--w-space-3); font-weight: 600; color: var(--w-sage-deep); }
.wallet__footer a { color: var(--w-sage-deep); font-weight: 600; text-decoration: none; }
.wallet__footer a:hover { text-decoration: underline; }
.wallet__footer a:focus-visible { outline: 3px solid var(--w-teal); outline-offset: 2px; border-radius: var(--w-radius-sm); }
.wallet__fineprint { margin: var(--w-space-2) 0 0; font-size: 0.74rem; }

.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;
}

/* ==========================================================================
   Checkout panel — injected into the booking page at the payment step.
   Namespaced .itt-wallet-checkout so it cannot collide with booking styles.
   Distinct from referral "credit". Loaded via runtime <link> to this file.
   ========================================================================== */
.itt-wallet-checkout {
  margin: var(--w-space-4) 0;
  padding: var(--w-space-4);
  background: linear-gradient(135deg, #f2f6ee 0%, #eef4f0 100%);
  border: 1.5px solid var(--w-sage);
  border-radius: var(--w-radius-md);
  font-family: var(--w-font-body);
  color: var(--w-ink);
}
.itt-wallet-checkout__head { display: flex; align-items: center; gap: var(--w-space-3); }
.itt-wallet-checkout__logo { width: 30px; height: 30px; flex: none; }
.itt-wallet-checkout__title { font-weight: 700; font-size: 0.98rem; color: var(--w-sage-deep); margin: 0; }
.itt-wallet-checkout__balance { margin-left: auto; font-family: var(--w-font-display); font-weight: 600; font-size: 1.2rem; color: var(--w-sage-deep); font-variant-numeric: tabular-nums; }
.itt-wallet-checkout__body { margin-top: var(--w-space-3); font-size: 0.86rem; color: var(--w-ink-soft); }
.itt-wallet-checkout__toggle {
  display: flex; align-items: center; gap: var(--w-space-3);
  margin-top: var(--w-space-3); padding: var(--w-space-3);
  background: var(--w-white); border: 1.5px solid var(--w-sand);
  border-radius: var(--w-radius-sm); cursor: pointer;
  min-height: 48px;
}
.itt-wallet-checkout__toggle:hover { border-color: var(--w-sage); }
.itt-wallet-checkout__toggle:focus-within { border-color: var(--w-sage); box-shadow: 0 0 0 3px rgba(138,167,123,0.24); }
.itt-wallet-checkout__toggle input { width: 20px; height: 20px; flex: none; accent-color: var(--w-sage); }
.itt-wallet-checkout__toggle-text { font-size: 0.9rem; font-weight: 600; color: var(--w-ink); }
.itt-wallet-checkout__applied { margin-top: var(--w-space-3); padding: var(--w-space-3); background: var(--w-credit-bg); border-radius: var(--w-radius-sm); font-size: 0.86rem; color: var(--w-credit); font-weight: 600; }
.itt-wallet-checkout__note { margin: var(--w-space-3) 0 0; font-size: 0.76rem; color: var(--w-ink-soft); }
.itt-wallet-checkout__link { color: var(--w-sage-deep); font-weight: 600; }
.itt-wallet-checkout--empty { border-style: dashed; border-color: var(--w-sand); background: var(--w-cream-warm); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .wallet__main { max-width: 100%; overflow-x: hidden; }
  .wallet__main, .wallet__panel, .wallet__hero { min-width: 0; }
}

@media (max-width: 480px) {
  .wallet__hero { padding: var(--w-space-5) var(--w-space-4); }
}

@media (max-width: 344px) {
  .wallet__header { padding: var(--w-space-4) var(--w-space-3) var(--w-space-2); }
  .wallet__main { padding: var(--w-space-2) var(--w-space-3) var(--w-space-7); }
  .wallet__presets { grid-template-columns: 1fr; }
  .wallet__hero-amount { font-size: clamp(2.6rem, 16vw, 3.4rem); }
  .wallet__txn { padding: var(--w-space-3); gap: var(--w-space-2); }
  .wallet__txn-icon { width: 34px; height: 34px; }
  .wallet__txn-after { font-size: 0.68rem; }
  .itt-wallet-checkout__head { flex-wrap: wrap; }
  .itt-wallet-checkout__balance { margin-left: 0; width: 100%; }
}

@media (min-width: 1920px) {
  .wallet__main { max-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  *, .wallet__state, .wallet__celebrate-badge, .wallet__celebrate-check path, .wallet__spark, .wallet__skeleton-hero, .wallet__skeleton-row, .wallet__btn {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .wallet__spark { display: none; }
  .wallet__celebrate-check path { stroke-dashoffset: 0; }
}
