/* TW PAY · colour palette proposal · 2026-11-11 (PALETTE-20261111) — LOCAL PROPOSAL
   Keeps theme D (light, Ocean blue) and E (dark, Deep Navy) + brand gradient buttons.
   Adds one token set per scheme and repaints the components that kept a white/light surface in dark mode
   while the dark theme turned their text white (contrast ~1.1:1). Paint only: no layout, no prices/fees/KYC.
   Link LAST in money/index.html (after pdp-compact-20261111.css). */

/* ---------- tokens ---------- */
html.fx26{
  --tp-bg:#CFE8FF;        /* page */
  --tp-surface:#FFFFFF;   /* cards */
  --tp-surface-2:#F1F4FB; /* chips, inputs, inner rows */
  --tp-line:rgba(11,22,51,.16);
  --tp-text:#0B1633;      /* 16.9:1 on white */
  --tp-muted:#3A4766;     /* 9.3:1 on white */
  --tp-accent:#5B2BD6;    /* links, selected outline · 7.4:1 on white */
  --tp-price:#6A1FC9;     /* prices · 7.9:1 on white */
  --tp-ok-bg:#E3F6EC;--tp-ok:#0A6B42;      /* success pill · 6.3:1 */
  --tp-call-bg:#15803D;--tp-call:#FFFFFF;  /* call button · 5.0:1 */
}
@media (prefers-color-scheme: twpay-light-only){
html.fx26{
  --tp-bg:#1C1C28;
  --tp-surface:#262637;   /* cards: one step above the page */
  --tp-surface-2:#323249; /* chips, inputs, inner rows */
  --tp-line:rgba(255,255,255,.20);
  --tp-text:#FFFFFF;      /* 15.4:1 on surface */
  --tp-muted:#CDD1EA;     /* 10.6:1 on surface */
  --tp-accent:#BBA6FF;    /* 7.6:1 on surface */
  --tp-price:#FFA6DA;     /* 9.0:1 on surface */
  --tp-ok-bg:rgba(16,185,129,.18);--tp-ok:#7EE8BE;
  --tp-call-bg:#15803D;--tp-call:#FFFFFF;
}
}

/* ---------- dark mode: light surfaces that carried white text ---------- */
@media (prefers-color-scheme: twpay-light-only){
/* installments page (#/s14): product picker cards */
html.fx26 body #twm-app#twm-app#twm-app .twm-ipc{background:var(--tp-surface-2)!important;background-image:none!important;border-color:var(--tp-line)!important;color:var(--tp-text)!important}
html.fx26 body #twm-app#twm-app#twm-app .twm-ipc .nm{color:var(--tp-text)!important}
html.fx26 body #twm-app#twm-app#twm-app .twm-ipc .pr{color:var(--tp-price)!important;font-weight:800!important}
html.fx26 body #twm-app#twm-app#twm-app .twm-ipc:hover{border-color:var(--tp-accent)!important}
/* ghost (secondary) buttons, e.g. "Mua sắm" */
html.fx26 body #twm-app#twm-app#twm-app .twm-btn.ghost{background:var(--tp-surface-2)!important;background-image:none!important;color:var(--tp-text)!important;border:1.5px solid var(--tp-line)!important}
/* FAQ accordion */
html.fx26 body #twm-app#twm-app#twm-app .mx-card details,html.fx26 body #twm-app#twm-app#twm-app .mx-card details>summary{background:var(--tp-surface-2)!important;background-image:none!important;color:var(--tp-text)!important;border-color:var(--tp-line)!important}
html.fx26 body #twm-app#twm-app#twm-app .mx-card details>p{background:transparent!important;color:var(--tp-muted)!important}
/* promo / referral: code box, voucher code, copy button, "usable" pill */
html.fx26 body #twm-app#twm-app#twm-app :is(.v7-code,.v7-vc){background:var(--tp-surface-2)!important;background-image:none!important;color:var(--tp-text)!important;border-color:var(--tp-line)!important}
html.fx26 body #twm-app#twm-app#twm-app .v7-btn{background:var(--tp-surface-2)!important;background-image:none!important;color:var(--tp-text)!important;border:1.5px solid var(--tp-line)!important}
html.fx26 body #twm-app#twm-app#twm-app .v7-btn span{color:inherit!important}
html.fx26 body #twm-app#twm-app#twm-app :is(.v7-vrow,.v7-refrow){background:var(--tp-surface-2)!important;background-image:none!important;border-color:var(--tp-line)!important;color:var(--tp-text)!important}
html.fx26 body #twm-app#twm-app#twm-app .v7-pill.g{background:var(--tp-ok-bg)!important;color:var(--tp-ok)!important;border-color:transparent!important}
/* support chat: bot bubble */
html.fx26 body #twm-app#twm-app#twm-app .mx-bot,html.fx26 body #twm-app#twm-app#twm-app .mx-bot p{background:var(--tp-surface-2)!important;background-image:none!important;color:var(--tp-text)!important}
/* help: call / copy buttons (white text sat on near-white green/grey) */
html.fx26 body .tw-ch-btn.btn-call{background:var(--tp-call-bg)!important;background-image:none!important;border-color:transparent!important}
html.fx26 body .tw-ch-btn.btn-call span{color:var(--tp-call)!important}
html.fx26 body .tw-ch-btn.btn-copy{background:var(--tp-surface-2)!important;background-image:none!important;border:1.5px solid var(--tp-line)!important}
html.fx26 body .tw-ch-btn.btn-copy span{color:var(--tp-text)!important}
/* form fields everywhere in the customer app */
html.fx26 body #twm-app#twm-app#twm-app :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background-color:var(--tp-surface-2)!important;color:var(--tp-text)!important;border-color:var(--tp-line)!important}
html.fx26 body #twm-app#twm-app#twm-app :is(input,textarea)::placeholder{color:#A9AECB!important;opacity:1}
}
