/* PUBLICBOOST STORE STUDIO • cohesive visual layer, User Shop + shared SMS UI.
   Keep prices, wallet, provider reads, fulfillment and publish permissions untouched. */

/* ── Digital Store masthead ──────────────────────────────────────────────── */
.ds-studio {
 --store-line:rgba(155,150,215,.21);--store-text:#f6f5ff;--store-muted:#aeb6d1;
 width:100%;min-width:0;max-width:1540px;margin:0 auto 20px;
 color:var(--store-text);font-family:'Kantumruy Pro',Inter,'Noto Sans Khmer',sans-serif
}
.ds-studio *{box-sizing:border-box}
.ds-studio-hero {
 position:relative;display:flex;isolation:isolate;overflow:hidden;min-height:226px;
 border:1px solid rgba(136,124,242,.38);border-radius:23px;
 background:
  radial-gradient(ellipse 400px 220px at 83% 100%,rgba(73,99,243,.28),transparent 90%),
  radial-gradient(ellipse 480px 290px at 16% 4%,rgba(97,69,207,.27),transparent 80%),
  linear-gradient(125deg,#151629 5%,#15192e 46%,#121d35 100%);
 box-shadow:inset 0 1px rgba(214,197,255,.12),0 18px 36px rgba(1,3,18,.14)
}
.ds-studio-hero:before {
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:linear-gradient(115deg,transparent 48%,rgba(128,112,232,.07) 50%,transparent 52%),
 repeating-linear-gradient(115deg,transparent 0 89px,rgba(181,166,255,.026) 90px,transparent 92px)
}
.ds-studio-copy{position:relative;z-index:2;max-width:720px;padding:28px 34px 29px;flex:1}
.ds-studio-eyebrow{display:flex;align-items:center;gap:9px;font:760 10px/1.6 Inter,sans-serif;letter-spacing:1.8px;color:#bcaeff}
.ds-studio-eyebrow i{font-style:normal;color:#737693;margin:0 2px}
.ds-studio-eyebrow svg{width:17px;height:17px;color:#ac9bff;flex:none}
.ds-studio-copy h1{margin:9px 0 9px;color:#fff;font-size:30px;font-weight:800;letter-spacing:-.45px;line-height:1.55}
.ds-studio-copy p{margin:0;max-width:620px;color:#c0c4db;font-size:13px;line-height:1.9}
.ds-studio-highlights{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:19px}
.ds-studio-highlights span{
 display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:9px;
 border:1px solid rgba(160,150,230,.18);background:rgba(184,171,246,.062);
 color:#e0d8fa;font-size:11px;line-height:1.65;font-weight:650
}
.ds-studio-highlights svg{width:15px;height:15px;flex:none;color:#a5d6fc}
.ds-studio-art{position:relative;z-index:1;width:260px;min-width:230px;flex:0 0 29%;pointer-events:none}
.ds-studio-art:before{content:"";position:absolute;inset:20px 20px 0 0;background:radial-gradient(ellipse at 50% 65%,rgba(132,103,245,.25),transparent 64%);filter:blur(13px)}
.ds-studio-orbit{position:absolute;border:1px solid rgba(114,148,255,.2);border-radius:50%;width:240px;height:240px;right:17%;top:0;transform:rotate(18deg);box-shadow:inset 0 0 28px rgba(105,102,249,.12)}
.ds-studio-orbit-front{width:176px;height:176px;top:36px;right:27%;border-color:rgba(157,116,255,.36);transform:rotate(-24deg)}
.ds-studio-orb{position:absolute;display:grid;place-items:center;border-radius:18px;border:1px solid rgba(177,168,255,.38);box-shadow:0 12px 28px rgba(3,5,20,.29),inset 0 1px rgba(255,255,255,.16);color:#eef0ff}
.ds-studio-orb svg{width:30px;height:30px}
.ds-studio-orb-store{width:86px;height:86px;right:35%;top:49px;border-radius:25px;background:linear-gradient(150deg,#5244a5,#2c3e88)}
.ds-studio-orb-store svg{width:42px;height:42px;color:#fcfaff}
.ds-studio-orb-mail{width:60px;height:60px;right:13%;top:32px;background:linear-gradient(145deg,#185691,#283980);transform:rotate(9deg)}
.ds-studio-orb-mail svg{color:#bce4ff}
.ds-studio-orb-shield{width:53px;height:53px;right:14%;top:146px;background:linear-gradient(145deg,#5044a0,#233a64);transform:rotate(-11deg)}
.ds-studio-orb-shield svg{width:25px;height:25px;color:#b9e9ff}
.ds-studio-directory{padding:16px 1px 1px}
.ds-studio-directory-title{display:flex;align-items:center;gap:11px;margin:2px 0 12px}
.ds-studio-directory-title>span{width:39px;height:39px;display:grid;place-items:center;background:linear-gradient(150deg,#252940,#1a2434);border:1px solid var(--store-line);border-radius:12px;color:#b6a3ff}
.ds-studio-directory-title svg{width:19px;height:19px}
.ds-studio-directory-title h2{margin:0;color:var(--store-text);font-size:16px;font-weight:780;line-height:1.65}
.ds-studio-directory-title p{margin:0;color:var(--store-muted);font-size:11px;line-height:1.5}
.ds-studio-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:12px}
.ds-studio-link{
 display:flex;align-items:center;gap:13px;min-width:0;min-height:75px;text-align:left;
 padding:12px 15px;border:1px solid rgba(142,148,193,.26);border-radius:15px;
 background:linear-gradient(137deg,#191e31,#131924 72%);
 color:#f4f3ff;cursor:pointer;
 transition:background .17s,border-color .17s,box-shadow .17s,transform .17s
}
.ds-studio-link:hover,.ds-studio-link:focus-visible{
 border-color:rgba(178,145,255,.6);background:linear-gradient(137deg,#222342,#171b2c);
 box-shadow:0 12px 28px rgba(57,34,116,.18);transform:translateY(-1px)
}
.ds-studio-link:focus-visible{outline:2px solid #ac91ff;outline-offset:3px}
.ds-studio-link-icon{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,rgba(132,107,224,.26),rgba(56,94,195,.18));border:1px solid rgba(163,146,238,.38);color:#c8b8ff}
.ds-studio-link-icon svg{width:24px;height:24px}
.ds-studio-link-copy{display:grid;gap:3px;flex:1;min-width:0}
.ds-studio-link-copy strong{font-size:14px;line-height:1.5}
.ds-studio-link-copy small{font-size:11px;color:#a9b3d0;line-height:1.7}
.ds-studio-count{flex:none;font:760 10px/1.7 Inter,sans-serif;white-space:nowrap;padding:5px 9px;border-radius:8px;background:rgba(138,124,230,.13);border:1px solid rgba(173,149,255,.2);color:#c9b9ff}
.ds-studio-chevron{width:20px;height:20px;color:#958aaf;flex:none;display:grid;place-items:center}
.ds-studio-chevron svg{width:15px;height:15px}
#pbUserSmsRoot,#dsManagedCatalog{scroll-margin-top:94px}
/* Keep dynamically Admin-published products but style them as one brand family. */
/* With only SMS available, the outer section switch would repeat the
   Mail & SMS header. Show it only if actual Admin-published products exist. */
.ds-studio.single-section .ds-studio-directory{display:none}
.ds-studio.single-section{margin-bottom:13px}
.ms-user-shop .ms-desktop-aside .ms-aside-wallet{display:none}
.ds-studio+.ms-user-shop{margin-top:0}
.ds-page{--ds-text:#f1f0ff;--ds-muted:#aeb6ce;--ds-line:#303850;font-family:'Kantumruy Pro',Inter,'Noto Sans Khmer',sans-serif}
.ds-page .ds-main,.ds-page .ds-side-card{border-radius:18px;background:linear-gradient(160deg,#171d2b,#101724);border:1px solid rgba(142,145,193,.25);box-shadow:inset 0 1px rgba(235,229,255,.025),0 12px 30px rgba(6,7,26,.1)}
.ds-page .ds-product-card{border:1px solid rgba(152,154,202,.26);border-radius:16px;background:linear-gradient(150deg,#1d2437,#151a29);overflow:hidden}
.ds-page .ds-product-card:hover{border-color:#9882e8;box-shadow:0 12px 28px rgba(74,52,151,.21)}
.ds-page .ds-category{border-radius:13px;background:linear-gradient(135deg,#1d2333,#161b2a);border:1px solid rgba(151,150,199,.28)}
.ds-page .ds-category.active{background:linear-gradient(130deg,rgba(115,83,205,.3),rgba(46,62,141,.25));border-color:#9d87f3;box-shadow:inset 0 1px rgba(255,255,255,.065)}
.ds-page .ds-category>span{width:30px;height:30px;display:grid;place-items:center;margin-bottom:7px;color:#bfaeff}
.ds-page .ds-category .ds-vector-icon{width:24px;height:24px}
.ds-page .ds-search{background:#151c2c;border-color:rgba(157,160,216,.3)}
.ds-page .ds-main-btn{background:linear-gradient(118deg,#7455d8,#596ce0);border-color:rgba(173,156,246,.55);box-shadow:0 8px 20px rgba(72,63,180,.17)}
.ds-page .ds-product-body h3{font-weight:750}
.ds-page .ds-product-bottom strong,.ds-page .ds-cart-total strong{color:#d3c3ff}
.ds-page .ds-section-heading .ds-heading-icon{background:linear-gradient(130deg,#2a2c50,#1f2741);color:#cab5ff;border-color:#6f6299}
.ds-page .ds-side-title .ds-vector-icon{color:#b6a4ff}

/* ── SMS: replace white tiles with a unified sapphire/glass logo system ─── */
.ms-preview-root{
 --ms-bg:#0d1220;--ms-surface:#161b2a;--ms-raised:#1b2232;
 --ms-border:#2e374c;--ms-text:#f3f2ff;--ms-muted:#9ea9c4;--ms-accent:#b79cff;
 font-family:'Kantumruy Pro',Inter,'Noto Sans Khmer',sans-serif
}
.ms-preview-root .ms-app{background:linear-gradient(170deg,#101522,#0c111d 78%);border-color:rgba(140,145,202,.29);border-radius:21px;box-shadow:0 14px 42px rgba(2,5,18,.18)}
.ms-preview-root .ms-header{border-bottom-color:rgba(170,171,225,.10)}
.ms-preview-root .ms-brand-mark{background:linear-gradient(145deg,#322954,#1e2c47);border:1px solid rgba(175,155,255,.34);box-shadow:inset 0 1px rgba(255,255,255,.07)}
.ms-preview-root .ms-kind-tabs{border-color:rgba(147,149,198,.17);background:#161c2b}
.ms-preview-root .ms-list{
 border:1px solid rgba(144,150,193,.24);border-radius:17px;overflow:hidden;
 background:linear-gradient(147deg,#161d2c,#121824)
}
.ms-preview-root .ms-row{border-bottom:1px solid rgba(146,149,189,.115);min-height:82px;gap:13px;padding:13px 16px;transition:background .17s,border-color .17s}
.ms-preview-root .ms-row:hover,.ms-preview-root .ms-row:focus-visible{background:rgba(120,106,207,.085)}
.ms-preview-root .ms-row:focus-visible{outline:2px solid #ab91ff;outline-offset:-3px}
.ms-preview-root .ms-row>.ms-icon{color:#8c91bd}
.ms-preview-root .ms-brand{
 --logo-tone:#7892df;
 position:relative;width:46px;height:46px;display:grid;place-items:center;flex:none;
 border-radius:15px!important;border:1px solid color-mix(in srgb,var(--logo-tone) 38%,#55546e)!important;
 background:linear-gradient(145deg,color-mix(in srgb,var(--logo-tone) 18%,#20293e),#131b2b)!important;
 color:#d5d9ff!important;
 box-shadow:inset 0 1px rgba(255,255,255,.10),0 6px 17px rgba(1,6,22,.15);
 isolation:isolate;overflow:hidden
}
.ms-preview-root .ms-brand:before{
 content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;
 background:radial-gradient(circle at 20% 5%,color-mix(in srgb,var(--logo-tone) 24%,transparent),transparent 75%)
}
.ms-preview-root .ms-brand img,.ms-preview-root .ms-brand .ms-brand-svg{
 width:29px;height:29px;max-width:75%;max-height:75%;object-fit:contain;position:relative;z-index:1;display:block
}
.ms-preview-root .ms-brand-google{--logo-tone:#77b6fb}
.ms-preview-root .ms-brand-microsoft{--logo-tone:#6caafa}
.ms-preview-root .ms-brand-facebook{--logo-tone:#378ffb}
.ms-preview-root .ms-brand-instagram{--logo-tone:#ca6bd2}
.ms-preview-root .ms-brand-tiktok{--logo-tone:#45d6e9}
.ms-preview-root .ms-brand-telegram{--logo-tone:#39b9ff}
.ms-preview-root .ms-brand-apple{--logo-tone:#94a6d0}
.ms-preview-root .ms-brand-openai{--logo-tone:#55c9a4}
.ms-preview-root .ms-brand-whatsapp,.ms-preview-root .ms-brand-wechat,.ms-preview-root .ms-brand-line,.ms-preview-root .ms-brand-signal,.ms-preview-root .ms-brand-spotify{--logo-tone:#36d2a4}
.ms-preview-root .ms-brand-discord,.ms-preview-root .ms-brand-zalo,.ms-preview-root .ms-brand-linkedin,.ms-preview-root .ms-brand-paypal{--logo-tone:#8184ff}
.ms-preview-root .ms-brand-viber,.ms-preview-root .ms-brand-kakaotalk{--logo-tone:#d1a76c}
.ms-preview-root .ms-brand-snapchat{--logo-tone:#e4d14f}
.ms-preview-root .ms-brand-x,.ms-preview-root .ms-brand-uber,.ms-preview-root .ms-brand-steam{--logo-tone:#8898bb}
.ms-preview-root .ms-brand-reddit,.ms-preview-root .ms-brand-shopee,.ms-preview-root .ms-brand-amazon,.ms-preview-root .ms-brand-aliexpress{--logo-tone:#f59a5f}
.ms-preview-root .ms-brand-lazada,.ms-preview-root .ms-brand-foodpanda,.ms-preview-root .ms-brand-tinder{--logo-tone:#f27bbb}
.ms-preview-root .ms-brand-netflix{--logo-tone:#f26171}
.ms-preview-root .ms-brand-airbnb{--logo-tone:#f07d93}
.ms-preview-root .ms-brand-snapchat,.ms-preview-root .ms-brand-kakaotalk{
 background:linear-gradient(145deg,#faf086,#d9b742)!important;
 border-color:#f6dd7e!important
}
/* Dark glyphs from licensed SVGs need luminance reversal on a glass surface. */
html:not([data-theme=light]) .ms-preview-root .ms-brand-apple img,
html:not([data-theme=light]) .ms-preview-root .ms-brand-x img,
html:not([data-theme=light]) .ms-preview-root .ms-brand-uber img,
html:not([data-theme=light]) .ms-preview-root .ms-brand-steam img{filter:brightness(0) invert(1)}
.ms-preview-root .ms-brand-snapchat img,.ms-preview-root .ms-brand-kakaotalk img{filter:none!important}
.ms-preview-root .ms-row-copy>strong,.ms-preview-root .ms-row-title>strong{font-weight:750;color:#f3f2ff}
.ms-preview-root .ms-row-copy>small{color:#a1abc3}
.ms-preview-root .ms-price b{color:#e4d8ff;font-family:Manrope,Inter,sans-serif;font-weight:800;letter-spacing:-.4px}
.ms-preview-root .ms-price small{color:#9d9fb7}
.ms-preview-root .ms-service-row .ms-price small{color:#9da5b9}
.ms-preview-root .ms-search{background:#171e2d;border-color:rgba(147,149,198,.28);border-radius:13px}
.ms-preview-root .ms-search:focus-within{border-color:#957bff;box-shadow:0 0 0 3px rgba(145,125,255,.08)}
.ms-preview-root .ms-section-head>span{background:rgba(136,122,218,.12);color:#c0b4ee;border-color:rgba(136,122,218,.2)}
.ms-preview-root .ms-desktop-aside>div{border-color:rgba(151,151,205,.21)}
.ms-preview-root .ms-success{border-radius:8px}
.ms-preview-root .ms-country-row .ms-country-flag{
 width:49px;height:43px!important;min-width:49px;padding:6px;
 border-radius:13px;background:linear-gradient(150deg,#293146,#1a2334);
 border:1px solid rgba(138,154,207,.27);box-shadow:inset 0 1px rgba(255,255,255,.08),0 5px 14px rgba(0,0,0,.13)
}
.ms-preview-root .ms-country-flag img.ms-flag{
 height:100%;width:100%;max-height:none;object-fit:cover;border-radius:6px;
 box-shadow:0 2px 6px rgba(2,6,20,.2)
}
.ms-preview-root .ms-country-row .ms-row-copy>small{color:#9aabc9}
.ms-preview-root .ms-country-row .ms-flag{border-radius:6px}
.ms-preview-root .ms-live-feed{background:linear-gradient(95deg,#191e38,#1b1d31);border-color:#343a59}
.ms-preview-root .ms-preview-notice{background:#171b2e;color:#b9b8ce;border-color:#2e344a}
.ms-preview-root .ms-brand-title h1{letter-spacing:-.4px}
.ms-preview-root .ms-desktop-tabs button.active{background:linear-gradient(110deg,rgba(141,105,232,.20),rgba(83,102,216,.10));border-color:rgba(150,121,230,.3)}
/* Searchable service category navigation. Pure SVG icons, no emoji. */
.ms-preview-root .ms-service-filters{display:flex;gap:7px;min-width:0;overflow-x:auto;scrollbar-width:none;padding:1px 0 14px;margin-top:-2px;scroll-snap-type:x proximity}
.ms-preview-root .ms-service-filters::-webkit-scrollbar{display:none}
.ms-preview-root .ms-service-filters button{
 flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;
 min-height:37px;padding:7px 12px;border-radius:10px;border:1px solid rgba(147,149,198,.27);
 background:#1a2030;color:#b1b9d2;cursor:pointer;font-family:inherit;font-size:11px;font-weight:710;white-space:nowrap;
 transition:background .15s,border-color .15s,color .15s;scroll-snap-align:start
}
.ms-preview-root .ms-service-filters button:hover{border-color:#8679c4;color:#ede5ff}
.ms-preview-root .ms-service-filters button.is-active{background:linear-gradient(125deg,rgba(139,99,226,.28),rgba(76,93,197,.19));border-color:#9582e4;color:#f4ecff;box-shadow:inset 0 1px rgba(239,226,255,.11)}
.ms-preview-root .ms-service-filters svg{height:15px;width:15px;flex:none;color:#ad99f5}
.ms-preview-root .ms-service-filters small{font:780 10px/1.3 Manrope,Inter,sans-serif;color:#cbb7ff}
.ms-preview-root .ms-service-filters button:focus-visible{outline:2px solid #c4aeff;outline-offset:2px}

/* ── Small screens ───────────────────────────────────────────────────────── */
@media(max-width:700px){
 .ds-studio{margin-bottom:12px}
 .ds-studio-hero{min-height:0;border-radius:19px}
 .ds-studio-copy{padding:20px 17px 19px;max-width:100%}
 .ds-studio-copy h1{font-size:23px;margin:9px 0 5px}
 .ds-studio-copy p{font-size:11.5px;line-height:1.85;max-width:83%}
 .ds-studio-eyebrow{font-size:9px;letter-spacing:1.1px}
 .ds-studio-highlights{gap:6px;margin-top:13px}
 .ds-studio-highlights span{padding:6px 8px;font-size:9.5px}
 .ds-studio-highlights svg{width:13px;height:13px}
 .ds-studio-art{position:absolute;right:-25px;top:5px;bottom:0;min-width:0;width:34%;opacity:.58}
 .ds-studio-orbit{width:145px;height:145px;top:17px;right:0}
 .ds-studio-orbit-front{width:105px;height:105px;top:37px;right:19px}
 .ds-studio-orb-store{width:54px;height:54px;right:37px;top:41px;border-radius:16px}
 .ds-studio-orb-store svg{width:25px;height:25px}
 .ds-studio-orb-mail{width:34px;height:34px;right:5px;top:28px;border-radius:10px}
 .ds-studio-orb-mail svg{width:18px;height:18px}
 .ds-studio-orb-shield{width:33px;height:33px;right:14px;top:100px;border-radius:10px}
 .ds-studio-orb-shield svg{width:17px;height:17px}
 .ds-studio-directory{padding:12px 0 0}
 .ds-studio-directory-title h2{font-size:14px}
 .ds-studio-directory-title p{font-size:10px}
 .ds-studio-directory-title>span{width:36px;height:36px}
 .ds-studio-links{grid-template-columns:1fr;gap:8px}
 .ds-studio-link{min-height:71px;border-radius:13px;padding:10px 12px;gap:10px}
 .ds-studio-link-icon{width:43px;height:43px;border-radius:12px}
 .ds-studio-link-copy strong{font-size:12.5px}
 .ds-studio-link-copy small{font-size:10px}
 .ds-studio-count{font-size:9px}
 .ms-preview-root .ms-app{border-radius:17px}
 .ms-preview-root .ms-row{gap:11px;min-height:74px;padding:11px 12px}
 .ms-preview-root .ms-brand{width:42px;height:42px;border-radius:13px!important}
 .ms-preview-root .ms-brand img,.ms-preview-root .ms-brand .ms-brand-svg{width:27px;height:27px}
 .ms-preview-root .ms-country-row .ms-country-flag{width:41px;height:38px!important;min-width:41px;padding:5px;border-radius:11px}
 .ms-preview-root .ms-country-flag img.ms-flag{border-radius:5px}
 .ms-preview-root .ms-service-filters{gap:6px;padding-bottom:12px}
 .ms-preview-root .ms-service-filters button{min-height:35px;padding:7px 10px;font-size:10px}
}
@media(max-width:390px){
 .ds-studio-copy p{max-width:100%}
 .ds-studio-art{opacity:.3;right:-43px}
 .ds-studio-count{display:none}
}

/* ── Light-mode parity: no black cards, retain legible logos and SVGs ─────── */
html[data-theme=light] .ds-studio{--store-text:#242640;--store-muted:#67748e;--store-line:#d7d8ef}
html[data-theme=light] .ds-studio-hero{
 border-color:#ccc4f0;
 background:radial-gradient(ellipse at 88% 65%,rgba(111,129,245,.18),transparent 66%),linear-gradient(127deg,#f4f1ff,#f0f5ff 80%);
 box-shadow:0 14px 32px rgba(74,67,119,.07)
}
html[data-theme=light] .ds-studio-eyebrow{color:#7454b4}
html[data-theme=light] .ds-studio-copy h1{color:#272443}
html[data-theme=light] .ds-studio-copy p{color:#64708b}
html[data-theme=light] .ds-studio-highlights span{color:#525d7c;background:#ffffffa8;border-color:#d5c9ed}
html[data-theme=light] .ds-studio-highlights svg{color:#7555c4}
html[data-theme=light] .ds-studio-directory-title>span{background:#f1edff;color:#8058c4;border-color:#d9d1ed}
html[data-theme=light] .ds-studio-link{background:linear-gradient(135deg,#fff,#f6f7ff);border-color:#d9dcf0;color:#292944}
html[data-theme=light] .ds-studio-link:hover{background:#f4efff;border-color:#b8a3ec}
html[data-theme=light] .ds-studio-link-copy small{color:#687391}
html[data-theme=light] .ds-studio-link-icon{background:linear-gradient(145deg,#ede6fc,#e8eeff);color:#7351bc;border-color:#d4c7ef}
html[data-theme=light] .ds-studio-count{color:#7651b7;background:#efe9fa;border-color:#d4c6ef}
html[data-theme=light] .ds-page .ds-main,html[data-theme=light] .ds-page .ds-side-card{background:#fff;border-color:#dde1f2}
html[data-theme=light] .ds-page .ds-category{background:#f8f9ff;border-color:#dfe1ef}
html[data-theme=light] .ds-page .ds-category.active{background:#f0eaff;border-color:#a68ce7}
html[data-theme=light] .ds-page .ds-product-card{background:#fbfbff;border-color:#dfe2f2}
html[data-theme=light] .ds-page .ds-search{background:#f7f7fe;border-color:#dedfec}
html[data-theme=light] .ds-page .ds-product-bottom strong,html[data-theme=light] .ds-page .ds-cart-total strong{color:#7250b7}
html[data-theme=light] .ms-preview-root{--ms-bg:#f8f9fd;--ms-surface:#fff;--ms-raised:#eef1f7;--ms-border:#e0e3ee;--ms-text:#272e44;--ms-muted:#65728b;--ms-accent:#7952bd}
html[data-theme=light] .ms-preview-root .ms-app{background:linear-gradient(170deg,#fff,#f7f8ff);border-color:#dfe1ee}
html[data-theme=light] .ms-preview-root .ms-list{background:#fff;border-color:#dce0ed}
html[data-theme=light] .ms-preview-root .ms-row{border-bottom-color:#e8ebf4}
html[data-theme=light] .ms-preview-root .ms-row:hover{background:#f4f1ff}
html[data-theme=light] .ms-preview-root .ms-row-copy>strong,
html[data-theme=light] .ms-preview-root .ms-row-title>strong{color:#30344b}
html[data-theme=light] .ms-preview-root .ms-row-copy>small{color:#6e7a91}
html[data-theme=light] .ms-preview-root .ms-price b{color:#684cb0}
html[data-theme=light] .ms-preview-root .ms-brand{
 background:linear-gradient(145deg,color-mix(in srgb,var(--logo-tone) 9%,#fff),#f6f8ff)!important;
 border-color:color-mix(in srgb,var(--logo-tone) 25%,#d5d8e7)!important;
 box-shadow:inset 0 1px #fff,0 4px 12px rgba(34,43,99,.07)
}
html[data-theme=light] .ms-preview-root .ms-brand-snapchat,html[data-theme=light] .ms-preview-root .ms-brand-kakaotalk{
 background:linear-gradient(145deg,#fff5a4,#f0db78)!important;border-color:#e8d16b!important
}
html[data-theme=light] .ms-preview-root .ms-country-row .ms-country-flag{background:linear-gradient(145deg,#fff,#f0f3fa);border-color:#d9deea;box-shadow:inset 0 1px #fff,0 4px 11px rgba(25,37,89,.08)}
html[data-theme=light] .ms-preview-root .ms-search{background:#f7f9ff;border-color:#dce0ec}
html[data-theme=light] .ms-preview-root .ms-service-filters button{background:#f7f7fc;border-color:#dadced;color:#67728a}
html[data-theme=light] .ms-preview-root .ms-service-filters button.is-active{background:linear-gradient(120deg,#ede7fc,#e6ebfa);border-color:#a78bde;color:#6849a8}
html[data-theme=light] .ms-preview-root .ms-service-filters svg{color:#8963c0}
html[data-theme=light] .ms-preview-root .ms-service-filters small{color:#7554b2}
html[data-theme=light] .ms-preview-root .ms-live-feed{background:#f0eefb;border-color:#ded9ee}
html[data-theme=light] .ms-preview-root .ms-preview-notice{background:#f0f0fa;border-color:#e2deec;color:#645c81}
@media(prefers-reduced-motion:reduce){.ds-studio-link,.ms-preview-root .ms-row{transition:none!important}}

/* SMS COUNTRY BROWSER (2026-10-20)
   Continuously scroll ALL available countries without a "Show more" button.
   The surrounding Store/SMS card does not grow down to fit 100+ rows.
   One country-list scroller per view; no trapped nested mobile scroll area. */
.ms-preview-root .ms-country-view .ms-results{
 max-height:min(700px,72dvh);
 min-height:0;
 overflow-y:auto;
 overflow-x:hidden;
 overscroll-behavior-y:auto;
 -webkit-overflow-scrolling:touch;
 touch-action:pan-y;
 scrollbar-width:thin;
 scrollbar-color:rgba(160,146,222,.4) transparent;
 border-radius:14px;
 padding-right:3px;
}
.ms-preview-root .ms-country-view .ms-results:focus-visible{
 outline:2px solid var(--ms-accent);
 outline-offset:3px;
}
.ms-preview-root .ms-country-view .ms-results>.ms-list{margin-bottom:0}
.ms-preview-root .ms-country-view .ms-results::-webkit-scrollbar{width:6px}
.ms-preview-root .ms-country-view .ms-results::-webkit-scrollbar-thumb{background:rgba(154,145,203,.35);border-radius:8px}
.ms-preview-root .ms-country-view .ms-results::-webkit-scrollbar-track{background:transparent}
@container mail-sms (max-width:540px){
 /* Original phone UI constrained the whole content to a nested scroll pane.
    The country list is now the only inner scroll; header/price/search stay put. */
 .ms-preview-root .ms-country-view .ms-content-layout{
  overflow:visible;
  overscroll-behavior:auto;
  scrollbar-width:none;
 }
 .ms-preview-root .ms-country-view .ms-results{
  max-height:min(485px,calc(100dvh - 420px));
  padding-right:2px;
 }
}
@media(prefers-reduced-motion:reduce){
 .ms-preview-root .ms-country-view .ms-results{scroll-behavior:auto}
}

/* MAIL & SMS COMPACT HEADER • 2026-10-20
   The previous four stacked strips wasted the space above the service list.
   Brand, section navigation and wallet now share ONE row on desktop.
   The live-feed refresh stays available but no longer occupies a banner. */
.ms-preview-root .ms-header{
 display:grid;
 grid-template-columns:max-content minmax(0,1fr) max-content;
 align-items:center;gap:12px;min-height:65px;
 padding:11px 18px;border-bottom:1px solid rgba(149,154,200,.17)
}
.ms-preview-root .ms-header .ms-brand-title{gap:9px;min-width:0}
.ms-preview-root .ms-header .ms-brand-mark{width:37px;height:39px;border-radius:11px;flex:none}
.ms-preview-root .ms-header .ms-brand-mark .ms-icon{width:22px;height:22px}
.ms-preview-root .ms-header .ms-brand-title h1{font-size:20px;line-height:1.3;white-space:nowrap;margin:0;letter-spacing:-.45px}
.ms-preview-root .ms-header .ms-brand-title small{display:none}
.ms-preview-root .ms-header .ms-desktop-tabs{
 display:flex;align-items:center;justify-content:center;justify-self:center;
 gap:4px;min-height:0;min-width:0;margin:0;padding:0;
 background:transparent;border:0;white-space:nowrap
}
.ms-preview-root .ms-header .ms-desktop-tabs button{
 min-height:36px;padding:7px 11px;gap:7px;
 border-radius:9px;font-size:11px;line-height:1.6
}
.ms-preview-root .ms-header .ms-desktop-tabs button .ms-icon{width:16px;height:16px}
.ms-preview-root .ms-header .ms-wallet-pill{
 margin:0;padding:6px 7px 6px 10px;gap:8px;
 border-radius:11px;min-height:42px;box-shadow:none
}
.ms-preview-root .ms-header .ms-wallet-pill>span{grid-template-columns:16px auto;gap:0 5px}
.ms-preview-root .ms-header .ms-wallet-pill>span>.ms-icon{width:16px;height:16px}
.ms-preview-root .ms-header .ms-wallet-pill small{font-size:9px}
.ms-preview-root .ms-header .ms-wallet-pill b{font-size:15px;line-height:1.35}
.ms-preview-root .ms-header .ms-wallet-pill>button{width:29px;height:29px;padding:5px;border-radius:8px}
.ms-preview-root .ms-header .ms-wallet-pill>button .ms-icon{width:17px;height:17px}

/* Customer website: the label and right-hand explainer duplicated content. */
.ms-user-shop .ms-preview-notice{display:none}
.ms-user-shop .ms-content-layout{
 grid-template-columns:minmax(0,1fr);
 gap:0;min-width:0;padding:13px 19px 17px
}
.ms-user-shop .ms-desktop-aside{display:none!important}
.ms-user-shop .ms-main{min-width:0}
.ms-user-shop .ms-main:has(>.ms-kind-tabs){
 display:grid;grid-template-columns:max-content minmax(0,1fr);
 gap:0 14px;align-items:center
}
.ms-user-shop .ms-main>.ms-kind-tabs{
 grid-column:1;grid-row:1;
 justify-self:start;margin:0;min-height:0;padding:3px;
 border-radius:10px;gap:3px
}
.ms-user-shop .ms-main>.ms-kind-tabs button{
 min-height:35px;padding:6px 11px;font-size:12px;gap:6px;
 border-radius:8px
}
.ms-user-shop .ms-main>.ms-kind-tabs button .ms-icon{width:16px;height:16px}
.ms-user-shop .ms-main>.ms-page-heading{
 grid-column:2;grid-row:1;
 margin:0;min-height:41px;gap:10px
}
.ms-user-shop .ms-page-heading h2{font-size:18px;line-height:1.45;margin:0}
.ms-user-shop .ms-main>.ms-page-heading .ms-eyebrow{display:none}
.ms-user-shop .ms-main>.ms-search,
.ms-user-shop .ms-main>.ms-mode-tabs,
.ms-user-shop .ms-main>.ms-service-filters,
.ms-user-shop .ms-main>.ms-results,
.ms-user-shop .ms-main>.ms-data-footnote{grid-column:1/-1}
.ms-user-shop .ms-main>.ms-search{margin-top:10px;margin-bottom:11px;min-height:44px}
.ms-user-shop .ms-service-filters{margin-top:0}
.ms-user-shop .ms-main>.ms-results{min-width:0}
.ms-user-shop .ms-main>.ms-data-footnote{margin-top:10px}

/* Service refresh is a subtle slim toolbar, not a 75px high strip. */
.ms-user-shop .ms-live-feed{
 display:flex;align-items:center;gap:8px;
 min-height:33px;padding:4px 19px;
 font-size:10.5px;line-height:1.5;
 color:var(--ms-muted);background:transparent;
 border-top:0;border-bottom:1px solid rgba(138,145,190,.16)
}
.ms-user-shop .ms-live-feed .ms-icon{width:15px;height:15px}
.ms-user-shop .ms-live-feed button{
 min-height:26px;padding:3px 9px;border-radius:8px;
 border:1px solid rgba(151,138,210,.35);font-size:10px;
 background:rgba(127,108,212,.12);color:var(--ms-accent)
}
.ms-user-shop .ms-header+.ms-content-layout{padding-top:14px}
.ms-user-shop .ms-live-feed+.ms-content-layout{padding-top:12px}

@container mail-sms (max-width:880px){
 /* Mid-size tablets: permit a second nav row without collisions. */
 .ms-preview-root .ms-header{
  grid-template-columns:minmax(0,1fr) max-content;
  gap:7px 10px
 }
 .ms-preview-root .ms-header .ms-desktop-tabs{
  grid-column:1/-1;grid-row:2;
  justify-self:start;justify-content:flex-start;overflow-x:auto;
  max-width:100%;width:100%;scrollbar-width:none
 }
 .ms-preview-root .ms-header .ms-desktop-tabs::-webkit-scrollbar{display:none}
 .ms-preview-root .ms-header .ms-wallet-pill{grid-column:2;grid-row:1}
 .ms-preview-root .ms-header .ms-brand-title{grid-column:1;grid-row:1}
}
@container mail-sms (max-width:540px){
 .ms-preview-root .ms-header{
  display:flex;justify-content:space-between;align-items:center;
  min-height:55px;padding:9px 11px;gap:8px
 }
 .ms-preview-root .ms-header .ms-desktop-tabs{display:none}
 .ms-preview-root .ms-header .ms-brand-title{gap:7px}
 .ms-preview-root .ms-header .ms-brand-mark{width:30px;height:33px;border-radius:9px}
 .ms-preview-root .ms-header .ms-brand-mark .ms-icon{width:19px;height:19px}
 .ms-preview-root .ms-header .ms-brand-title h1{font-size:16px}
 .ms-preview-root .ms-header .ms-wallet-pill{
  min-height:36px;gap:5px;padding:4px 5px 4px 7px
 }
 .ms-preview-root .ms-header .ms-wallet-pill>span{display:grid;grid-template-columns:auto}
 .ms-preview-root .ms-header .ms-wallet-pill>span>.ms-icon{display:none}
 .ms-preview-root .ms-header .ms-wallet-pill small{font-size:8px}
 .ms-preview-root .ms-header .ms-wallet-pill b{font-size:13px}
 .ms-preview-root .ms-header .ms-wallet-pill>button{width:27px;height:27px}
 .ms-user-shop .ms-content-layout{padding:10px 11px 6px}
 .ms-user-shop .ms-main:has(>.ms-kind-tabs){
  grid-template-columns:max-content minmax(0,1fr);
  column-gap:8px
 }
 .ms-user-shop .ms-main>.ms-kind-tabs{padding:2px;gap:2px}
 .ms-user-shop .ms-main>.ms-kind-tabs button{
  padding:5px 8px;min-height:31px;font-size:11px;gap:4px
 }
 .ms-user-shop .ms-main>.ms-kind-tabs button .ms-icon{width:14px;height:14px}
 .ms-user-shop .ms-main>.ms-page-heading{min-height:36px;gap:5px}
 .ms-user-shop .ms-page-heading h2{font-size:15px;line-height:1.4}
 .ms-user-shop .ms-page-heading .ms-back,
 .ms-user-shop .ms-page-heading .ms-help{width:29px;height:29px;padding:6px}
 .ms-user-shop .ms-main>.ms-search{margin-top:8px;margin-bottom:10px;min-height:41px}
 .ms-user-shop .ms-service-filters{padding-bottom:8px}
 .ms-user-shop .ms-live-feed{
  min-height:31px;padding:4px 10px;gap:6px;font-size:10px
 }
 .ms-user-shop .ms-live-feed button{
  min-height:24px;padding:3px 7px;font-size:9.5px
 }
 .ms-user-shop .ms-app{height:810px;max-height:calc(100dvh - 72px)}
}
@container mail-sms (max-width:340px){
 .ms-user-shop .ms-header .ms-wallet-pill small{display:none}
 .ms-user-shop .ms-main>.ms-kind-tabs button{padding:5px 6px}
 .ms-user-shop .ms-page-heading h2{font-size:13px}
}
html[data-theme=light] .ms-user-shop .ms-live-feed{
 border-bottom-color:#dee2ef;background:transparent;color:#6e7791
}
html[data-theme=light] .ms-user-shop .ms-live-feed button{
 background:#f1edfc;color:#7957c2;border-color:#d4c7ee
}
@media(prefers-reduced-motion:reduce){
 .ms-user-shop .ms-header *{transition:none}
}

/* On genuinely short phone viewports, keep at least as many rows visible as
   before the expansion and allow the wallet/nav/footer to fit the fixed card. */
@media(max-height:760px){
 .ms-preview-root .ms-country-view .ms-results{
  max-height:min(36dvh,380px);
 }
}
