/* Buyer-only theme; dashboard/admin and provider-hosted frames are untouched. */
html[data-buyer-theme="dark"] { color-scheme: dark; }
html[data-buyer-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fc; --bg-2: #edf1f9;
  --panel: rgba(255,255,255,.94); --panel-solid: #fff; --panel-2: #edf1f9;
  --border: #dce2ec; --border-strong: #bdc8d8;
  --text: #17243b; --muted: #526078; --faint: #5c6980;
  --brand: #4c48ca; --brand-2: #733ac1; --brand-3: #1268ad;
  --green: #087847; --red: #b62b42; --yellow: #895900;
  --shadow: 0 12px 36px -16px rgba(34,53,88,.20);
  --shadow-glow: 0 8px 24px -12px rgba(76,72,202,.35);
}
html[data-buyer-theme="light"] body {
  color: var(--text);
  background: radial-gradient(900px 500px at 15% 0%, rgba(109,120,240,.06), transparent 65%), var(--bg);
}
html[data-buyer-theme="light"] a:hover { color: #39349f; }
html[data-buyer-theme="light"] :is(a.btn-primary,a.buy):hover { color: #fff; }
html[data-buyer-theme="light"] .checkout-card { box-shadow: 0 24px 70px -30px rgba(34,53,88,.24); }
html[data-buyer-theme="light"] :is(.co-email,.delivery-box,.cx-row,.coin-opt) { background: #fff; }
html[data-buyer-theme="light"] .coin-opt:hover { background: #f1f2fe; }
html[data-buyer-theme="light"] .delivery-box.delivery-note { background: #edf9f2; border-color: #a5d9bb; }
html[data-buyer-theme="light"] .buy-card { color: var(--text); background: #edf1f9; border-color: var(--border-strong); }
html[data-buyer-theme="light"] .buy-card:hover { color: var(--text); background: #e3e9f5; }
html[data-buyer-theme="light"] .buy-card > svg { stroke: currentColor; }
html[data-buyer-theme="light"] .buy:disabled { color: var(--faint); background: #e3e8f0; }
html[data-buyer-theme="light"] .buy-card.loading::after { border-color: #bdc8d8; border-top-color: var(--brand); }
html[data-buyer-theme="light"] :is(.spinner,.cx-spin) { border-color: var(--border-strong); border-top-color: var(--brand); }
html[data-buyer-theme="light"] .checkout-card > p b[style*="color:"] { color: var(--text) !important; }
html[data-buyer-theme="light"] body > .c p { color: var(--muted); }
/* Header control avoids the fixed language tab and support chat. */
html[data-buyer-theme] .buyer-theme-toggle {
  flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0 0 0 8px;
  display: inline-grid; place-items: center; font: inherit; font-size: 19px; line-height: 1;
  border: 1px solid var(--border-strong, #bdc8d8); border-radius: 50%;
  background: var(--panel-solid, #fff); color: var(--text, #17243b); cursor: pointer;
}
html[data-buyer-theme] .buyer-theme-toggle:hover { border-color: var(--brand, #4c48ca); }
html[data-buyer-theme] .buyer-theme-toggle:focus-visible { outline: 3px solid var(--brand, #4c48ca); outline-offset: 3px; }
html[data-buyer-theme] .st-top > .buyer-theme-toggle { margin-left: auto; }
html[data-buyer-theme] .buyer-theme-floating { position: fixed; top: 16px; right: 16px; z-index: 10; }
