body.topup-embedded{background:#101914}body.topup-embedded .header,body.topup-embedded .hero,body.topup-embedded .steps,body.topup-embedded .help-section,body.topup-embedded .footer{display:none}body.topup-embedded .shell{max-width:none;padding:22px 25px 28px}body.topup-embedded .store-layout{grid-template-columns:minmax(0,1fr) 310px;gap:22px}body.topup-embedded .premium-card{margin-top:22px}body.topup-embedded .history{margin-top:22px}body.topup-embedded .checkout{top:14px}body.topup-embedded .mode-banner{padding:8px}
@media(min-width:650px) and (max-width:920px){body.topup-embedded .shell{padding:18px}body.topup-embedded .store-layout{grid-template-columns:minmax(0,1fr) 270px;gap:15px}body.topup-embedded .packs{grid-template-columns:repeat(2,minmax(0,1fr))}body.topup-embedded .premium-card{grid-template-columns:1fr}body.topup-embedded .premium-price{width:100%;display:flex;align-items:center;gap:9px}body.topup-embedded .premium-price button{width:auto;flex:1}}
@media(max-width:649px){body.topup-embedded .shell{padding:16px 14px 28px}body.topup-embedded .store-layout{display:flex;flex-direction:column;gap:16px}body.topup-embedded .diamonds-section{order:1}body.topup-embedded .checkout{order:2;width:100%}body.topup-embedded .premium-card{order:3;margin:0;width:100%}body.topup-embedded .history{order:4;margin:0;width:100%}body.topup-embedded .packs{grid-template-columns:repeat(3,minmax(0,1fr))}body.topup-embedded .pack{min-height:105px}body.topup-embedded .section-heading h2{font-size:20px}body.topup-embedded .mode-banner{font-size:10px}}

/* Embedded-only theme and section layout; the standalone payment page stays intact. */
html:has(body.topup-embedded){color-scheme:light;background:#f6f4eb;scroll-padding-top:12px}
body.topup-embedded{background:#f6f4eb;color:#24523d;--paper:#1d7051;--muted:#73826e;--line:#cad6c1;--panel:#eef1e6;scrollbar-color:#a6b99a #f6f4eb}
body.topup-embedded .shell{padding:16px 18px 24px}
body.topup-embedded .store-layout{grid-template-columns:minmax(0,1fr) 260px;gap:18px;align-items:start}
body.topup-embedded .topup-view-heading{grid-column:1/-1}
body.topup-embedded .topup-view-heading small{font:700 9px/14px Sarabun,Tahoma,sans-serif;letter-spacing:1.8px;color:#64816a}
body.topup-embedded .topup-view-heading h1{font-size:23px;line-height:32px;margin:2px 0;color:#18523d}
body.topup-embedded .topup-view-heading p{font-size:11px;line-height:17px;color:#75816b}
body.topup-embedded .diamonds-section>.section-heading{display:none}
body.topup-embedded .products{min-width:0}
body.topup-embedded [data-topup-section]{order:1;min-width:0;width:100%}
body.topup-embedded .packs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.topup-embedded .pack-bonus{color:#f0f3df}
body.topup-embedded :is(dialog,.premium-card,.premium-year-card,.oniu-offer,.pack-bonus){--paper:#e3e8b8;--muted:#a3afa4;--line:#354137;--gold:#d5bb7b;color-scheme:dark}
body.topup-embedded dialog{color:#edece0}
body.topup-embedded .pack-basic{background:#e6edde;border-color:#c6d5bd;color:#24523d;min-height:100px}
body.topup-embedded .monthly-promotion{margin-top:0}
body.topup-embedded .monthly-promotion{background:#234c3b;border-color:#436e49}
body.topup-embedded .monthly-promotion :is(h3,p,.promotion-eyebrow){color:#e5e9c8}
body.topup-embedded .monthly-promotion{padding:14px 16px;border-radius:10px}
body.topup-embedded .monthly-promotion h3{font-size:19px;line-height:26px;margin:4px 0}
body.topup-embedded .mode-banner{background:#f4e9ce;color:#946b27;border-color:#dfd0a9}
body.topup-embedded .checkout{background:#fcfcf3;border-color:#cbd7c1;position:static;min-width:0}
body.topup-embedded .wallet{background:#e7eedf;border-color:#cbd7c1;padding:14px}
body.topup-embedded .wallet-heading strong,body.topup-embedded .wallet-balance strong{color:#215a40}
body.topup-embedded .wallet-balance>span,body.topup-embedded .wallet-heading small{color:#688060}
body.topup-embedded .linked{background:#d0dfbe;color:#4e7546}
body.topup-embedded .wallet :is(small,.wallet-premium,.wallet-quota){color:#718368}
body.topup-embedded .wallet-premium{font-size:10px;line-height:16px}
body.topup-embedded .summary{padding:14px;color:#2d553c}
body.topup-embedded .summary-product strong,body.topup-embedded .summary-total strong{color:#28543a}
body.topup-embedded .summary :is(small,dl,.checkout-note){color:#718368}
body.topup-embedded .summary-total{border-color:#d3dccb}
body.topup-embedded .primary-button{background:#087553;border-color:#087553;color:#fff9e9;min-height:44px}
body.topup-embedded .custom-topup{background:#eaf0e1;border-color:#c9d8bf;color:#2b583e}
body.topup-embedded .custom-topup :is(small,output){color:#677d60}
body.topup-embedded .custom-topup input{color:#215a40;background:#fffef5;border-color:#b9cdaa;min-height:44px;font-size:16px}
body.topup-embedded .history{margin-top:18px;border-color:#d3ddc9}
body.topup-embedded .history-row{background:#fdfdf5;border-color:#d4dfcb;color:#305b40}
body.topup-embedded .history .text-button{color:#4d7653;min-height:44px}
body.topup-embedded .empty-state{border-color:#d3deca;color:#73846a}
body.topup-embedded .premium-card,body.topup-embedded .premium-year-card,body.topup-embedded .oniu-offer{margin-top:0}
body.topup-embedded .premium-card{color:#e4e7cf;grid-template-columns:1fr;padding:18px}
body.topup-embedded .premium-price{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;width:100%;text-align:left}
body.topup-embedded .premium-price :is(.premium-emblem,small){margin:0}
body.topup-embedded .premium-price button{width:100%;min-height:44px}
body.topup-embedded .topup-premium-benefits{grid-column:1/-1;min-width:0;border-top:1px solid #a9ac6b30;padding-top:6px}
body.topup-embedded .topup-premium-benefits summary{min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px;color:#d6c388;cursor:pointer}
body.topup-embedded .topup-premium-benefits summary::after{content:'+';margin-left:auto;font-size:18px}
body.topup-embedded .topup-premium-benefits[open] summary::after{content:'−'}
body.topup-embedded .topup-premium-benefits ul{padding-left:18px;font-size:11px;line-height:22px;color:#d0d3bb}
body.topup-embedded .premium-year-card{margin-top:14px}
body.topup-embedded .topup-limited-empty{display:none;padding:24px 16px;border:1px dashed #bbceb0;border-radius:10px;background:#eaf0e2;color:#688064;font-size:13px;line-height:22px}
body.topup-embedded .oniu-offer[hidden]+.topup-limited-empty{display:block}
body.topup-embedded .topup-selection-hint{display:none;padding:16px;color:#728365;font-size:12px;line-height:20px}
body.topup-embedded[data-topup-pending=false]:is([data-topup-view=diamonds]:not([data-topup-selection=diamonds]),[data-topup-view=limited]:not([data-topup-selection=oniu350]):not([data-topup-selection=halloweenKeys5]):not([data-topup-selection=pumpkinGhost350]),[data-topup-view=premium]:not([data-topup-selection^=premium])) .summary{display:none}
body.topup-embedded[data-topup-pending=false]:is([data-topup-view=diamonds]:not([data-topup-selection=diamonds]),[data-topup-view=limited]:not([data-topup-selection=oniu350]):not([data-topup-selection=halloweenKeys5]):not([data-topup-selection=pumpkinGhost350]),[data-topup-view=premium]:not([data-topup-selection^=premium])) .topup-selection-hint{display:block}
@media(max-width:649px){body.topup-embedded .shell{padding:13px 12px 20px}body.topup-embedded .store-layout{display:flex;gap:14px}body.topup-embedded .products{display:contents}body.topup-embedded .topup-view-heading{order:0}body.topup-embedded .checkout{order:2}body.topup-embedded .history{order:3}body.topup-embedded .topup-view-heading h1{font-size:21px}body.topup-embedded .premium-price p strong{font-size:28px}}
@media(max-width:620px){
 body.topup-embedded .oniu-offer{grid-template-columns:minmax(0,1fr);padding:16px;gap:12px}
 body.topup-embedded .oniu-copy{grid-column:1;grid-row:1;min-width:0}
 body.topup-embedded .oniu-kicker{letter-spacing:.5px;line-height:16px}
 body.topup-embedded .oniu-copy h2 span{display:block;margin:5px 0 0;font-size:15px}
 body.topup-embedded .oniu-art{grid-column:1;grid-row:2;min-height:0}
 body.topup-embedded .oniu-truck{width:150px;height:120px}
 body.topup-embedded .oniu-perks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 body.topup-embedded .oniu-perks>span{min-width:0;padding:6px 4px;font-size:9px}
 body.topup-embedded .oniu-buy{grid-column:1;grid-row:3;flex-wrap:wrap;gap:8px 12px}
 body.topup-embedded .oniu-buy small{flex-basis:100%;width:100%}
 body.topup-embedded .oniu-buy button{min-height:44px}
}
