/* TW PAY brand-secure 2026-11-11 — Figma mock "TW PAY – Màn mã vạch & Đơn hàng".
   Watermark lives on the card background only; the barcode SVG keeps its own white background
   (bars + quiet zones stay clean so 7-Eleven scanners read reliably). */
:root{--twp-wm:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='64'%3E%3Ctext x='8' y='40' transform='rotate(-18 60 32)' font-family='Nunito,Arial,sans-serif' font-weight='900' font-size='14' letter-spacing='1.5' fill='%235B3DF5' fill-opacity='.15'%3ETW PAY%3C/text%3E%3C/svg%3E");
  --twp-wm-soft:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='64'%3E%3Ctext x='8' y='40' transform='rotate(-18 60 32)' font-family='Nunito,Arial,sans-serif' font-weight='900' font-size='14' letter-spacing='1.5' fill='%235B3DF5' fill-opacity='.05'%3ETW PAY%3C/text%3E%3C/svg%3E");
  --twp-grad:linear-gradient(100deg,#2F6BFF 0%,#743DFF 52%,#F414A0 100%)}
@keyframes twpWm{from{background-position:0 0}to{background-position:120px 64px}}

/* ---- barcode cards: watermark around the code, slow drift (a still screenshot looks different) ---- */
#twm-app[data-scr="s05"] .s05x .s45-bc{position:relative;background-color:#fff!important;background-image:var(--twp-wm)!important;background-repeat:repeat!important;border:1px solid #E3DEFA;border-radius:18px;padding:14px 14px 10px;overflow:hidden;animation:twpWm 24s linear infinite}
#twm-app .s05x .s45-bc .sv{background:#fff;border-radius:6px}
#twm-app .s05x .s45-bc .ft{position:relative}
#twm-app .s05x .s45-bc .s5-mark{margin-left:auto;font-weight:900;font-size:10px;letter-spacing:.12em;color:#5B3DF5;opacity:.6;white-space:nowrap}
/* pdp-compact-20261111.css paints .s45-bc grey with a triple-#twm-app selector; outrank it for the code screen only */
html body #twm-app#twm-app#twm-app#twm-app .s05x .s45-bcs .s45-bc{background-color:#fff!important;background-image:var(--twp-wm)!important;background-repeat:repeat!important;padding:14px 12px 10px!important;border:1px solid #E3DEFA!important;border-radius:18px!important}
html body #twm-app#twm-app#twm-app#twm-app .s05x .s45-bcs .s45-bc .sv{background:#fff!important;padding:6px 0;border-radius:8px}
@media (prefers-reduced-motion:reduce){#twm-app .s05x .s45-bc{animation:none}}

/* ---- amount card ---- */
html body #twm-app#twm-app#twm-app#twm-app .s05x .s45-sum.s5{background:var(--twp-grad)!important;color:#fff!important;border:0!important;border-radius:22px!important;box-shadow:0 10px 26px rgba(91,61,245,.22)!important}
html body #twm-app#twm-app#twm-app#twm-app .s05x .s45-sum.s5 *{color:#fff!important}
html body #twm-app#twm-app#twm-app#twm-app .s05x .s45-sum.s5 .twm-badge{background:rgba(255,255,255,.22)!important;border:0!important}
html body #twm-app#twm-app#twm-app#twm-app .s05x .s45-sum.s5 .s5cd{background:rgba(0,0,0,.18)!important;border-radius:12px;padding:6px 10px}
#twm-app .s05x .s5cd[hidden]{display:none!important}
#twm-app .s05x .s45-sum.s5 .s45-st img{filter:drop-shadow(0 1px 2px rgba(0,0,0,.25));background:#fff;border-radius:6px;padding:2px}

/* ---- verification seal ---- */
#twm-app .s5-seal{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #E3DEFA;border-radius:16px;padding:12px 12px 12px 14px;margin:12px 0;box-shadow:0 4px 14px rgba(91,61,245,.08)}
#twm-app .s5-seal::before{content:"";flex:0 0 4px;align-self:stretch;border-radius:4px;background:var(--twp-grad)}
#twm-app .s5-seal svg{flex:0 0 34px}
#twm-app .s5-seal .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#twm-app .s5-seal .t1{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-weight:800;font-size:14px;color:#16204A}
#twm-app .s5-seal .ok{white-space:nowrap;font-size:10px;font-weight:900;color:#0E7A45;background:#E7F8EF;border-radius:999px;padding:2px 7px}
#twm-app .s5-seal .t2{font-size:11px;font-weight:600;color:#7A7FA6;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#twm-app .s5-seal .code{font:700 11px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.04em;color:#4A36C7;background:#F1EEFF;border-radius:6px;padding:2px 7px}
#twm-app .s5-seal .t3{font-size:10px;font-weight:600;color:#9A9EC0}
#twm-app .s5-seal .ring{flex:0 0 46px;height:46px;border-radius:50%;display:grid;place-content:center;text-align:center;line-height:1;font-weight:900;border:2px solid transparent;background:linear-gradient(#fff,#fff) padding-box,var(--twp-grad) border-box}
#twm-app .s5-seal .ring b{display:block;font-size:12px;color:#5B3DF5}
#twm-app .s5-seal .ring i{display:block;font-style:normal;font-size:9px;letter-spacing:.08em;color:#F414A0;margin-top:2px}

/* ---- buttons on the code screen ---- */
#twm-app .s05x ~ * #s5-paid,#twm-app #s5-paid{background:var(--twp-grad);color:#fff;border:0;font-weight:800;border-radius:16px;min-height:50px;width:100%}
#twm-app #s5-paid[disabled]{background:#E7F8EF;color:#0E7A45;opacity:1}

/* ---- my orders cards ---- */
#twm-app .mx-order-item.mx-ocard{position:relative;background:#fff var(--twp-wm-soft) repeat;border:1px solid #E6E1FA;border-radius:20px;box-shadow:0 6px 18px rgba(91,61,245,.08);flex-wrap:wrap}
#twm-app .mx-order-item .ic{background:var(--twp-grad);color:#fff;border-radius:14px;width:44px;height:44px;display:grid;place-content:center;font-size:20px}
#twm-app .mx-order-item .mx-cart-side b{color:#5B3DF5;font-weight:900}
#twm-app .mx-osteps{flex:1 0 100%;display:grid;grid-template-columns:repeat(4,1fr);margin-top:12px;position:relative}
#twm-app .mx-osteps span{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;font-weight:600;color:#9A9EC0;text-align:center}
#twm-app .mx-osteps span::before{content:"";width:12px;height:12px;border-radius:50%;background:#DCD6F7;position:relative;z-index:1}
#twm-app .mx-osteps span:not(:last-child)::after{content:"";position:absolute;top:5px;left:50%;width:100%;height:3px;background:#E6E1FA}
#twm-app .mx-osteps span.on{color:#16204A;font-weight:800}
#twm-app .mx-osteps span.on::before{background:#5B3DF5}
#twm-app .mx-osteps span.on.line::after{background:#5B3DF5}
@media (prefers-color-scheme: twpay-light-only){
  #twm-app .s5-seal,#twm-app .mx-order-item.mx-ocard{background-color:#1c2340;border-color:#3d4a7a}
  #twm-app .s5-seal .t1{color:#e8ecff}
  #twm-app .mx-osteps span.on{color:#e8ecff}
}

/* order cards are a grid in orders-upgrade-20261111.css: the steps row spans the full card */
html body #twm-app#twm-app#twm-app .mx-order-item .mx-osteps{grid-column:1/-1!important;width:100%!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-top:12px!important}
html body #twm-app#twm-app#twm-app .mx-order-item .mx-osteps span{writing-mode:horizontal-tb!important;white-space:normal!important;word-break:normal!important}

/* SHOPCVS-20261111: shop order store codes use the same secure look */
html body #twm-app#twm-app#twm-app#twm-app .mx-cvs-secure .mx-barcode{position:relative;background-color:#fff!important;background-image:var(--twp-wm)!important;background-repeat:repeat!important;border:1px solid #E3DEFA!important;border-radius:18px!important;padding:14px 12px 10px!important;margin:10px 0!important;animation:twpWm 24s linear infinite}
html body #twm-app#twm-app#twm-app#twm-app .mx-cvs-secure .mx-barcode svg{background:#fff;border-radius:8px;width:100%;height:auto}
html body #twm-app#twm-app#twm-app#twm-app .mx-cvs-secure .mx-barcode p{display:flex;align-items:center;gap:8px;margin:6px 0 0;font:700 13px/1.4 ui-monospace,Menlo,Consolas,monospace;color:#16204A}
html body #twm-app#twm-app#twm-app#twm-app .mx-cvs-secure .mx-barcode .n{font:900 11px Nunito,sans-serif;color:#5B3DF5;background:#F1EEFF;border-radius:999px;padding:2px 8px}
html body #twm-app#twm-app#twm-app#twm-app .mx-cvs-secure .mx-barcode .s5-mark{margin-left:auto;font:900 10px Nunito,sans-serif;letter-spacing:.12em;color:#5B3DF5;opacity:.6}
@media (prefers-reduced-motion:reduce){html body #twm-app#twm-app#twm-app#twm-app .mx-cvs-secure .mx-barcode{animation:none}}


/* UI5-20261111: 5 owner-approved visual fixes */
/* 1. home (phone): shop strip was squeezed by the flex column, so cards spilled onto the partner row */
html body #twm-app#twm-app#twm-app#twm-app .hmx .m > .shop{flex-shrink:0!important}
/* 2. send: disabled "Tiếp tục" was white on pale lilac (1.4:1) */
html body #twm-app#twm-app#twm-app#twm-app .twm-btn:disabled,html body #twm-app#twm-app#twm-app#twm-app .twm-btn[disabled]{background:#D9D4F2!important;background-image:none!important;color:#4A4380!important;opacity:1!important}
/* 3. shop header: "TW PAY" wrapped to two lines */
html body #twm-app#twm-app#twm-app#twm-app .twm-brand{flex-shrink:0!important}
html body #twm-app#twm-app#twm-app#twm-app .twm-brand span{white-space:nowrap!important}
/* 4. home (phone) header matches the other pages: brand size + globe language pill */
html body #twm-app#twm-app#twm-app#twm-app .hmx .hd .lg{font-size:19px!important;font-weight:900!important;white-space:nowrap}
html body #twm-app#twm-app#twm-app#twm-app .hmx .hd .lg img{width:34px!important;height:34px!important;border-radius:50%}
html body #twm-app#twm-app#twm-app#twm-app .hmx .vi{width:auto!important;height:44px!important;border-radius:22px!important;background:#fff!important;border:1px solid rgba(91,61,245,.16)!important;box-shadow:0 4px 14px rgba(40,30,110,.08)}
html body #twm-app#twm-app#twm-app#twm-app .hmx .vi select{padding:0 26px 0 36px!important;font-size:16px!important;font-weight:800!important;color:#5B3DF5!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B3DF5' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E") no-repeat 14px 50%/16px 16px!important;-webkit-appearance:none;appearance:none}
html body #twm-app#twm-app#twm-app#twm-app .hmx .vi .cv{font-size:0!important;right:14px}
html body #twm-app#twm-app#twm-app#twm-app .hmx .vi .cv::after{content:"▾";font-size:12px;color:#5B3DF5}
/* 5. help: faint subtitle / "Gọi ngay", and the ? 💬 badges sat on the mascot's head */
html body #twm-app#twm-app#twm-app#twm-app .tw-help-subtitle{color:#475569!important}
html body #twm-app#twm-app#twm-app#twm-app .tw-help-call span,html body #twm-app#twm-app#twm-app#twm-app [class*="tw-help"] a[href^="tel"] span{color:#15803D!important}
@media (max-width:760px){html body #twm-app#twm-app#twm-app#twm-app .tw-help-mascot-decor-q,html body #twm-app#twm-app#twm-app#twm-app .tw-help-mascot-decor-chat{display:none!important}}

/* RATE-UP-20261111: live dot on the update time + "1.000 / 5.000 / 10.000 NT$ ≈ …" quick amounts */
html body #twm-app#twm-app#twm-app#twm-app .hx-at,html body #twm-app#twm-app#twm-app#twm-app section.rate .u{display:inline-flex;align-items:center;gap:7px}
html body #twm-app#twm-app#twm-app#twm-app .hx-at::before,html body #twm-app#twm-app#twm-app#twm-app section.rate .u::before{content:"";width:8px;height:8px;border-radius:50%;background:#34D399;box-shadow:0 0 0 0 rgba(52,211,153,.6);animation:rxPulse 2s infinite;flex-shrink:0}
@keyframes rxPulse{70%{box-shadow:0 0 0 7px rgba(52,211,153,0)}100%{box-shadow:0 0 0 0 rgba(52,211,153,0)}}
@media (prefers-reduced-motion:reduce){html body #twm-app .hx-at::before,html body #twm-app section.rate .u::before{animation:none}}
html body #twm-app#twm-app#twm-app#twm-app .rx-ex{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
html body #twm-app#twm-app#twm-app#twm-app .rx-ex li{display:flex;flex-direction:column;gap:1px;padding:8px 14px;border-radius:14px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);color:#fff;font-size:12px;line-height:1.3;white-space:nowrap}
html body #twm-app#twm-app#twm-app#twm-app .rx-ex li span{opacity:.75}
html body #twm-app#twm-app#twm-app#twm-app .rx-ex li b{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
html body #twm-app#twm-app#twm-app#twm-app .tw5-rate .rx-ex{margin-left:auto;margin-right:20px}
@media (max-width:900px){html body #twm-app#twm-app#twm-app#twm-app .tw5-rate .rx-ex{display:none}}

/* NTX-20261112: notifications screen */
html body #twm-app#twm-app#twm-app#twm-app .mx-content:has(.ntx) .twp6-nbanner{display:none!important}
html body #twm-app#twm-app#twm-app#twm-app .ntx{display:flex;flex-direction:column;gap:14px;max-width:640px;margin:0 auto;width:100%}
html body #twm-app#twm-app#twm-app#twm-app .ntx-top{display:flex;align-items:center;gap:8px}
html body #twm-app#twm-app#twm-app#twm-app .ntx-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
html body #twm-app#twm-app#twm-app#twm-app .ntx-chip{flex-shrink:0;border:1px solid #E6E3F7;background:#fff;color:#1E1B3A;border-radius:999px;padding:7px 12px;font:800 13px/1.2 Nunito,system-ui,sans-serif;cursor:pointer}
html body #twm-app#twm-app#twm-app#twm-app .ntx-chip span{color:#64748B;font-weight:700;margin-left:2px}
html body #twm-app#twm-app#twm-app#twm-app .ntx-chip[aria-pressed=true]{background:linear-gradient(90deg,#3B6CFF,#E94BA8);border-color:transparent;color:#fff}
html body #twm-app#twm-app#twm-app#twm-app .ntx-chip[aria-pressed=true] span{color:#fff}
html body #twm-app#twm-app#twm-app#twm-app .ntx-read{flex-shrink:0;border:0;background:none;color:#6A4CF5;font:800 13px Nunito,system-ui,sans-serif;cursor:pointer;padding:6px 2px}
html body #twm-app#twm-app#twm-app#twm-app .ntx-g{display:flex;flex-direction:column;gap:8px;margin:0}
html body #twm-app#twm-app#twm-app#twm-app .ntx-g h2{margin:4px 0 0;font:900 12px Nunito,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#7A7499}
html body #twm-app#twm-app#twm-app#twm-app .ntx-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;border-radius:16px;color:inherit;text-decoration:none;box-shadow:0 1px 2px rgba(43,33,96,.05)}
html body #twm-app#twm-app#twm-app#twm-app a.ntx-row:hover{box-shadow:0 4px 14px rgba(106,76,245,.14)}
html body #twm-app#twm-app#twm-app#twm-app .ntx-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:19px;flex-shrink:0}
html body #twm-app#twm-app#twm-app#twm-app .ntx-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html body #twm-app#twm-app#twm-app#twm-app .ntx-tx b{font:800 15px/1.3 Nunito,system-ui,sans-serif;color:#1E1B3A;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #twm-app#twm-app#twm-app#twm-app .ntx-tx small{font:600 13px/1.35 Nunito,system-ui,sans-serif;color:#64748B;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body #twm-app#twm-app#twm-app#twm-app .ntx-mt{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}
html body #twm-app#twm-app#twm-app#twm-app .ntx-mt time{font:700 12px Nunito,system-ui,sans-serif;color:#64748B}
html body #twm-app#twm-app#twm-app#twm-app .ntx-dot{width:9px;height:9px;border-radius:50%;background:#E94BA8;display:block}
html body #twm-app#twm-app#twm-app#twm-app .ntx-more{display:flex;flex-direction:column;gap:8px}
html body #twm-app#twm-app#twm-app#twm-app .ntx-more>summary{list-style:none;cursor:pointer;text-align:center;padding:10px;border:1px dashed #D6D0F5;border-radius:14px;background:rgba(255,255,255,.55);color:#6A4CF5;font:800 13px Nunito,system-ui,sans-serif}
html body #twm-app#twm-app#twm-app#twm-app .ntx-more>summary::-webkit-details-marker{display:none}
html body #twm-app#twm-app#twm-app#twm-app .ntx-more[open]>summary{margin-bottom:0}
html body #twm-app#twm-app#twm-app#twm-app .ntx[data-f=rx] .ntx-row:not([data-k=rx]),html body #twm-app#twm-app#twm-app#twm-app .ntx[data-f=shop] .ntx-row:not([data-k=shop]),html body #twm-app#twm-app#twm-app#twm-app .ntx[data-f=acc] .ntx-row:not([data-k=acc]),html body #twm-app#twm-app#twm-app#twm-app .ntx:not([data-f=all]):not([data-f=rx]) .ntx-more{display:none}
html body #twm-app#twm-app#twm-app#twm-app .ntx-promo{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:16px;background:linear-gradient(90deg,#2E2366,#6B4FC9);color:#fff;text-decoration:none}
html body #twm-app#twm-app#twm-app#twm-app .ntx-promo span{flex:1;display:flex;flex-direction:column;gap:2px}
html body #twm-app#twm-app#twm-app#twm-app .ntx-promo small{font:900 11px Nunito,system-ui,sans-serif;letter-spacing:.06em;color:#F3C969}
html body #twm-app#twm-app#twm-app#twm-app .ntx-promo b{font:800 14px Nunito,system-ui,sans-serif;color:#fff}
html body #twm-app#twm-app#twm-app#twm-app .ntx-promo i{font:900 22px Nunito,sans-serif;font-style:normal}
html body #twm-app#twm-app#twm-app#twm-app .ntx-gh{display:flex;align-items:center;justify-content:space-between;gap:8px}
html body #twm-app#twm-app#twm-app#twm-app .ntx-x{font-style:normal;font-weight:800;font-size:12px;color:#6A4CF5;background:#EDE9FF;border-radius:999px;padding:1px 7px;margin-left:4px}
html body #twm-app#twm-app#twm-app#twm-app details.ntx-more{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}

/* B1-20261112: strict phone review */
/* page titles get focus on navigation (tabindex=-1, never reached by keyboard): no purple box around them */
html body #twm-app#twm-app#twm-app#twm-app h1.twm-h1[tabindex="-1"]:focus{outline:none!important;box-shadow:none!important}
/* PDP-IMG: phones showed the square product photo cropped (cover in a 316x222 box); show the whole device */
@media (max-width:760px){
  html body #twm-app#twm-app#twm-app#twm-app #pdp-scroll img.pdp-gallery-img{object-fit:contain!important;background:#fff;height:min(80vw,320px)!important;max-height:none!important}
  html body #twm-app#twm-app#twm-app#twm-app #pdp-scroll{height:auto!important;max-height:none!important}
  /* home service tiles: icon above the label so "Gửi tiền", "Trả góp" stay on one line */
  html body #twm-app#twm-app#twm-app#twm-app .hmx .tl a.t{flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:4px!important;height:auto!important;min-height:76px!important;padding:8px 4px!important;text-align:center!important}
  html body #twm-app#twm-app#twm-app#twm-app .hmx .tl a.t b{width:auto!important;max-width:100%!important;white-space:nowrap!important;font-size:12.5px!important;line-height:1.2!important}
  /* help: one card per row so labels are not broken into 3-4 lines */
  html body #twm-app#twm-app#twm-app#twm-app .tw-help-grid4{grid-template-columns:1fr!important}
  html body #twm-app#twm-app#twm-app#twm-app .tw-help-grid4 .tw-hq-card{min-height:0!important;height:auto!important}
  html body #twm-app#twm-app#twm-app#twm-app .tw-help-grid4 .tw-hq-name{flex:1 1 auto!important;width:auto!important;max-width:none!important}
  /* sign-up: password and referral code on their own rows */
  html body #twm-app#twm-app#twm-app#twm-app .mx-content form{grid-template-columns:minmax(0,1fr)!important}
}
html body #twm-app#twm-app#twm-app#twm-app .v7-vrow .v7-vc{display:inline-block;padding-left:10px!important}

/* B2-20261112: Hỏi TW PAY thread bubbles */
html body #twm-app#twm-app#twm-app#twm-app #mx-messages{display:flex;flex-direction:column;gap:8px}
html body #twm-app#twm-app#twm-app#twm-app #mx-messages .mx-me{align-self:flex-end;max-width:85%;background:linear-gradient(135deg,#5B3FD6,#8B5CF6);color:#fff;border-radius:16px 16px 4px 16px;padding:8px 12px}
html body #twm-app#twm-app#twm-app#twm-app #mx-messages .mx-me p{margin:0;color:#fff}
html body #twm-app#twm-app#twm-app#twm-app #mx-messages .mx-hist small{display:block;font-size:11px;opacity:.7;margin-top:2px}
html body #twm-app#twm-app#twm-app#twm-app #mx-messages .mx-who{display:block;font-size:12px;font-weight:800;color:#5B3FD6;margin-bottom:2px}
html body #twm-app#twm-app#twm-app#twm-app #mx-messages .mx-me p,html body #twm-app#twm-app#twm-app#twm-app #mx-messages .mx-me small{background:none!important;color:#fff!important;padding:0!important;box-shadow:none!important;border:0!important}

/* BC-WM-20261112: payment barcode cards (exchange codes, order detail, track, installment codes) — real TW PAY logo as a
   watermark on the card, bars kept on plain white so store scanners read them as before. */
html body #twm-app#twm-app#twm-app#twm-app .s45-bc{position:relative!important;overflow:hidden!important;isolation:isolate;background:#fff!important;border:1px solid #E3DEFA!important;border-radius:16px!important;padding:14px 14px 12px!important;margin:10px 0!important;box-shadow:0 2px 10px rgba(60,40,140,.07)!important;text-align:center}
html body #twm-app#twm-app#twm-app#twm-app .s45-bc::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:url("img/twpay-logo.png");background-size:46px 46px;background-repeat:repeat;background-position:8px 6px;opacity:.07;transform:rotate(-12deg) scale(1.4)}
html body #twm-app#twm-app#twm-app#twm-app .s45-bc::after{content:"";position:absolute;top:10px;right:12px;width:26px;height:26px;background:url("img/twpay-logo.png") center/contain no-repeat;pointer-events:none}
/* the bars: plain white quiet zone, never under the watermark */
html body #twm-app#twm-app#twm-app#twm-app .s45-bc svg,html body #twm-app#twm-app#twm-app#twm-app .s45-bc .s45-bars,html body #twm-app#twm-app#twm-app#twm-app .s45-bc .sv{position:relative;z-index:1;background:#fff!important;border-radius:8px;padding:8px 10px!important;margin:22px auto 4px!important;display:block;max-width:100%}
html body #twm-app#twm-app#twm-app#twm-app .s45-bc .s45-bars svg,html body #twm-app#twm-app#twm-app#twm-app .s45-bc .sv svg{margin:0 auto!important;padding:0!important}
/* code number + 1/3 label */
html body #twm-app#twm-app#twm-app#twm-app .s45-bc p,html body #twm-app#twm-app#twm-app#twm-app .s45-bc .ft{display:flex!important;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:6px 0 0!important;font:900 17px/1.2 ui-monospace,"JetBrains Mono",Menlo,Consolas,monospace!important;letter-spacing:.12em;color:#1E1B3A!important;background:none!important}
html body #twm-app#twm-app#twm-app#twm-app .s45-bc .txt{font:900 17px/1.2 ui-monospace,"JetBrains Mono",Menlo,Consolas,monospace!important;letter-spacing:.12em;color:#1E1B3A!important}
html body #twm-app#twm-app#twm-app#twm-app .s45-bc .n{font:800 12px/1 Nunito,system-ui,sans-serif!important;letter-spacing:0;color:#fff!important;background:linear-gradient(90deg,#3B6CFF,#8B5CF6)!important;border-radius:999px;padding:4px 9px}
html body #twm-app#twm-app#twm-app#twm-app .s45-bc .s5-mark{display:none!important}
/* track-page cards had inline styles: label line on top-left */
html body #twm-app#twm-app#twm-app#twm-app .s45-bc>div:first-child:not(.sv):not(.s45-bars){position:absolute;top:14px;left:14px;font:800 12px Nunito,system-ui,sans-serif!important;color:#fff!important;background:linear-gradient(90deg,#3B6CFF,#8B5CF6);border-radius:999px;padding:4px 9px}
/* another layer (twp6) made the card a 2-column grid (44px "Mã 1/3" box + 231px), pushing the 280px bars past the edge, and painted a text watermark */
html body #twm-app#twm-app#twm-app#twm-app .s45-bc{display:block!important;grid-template-columns:none!important;background-image:none!important}
html body #twm-app#twm-app#twm-app#twm-app .s45-bc .twp6-mapill{display:none!important}
html body #twm-app#twm-app#twm-app#twm-app .s45-bc>svg{width:auto!important;max-width:100%!important;height:auto!important}
html body #twm-app#twm-app#twm-app#twm-app .s45-bc{padding:12px 8px 10px!important}html body #twm-app#twm-app#twm-app#twm-app .s45-bc svg,html body #twm-app#twm-app#twm-app#twm-app .s45-bc .s45-bars,html body #twm-app#twm-app#twm-app#twm-app .s45-bc .sv{padding:6px 4px!important}

/* NOWARN-20261112: owner asked to remove the "Lưu ý khi thanh toán" box under the barcodes */
html body #twm-app#twm-app#twm-app#twm-app .v7-warn{display:none!important}

/* PIN-SHEET-20261112: #/s05 payment codes as one sheet (owner sample, TW PAY branding) */
html body #twm-app#twm-app#twm-app#twm-app .s05x .s5x-top{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;background:#fff;border-radius:20px;overflow:hidden;padding:0 0 16px;box-shadow:0 4px 18px rgba(60,40,140,.10)}
html body #twm-app#twm-app#twm-app#twm-app .s5x-code{width:100%;padding:14px 12px 10px;font:900 24px/1.15 Nunito,system-ui,sans-serif;letter-spacing:.04em;color:#4B32D1;word-break:break-all}
html body #twm-app#twm-app#twm-app#twm-app .s5x-total{width:100%;background:linear-gradient(90deg,#1E1B3A,#3A2A8C);color:#fff;padding:12px;display:flex;flex-direction:column;gap:2px}
html body #twm-app#twm-app#twm-app#twm-app .s5x-total span{font:900 20px/1.2 Nunito,system-ui,sans-serif}
html body #twm-app#twm-app#twm-app#twm-app .s5x-total small{font:700 12px Nunito,system-ui,sans-serif;opacity:.75}
html body #twm-app#twm-app#twm-app#twm-app .s5x-give{margin:4px 16px 0;font:700 15px/1.4 Nunito,system-ui,sans-serif;color:#1E1B3A;max-width:280px}
html body #twm-app#twm-app#twm-app#twm-app .s5x-store{height:56px;width:auto;max-width:160px;object-fit:contain}
html body #twm-app#twm-app#twm-app#twm-app .s5x-storen{font:900 18px Nunito,system-ui,sans-serif;color:#1E1B3A}
html body #twm-app#twm-app#twm-app#twm-app .s5x-cd{display:grid;grid-template-columns:auto auto auto;align-items:center;justify-content:center;column-gap:8px;row-gap:4px}
html body #twm-app#twm-app#twm-app#twm-app .s5x-cd .b{min-width:56px;padding:8px 6px;border-radius:12px;background:#2B2160;color:#fff;font:900 30px/1 ui-monospace,"JetBrains Mono",Menlo,monospace;font-variant-numeric:tabular-nums}
html body #twm-app#twm-app#twm-app#twm-app .s5x-cd i{font:900 26px Nunito,sans-serif;font-style:normal;color:#2B2160}
html body #twm-app#twm-app#twm-app#twm-app .s5x-cd small{font:800 12px Nunito,system-ui,sans-serif;color:#64748B}
html body #twm-app#twm-app#twm-app#twm-app .s5x-top.s5x-end .s5x-cd .b{background:#BE123C}
/* the old summary card keeps only what the top block does not show (expiry time / ended message) */
html body #twm-app#twm-app#twm-app#twm-app .s5x-on .s45-sum .r:first-child,html body #twm-app#twm-app#twm-app#twm-app .s5x-on .s45-sum .r.sm:nth-child(2),html body #twm-app#twm-app#twm-app#twm-app .s5x-on .s45-sum .s45-st,html body #twm-app#twm-app#twm-app#twm-app .s5x-on .s45-sum #s5-cd{display:none!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-on .s45-sum{padding:8px 14px!important;background:none!important;box-shadow:none!important;border:0!important;color:#64748B!important;text-align:center}
html body #twm-app#twm-app#twm-app#twm-app .s5x-on .s45-sum *{color:#64748B!important;background:none!important;justify-content:center}
html body #twm-app#twm-app#twm-app#twm-app .s5x-on .s5-seal{display:none!important}
/* one white sheet with all 3 codes + watermark */
html body #twm-app#twm-app#twm-app#twm-app .s45-bcs.s5x-sheet{position:relative;overflow:hidden;background:#fff!important;border:1.5px solid #2B2160!important;border-radius:12px!important;padding:6px 8px!important;display:flex!important;flex-direction:column!important;gap:0!important;box-shadow:none!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-sheet .s45-bc{border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:10px 4px 8px!important;background:transparent!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-sheet .s45-bc+.s45-bc{border-top:1px dashed #D6D0F5!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-sheet .s45-bc::before,html body #twm-app#twm-app#twm-app#twm-app .s5x-sheet .s45-bc::after{display:none!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-sheet .s45-bc .sv{margin:0 auto!important;padding:0!important;background:transparent!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-sheet .s45-bc .n,html body #twm-app#twm-app#twm-app#twm-app .s5x-sheet .s45-bc .twp6-mapill{display:none!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-sheet .s45-bc .ft{margin-top:4px!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-sheet .s45-bc .txt{font-size:15px!important;letter-spacing:.08em!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-wm{position:absolute;inset:-40% -30%;z-index:3;pointer-events:none;transform:rotate(-20deg);display:flex;flex-direction:column;justify-content:space-around;opacity:.16}
html body #twm-app#twm-app#twm-app#twm-app .s5x-wm span{display:flex;align-items:center;gap:6px;white-space:nowrap;font:900 13px Nunito,system-ui,sans-serif;letter-spacing:.06em;color:#7C3AED}
html body #twm-app#twm-app#twm-app#twm-app .s5x-wm span:nth-child(even){margin-left:-120px}
html body #twm-app#twm-app#twm-app#twm-app .s5x-wm img{width:20px;height:20px}
/* big zoom button like the sample */
html body #twm-app#twm-app#twm-app#twm-app .s5-cta #twm-zoom{background:#fff!important;color:#4B32D1!important;border:2px solid #4B32D1!important;font:900 16px Nunito,system-ui,sans-serif!important;min-height:52px;border-radius:999px!important;box-shadow:none!important}
html body #twm-app#twm-app#twm-app#twm-app .s5x-on .s45-sum{display:none!important}
html body #twm-app#twm-app#twm-app#twm-app .s05x.s5x-on .s45-bcs.s5x-sheet .twm-bc.s45-bc{border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;outline:0!important}
html body #twm-app#twm-app#twm-app#twm-app .s05x.s5x-on .s45-bcs.s5x-sheet .twm-bc.s45-bc+.twm-bc.s45-bc{border-top:1px dashed #D6D0F5!important}

/* QUOTA-20261112: monthly limit card */
html body #twm-app#twm-app#twm-app#twm-app .tq{background:#fff;border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;box-shadow:0 2px 10px rgba(60,40,140,.07);margin:0 0 10px}
html body #twm-app#twm-app#twm-app#twm-app .tq-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font:800 14px Nunito,system-ui,sans-serif;color:#1E1B3A}
html body #twm-app#twm-app#twm-app#twm-app .tq-h span{font-weight:700;color:#64748B}
html body #twm-app#twm-app#twm-app#twm-app .tq-h span b{color:#15803D;font-weight:900}
html body #twm-app#twm-app#twm-app#twm-app .tq-bar{height:10px;border-radius:999px;background:#EEEAFB;overflow:hidden}
html body #twm-app#twm-app#twm-app#twm-app .tq-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#3B6CFF,#8B5CF6)}
html body #twm-app#twm-app#twm-app#twm-app .tq-bar.hot i{background:linear-gradient(90deg,#F59E0B,#E11D48)}
html body #twm-app#twm-app#twm-app#twm-app .tq-f{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font:700 12.5px Nunito,system-ui,sans-serif;color:#475569}
html body #twm-app#twm-app#twm-app#twm-app .tq small{font:600 11.5px Nunito,system-ui,sans-serif;color:#94A3B8}

/* SHOP-SLIM-20261112 */
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-cta{display:flex;align-items:center;gap:12px;margin:4px 0 12px;padding:12px 14px;border-radius:18px;background:#fff;border:1px solid #E6E3F7;text-decoration:none;color:#1E1B3A;box-shadow:0 2px 10px rgba(60,40,140,.06)}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-cta span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-cta b{font:900 15px Nunito,system-ui,sans-serif}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-cta small{font:600 12.5px Nunito,system-ui,sans-serif;color:#64748B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-cta i{font:900 22px Nunito,sans-serif;font-style:normal;color:#5B3FD6}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-fit{margin:18px 0 90px;display:flex;flex-direction:column;gap:10px;min-width:0}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-h{display:flex;justify-content:space-between;align-items:center;gap:8px}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-h h3{margin:0;font:900 17px Nunito,system-ui,sans-serif;color:#1E1B3A}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-h h3 small{font-size:12px;font-weight:800;color:#fff;background:#8B5CF6;border-radius:999px;padding:1px 8px;margin-left:4px;vertical-align:middle}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-h a{font:800 13px Nunito,system-ui,sans-serif;color:#5B3FD6;text-decoration:none}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(140px,40%);gap:10px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory;scrollbar-width:thin}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-card{scroll-snap-align:start;min-width:0;display:flex;flex-direction:column;gap:4px;background:#fff;border-radius:16px;padding:10px;text-decoration:none;color:#1E1B3A;box-shadow:0 2px 8px rgba(60,40,140,.06)}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-card .im{display:grid;place-items:center;height:96px;background:#F7F6FD;border-radius:12px;overflow:hidden}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-card img{max-width:100%;max-height:96px;object-fit:contain}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-card b{font:700 12.5px/1.3 Nunito,system-ui,sans-serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:33px}
html body #twm-app#twm-app#twm-app#twm-app .sc-acc-card .pr{font:900 14px Nunito,system-ui,sans-serif;color:#4B32D1}
@media (min-width:900px){html body #twm-app#twm-app#twm-app#twm-app .sc-acc-row{grid-auto-columns:minmax(160px,20%)}}

/* B3-20261112: "Chọn giao dịch" — the two choices come right after the title, the promo banner goes under them */
html body #twm-app#twm-app#twm-app#twm-app .twm-main:has(> .twm-flows){display:flex!important;flex-direction:column}
html body #twm-app#twm-app#twm-app#twm-app .twm-main:has(> .twm-flows) > .twp-bv2-shared{order:9}
html body #twm-app#twm-app#twm-app#twm-app .twm-main:has(> .twm-flows) > .v7-note{order:10}
/* saved-address chips on checkout */
html body #twm-app#twm-app#twm-app#twm-app .sa-pick{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
html body #twm-app#twm-app#twm-app#twm-app .sa-pick>span{width:100%;font:800 13px Nunito,system-ui,sans-serif;color:#475569}
html body #twm-app#twm-app#twm-app#twm-app .sa-pick button{border:1px solid #D6D0F5;background:#fff;border-radius:12px;padding:8px 12px;text-align:left;font:700 13px/1.3 Nunito,system-ui,sans-serif;color:#1E1B3A;cursor:pointer;max-width:100%}
html body #twm-app#twm-app#twm-app#twm-app .sa-pick button small{display:block;font-weight:600;color:#64748B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
html body #twm-app#twm-app#twm-app#twm-app .sa-pick button.on{border-color:#5B3FD6;background:#EDE9FF}
/* ct1 20261112: out of stock → hide the installment teaser too (buy buttons are already replaced by .pdp-sale-blocked) */
html body #twm-app#twm-app#twm-app#twm-app .sc-pdp:has(.pdp-sale-blocked) .s11b-installment-teaser{display:none!important}
/* ct2 20261112: installment contract box + full-screen contract viewer */
html body #twm-app#twm-app#twm-app#twm-app .ictr{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #C7D2FE;border-radius:14px;background:#EEF2FF;margin-top:10px}
html body #twm-app#twm-app#twm-app#twm-app .ictr p{margin:0;font-size:14px;line-height:1.5;color:#1E1B3A}
html body #twm-app#twm-app#twm-app#twm-app .ictr-chk{display:flex;gap:8px;align-items:flex-start;font-size:14px;font-weight:600;color:#1E1B3A;cursor:pointer}
html body #twm-app#twm-app#twm-app#twm-app .ictr-chk input{width:20px;height:20px;flex:0 0 auto;margin-top:1px}
html body #twm-app#twm-app#twm-app#twm-app .ictr-chk:has(input:disabled){opacity:.55;cursor:not-allowed}
html body #twm-app#twm-app#twm-app#twm-app .ictr-link{background:none;border:0;padding:0;color:#4F46E5;font-weight:700;text-decoration:underline;cursor:pointer}
.ictr-ov{position:fixed;inset:0;z-index:2147483000;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:12px}
.ictr-sheet{background:#fff;border-radius:16px;width:min(860px,100%);height:min(92vh,100%);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.ictr-sheet iframe{flex:1;border:0;width:100%}
.ictr-sheet>button{margin:10px;min-height:44px;border:0;border-radius:12px;background:#4F46E5;color:#fff;font-weight:800;font-size:15px;cursor:pointer}
