/* SHOP9 V4 design reference. All selectors are scoped to the candidate components. */
.s9-marketplace {
    --s9-ink: #101c38; --s9-blue: #315cf5; --s9-muted: #64748b; --s9-line: #e2e8f0; --s9-surface: #f6f8fc;
    background: var(--s9-surface); color: var(--s9-ink);
}
.s9-marketplace :is(button,a,input,select):focus-visible { outline: 3px solid #8099ff; outline-offset: 3px; }
.s9-marketplace .is-srOnly { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.s9m-wrap { max-width: 1240px; margin: 0 auto; padding: 24px; }
/* V4.1 artwork and layout. The same components are used in the offline review. */
.s9m-hero {
    background: radial-gradient(ellipse at 78% 80%, #2b1c62 0%, transparent 58%),
        radial-gradient(ellipse at 6% 4%, #123252 0%, transparent 48%), #0b1127;
    color: #fff; border: 1px solid #302b54; border-radius: 32px; padding: 38px 26px 24px;
    overflow: hidden; text-align: center; box-shadow:0 14px 38px #18244425;
}
.s9m-hero-intro { min-width: 0; }
.s9m-carousel { min-width: 0; }
.s9m-eyebrow { margin:0; color:#b7caff; font:750 11px/1.5 system-ui,sans-serif; letter-spacing:.16em; text-transform:uppercase; }
.s9m-hero h1 { color:#fff; font:820 clamp(34px,5vw,62px)/1.01 system-ui,sans-serif; letter-spacing:-.065em; margin:14px 0; }
.s9m-hero h1 span { color:#e1d7ff; }
.s9m-subtitle { color:#cfdbf6; margin:16px 0 20px; font-size:15px; line-height:1.65; }
.s9m-stage { height:354px; position:relative; isolation:isolate; touch-action:pan-y; overflow:hidden; }
.s9m-cover {
    position:absolute; left:50%; top:50%; width:min(55%,434px); height:305px; border-radius:25px;
    border:1px solid color-mix(in srgb, var(--s9-glow) 74%, #fff);
    box-shadow:0 24px 42px #07081a9c, inset 0 0 18px #ffffff22;
    padding:22px; text-align:left; color:white; text-decoration:none;
    display:flex; flex-direction:column; justify-content:end; background-size:cover; background-position:center;
    background-color:var(--s9-art-base);
    background-image:linear-gradient(10deg,#0a0d21f2 6%,#0c1027c4 31%,transparent 70%),var(--s9-art);
    transform:translate(-50%,-50%) translateX(var(--slide)) scale(var(--scale));
    transition:transform .4s cubic-bezier(.22,.75,.25,1),opacity .4s; user-select:none;
}
.s9m-cover[data-position="-2"] { --slide:-83%; --scale:.64; z-index:3; opacity:.68; }
.s9m-cover[data-position="-1"] { --slide:-45%; --scale:.82; z-index:4; opacity:.86; }
.s9m-cover[data-position="0"] { --slide:0%; --scale:1; z-index:5; opacity:1; box-shadow:0 25px 50px #060819a8, 0 0 24px color-mix(in srgb,var(--s9-glow) 43%,transparent), inset 0 0 22px #ffffff1f; }
.s9m-cover[data-position="1"] { --slide:45%; --scale:.82; z-index:4; opacity:.86; }
.s9m-cover[data-position="2"] { --slide:83%; --scale:.64; z-index:3; opacity:.68; }
.s9m-cover:hover, .s9m-cover:focus { color:white; }
.s9m-cover:not([data-position="0"]) > * { opacity:0; }
.s9m-cover strong { font:820 clamp(22px,3vw,37px)/1.04 system-ui,sans-serif; letter-spacing:-.045em; }
.s9m-cover small { margin:6px 0 13px; color:#f1efff; font-size:13px; }
.s9m-cover > span { align-self:start; background:#fff; color:#18142e; border-radius:99px; padding:8px 15px; font-weight:750; font-size:13px; }
.s9m-airtime, [data-service="Mobile Airtime"] { --s9-art-base:#121f58; --s9-glow:#718eff; --s9-art:url(../v41/categories/airtime-480.webp); }
.s9m-data, [data-service="Mobile Data"] { --s9-art-base:#10382f; --s9-glow:#60ecd7; --s9-art:url(../v41/categories/data-480.webp); }
.s9m-gift, [data-service="Digital Gift Cards"] { --s9-art-base:#361556; --s9-glow:#d399ff; --s9-art:url(../v41/categories/gift-480.webp); }
.s9m-gaming, [data-service="Gaming Credit"] { --s9-art-base:#52152d; --s9-glow:#ff8fa5; --s9-art:url(../v41/categories/gaming-480.webp); }
.s9m-cashew, [data-service="Cashews"] { --s9-art-base:#452710; --s9-glow:#ffcf7b; --s9-art:url(../v41/categories/cashew-480.webp); }
@media (min-width:960px) {
    .s9m-hero { display:grid; grid-template-columns:minmax(0,.67fr) minmax(0,1.33fr); align-items:center; gap:10px; text-align:left; padding:34px 24px 30px 42px; }
    .s9m-hero h1 { font-size:clamp(42px,4.6vw,66px); }
    .s9m-subtitle { max-width:30ch; }
    .s9m-airtime { --s9-art:url(../v41/categories/airtime-900.webp); }
    .s9m-data { --s9-art:url(../v41/categories/data-900.webp); }
    .s9m-gift { --s9-art:url(../v41/categories/gift-900.webp); }
    .s9m-gaming { --s9-art:url(../v41/categories/gaming-900.webp); }
    .s9m-cashew { --s9-art:url(../v41/categories/cashew-900.webp); }
}
.s9m-controls:not([hidden]) { display:flex; justify-content:center; align-items:center; gap:3px; }
.s9m-controls button { padding:0; color:white; }
.s9m-arrow { border:1px solid #ffffff60; border-radius:50%; width:44px; height:44px; font-size:23px; margin:0 4px; }
.s9m-dot { width:28px; height:44px; display:grid; place-items:center; }
.s9m-dot::before { content:""; width:10px; height:10px; border-radius:10px; background:#ffffff55; }
.s9m-dot[aria-current="true"]::before { width:24px; background:white; }
.s9m-section { margin:32px auto; }
.s9m-sectionhead { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:14px; }
.s9m-sectionhead h2 { margin:0; font-weight:750; letter-spacing:-.035em; }
.s9m-sectionhead a, .s9m-sectionhead button { color:var(--s9-blue); font-weight:700; }
.s9m-rail { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 3px 14px; scrollbar-width:thin; }
.s9m-card {
    flex:0 0 180px; min-width:0; display:flex; flex-direction:column; background:#fff; border:1px solid var(--s9-line); border-radius:20px;
    padding:9px; text-align:left; scroll-snap-align:start; box-shadow:0 6px 15px #1822440b;
    color:var(--s9-ink); text-decoration:none;
}
.s9m-card-title { display:block; margin:8px 0 2px; font-size:15px; font-weight:780; line-height:1.25; }
.s9m-card-meta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; color:var(--s9-muted); font-size:11px; min-height:19px; }
.s9m-card-art {
    position:relative; isolation:isolate; overflow:hidden; display:grid; place-items:center;
    min-height:114px; aspect-ratio:4/3; border-radius:13px; background:#eef2fb;
}
.s9m-card-art img { width:100%; height:100%; position:absolute; inset:0; object-fit:contain; padding:8px; }
.s9m-card-art[data-fallback] {
    background:#eef2f8; color:#15244b;
}
.s9m-art-label { align-self:end; justify-self:start; margin:8px; padding:5px 8px; border-radius:6px; background:#10162dbd; color:#fff; font-size:11px; line-height:1.1; font-weight:750; }
.s9m-offer { position:absolute; inset:8px auto auto 8px; border-radius:6px; padding:3px 6px; background:#fcf1dc; color:#573709; font-weight:735; font-size:10px; }
.s9m-card-bottom { display:flex; justify-content:space-between; gap:4px; align-items:center; margin-top:auto; padding-top:7px; }
.s9m-card-price { margin:0; font-size:14px; font-weight:800; }
.s9m-card-price .price-section { margin:0; }
.s9m-card-action { display:grid; place-items:center; flex:0 0 37px; height:34px; border-radius:9px; color:#352178; background:#ede7ff; font-size:17px; font-weight:750; }
.s9m-card-content { display:block; color:var(--s9-ink); text-decoration:none; }
.s9m-country[data-country="Singapore"]::before,.s9m-country[data-country="SG"]::before { content:"🇸🇬 "; }
.s9m-country[data-country="Malaysia"]::before,.s9m-country[data-country="MY"]::before { content:"🇲🇾 "; }
.s9m-country[data-country="India"]::before,.s9m-country[data-country="IN"]::before { content:"🇮🇳 "; }
@media (min-width:960px) { .s9m-rail .s9m-card { flex-basis:calc((100% - 64px) / 5); } }
@media (min-width:1200px) { .s9m-rail .s9m-card { flex-basis:calc((100% - 80px) / 6); } }
.s9m-panel, .s9m-native :is(.login-form,.new-customer,.account-body,.s9-pdp > .container) { background:white; border:1px solid var(--s9-line); border-radius:24px; padding:24px; box-shadow:0 4px 12px #14254b08; }
.s9m-native .page-heading { color:var(--s9-ink); font-weight:800; letter-spacing:-.045em; }
.s9m-native :is(.form-input,.form-select) { border-radius:12px; border-color:#cbd5e1; }
.s9m-native .button--primary { border-radius:13px; font-weight:750; background:var(--s9-blue); border-color:var(--s9-blue); color:white; }
.s9m-bottom { display:none; }
@media (max-width:650px) {
    .s9m-wrap { padding:12px 14px 30px; }
    .s9m-hero { border-radius:24px; padding:24px 8px 15px; }
    .s9m-subtitle { font-size:13px; }
    .s9m-stage { height:248px; }
    .s9m-cover { width:69%; height:218px; padding:15px; }
    .s9m-cover small { font-size:11px; }
    .s9m-section { margin-top:24px; }
    .s9m-rail { gap:10px; }
    .s9m-card { flex-basis:154px; padding:9px; border-radius:16px; }
    .s9m-card-art { min-height:97px; }
    .s9m-panel, .s9m-native :is(.login-form,.new-customer,.account-body,.s9-pdp > .container) { padding:17px; }
    .s9m-bottom { position:fixed; inset:auto 0 0; z-index:20; display:flex; justify-content:space-around; padding:5px 0 calc(5px + env(safe-area-inset-bottom)); background:white; border-top:1px solid var(--s9-line); }
    .s9m-bottom a { min-width:48px; min-height:44px; color:var(--s9-ink); text-decoration:none; text-align:center; font-size:20px; line-height:1.15; }
    .s9m-bottom small { display:block; margin-top:3px; font-size:10px; }
    body.s9-marketplace { padding-bottom:calc(56px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) { .s9m-cover { transition:none; } }
.s9m-card > a { text-decoration:none; }
.s9m-card > a:hover strong { color:var(--s9-blue); }
.s9m-product-attribute { display:inline-flex; gap:6px; background:#edf1ff; color:#15244b; border-radius:8px; padding:4px 8px; margin:0 4px 6px 0; }
.s9m-account-tools { margin-bottom:24px; }
.s9m-account-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr)); gap:10px; list-style:none; margin:16px 0; }
.s9m-account-links a { display:block; border:1px solid var(--s9-line); border-radius:12px; padding:12px; font-weight:650; color:var(--s9-ink); }
.s9m-native [data-cart] :is([data-cart-content],[data-cart-totals]) { border-radius:24px; background:white; }
