/* TW PAY · PDP compact + readable · 2026-11-11 (PDPCOMPACT-20261111)
   Product detail page only (#twm-app[data-scr="product"]). Paint + type size only, plus hiding duplicates.
   Light and dark (prefers-color-scheme) each get solid backgrounds behind text so contrast is >= 4.5:1.
   No prices, fees, rates or KYC logic touched. Link LAST in money/index.html. */
html body #twm-app#twm-app#twm-app[data-scr="product"]{
  --pc-fg:#0B1633;--pc-sub:#2B3756;--pc-card:rgba(255,255,255,.94);--pc-chip:#FFFFFF;--pc-chip-on:#EFE8FF;
  --pc-line:rgba(11,22,51,.18);--pc-accent:#5B2BD6;--pc-price:#6A1FC9;--pc-row:rgba(11,22,51,.045);}
@media (prefers-color-scheme: twpay-light-only){
html body #twm-app#twm-app#twm-app[data-scr="product"]{
  --pc-fg:#FFFFFF;--pc-sub:#DCE0F5;--pc-card:rgba(28,28,44,.94);--pc-chip:#2C2C42;--pc-chip-on:#3B2F6E;
  --pc-line:rgba(255,255,255,.24);--pc-accent:#C4B0FF;--pc-price:#FFA6DA;--pc-row:rgba(255,255,255,.06);}
}

/* ---------- cards ---------- */
html body #twm-app#twm-app#twm-app[data-scr="product"] :is(.s11b-summary,.s11b-details-page){
  background:var(--pc-card)!important;background-image:none!important;border:1px solid var(--pc-line)!important;color:var(--pc-fg)!important;}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary :is(.sc-card,.v7-vpick,.s11b-installment-teaser){
  background:transparent!important;background-image:none!important;box-shadow:none!important;}

