/* ============================================================
   CLASSIC THEME — modern e-commerce storefront design system.
   Same class surface as editorial/theme.css (so shared header/
   footer/drawer/component classes stay styled), restyled for a
   clean modern look. Adds Classic-only --radius/--shadow tokens.
   References --theme-* (accent) from theme-generator.php.
   ============================================================ */
    /* ── Classic design system ── */
    :root {
      --font-display: 'Inter', system-ui, sans-serif;
      --paper:        #f7f8fa;
      --paper-2:      #ffffff;
      --ink:          #111827;
      --ink-2:        #374151;
      --ink-soft:     #6b7280;
      --rule:         #e5e7eb;
      --rule-soft:    #f1f3f5;
      --noise:        none;
      /* Page backdrop — flat by design. Clean/minimal IS the identity;
         no-op token keeps the contract uniform across themes. */
      --page-bg:      var(--paper);
      /* Classic-only */
      --radius:       12px;
      --radius-sm:    8px;
      --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
      --shadow-md:    0 4px 12px rgba(0,0,0,.10);
      --notify-accent: var(--theme-500);   /* unified popup engine accent — theme-generator.php's site-wide accent axis */
    }
    html.dark {
      --paper:        #0f172a;
      --paper-2:      #1e293b;
      --ink:          #f1f5f9;
      --ink-2:        #cbd5e1;
      --ink-soft:     #94a3b8;
      --rule:         #334155;
      --rule-soft:    #1e293b;
      --shadow:       0 1px 3px rgba(0,0,0,.40), 0 1px 2px rgba(0,0,0,.30);
      --shadow-md:    0 4px 12px rgba(0,0,0,.45);
      --page-bg:      var(--paper);
    }

    body { background: var(--paper); color: var(--ink); }

    /* Display headlines — clean Inter, no tightening */
    .font-display, h1.display, h2.display, h3.display {
      font-family: 'Inter', system-ui, sans-serif;
      letter-spacing: normal;
    }
    .display-italic {
      font-style: normal;
    }
    .text-gradient-theme {
      background: none;
      -webkit-text-fill-color: currentColor;
      color: var(--theme-600);
    }

    /* Eyebrow label */
    .ed-eyebrow {
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--ink-soft);
    }

    /* Tight eyebrow — same style, letter-spacing stripped so it stays on one line
       in narrow cards. !important guards against the Tailwind CDN Preflight
       (injected after this stylesheet) winning the cascade on these props. */
    .ed-eyebrow-tight {
      font-size: 9px !important;
      letter-spacing: 0 !important;
      white-space: nowrap !important;
    }

    /* Section eyebrow — simple label with leading line */
    .section-eyebrow {
      display: inline-flex; align-items: center; gap: 0.6rem;
      font-family: 'Inter', sans-serif;
      font-size: 11px; font-weight: 600;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--ink-soft);
      margin-bottom: 0.7rem;
    }
    .section-eyebrow::before {
      content: ''; width: 1.75rem; height: 1px;
      background: var(--ink-soft); opacity: 0.6; flex-shrink: 0;
    }

    /* View-all arrow link */
    .btn-view-all {
      display: inline-flex; align-items: center; gap: 0.45rem;
      font-family: 'Inter', sans-serif;
      font-size: 0.82rem; font-weight: 600;
      letter-spacing: normal;
      white-space: nowrap; flex-shrink: 0;
      color: var(--theme-600);
      text-decoration: none;
      transition: gap 0.18s ease, color 0.18s ease;
    }
    .btn-view-all svg { transition: transform 0.2s ease; }
    .btn-view-all:hover { gap: 0.75rem; color: var(--theme-700); }
    [dir="rtl"] .btn-view-all svg { transform: scaleX(-1); }

    .ed-rule { background-color: var(--rule); }
    .ed-rule-soft { background-color: var(--rule-soft); }

    /* Grain overlay disabled in Classic (--noise: none) */
    .ed-grain::before {
      content: ''; position: absolute; inset: 0; pointer-events: none;
      background-image: var(--noise);
    }

    /* Number ornament — plain muted (no italic flourish) */
    .ed-folio {
      font-family: 'Inter', sans-serif;
      font-style: normal;
      font-weight: 500;
      color: var(--ink-soft);
    }

    /* Header search — soft filled field */
    .ed-search {
      background: var(--paper-2);
      border: 1px solid var(--rule);
      border-radius: var(--radius-sm);
      transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }
    .ed-search:focus-within { border-color: var(--theme-500); box-shadow: 0 0 0 3px rgba(0,0,0,.03); }

    /* Text link with arrow */
    .ed-link-arrow {
      display: inline-flex; align-items: center; gap: 0.4rem;
      font-family: 'Inter', sans-serif;
      font-size: 0.82rem; font-weight: 600;
      color: var(--theme-600); text-decoration: none;
      transition: gap 0.18s ease, color 0.18s ease;
    }
    .ed-link-arrow:hover { gap: 0.7rem; color: var(--theme-700); }
    html.dark .ed-link-arrow:hover { color: var(--theme-300); }

    /* Primary CTA — solid accent, rounded */
    .ed-btn-primary {
      display: inline-flex; align-items: center; gap: 0.55rem;
      padding: 0.7rem 1.4rem;
      white-space: nowrap;
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem; font-weight: 600;
      letter-spacing: normal;
      color: #ffffff;
      background: var(--theme-600);
      border-radius: var(--radius-sm);
      border: 1px solid var(--theme-600);
      box-shadow: var(--shadow);
      transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    }
    .ed-btn-primary:hover {
      background: var(--theme-700); border-color: var(--theme-700);
      color: #ffffff;
      box-shadow: var(--shadow-md); transform: translateY(-1px);
    }
    html.dark .ed-btn-primary { color: #ffffff; }
    html.dark .ed-btn-primary:hover { color: #ffffff; }

    .ed-btn-secondary {
      display: inline-flex; align-items: center; gap: 0.55rem;
      padding: 0.68rem 1.35rem;
      font-family: 'Inter', sans-serif;
      font-size: 0.82rem; font-weight: 600;
      color: var(--ink);
      background: var(--paper-2);
      border-radius: var(--radius-sm);
      border: 1px solid var(--rule);
      transition: background 0.18s ease, border-color 0.18s ease;
    }
    .ed-btn-secondary:hover { background: var(--paper); border-color: var(--ink-soft); }

    /* Shared CTA — solid accent */
    .ed-plan-cta {
      display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
      padding: 0.7rem 1.4rem; border-radius: var(--radius-sm);
      font-family: 'Inter', sans-serif;
      font-size: 0.85rem; font-weight: 600;
      background: var(--theme-600); color: #ffffff;
      border: 1px solid var(--theme-600);
      transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
      text-decoration: none;
    }
    .ed-plan-cta:hover { background: var(--theme-700); border-color: var(--theme-700); transform: translateY(-1px); }
    html.dark .ed-plan-cta { color: #ffffff; }
    html.dark .ed-plan-cta:hover { color: #ffffff; }

    /* Plan / dossier cards — white, rounded, elevated */
    .ed-plan {
      background: var(--paper-2);
      border: 1px solid var(--rule);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .ed-plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

    .ed-plan-featured {
      position: relative;
      background: var(--theme-600); color: #ffffff;
      border: 1px solid var(--theme-600);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .ed-plan-featured:hover { transform: translateY(-2px); }
    html.dark .ed-plan-featured { background: var(--theme-600); color: #ffffff; border-color: var(--theme-600); }
    .ed-plan-hairline { border-color: var(--rule); }
    .ed-plan-featured .ed-plan-hairline { border-color: rgba(255,255,255,0.22); }
    html.dark .ed-plan-featured .ed-plan-hairline { border-color: rgba(255,255,255,0.22); }
    .ed-plan-featured .ed-plan-cta { background: #ffffff; color: var(--theme-700); border-color: #ffffff; }
    .ed-plan-featured .ed-plan-cta:hover { background: rgba(255,255,255,0.9); color: var(--theme-700); border-color: #ffffff; }
    html.dark .ed-plan-featured .ed-plan-cta { background: #ffffff; color: var(--theme-700); border-color: #ffffff; }
    html.dark .ed-plan-featured button.ed-plan-cta { color: var(--theme-700); }

    /* Shop card — white, rounded, elevated */
    .shop-card {
      background: var(--paper-2);
      border: 1px solid var(--rule);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .shop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

    /* Header status strip */
    .ed-status {
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      letter-spacing: 0.04em;
      color: var(--ink-soft);
    }

    /* Drawer typography */
    .drawer-section-label {
      display: flex; align-items: center; gap: 0.6rem;
      font-family: 'Inter', sans-serif;
      font-size: 10px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.12em;
      color: var(--ink-soft);
      padding: 1.1rem 1.5rem 0.4rem;
    }
    .drawer-section-label::after {
      content: ''; flex: 1; height: 1px; background: var(--rule);
    }
    .drawer-nav-row {
      display: flex; align-items: center; gap: 0.85rem;
      padding: 0.65rem 1.5rem;
      font-family: 'Inter', sans-serif;
      font-size: 0.92rem; font-weight: 500;
      color: var(--ink-2);
      transition: background 0.15s ease, color 0.15s ease;
      text-decoration: none;
    }
    .drawer-nav-row:hover { background: var(--paper); color: var(--ink); }
    .drawer-logout, .drawer-login {
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
      margin: 1rem 1.5rem 1.25rem;
      padding: 0.85rem 1rem;
      border-radius: var(--radius-sm);
      font-family: 'Inter', sans-serif;
      font-size: 0.86rem; font-weight: 600;
      text-decoration: none;
      transition: background 0.18s ease;
    }
    .drawer-logout { color: #dc2626; border: 1px solid rgba(220,38,38,0.25); }
    .drawer-logout:hover { background: rgba(220,38,38,0.06); }
    .drawer-login { color: #ffffff; background: var(--theme-600); }
    .drawer-login:hover { background: var(--theme-700); }
    html.dark .drawer-logout { color: #f87171; border-color: rgba(248,113,113,0.20); }

    /* Mobile glass header */
    .mobile-glass-header {
      background: rgba(247,248,250,0.85);
      backdrop-filter: blur(20px) saturate(160%);
      -webkit-backdrop-filter: blur(20px) saturate(160%);
      border-bottom: 1px solid var(--rule);
    }
    html.dark .mobile-glass-header {
      background: rgba(15,23,42,0.80);
    }

    /* Avatar ring */
    .ed-avatar-ring {
      box-shadow: 0 0 0 1px var(--paper-2), 0 0 0 2px rgba(var(--theme-500-rgb), 0.55);
    }

    /* Hide Alpine cloak */
    [x-cloak] { display: none !important; }

    /* Dropdown */
    .ed-dropdown {
      background: var(--paper-2);
      border: 1px solid var(--rule);
      border-radius: var(--radius);
      box-shadow: var(--shadow-md);
      overflow: hidden;
    }
    html.dark .ed-dropdown { background: var(--paper-2); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6); }

    .ed-dropdown-item {
      display: flex; align-items: center; gap: 0.85rem;
      padding: 0.7rem 1rem;
      font-family: 'Inter', sans-serif;
      font-size: 0.88rem; font-weight: 500;
      color: var(--ink-2);
      text-decoration: none;
      transition: background 0.14s ease, color 0.14s ease;
    }
    .ed-dropdown-item:hover { background: var(--paper); color: var(--ink); }
    html.dark .ed-dropdown-item:hover { background: rgba(255,255,255,0.04); color: var(--ink); }

    .ed-section-cap {
      font-family: 'Inter', sans-serif;
      font-size: 10px; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.1em;
      color: var(--ink-soft);
      padding: 0.9rem 1rem 0.4rem;
    }

    /* ── Classic header: clean elevated bar, white status strip ── */
    :root {
      --hdr-strip-bg: var(--paper-2);
      --hdr-strip-rule: var(--rule);
    }
    html.dark {
      --hdr-strip-bg: var(--paper-2);
    }
    #desktopHeader { box-shadow: var(--shadow); }

/* ── Auth (login/register) brand panel — classic slate & blue ── */
:root {
  --brand-gradient: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #334155 100%);
  --brand-glow-1:   rgba(37, 99, 235, 0.30);
  --brand-glow-2:   rgba(37, 99, 235, 0.16);
}

/* ── Home: mystery-box card frame + winner-ticker accent (classic) ── */
.ed-card-mystery {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ed-card-mystery:hover { border-color: var(--theme-600, #2563eb); box-shadow: var(--shadow-md); }
body .wt-card:hover { border-color: var(--theme-600, #2563eb); }

/* ══════════════════════════════════════════════════════════════════════════
   Payment cluster (payment.php → payment/*) — classic: clean white cards,
   blue accent, subtle shadows. Scoped cls-pay-*.
   ══════════════════════════════════════════════════════════════════════════ */

.cls-pay-topbar {
  background: var(--paper); border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.cls-pay-crest {
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--theme-600, #2563eb);
}

.cls-pay-card {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius, 12px); box-shadow: var(--shadow);
}

.cls-pay-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.cls-pay-collapse-btn { border-bottom: 1px solid var(--rule); background: none; }
.cls-pay-collapse-btn:hover { background: rgba(37,99,235,.03); }

.cls-pay-lineitem {
  border-radius: var(--radius-sm, 8px); background: var(--paper);
  border: 1px solid var(--rule);
}
.cls-pay-qty-hero {
  position: absolute; top: .625rem; right: .625rem;
  font-size: 12px; font-weight: 800; color: #fff;
  background: rgba(15,23,42,.62); backdrop-filter: blur(4px);
  padding: .125rem .625rem; border-radius: 999px;
}
.cls-pay-qty-badge {
  position: absolute; bottom: -.375rem; right: -.375rem;
  font-size: 10px; font-weight: 800; color: #fff;
  background: var(--theme-600, #2563eb);
  padding: .0625rem .375rem; border-radius: 999px; line-height: 1.5;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.cls-pay-countdown {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border-radius: var(--radius-sm, 8px);
  background: rgba(37,99,235,.07);
}
.cls-pay-countdown-time {
  font-size: 11px; font-weight: 700; color: var(--theme-600, #2563eb);
  background: var(--paper-2); border-radius: 999px; padding: .125rem .625rem;
}

.cls-pay-row { border-bottom: 1px solid var(--rule); }
.cls-pay-total {
  border-top: 2px solid var(--rule); font-size: 15px; font-weight: 800; color: var(--ink);
}

.cls-pay-address-inner {
  border: 1.5px solid var(--rule); border-radius: var(--radius-sm, 8px);
  background: var(--paper);
}

.cls-pay-gw {
  border: 2px solid var(--rule); border-radius: var(--radius-sm, 8px);
  background: var(--paper-2);
  transition: border-color .14s, background .14s, transform .14s, box-shadow .14s;
}
.cls-pay-gw:hover { border-color: var(--theme-400, #60a5fa); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cls-pay-gw-on {
  border-color: var(--theme-500, #3b82f6); background: rgba(37,99,235,.06);
  box-shadow: 0 0 0 1px var(--theme-500, #3b82f6);
}
.cls-pay-gw-radio {
  width: 1rem; height: 1rem; border-radius: 999px; border: 2px solid var(--rule);
  transition: border-color .14s, background .14s;
}
.cls-pay-gw-radio-on { border-color: var(--theme-600, #2563eb); background: var(--theme-600, #2563eb); }

.cls-pay-cta {
  font-weight: 800; font-size: 14px; letter-spacing: -.01em; color: #fff;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--theme-600, #2563eb);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.cls-pay-cta:hover:not(:disabled) { filter: brightness(1.05); box-shadow: var(--shadow-md); }
.cls-pay-cta:active:not(:disabled) { transform: scale(.99); }
.cls-pay-cta-off, .cls-pay-cta:disabled {
  background: var(--rule); color: var(--ink-soft); cursor: not-allowed;
}

.cls-pay-fixed {
  background: var(--paper-2); border-top: 1px solid var(--rule);
  box-shadow: 0 -4px 24px rgba(0,0,0,.09);
}

.cls-pay-modal {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 1.5rem; box-shadow: 0 24px 64px rgba(0,0,0,.3);
}

/* Result / status card (payment-success · -failed · -cancelled) */
.cls-pay-result { position: relative; overflow: hidden; }
.cls-pay-result-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--theme-500, #3b82f6), var(--theme-600, #2563eb));
}
.cls-pay-result-medallion {
  width: 4rem; height: 4rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 4px var(--paper), 0 6px 20px -10px rgba(0,0,0,.25);
}
.cls-pay-result-btn2 {
  font-weight: 700; font-size: 13px; letter-spacing: -.01em;
  color: var(--theme-600, #2563eb);
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper-2);
  transition: border-color .15s, background .15s, color .15s;
}
.cls-pay-result-btn2:hover { border-color: var(--theme-400, #60a5fa); background: rgba(37,99,235,.06); }

/* ── Dark/light toggle: iris ──
   header.js (runClassicIrisTransition) first mutes the page
   (.cls-iris-sepia on <html>, named for the older look; <html> so fixed windows keep their place), then grows a
   circle from the clicked toggle (inline clip-path; the origin and radius
   are per click). The mode swaps once it covers the screen, then the
   circle closes back to the same point while h1/h2 fade in. Moments reuse
   the same overlay, so its colour is the store's accent, not a fixed one. */
.cls-iris-sepia {
  filter: saturate(.7);
  transition: filter 300ms ease;
}
.px-fx--classic-iris {
  background: radial-gradient(circle at center, var(--theme-500, #3b82f6), var(--theme-700, #1d4ed8) 70%);
}
.cls-iris-header-fade {
  animation: clsIrisHeaderFade 320ms ease forwards;
}
@keyframes clsIrisHeaderFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .px-fx--classic-iris { transition: none !important; }
  .cls-iris-sepia { transition: none !important; filter: none !important; }
  .cls-iris-header-fade { animation: none !important; }
}

    /* Game cards: earn-games' classic skin is drawn for light pages only, so
       dark mode gets its slate panels here. */
    html.dark .gcard-skin-classic {
      --gc-card-bg: var(--paper-2); --gc-card-border: 1px solid var(--rule);
      --gc-shadow: 0 10px 30px -18px rgba(0,0,0,.6);
      --gc-stage-bg: rgba(var(--theme-500-rgb, 99,102,241), .14);
      --gc-body-bg: var(--paper-2); --gc-meta-border: var(--rule); --gc-meta-fg: var(--ink-soft);
      --gc-tag-bg: rgba(var(--theme-500-rgb, 99,102,241), .16); --gc-tag-fg: var(--theme-400, #818cf8);
      --gc-title-fg: var(--ink); --gc-desc-fg: var(--ink-soft);
      --gc-chip-bg: rgba(var(--theme-500-rgb, 99,102,241), .16); --gc-chip-fg: var(--theme-400, #818cf8);
      --gc-chip-border: 1px solid rgba(var(--theme-500-rgb, 99,102,241), .3);
      --gc-disabled-bg: rgba(15,23,42,.9);
    }
    html.dark .gcard-skin-classic { --gc-tag-fg: var(--theme-300, #93c5fd); --gc-chip-fg: var(--theme-300, #93c5fd); }
    /* The stock free, coins and hot chips are drawn in bright green, amber and
       red that read under 3:1 on the card; here they take the theme's tones. */
    .gcard-skin-classic .gcard-chip-free { color: var(--px-good); border-color: currentColor; }
    .gcard-skin-classic .gcard-chip-coins { color: var(--px-warn); border-color: currentColor; }
    .gcard-skin-classic .gcard-chip-hot { color: var(--px-crit); border-color: currentColor; }

/* ── Phones ──
   .text-fit (assets/css/header.css) clips a title to one line with an
   ellipsis; here it wraps, and long words ("Mystery Boxen") wrap whole. */
@media (max-width: 639px) {
  html body .text-fit { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
  html body h2.text-fit { font-size: clamp(1.5rem, 8vw, 1.875rem); }
  /* .truncate clips names and labels to one line with an ellipsis; on phones they wrap */
  html body .truncate { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
  /* the auction page's "similar auctions" link ("Andere Auktionen durchstöbern") drops under its heading */
  html body div.flex.justify-between:has(> a.ed-link-arrow.whitespace-nowrap) { flex-wrap: wrap; row-gap: .75rem; }
  /* ticket dates ("28 Oct 2026, 06:18 AM") wrap after the comma in their half-width column */
  html body .grid.grid-cols-2 > div > .whitespace-nowrap.text-sm.font-medium { white-space: normal; }
}
/* At 360 the logo, App chip and balance pill (or a German "Registrieren")
   need more than the row has: the logo gives way first, then the padding. */
@media (max-width: 419px) {
  html body .mobile-glass-header { padding-inline: .625rem; }
  html body .mobile-glass-header > div { gap: .375rem; }
  html body .mobile-glass-header > div:first-child { min-width: 0; flex: 0 1 auto; }
  html body .mobile-glass-header > div:last-child { flex: none; }
  html body .mobile-glass-header .logo-container { min-width: 0; }
  html body .mobile-glass-header .logo-container img { max-width: min(130px, 100%); height: auto; max-height: 2.25rem; }
  html body .mobile-glass-header .pwa-chip { padding-inline: .625rem; }
  html body .mobile-glass-header a[href="/wallet"] { padding-inline: .625rem; }
  html body .mobile-glass-header .ed-btn-primary { padding-inline: .75rem !important; gap: .25rem; }
  html body .mobile-glass-header .ed-btn-primary > svg { display: none; }
}

/* The shared dark sheet tints .bg-yellow-50 but has no light partner for
   .text-yellow-800, which leaves search's "Did you mean" notice brown on brown. */
html.dark body .bg-yellow-50.text-yellow-800 { color: var(--ink) !important; }

/* The stock coupon box (cart and checkout) and the price-offer form on an
   item page bring their own purple and amber; here they take the store's
   accent like every other primary button. */
html body :is(div, section):has(> template[x-if="!couponApplied"]) > div:first-child svg.text-purple-500 { color: var(--theme-600) !important; }
html body button.bg-purple-600[\@click="applyCoupon()"] { background-color: var(--theme-600) !important; }
html body button.bg-purple-600[\@click="applyCoupon()"]:hover { background-color: var(--theme-700) !important; }
html body input[x-model="couponCode"]:focus { --tw-ring-color: var(--theme-400) !important; border-color: var(--theme-500) !important; }
html body #shopB2bNegotiateForm button[type="submit"] { background-color: var(--theme-600) !important; color: #fff !important; }
html body #shopB2bNegotiateForm button[type="submit"]:hover { background-color: var(--theme-700) !important; }

/* Display titles shrunk to one line by .text-fit are clipped to their box
   (header.css), and at Classic's tight leading that box cuts off the descenders
   ("Copyright", "Shop."). The padding gives them room; the negative
   margin keeps the layout where it was. */
html body :is(h1, h2).font-display.text-fit:not([class*="mb-"]) { padding-bottom: .24em; margin-bottom: -.24em; }
html body :is(h1, h2).font-display.text-fit[class*="mb-"] { padding-bottom: .24em; }

/* home.css and edit-profile.css (loaded after this file) paint these in
   --ink, the editorial look; Classic's primary buttons are the accent. The
   refer page's search button carries the same ink inline. */
html body .ed-plan-cta { background: var(--theme-600); color: #ffffff; border-color: var(--theme-600); }
html body .ed-plan-cta:hover { background: var(--theme-700); color: #ffffff; border-color: var(--theme-700); }
html body .ed-plan-featured .ed-plan-cta { background: #ffffff; color: var(--theme-700); border-color: #ffffff; }
html body .ep-btn-save { background: var(--theme-600); color: #ffffff; border-radius: var(--radius-sm); }
html body .ep-btn-save .ep-btn-label { color: #ffffff; }
html body .ep-btn-save:hover { background: var(--theme-700); opacity: 1; }
html body form[action="/refer"] button[type="submit"] { background: var(--theme-600) !important; color: #ffffff !important; border-radius: var(--radius-sm) !important; }
html body form[action="/refer"] button[type="submit"]:hover { background: var(--theme-700) !important; }

/* The closed side menu sits just off the left edge, and its shadow would
   still fall across the page there. */
#sideMenu.-translate-x-full { box-shadow: none !important; }

/* ── Dark-mode greys from assets/css/header.css ──
   header.css paints dark pages, the footer and Tailwind's light utilities a
   neutral near-black with !important; Classic's night is slate navy. */
html.dark { color-scheme: dark; }
html.dark body { background-color: var(--paper) !important; }
html.dark #desktopFooter { background: var(--paper) !important; border-top-color: var(--rule) !important; }
html.dark .mobile-glass-header { background: var(--paper) !important; border-bottom-color: var(--rule) !important; }
html.dark #mobileExploreSheet .bg-white { background: var(--paper-2) !important; }
html.dark .bg-gray-50,
html.dark .even\:bg-gray-50:nth-child(even) { background-color: var(--paper) !important; }
html.dark .bg-white,
html.dark .bg-slate-50 { background-color: var(--paper-2) !important; }
html.dark .bg-gray-100,
html.dark .bg-slate-100 { background-color: #172033 !important; }
html.dark .from-white, html.dark .from-gray-50 { --tw-gradient-from: var(--paper) !important; }
html.dark .to-white, html.dark .to-gray-50 { --tw-gradient-to: var(--paper) !important; }
html.dark .from-gray-100 { --tw-gradient-from: var(--paper-2) !important; }
html.dark .to-gray-100 { --tw-gradient-to: var(--paper-2) !important; }

/* Form controls after dark: header.css fills every field, checkbox included,
   with one grey and gives it a border of the same grey. */
html.dark body .auth-checkbox { background-color: var(--paper) !important; border: 1.5px solid var(--ink-soft) !important; }
html.dark body .auth-checkbox:checked { background-color: var(--theme-600) !important; border-color: var(--theme-600) !important; }
html.dark body input[type="radio"],
html.dark body input[type="checkbox"]:not(.auth-checkbox) { accent-color: var(--theme-500); }

/* Newsletter panel after dark: shared dark rules grey its heading and copy
   and fill the field in near-black, on the accent panel. */
html.dark body .ed-newsletter h4,
html.dark body .ed-newsletter p:not(#newsletter-msg) { color: #ffffff !important; }
html.dark body .ed-newsletter input.ed-newsletter-input[type="email"] { background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.30) !important; color: #ffffff !important; }
html.dark body .ed-newsletter input.ed-newsletter-input[type="email"]::placeholder { color: rgba(255,255,255,.7) !important; }
html.dark body .ed-newsletter .ed-newsletter-btn { background: #ffffff !important; color: var(--theme-700) !important; }

/* Product photos are cut out for light backgrounds; after dark a black
   speaker or dark glasses vanish into a slate tile, so photo wells (cart,
   product cards, galleries, winnings, prize tiles) get a quiet graphite
   glow, light enough for black products and dark enough for white ones. */
html.dark .cls-img-well,
html.dark #px-spa-content a.w-12.h-12.overflow-hidden:has(> img),
html.dark :is(.cls-photo, .cls-gal, .cls-shop .cls-plate, .cls-win .cls-plate, .cls-thumb, .wt-tile-frame, .wnc-thumb, .cls-win-tile, .thumb-item) { background: radial-gradient(ellipse 75% 70% at 50% 45%, #434f63 0%, #323d50 55%, #27303f 100%) !important; border-color: #334155 !important; }

/* While the wheel turns the spin button is disabled, and the disabled grey
   made it look dead; it keeps the accent, a little softer. */
html body.is-spinning #spinButton:disabled { background: var(--theme-600) !important; color: #ffffff !important; opacity: .8; cursor: progress; }

/* Status tones (kernel 1.1.166): this theme's own green, amber, red and info hues
   for the shared .px-tone-* chips and notes, each set so its chip and text
   read at 4.5:1 or better on this theme's paper in light and dark. */
html:root { --px-good: #157f3d; --px-warn: #b45309; --px-crit: #ba1c1c; --px-info: #2362eb; }
html.dark:root { --px-good: #4ade80; --px-warn: #fbbf23; --px-crit: #f76363; --px-info: #61a5fa; }

/* Changing language, the scene (classic.js): a card with a thin gold rule,
   the old language in serif wiped away by a sweeping gold line that leaves
   the new one in its place; on the new page it settles and an ornament is
   drawn beneath. The card is the same on both pages, so the reload never
   shows. */
.cl-lang-stage { background: color-mix(in srgb, var(--ink, #111827) 34%, transparent); }
.cl-lang-card {
  --cl-lang-gold: #a8842f;
  position: relative; width: min(560px, 100%); box-sizing: border-box; padding: 24px 28px 26px; overflow: hidden;
  border-radius: var(--radius, 12px); background: var(--paper-2, #ffffff); color: var(--ink, #111827); text-align: center;
  box-shadow: inset 0 0 0 7px var(--paper-2, #ffffff), inset 0 0 0 8px var(--cl-lang-gold), 0 34px 70px -28px rgba(0, 0, 0, .5);
}
html.dark .cl-lang-card { --cl-lang-gold: #d6b25e; }
.cl-lang-head {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 18px;
  font: 500 12px/1.2 var(--font-display, 'Inter', system-ui, sans-serif); letter-spacing: .12em; color: var(--ink-soft, #6b7280);
}
.cl-lang-head img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--cl-lang-gold); }
.cl-lang-names { position: relative; display: grid; margin: 18px 0 8px; }
.cl-lang-names > span:not(.cl-lang-sweep) {
  grid-area: 1 / 1; min-width: 0; padding: 0 4px; overflow-wrap: anywhere;
  font: 400 clamp(34px, 10vw, 56px)/1.15 Georgia, 'Times New Roman', 'Noto Serif', serif; letter-spacing: -.01em;
}
.cl-lang-old { clip-path: inset(-20% 0 -20% 100%); }
.cl-lang-new { clip-path: inset(-20% 0 -20% 0); }
.cl-lang-sweep { position: absolute; top: -12%; bottom: -12%; left: 0; width: 100%; transform: translateX(100%); pointer-events: none; }
.cl-lang-sweep i {
  position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; border-radius: 1px; opacity: 0;
  background: var(--cl-lang-gold); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--cl-lang-gold) 55%, transparent);
}
.cl-lang-flourish {
  display: block; width: min(160px, 60%); height: auto; margin: 2px auto 0; overflow: visible;
  fill: none; stroke: var(--cl-lang-gold); stroke-width: 1.5; stroke-linecap: round;
  clip-path: inset(0 50% 0 50%);
}
.cl-lang-gem { fill: var(--cl-lang-gold); stroke: none; transform-box: fill-box; transform-origin: center; }
/* Out: the card comes up, the gold line sweeps the old name into the new. */
.px-lang-stage-out .cl-lang-card { animation: cl-lang-rise .32s cubic-bezier(.2, .8, .3, 1.05) both; }
.px-lang-stage-out .cl-lang-old { animation: cl-lang-wipe .55s cubic-bezier(.6, 0, .3, 1) .42s both; }
.px-lang-stage-out .cl-lang-new { animation: cl-lang-reveal .55s cubic-bezier(.6, 0, .3, 1) .42s both; }
.px-lang-stage-out .cl-lang-sweep { animation: cl-lang-sweep .55s cubic-bezier(.6, 0, .3, 1) .42s both; }
.px-lang-stage-out .cl-lang-sweep i { animation: cl-lang-line .62s linear .38s both; }
/* In: the name settles, the ornament is drawn beneath it, and away. */
.px-lang-stage-in .cl-lang-new { animation: cl-lang-settle .45s ease-out .1s both; }
.px-lang-stage-in .cl-lang-flourish { animation: cl-lang-draw .45s ease-out .35s both; }
.px-lang-stage-in .cl-lang-gem { animation: cl-lang-gem .35s cubic-bezier(.2, .9, .3, 1.4) .35s both; }
.px-lang-stage-in .cl-lang-card { animation: cl-lang-away .28s ease-in 1s both; }
@keyframes cl-lang-rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes cl-lang-wipe { from { clip-path: inset(-20% 0 -20% 0); } }
@keyframes cl-lang-reveal { from { clip-path: inset(-20% 100% -20% 0); } }
@keyframes cl-lang-sweep { from { transform: translateX(0); } }
@keyframes cl-lang-line { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cl-lang-settle { 35% { color: var(--cl-lang-gold); transform: translateY(-3px); } }
@keyframes cl-lang-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes cl-lang-gem { from { transform: scale(0) rotate(-90deg); } }
@keyframes cl-lang-away { to { opacity: 0; transform: translateY(-16px) scale(.98); } }
@media (max-width: 460px) {
  .cl-lang-card { padding: 20px 18px 22px; }
  .cl-lang-names { margin: 14px 0 6px; }
}

/* Phones: the hero's two buttons stay side by side, each as wide as its
   label needs, their text and padding shrinking with the screen; a label
   still too long takes two even lines inside its button. A home section's title and its "View all" link
   share one row too: the title keeps a little over half of it, breaking
   between words if it must, and only a very long link label takes two
   lines. */
@media (max-width: 639px) {
  html body :is(div, p):has(> .ed-btn-primary):has(> .ed-btn-secondary) { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: .5rem; }
  html body :is(div, p):has(> .ed-btn-primary):has(> .ed-btn-secondary) > :is(.ed-btn-primary, .ed-btn-secondary) {
    flex: 1 1 auto; min-width: min-content; width: auto; margin: 0; justify-content: center; text-align: center; white-space: normal; text-wrap: balance;
    padding-inline: clamp(.5rem, 2.6vw, 1.25rem); font-size: clamp(.75rem, 3.5vw, .9375rem); line-height: 1.15;
  }
  html body :is(div, p):has(> .ed-btn-primary):has(> .ed-btn-secondary) > :is(.ed-btn-primary, .ed-btn-secondary) > :is(svg, i, img) { flex: none; }
  html body div.flex.justify-between:has(> div h2.text-fit):has(> a) { flex-direction: row; flex-wrap: nowrap; align-items: flex-end; column-gap: .75rem; }
  html body div.flex.justify-between:has(> div h2.text-fit):has(> a) > div { flex: 1 1 0; min-width: 55%; }
  html body div.flex.justify-between:has(> div h2.text-fit):has(> a) > a { flex: 0 1 auto; max-width: 45%; margin: 0; white-space: normal; text-wrap: balance; text-align: center; font-size: .8125rem; line-height: 1.2; letter-spacing: .02em; gap: .375rem; }
  html body div.flex.justify-between:has(> div h2.text-fit):has(> a) h2.text-fit { font-size: clamp(1.25rem, 6.4vw, 1.75rem); overflow-wrap: break-word; }
}

/* Confirm windows: OK is the theme's primary button (blue-600, white), not
   the popup engine's lighter accent. */
html body .px-confirm__btn--ok:not(.px-confirm__btn--destructive) { background: var(--theme-600); color: #ffffff; }
html body .px-confirm__btn--ok:not(.px-confirm__btn--destructive):hover { background: var(--theme-700); filter: none; }

/* Accent words and figures after dark. --theme-600 is a fill (white text
   sits on it); as text on slate it reads at under 3:1, so text drawn in the
   accent takes the store's lighter step. Buttons keep their fill. */
html.dark body :is(.hero-classic__eyebrow, .hero-classic__num, .ed-link-arrow, .btn-view-all, .text-gradient-theme, .cls-cat.active,
  .cls-claim, .cls-sup-eyebrow, .cls-sup-mail__addr, .cls-sup-stat__num, .cls-view, .cls-adr-eyebrow, .cls-adrform-back,
  .cls-adr-stat__label--accent, .wn-cl-hero__eyebrow, .wn-cl-stat__value, .cls-c-eyebrow, .cls-c-count, .cls-c-gold,
  .pd-related-head a, .cls-outline-accent) { color: var(--theme-400); }
html.dark body :is([style^="color:var(--theme-6"], [style*=";color:var(--theme-6"], [style*="; color:var(--theme-6"],
  [style^="color: var(--theme-6"], [style*="; color: var(--theme-6"]):not(button, .ed-btn-primary, .ed-plan-cta, [style*="background"]) { color: var(--theme-400) !important; }

/* Recent winners strip. It also stops while one of its cards has focus,
   slides towards the reading side on right-to-left pages (the shared loop
   only runs leftwards, which empties the row there), and holds still with
   each winner shown once when there are too few of them to fill the row
   (data-wt-still, set by assets/js/components/home/winner-ticker.js). */
html body .wt-wrap:focus-within .wt-track { animation-play-state: paused; }
@keyframes wt-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: no-preference) {
  html[dir="rtl"] body .wt-track { animation-name: wt-scroll-rtl; }
}
html body .wt-wrap[data-wt-still] .wt-track { animation: none; transform: none; margin-inline: auto; }
html body .wt-wrap[data-wt-still] .wt-card[data-wt-repeat] { display: none; }


/* ── The language picker (kernel components/layout/language-picker.php):
   plain index tabs in a binder, kept quiet. A thin bar of the store's
   accent runs along the top of the sheet and the title is in Inter.
   Every language is a white page in the binder with a small grey index
   tab at its leading edge. The chosen page has its tab pulled out
   further, in the store's accent, and the page itself turns slate with
   the name bold in white and the tick. In dark mode the pages are slate
   and the chosen one is pale. As the picker opens the tabs slide in from
   the edge, only when motion is welcome. ── */
html body .px-lang-picker {
  --clp-sheet: #ffffff;
  --clp-ink: #111827;
  --clp-ink-soft: #4b5563;
  --clp-field: #ffffff;
  --clp-field-lo: #f3f4f6;
  --clp-on-field: #111827;
  --clp-edge: #d1d5db;
  --clp-glow: color-mix(in srgb, var(--theme-500) 20%, transparent);
  --clp-row: #ffffff;
  --clp-row-edge: #e5e7eb;
  --clp-on-row: #111827;
  --clp-tab: #e5e7eb;
  --clp-tab-edge: #cbd0d6;
  --clp-lit: #1f2937;
  --clp-lit-edge: #111827;
  --clp-on-lit: #ffffff;
  --px-focus-ring: #111827;
  --px-focus-halo: #ffffff;
}

html.dark body .px-lang-picker {
  --clp-sheet: #1e293b;
  --clp-ink: #f1f5f9;
  --clp-ink-soft: #cbd5e1;
  --clp-field: #0f172a;
  --clp-field-lo: #334155;
  --clp-on-field: #f1f5f9;
  --clp-edge: #475569;
  --clp-glow: color-mix(in srgb, var(--theme-500) 25%, transparent);
  --clp-row: #172033;
  --clp-row-edge: #334155;
  --clp-on-row: #f1f5f9;
  --clp-tab: #334155;
  --clp-tab-edge: #475569;
  --clp-lit: #f1f5f9;
  --clp-lit-edge: #ffffff;
  --clp-on-lit: #0f172a;
  --px-focus-ring: #f1f5f9;
  --px-focus-halo: #0f172a;
}

html body .px-lang-picker .px-lang-picker__panel {
  padding-top: 4px;
  background: var(--clp-sheet);
  color: var(--clp-ink);
  border: 0;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -18px 40px -22px rgba(0, 0, 0, .3);
}
/* a thin bar of the store's accent along the top */
html body .px-lang-picker .px-lang-picker__panel::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 4px; background: var(--theme-500); pointer-events: none; }
html body .px-lang-picker .px-lang-picker__handle { margin-top: 12px; background: var(--clp-ink); opacity: .28; }
html body .px-lang-picker .px-lang-picker__head { padding: .5rem 1.25rem 1rem; border: 0; }
html body .px-lang-picker .px-lang-picker__eyebrow {
  margin: 0 0 .3rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clp-ink-soft);
}
html:is(:lang(ar), :lang(ur), :lang(bn), :lang(hi), :lang(zh)) body .px-lang-picker :is(.px-lang-picker__eyebrow, .px-lang-picker__title) { letter-spacing: 0; text-transform: none; }
html body .px-lang-picker .px-lang-picker__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--clp-ink);
}
html body .px-lang-picker .px-lang-picker__close {
  border-radius: 50%;
  background: var(--clp-field);
  color: var(--clp-ink);
  border: 2px solid var(--clp-edge);
}
html body .px-lang-picker .px-lang-picker__close:hover { background: var(--clp-field-lo); }

html body .px-lang-picker .px-lang-picker__search { padding: .2rem 1rem .6rem; }
html body .px-lang-picker .px-lang-picker__search-icon { inset-inline-start: 1.85rem; top: calc(.2rem + 22px); color: var(--clp-on-field); }
html body .px-lang-picker .px-lang-picker__search-input {
  height: 44px;
  /* the edge is drawn inside and the face is an image, so the dark page's
     field colours can't paint over either */
  border: 0;
  border-radius: 10px;
  background-image: linear-gradient(var(--clp-field), var(--clp-field));
  box-shadow: inset 0 0 0 2px var(--clp-field-ring, var(--clp-edge));
  color: var(--clp-on-field);
  -webkit-text-fill-color: var(--clp-on-field);
  caret-color: var(--clp-on-field);
  font-family: 'Inter', system-ui, sans-serif;
}
html body .px-lang-picker .px-lang-picker__search-input::placeholder { color: var(--clp-on-field); -webkit-text-fill-color: var(--clp-on-field); opacity: .72; }
html body .px-lang-picker .px-lang-picker__search-input:focus { box-shadow: inset 0 0 0 2px var(--clp-ink-soft), 0 0 0 4px var(--clp-glow); outline: none; }
/* the field's edge, held apart from the panel where its face and the
   panel are near the same colour */
html:not(.dark) body .px-lang-picker .px-lang-picker__search-input { --clp-field-ring: #848e9f; }
html.dark body .px-lang-picker .px-lang-picker__search-input { --clp-field-ring: #667a97; }
html body .px-lang-picker .px-lang-picker__list { padding: .4rem 1rem 1.1rem; }

/* every row a page in the binder, a small index tab at its leading edge */
html body .px-lang-picker .px-lang-picker__list { padding-inline-start: 1.75rem; }
html body .px-lang-picker .px-lang-picker__item {
  position: relative;
  min-height: 56px;
  margin: 0 0 .4rem;
  padding: .7rem 1rem;
  gap: .8rem;
  border: 1px solid var(--clp-row-edge);
  border-radius: 0 10px 10px 0;
  background: var(--clp-row);
  color: var(--clp-on-row);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
html[dir="rtl"] body .px-lang-picker .px-lang-picker__item { border-radius: 10px 0 0 10px; }
html body .px-lang-picker .px-lang-picker__item::before {
  content: '';
  position: absolute;
  inset-inline-start: -11px;
  top: calc(50% - 13px);
  width: 11px;
  height: 26px;
  border: 1px solid var(--clp-tab-edge);
  border-inline-end: 0;
  border-radius: 6px 0 0 6px;
  background: var(--clp-tab);
  pointer-events: none;
}
html[dir="rtl"] body .px-lang-picker .px-lang-picker__item::before { border-radius: 0 6px 6px 0; }
html body .px-lang-picker .px-lang-picker__item:hover { background: var(--clp-field-lo); }

/* the chosen page, its tab pulled out in the store's accent */
html body .px-lang-picker .px-lang-picker__item.is-current {
  border-color: var(--clp-lit-edge);
  background: var(--clp-lit);
  color: var(--clp-on-lit);
  font-weight: 700;
}
html body .px-lang-picker .px-lang-picker__item.is-current::before {
  inset-inline-start: -21px;
  width: 21px;
  top: calc(50% - 15px);
  height: 30px;
  border-color: var(--clp-lit-edge);
  background: var(--theme-500);
  box-shadow: inset 0 0 0 2px var(--clp-sheet);
}

html body .px-lang-picker .px-lang-picker__check { width: 1.25rem; height: 1.25rem; color: currentColor; }
html body .px-lang-picker .px-lang-picker__empty {
  margin: 0;
  padding: 1.1rem 1rem;
  border: 2px dashed var(--clp-edge);
  border-radius: 10px;
  background: var(--clp-field);
  color: var(--clp-on-field);
  font-family: 'Inter', system-ui, sans-serif;
}

@media (min-width: 1024px) {
  html body .px-lang-picker .px-lang-picker__panel {
    border-radius: 1rem;
    padding-bottom: 0;
    box-shadow: 0 36px 70px -28px rgba(0, 0, 0, .3);
  }
  html body .px-lang-picker .px-lang-picker__head { padding-top: 1.1rem; }
}

/* The tabs slide in from the edge as the picker opens */
@media (prefers-reduced-motion: no-preference) {
  html body .px-lang-picker.is-open .px-lang-picker__item::before { animation: clp-slide .36s cubic-bezier(.3, .7, .3, 1) both; }
  html[dir="rtl"] body .px-lang-picker.is-open .px-lang-picker__item::before { animation-name: clp-slide-rtl; }
  html body .px-lang-picker.is-open .px-lang-picker__item:nth-child(2)::before { animation-delay: .03s; }
  html body .px-lang-picker.is-open .px-lang-picker__item:nth-child(3)::before { animation-delay: .06s; }
  html body .px-lang-picker.is-open .px-lang-picker__item:nth-child(4)::before { animation-delay: .09s; }
  html body .px-lang-picker.is-open .px-lang-picker__item:nth-child(n+5)::before { animation-delay: .12s; }
}
@keyframes clp-slide {
  0% { transform: translateX(14px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes clp-slide-rtl {
  0% { transform: translateX(-14px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* Forced colours: the tabs are painted, so every row keeps a frame and the
   chosen one a system outline and its tick */
@media (forced-colors: active) {
  html body .px-lang-picker .px-lang-picker__panel { border: 1px solid CanvasText; }
  html body .px-lang-picker .px-lang-picker__panel::before,
  html body .px-lang-picker .px-lang-picker__item::before { display: none; }
  html body .px-lang-picker .px-lang-picker__item,
  html body .px-lang-picker .px-lang-picker__item.is-current { border: 1px solid CanvasText; padding: .6rem 1rem; }
  html body .px-lang-picker .px-lang-picker__item.is-current { outline: 3px solid Highlight; outline-offset: 1px; }
  html body .px-lang-picker .px-lang-picker__check { color: Highlight; }
  html body .px-lang-picker .px-lang-picker__search-input { border: 1px solid FieldText; -webkit-text-fill-color: FieldText; }
  html body .px-lang-picker .px-lang-picker__search-input::placeholder { -webkit-text-fill-color: GrayText; }
}

/* Windows (wallet, sign-out and the plugins' windows) sit on their own panel,
   so the secondary text, accent links and buttons in them take the deeper
   shades below to read at 4.5:1 there; the page around keeps its own. */
html [role="dialog"] {
  --theme-500: var(--theme-700);
}
html.dark [role="dialog"] button:is([style^="color:var(--theme-"], [style*=";color:var(--theme-"]) {
  color: var(--theme-300) !important;
}