/* ---------- name · price · condition ---------- */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .sc-info-name{color:var(--pc-fg)!important;font-size:clamp(22px,2.6vw,28px)!important;line-height:1.2!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .sc-info-brand{font-size:13px!important;color:var(--pc-accent)!important;background:var(--pc-chip-on)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .sc-price-lg{color:var(--pc-price)!important;font-size:clamp(28px,3.2vw,36px)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary :is(.sc-cond,.pdp-stock-notice){color:var(--pc-sub)!important;font-size:15px!important;line-height:1.4!important;font-weight:700!important}

/* ---------- colour + storage pickers ---------- */
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-vpick{padding:0!important;border:0!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-vh{color:var(--pc-fg)!important;font-size:16px!important;font-weight:900!important;margin:4px 0 8px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] :is(.v7-swb,.v7-stb){
  background:var(--pc-chip)!important;background-image:none!important;color:var(--pc-fg)!important;border:1.5px solid var(--pc-line)!important;box-shadow:none!important;opacity:1!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] :is(.v7-swb,.v7-stb) :is(span,b,small){color:inherit!important;opacity:1!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-swb{font-size:15px!important;font-weight:800!important;min-height:44px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-swb span{font-size:15px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-swb i{box-shadow:0 0 0 1.5px var(--pc-line)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-stb b{font-size:17px!important;font-weight:900!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-stb span{font-size:14.5px!important;font-weight:800!important;color:var(--pc-price)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-stb small{font-size:13px!important;font-weight:700!important;color:var(--pc-sub)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] :is(.v7-swb,.v7-stb):is(.on,[aria-checked="true"]){
  background:var(--pc-chip-on)!important;border:2px solid var(--pc-accent)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] :is(.v7-swb,.v7-stb):disabled{opacity:.55!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-vnote{color:var(--pc-sub)!important;font-size:14px!important;font-weight:700!important;opacity:1!important}
/* duplicates of the pickers */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary:has(.v7-vpick) :is(.s11b-capacity,.s11b-colours){display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .s11b-colours .pdp-swatch{font-size:14px!important;color:var(--pc-fg)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] :is(.s11b-section-label,.s11b-colours .pdp-swatches-title){color:var(--pc-fg)!important;font-size:15px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-capacity-current{font-size:15px!important;color:var(--pc-fg)!important;background:var(--pc-chip-on)!important;border-color:var(--pc-accent)!important}

/* ---------- total / installment box ---------- */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-installment-teaser{border:1.5px solid var(--pc-line)!important;border-radius:16px!important;padding:12px 14px!important;font-size:15px!important;color:var(--pc-fg)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-row{font-size:15px!important;align-items:baseline!important;padding:3px 0!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-row span{color:var(--pc-sub)!important;font-size:15px!important;font-weight:700!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-row b{color:var(--pc-fg)!important;font-size:16px!important;font-weight:900!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-row small{color:var(--pc-sub)!important;font-size:13.5px!important;font-weight:700!important;opacity:1!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-row:last-child{border-top:1px solid var(--pc-line)!important;margin-top:4px!important;padding-top:8px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-row:last-child b{color:var(--pc-price)!important;font-size:18px!important}

/* ---------- KYC notice + buy bar ---------- */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer{color:var(--pc-fg)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer .sc-kyc :is(p,b){color:var(--pc-fg)!important;font-size:15px!important;line-height:1.4!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer .sc-kyc b{color:var(--pc-price)!important;font-weight:900!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer #sc-signin{color:var(--pc-accent)!important;font-size:15px!important;font-weight:900!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-sale :is(.sc-btn,.sc-linkc){font-size:16px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-sale #mx-add,html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-sale #mx-add span{color:var(--pc-fg)!important;font-size:16px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-sale #mx-add{background:var(--pc-chip)!important;border:1.5px solid var(--pc-accent)!important}

/* ---------- ONE details section: specs · warranty · delivery ---------- */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-details-page{padding:16px!important;margin-top:10px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-details-page .s11b-panel-title{color:var(--pc-fg)!important;font-size:18px!important;font-weight:900!important;margin:0 0 10px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-compact .s11b-detail-content{display:flex!important;flex-direction:column!important;gap:12px!important;background:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kv{display:grid;grid-template-columns:1fr;gap:0;border:1px solid var(--pc-line);border-radius:14px;overflow:hidden}
@media (min-width:901px){html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kv{grid-template-columns:1fr 1fr;column-gap:0}}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kv>*{display:flex!important;justify-content:space-between!important;align-items:baseline!important;gap:12px!important;margin:0!important;padding:10px 12px!important;
  background:transparent!important;border:0!important;border-bottom:1px solid var(--pc-line)!important;border-radius:0!important;min-height:0!important;box-shadow:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kv>* *{font-size:15px!important;line-height:1.35!important;background:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kv>*>:first-child{color:var(--pc-sub)!important;font-weight:700!important;flex:0 1 auto}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kv>*>:last-child:not(:first-child){color:var(--pc-fg)!important;font-weight:900!important;text-align:right!important;overflow-wrap:anywhere;max-width:62%}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kv .missing{color:var(--pc-sub)!important;font-weight:700!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-notes{display:flex;flex-direction:column;gap:6px}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-notes>*{margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;
  color:var(--pc-fg)!important;font-size:14.5px!important;line-height:1.5!important;font-weight:600!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-notes>* *{color:inherit!important;font-size:inherit!important;background:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-notes :is(b,strong){font-weight:900!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-notes a{color:var(--pc-accent)!important;text-decoration:underline!important;font-weight:800!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-details-page .s11b-helptext{color:var(--pc-sub)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] :is(.s11b-installment-teaser,.s11b-inst-rows,.s11b-inst-row){width:100%!important;max-width:none!important;box-sizing:border-box!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-row small{text-align:right!important;margin-top:-4px!important}
/* products without the v7 picker: the colour swap chips (.pdp-swatch) get the same readable chip look */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .s11b-colours .pdp-swatches-row{flex-wrap:wrap!important;overflow:visible!important;gap:8px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .s11b-colours .pdp-swatch{display:inline-flex!important;align-items:center!important;gap:7px!important;max-width:none!important;min-height:44px!important;padding:6px 12px 6px 7px!important;
  background:var(--pc-chip)!important;background-image:none!important;border:1.5px solid var(--pc-line)!important;border-radius:999px!important;box-shadow:none!important;font-size:15px!important;font-weight:800!important;color:var(--pc-fg)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .s11b-colours .pdp-swatch:nth-child(n+5){display:inline-flex!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .s11b-colours .pdp-swatch span{color:var(--pc-fg)!important;font-size:15px!important;overflow:visible!important;max-width:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .s11b-colours .pdp-swatch.on{background:var(--pc-chip-on)!important;border:2px solid var(--pc-accent)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .s11b-colours .pdp-swatch i{width:28px!important;height:28px!important;flex:0 0 28px!important;box-shadow:0 0 0 1.5px var(--pc-line)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary .s11b-colours .pdp-swatches-title span{color:var(--pc-sub)!important}
/* PDPSHORT-20261111: short view + "see full product information" button */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-compact:not(.s11b-open) .s11b-more-item{display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-full-toggle{display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin:2px 0 0;padding:10px 14px;cursor:pointer;
  border:1.5px solid var(--pc-accent)!important;border-radius:14px;background:var(--pc-chip-on)!important;color:var(--pc-fg)!important;font:900 16px/1.2 Nunito,system-ui,sans-serif!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-full-toggle i{font-style:normal;font-size:18px;color:var(--pc-accent)}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-full-toggle:focus-visible{outline:3px solid var(--pc-accent);outline-offset:2px}
/* ===== PDPSHORT2-20261111 · owner: "ngắn gọn nhất có thể" (7 items) ===== */
/* (1) installment = one tappable line; rows open on tap */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-installment-teaser{padding:0!important;overflow:hidden}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-sum{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;padding:10px 14px;border:0;background:transparent;cursor:pointer;
  color:var(--pc-fg)!important;font:900 15.5px/1.3 Nunito,system-ui,sans-serif!important;text-align:left}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-sum i{font-style:normal;font-size:22px;color:var(--pc-accent);transition:transform .2s}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-open .s11b-inst-sum i{transform:rotate(90deg)}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-installment-teaser:has(.s11b-inst-sum):not(.s11b-inst-open) .s11b-inst-rows{display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-inst-open .s11b-inst-rows{padding:0 14px 12px!important}
/* (3) storage: one row, size only (big price above follows the pick) */
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-st{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(64px,1fr))!important;gap:6px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-stb{min-height:44px!important;height:auto!important;padding:8px 4px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-stb :is(span,small){display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-stb b{font-size:16px!important}
/* (4) colours: dots; only the picked colour shows its name */
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-sw{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-swb:not(.on):not([aria-checked="true"]){padding:6px!important;min-width:44px!important;justify-content:center!important;border-radius:999px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-swb:not(.on):not([aria-checked="true"]) span{display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-swb{border-radius:999px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-colours .pdp-swatch:not(.on){padding:6px!important;min-width:44px!important;justify-content:center!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-colours .pdp-swatch:not(.on) span{display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-vh{margin:2px 0 6px!important}
/* (5) drop "price follows the version you pick" */
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-vnote{display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary{gap:10px!important}
@media (max-width:900px){
/* (6) smaller photo, no thumbnail strip (swipe / arrows still work) */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-gallery .pdp-photo-grid{display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-gallery{height:240px!important;min-height:0!important;padding:8px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-gallery .pdp-gallery-scroll{height:100%!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-image-arrows{top:calc(50% - 22px)!important}
/* (7) buy bar: KYC note + sign-in on two short lines, no mascot icon */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer{gap:6px!important;padding-top:8px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer .sc-kyc{display:block!important;padding:0 4px!important;margin:0!important;border:0!important;background:none!important;min-height:0!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer .sc-kyc img{display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer .sc-kyc p{margin:0!important;font-size:14px!important;line-height:1.35!important;text-align:center!important;padding:0!important;border:0!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer #sc-signin{min-height:28px!important;padding:0!important;margin:0!important;font-size:14px!important;text-align:center!important}
}
@media (max-width:900px){
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-gallery{overflow:hidden!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-gallery .pdp-stage{height:100%!important;min-height:0!important;max-height:100%!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-gallery .pdp-gallery-scroll{height:100%!important;min-height:0!important;max-height:100%!important;aspect-ratio:auto!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-gallery .pdp-gallery-img{height:100%!important;max-height:100%!important;aspect-ratio:auto!important;object-fit:contain!important}
}
/* fit on one row at 320–375px: storage 4 columns; colour chips are dots only (heading already names the picked colour) */
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-st{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-stb b{font-size:15px!important;white-space:nowrap!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-swb{padding:6px!important;min-width:44px!important;justify-content:center!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .v7-swb span{display:none!important}
/* PDPBAR-20261111: KYC notice under the price (moved out of the sticky bar) */
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kyc-inline{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1.5px solid var(--pc-line);border-radius:14px;background:var(--pc-chip)!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kyc-inline .sc-kyc{display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important;min-height:0!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kyc-inline .sc-kyc img{display:none!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kyc-inline .sc-kyc p{margin:0!important;padding:0!important;border:0!important;color:var(--pc-fg)!important;font-size:14.5px!important;line-height:1.4!important;text-align:left!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kyc-inline .sc-kyc b{color:var(--pc-price)!important;font-weight:900!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kyc-inline #sc-signin{display:inline-flex!important;justify-content:flex-start!important;min-height:32px!important;padding:0!important;margin:0!important;border:0!important;background:none!important;color:var(--pc-accent)!important;font-size:14.5px!important;font-weight:900!important;text-align:left!important;width:auto!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-footer{padding-top:8px!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-summary>.s11b-kyc-inline{order:8!important}
html body #twm-app#twm-app#twm-app[data-scr="product"] .s11b-kyc-inline #sc-signin{align-self:flex-start!important;justify-content:flex-start!important}
#twm-app .s45-bars svg{display:block;width:100%!important;min-width:0!important;max-width:100%!important;height:76px!important}
#twm-app .s45-bcs{padding:12px 4px!important;margin:12px -6px!important}
#twm-app .s45-bcs .s45-bc{padding:8px 2px!important;margin:10px 0!important}
#twm-app .s45-bcs .s45-bars{padding:10px 4px!important;margin-top:6px!important}
/* TRACKBC-20261111: the payment slip is always a white "paper" (dark text) in light and dark mode, so cashiers can scan it */
html body #twm-app#twm-app#twm-app .s45-bcs{background:#FFFFFF!important;background-image:none!important;border:1px solid #D7DCE6!important;color:#0F172A!important}
html body #twm-app#twm-app#twm-app .s45-bcs h3{color:#0F172A!important}
html body #twm-app#twm-app#twm-app .s45-bcs .s45-bc{background:#F4F6FA!important;color:#0F172A!important}
html body #twm-app#twm-app#twm-app .s45-bcs .s45-bc>div:first-child{color:#3A4766!important}
html body #twm-app#twm-app#twm-app .s45-bcs .s45-bc .txt{color:#0F172A!important}
html body #twm-app#twm-app#twm-app .s45-bcs .mx-small{color:#B42318!important}
