.browser-login-button{padding:9px 14px;min-height:40px;font-size:13px}
.relay-code{display:block;margin:20px 0;padding:16px;border:1px solid var(--border,#363239);border-radius:12px;color:#d8c2ff;overflow-wrap:anywhere;user-select:all;font-size:15px;line-height:1.5}
#sheet-content>.primary,#sheet-content>.secondary{display:flex;align-items:center;justify-content:center;min-height:48px;margin-top:12px;text-align:center;text-decoration:none}
body[data-surface="mini"] .wallet-button,body[data-surface="mini"] #price-filter,body[data-surface="mini"] [data-market="Tonnel"]{display:none!important}
body[data-surface="mini"] .gift-price{font-size:15px}
body[data-surface="mini"] .profile-layout{display:block}
@media(max-width:390px){.browser-login-button{font-size:12px;padding-inline:10px}.header-right{gap:5px}}

body[data-surface="mini"] .gift-detail-image{width:100%;aspect-ratio:1;border-radius:16px;overflow:hidden}body[data-surface="mini"] .gift-detail-image img{display:block;width:100%;height:100%;object-fit:cover}

[data-market="Tonnel"]{display:none!important}#sheet-content>a.primary{color:#17131c;font-weight:600}
/* Standalone store polish. Kept separate from Mini App and checkout behaviour. */
body[data-surface="web"]{--bg:#111214;--panel:#1c1e22;--text:#f5f4f8;--muted:#b8b7c1;--accent:#b795ff;color-scheme:dark;line-height:1.5;font-variant-numeric:tabular-nums}
body[data-surface="web"] main{max-width:1440px;margin-inline:auto;padding:18px 32px 40px}
body[data-surface="web"] .topbar{max-width:1440px;margin-inline:auto;height:88px;padding-inline:32px;border-bottom:1px solid #282a30}
body[data-surface="web"] .brand{font-size:26px;gap:11px;letter-spacing:-.03em}
body[data-surface="web"] .brand-avatar{width:38px;height:38px}
body[data-surface="web"] :is(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
body[data-surface="web"] :is(input,textarea){caret-color:#c1a3ff}
body[data-surface="web"] ::selection{background:#b795ff;color:#1b1525}
body[data-surface="web"] :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #cfb7ff;outline-offset:4px}
body[data-surface="web"] :is(input,textarea)::placeholder{color:#a9a8b4;opacity:1}
body[data-surface="web"] :is(.primary,.secondary,.browser-login-button,.wallet-button){border-radius:12px;min-height:44px;font-weight:600;letter-spacing:0}
body[data-surface="web"] .primary{background:#b795ff;color:#1b1525}
body[data-surface="web"] .secondary{background:#292b32;color:#f5f4f8;border-color:#41434c}
body[data-surface="web"] button:disabled{cursor:not-allowed}
body[data-surface="web"] #market-section{gap:14px}
body[data-surface="web"] #market-section .search-box{height:52px;border-radius:14px;background:#1c1e22;border-color:#34363e}
body[data-surface="web"] #market-section :is(#all-collections,.catalog-sort-trigger,#sort){height:44px;border-radius:12px;background:#1c1e22;border-color:#34363e;font-size:13px}
body[data-surface="web"] #market-section .market-switch{border-radius:14px;background:#1c1e22;border-color:#34363e}
body[data-surface="web"] #market-section .market-switch button{border-radius:10px;font-weight:600}
body[data-surface="web"] #market-section #refresh{border-radius:12px;background:#1c1e22;border-color:#34363e}
body[data-surface="web"] :is(.collections-dropdown,.catalog-sort-menu){border-radius:14px;box-shadow:0 14px 40px #0006}
body[data-surface="web"] #gifts-grid{gap:18px;margin-top:10px}
body[data-surface="web"] #gifts-grid .gift-card{border:0;border-radius:16px;padding:8px;background:#1e2025}
body[data-surface="web"] #gifts-grid :is(.gift-image,.gift-open){border-radius:11px}
body[data-surface="web"] #gifts-grid .gift-info{padding:14px 6px 6px;min-height:132px}
body[data-surface="web"] #gifts-grid .gift-title{font-size:17px;line-height:23px;letter-spacing:-.02em}
body[data-surface="web"] #gifts-grid .gift-meta{margin-top:5px}
body[data-surface="web"] #gifts-grid :is(.gift-number,.gift-model){color:#bdbbc8}
body[data-surface="web"] #gifts-grid .gift-price{border-radius:10px;min-height:42px;font-size:16px}
body[data-surface="web"] #gifts-grid .gift-cart{border-radius:10px;width:42px;height:42px;min-width:42px;right:14px;bottom:14px}
body[data-surface="web"] .page-heading{margin:18px 0 28px}
body[data-surface="web"] .page-heading h1{font-size:32px;line-height:1.2;letter-spacing:-.03em}
body[data-surface="web"] .page-heading p{color:#b8b7c1}
body[data-surface="web"] :is(.empty,.auth-prompt){padding:60px 24px;max-width:520px;margin:24px auto;text-align:center;background:transparent;border:0}
body[data-surface="web"] :is(.empty,.auth-prompt) h3{font-size:23px;letter-spacing:-.02em}
body[data-surface="web"] :is(.empty,.auth-prompt) p{line-height:1.65;color:#b8b7c1;max-width:38ch;margin:12px auto 24px}
body[data-surface="web"] .profile-layout{gap:24px;align-items:start}
body[data-surface="web"] .balance-card{padding:28px;background:#22202b;border:0;border-radius:16px}
body[data-surface="web"] .balance-card>span{color:#d0c3e9;font-size:14px}
body[data-surface="web"] #profile-balance{font-size:44px;line-height:1.2;letter-spacing:-.035em;margin-block:14px 24px;color:#f6f0ff}
body[data-surface="web"] .balance-actions{gap:10px}
body[data-surface="web"] .balance-actions button{min-height:46px;border-radius:12px}
body[data-surface="web"] :is(.info-card,.account-tools,.profile-tools){border-radius:16px;background:#1c1e22;border-color:#34363e}
body[data-surface="web"] .profile-help{padding:22px}
body[data-surface="web"] .profile-help summary{font-weight:600;min-height:36px}
body[data-surface="web"] .profile-help a{padding-block:12px;text-underline-offset:4px}
body[data-surface="web"] :is(.order-card,.cart-item){border-radius:14px;background:#1c1e22;border-color:#34363e}
body[data-surface="web"] .overlay{background:#050609b8;backdrop-filter:none;padding:28px 16px;align-items:center}
body[data-surface="web"] .sheet{max-height:calc(100dvh - 56px);width:min(100%,580px);border:0;border-radius:20px;background:#1b1d21;box-shadow:0 24px 90px #0008;padding:28px}
body[data-surface="web"] .sheet-controls{z-index:6}
body[data-surface="web"] .sheet-close{width:40px;height:40px;min-width:40px;background:#30323a;border:0;color:#eeebf5;border-radius:12px}
body[data-surface="web"] .sheet-handle{display:none}
body[data-surface="web"] #sheet-title{font-size:26px;line-height:1.25;letter-spacing:-.025em;padding-right:38px;margin-top:0}
body[data-surface="web"] #sheet-content{min-width:0}
body[data-surface="web"] #sheet-content>:is(p,.coupon-intro,.coupon-status){line-height:1.65;color:#c4c1cd;overflow-wrap:anywhere}
body[data-surface="web"] #sheet-content :is(input:not([type="radio"]):not([type="checkbox"]),textarea,select){border-radius:12px;border-color:#41434d;background:#25272e;min-height:48px;font-size:16px}
body[data-surface="web"] #sheet-content :is(.primary,.secondary){min-height:48px;border-radius:12px}
body[data-surface="web"] #sheet-content>.detail-image{width:100%;max-width:280px;aspect-ratio:1;object-fit:cover;display:block;margin:0 auto 24px;border-radius:16px}
body[data-surface="web"] .detail-header{gap:12px;align-items:center}
body[data-surface="web"] .detail-header #sheet-title{margin:0}
body[data-surface="web"] .tg-traits{margin-block:22px;background:transparent;border-radius:0;padding:0}
body[data-surface="web"] .tg-trait-row{padding:12px 0;border-bottom:1px solid #34363e}
body[data-surface="web"] .tg-trait-label{color:#b8b7c1}
body[data-surface="web"] .gift-actions{gap:10px;margin-block:20px 28px}
body[data-surface="web"] .gift-action{border-radius:12px;min-height:44px;background:#292b32;border-color:#41434c}
body[data-surface="web"] .checkout-option{border-radius:12px;background:#22242a;border-color:#3c3e47;padding:14px 12px}
body[data-surface="web"] .checkout-option:has(input:checked){background:#342b43;border-color:#b795ff}
body[data-surface="web"] .checkout-option-hint{color:#c1bbc9}
body[data-surface="web"] .checkout-options{gap:8px}
body[data-surface="web"] .checkout-pay{font-size:16px}
body[data-surface="web"] :is(.checkout-consent,.checkout-terms){line-height:1.55}
body[data-surface="web"] .checkout-consent{margin-block:20px}
body[data-surface="web"] .recipient-person{background:#25272e;border-radius:12px;padding:14px}
body[data-surface="web"] .topup-amount-field input{font-size:28px!important;font-weight:600;letter-spacing:-.025em}
body[data-surface="web"] .topup-total{padding-block:22px}
body[data-surface="web"] .coupon-card{border-radius:16px;padding:28px;background:#b795ff;color:#21172e}
body[data-surface="web"] .coupon-card-amount{font-size:48px;letter-spacing:-.035em}
body[data-surface="web"] .coupon-card-note{color:#21172e;line-height:1.5}
body[data-surface="web"] .coupon-presets{gap:8px}
body[data-surface="web"] .coupon-presets button{border-radius:10px;min-height:44px}
body[data-surface="web"] :is(.coupon-form-actions,.coupon-receipt-actions){gap:12px}
body[data-surface="web"] :is(.coupon-form-actions,.coupon-receipt-actions)>button{width:100%;margin:0;min-height:48px;border-radius:12px}
body[data-surface="web"] .floating-cart{border-radius:18px;box-shadow:0 8px 26px #0005}
body[data-surface="web"] .toast{border-radius:12px;background:#eee8fa;color:#241c30;box-shadow:0 8px 28px #0005}
@media(min-width:1100px){
 body[data-surface="web"]{padding-bottom:0}
 body[data-surface="web"] .bottom-nav{position:absolute;top:20px;bottom:auto;left:50%;transform:translateX(-50%);width:450px;height:48px;padding:0;border:0;background:transparent;display:flex;gap:6px}
 body[data-surface="web"] .bottom-nav button{flex:1;flex-direction:row;gap:8px;min-height:44px;padding:10px 14px;border-radius:12px;font-size:13px;color:#bab7c4}
 body[data-surface="web"] .bottom-nav button.active{background:#2c2538;color:#d6c0ff}
 body[data-surface="web"] .bottom-nav :is(svg,.nav-market-avatar,.nav-person-avatar){width:20px;height:20px}
 body[data-surface="web"] .bottom-nav button.active:before{display:none}
 body[data-surface="web"] #market-section{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
 body[data-surface="web"] #market-section .search-box{grid-column:1/3;grid-row:1}
 body[data-surface="web"] #market-section .market-controls{grid-column:3/5;grid-row:1;height:52px}
 body[data-surface="web"] #market-section .market-switch{height:52px}
 body[data-surface="web"] #market-section .market-switch button{min-height:42px}
 body[data-surface="web"] #market-section #refresh{height:52px;width:52px}
 body[data-surface="web"] #market-section .collection-select{grid-column:1;grid-row:2}
 body[data-surface="web"] #market-section .catalog-sort{grid-column:2;grid-row:2}
 body[data-surface="web"] #gifts-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;margin-top:12px}
 body[data-surface="web"] .floating-cart{bottom:28px;right:32px}
 body[data-surface="web"] #profile-view{max-width:1000px;margin-inline:auto}
 body[data-surface="web"] #orders-view{max-width:960px;margin-inline:auto}
}
@media(max-width:700px){
 body[data-surface="web"] main{padding:12px 14px 24px}
 body[data-surface="web"] .topbar{height:72px;padding-inline:16px}
 body[data-surface="web"] .brand{font-size:23px;gap:8px}
 body[data-surface="web"] .brand-avatar{width:32px;height:32px}
 body[data-surface="web"] .browser-login-button{font-size:12px;padding-inline:10px}
 body[data-surface="web"] #market-section{gap:10px}
 body[data-surface="web"] #gifts-grid{gap:12px 10px;margin-top:8px}
 body[data-surface="web"] #gifts-grid .gift-card{padding:6px;border-radius:14px}
 body[data-surface="web"] #gifts-grid .gift-info{padding:11px 4px 4px;min-height:126px}
 body[data-surface="web"] #gifts-grid .gift-title{font-size:15px;line-height:21px}
 body[data-surface="web"] #gifts-grid .gift-price{font-size:15px;min-height:40px}
 body[data-surface="web"] #gifts-grid .gift-cart{right:10px;bottom:10px;width:38px;min-width:38px;height:40px}
 body[data-surface="web"] .page-heading h1{font-size:28px}
 body[data-surface="web"] .overlay{padding:12px 0 0;align-items:flex-end}
 body[data-surface="web"] .sheet{padding:24px 20px calc(24px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;max-height:calc(100dvh - 12px);width:100%}
 body[data-surface="web"] #sheet-title{font-size:24px}
 body[data-surface="web"] #sheet-content>.detail-image{max-width:240px;margin-bottom:20px}
 body[data-surface="web"] .bottom-nav{border-top-color:#303039;background:#17181c}
 body[data-surface="web"] .bottom-nav button{min-height:64px}
 body[data-surface="web"] .balance-card{padding:24px}
 body[data-surface="web"] #profile-balance{font-size:38px}
}
@media(max-width:350px){
 body[data-surface="web"] main{padding-inline:10px}
 body[data-surface="web"] .topbar{padding-inline:12px}
 body[data-surface="web"] .brand{font-size:21px}
 body[data-surface="web"] .sheet{padding-inline:16px}
 body[data-surface="web"] #gifts-grid .gift-title{font-size:14px}
 body[data-surface="web"] #gifts-grid .gift-price{font-size:14px}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 body[data-surface="web"] #gifts-grid .gift-card{transition:background .18s ease-out,transform .18s ease-out}
 body[data-surface="web"] #gifts-grid .gift-card:hover{background:#282a32;transform:translateY(-3px)}
 body[data-surface="web"] .primary:not(:disabled):hover{background:#c4a7ff}
 body[data-surface="web"] .secondary:not(:disabled):hover{background:#363842}
}
@media(prefers-reduced-motion:reduce){body[data-surface="web"] *,body[data-surface="web"] *:before,body[data-surface="web"] *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
body[data-surface="web"] .tg-traits{border:0;background:transparent}
body[data-surface="web"] .tg-trait-row{background:transparent;min-height:48px;padding:12px 0}
body[data-surface="web"] .profile-action{min-height:58px;padding:15px 18px}
body[data-surface="web"] .profile-referral-totals{font-variant-numeric:tabular-nums}
@media(min-width:1100px){
 body[data-surface="web"] .profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:none}
 body[data-surface="web"] .balance-card{grid-column:1;grid-row:1 / span 2;text-align:left;align-items:flex-start;min-height:250px}
 body[data-surface="web"] .balance-actions{justify-content:flex-start}
 body[data-surface="web"] .account-tools{grid-column:2;grid-row:1}
 body[data-surface="web"] .profile-help{grid-column:2}
 body[data-surface="web"] .sheet:has(#sheet-content>.detail-image){width:min(100%,980px)}
 body[data-surface="web"] .sheet:has(#sheet-content>.detail-image) #sheet-content{position:relative;padding-left:328px;min-height:300px}
 body[data-surface="web"] #sheet-content>.detail-image{position:absolute;left:0;top:0;width:280px;margin:0}
}
/* Keep the largest coupon denomination on one line, including narrow phones. */
body[data-surface="web"] .coupon-voucher .coupon-card-amount{font-size:clamp(32px,10vw,48px);white-space:nowrap;overflow-wrap:normal}
@media(max-width:1099px){
 /* Nonempty cart has its own bottom shelf; cards scroll clear of its controls. */
 body[data-surface="web"].has-floating-cart:after{content:"";position:fixed;inset:auto 0 calc(78px + var(--safe-bottom,0px));height:82px;background:#17181c;border-top:1px solid #303039;z-index:44}
 body[data-surface="web"].has-floating-cart{padding-bottom:calc(176px + var(--safe-bottom,0px))}
 body[data-surface="web"].has-floating-cart .floating-cart{bottom:calc(90px + var(--safe-bottom,0px))}
}
/* One compact desktop toolbar: search grows; the selectors keep usable widths. */
@media(min-width:1100px){
 body[data-surface="web"] #market-section{grid-template-columns:minmax(220px,1fr) 190px 190px 300px;gap:12px}
 body[data-surface="web"] #market-section .search-box{grid-column:1;grid-row:1;height:48px;min-height:48px}
 body[data-surface="web"] #market-section .collection-select{grid-column:2;grid-row:1;align-self:stretch}
 body[data-surface="web"] #market-section .catalog-sort{grid-column:3;grid-row:1}
 body[data-surface="web"] #market-section :is(#all-collections,.catalog-sort-trigger,#sort){height:48px;min-height:48px}
 body[data-surface="web"] #market-section .market-controls{grid-column:4;grid-row:1;height:48px;gap:8px}
 body[data-surface="web"] #market-section .market-switch{height:48px}
 body[data-surface="web"] #market-section .market-switch button{min-height:38px;padding-inline:12px}
 body[data-surface="web"] #market-section #refresh{width:48px;min-width:48px;height:48px;min-height:48px}
 body[data-surface="web"] #gifts-grid{margin-top:12px}
}
/* Profile uses the available website width, independent of legacy Mini App limits. */
body[data-surface="web"] #profile-view{max-width:1120px;width:100%;margin-inline:auto}
body[data-surface="web"] #profile-view .profile-identity{gap:14px;padding:8px 0 0;margin:16px 0 28px}
body[data-surface="web"] #profile-view .profile-avatar{width:52px;height:52px;flex:0 0 52px}
body[data-surface="web"] #profile-view .profile-identity h1{font-size:28px;min-width:0;overflow-wrap:anywhere}
body[data-surface="web"] #profile-view .profile-layout{width:100%;max-width:none;gap:20px}
body[data-surface="web"] #profile-view .balance-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:16px;padding:28px;background:#24202e;border:0;min-width:0;min-height:236px;text-align:left}
body[data-surface="web"] #profile-view #profile-balance{font-size:clamp(30px,3.2vw,44px);line-height:1.2;margin:0;max-width:100%;overflow-wrap:anywhere}
body[data-surface="web"] #profile-view .balance-actions{display:flex;width:100%;gap:10px;justify-content:flex-start;margin:0}
body[data-surface="web"] #profile-view .balance-actions button{flex:1;min-width:0;min-height:46px;padding:12px}
body[data-surface="web"] #profile-view .account-tools{min-width:0;background:#1e2025;border:1px solid #34363e;overflow:hidden}
body[data-surface="web"] #profile-view .profile-action{display:grid;grid-template-columns:24px minmax(0,1fr) 16px;gap:4px 12px;align-items:center;min-height:72px;padding:18px 20px;min-width:0;width:100%}
body[data-surface="web"] #profile-view .profile-action>svg:first-child{grid-column:1;grid-row:1 / span 2;width:22px;height:22px}
body[data-surface="web"] #profile-view .profile-action>span{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
body[data-surface="web"] #profile-view .profile-action>small{grid-column:2;grid-row:2;margin:0;justify-content:flex-start;flex-wrap:wrap;white-space:normal;font-size:13px;color:#c1b4d6}
body[data-surface="web"] #profile-view .profile-action>svg:last-child{grid-column:3;grid-row:1 / span 2;width:16px;height:16px}
body[data-surface="web"] #profile-view .profile-action:not(:has(small))>span{grid-row:1 / span 2}
body[data-surface="web"] #profile-view .profile-action .profile-cart-badge:empty{display:none}
body[data-surface="web"] #profile-view #profile-wishlist{width:100%;margin:0;min-height:92px;padding:22px 24px;border-radius:16px;border:1px solid #34363e;background:#1c1e22}
body[data-surface="web"] #profile-view .profile-help{margin:0;padding:22px 24px;min-height:92px;border:1px solid #34363e}
body[data-surface="web"] #profile-view .profile-help summary{min-height:44px;display:list-item;align-content:center}
@media(min-width:900px){
 body[data-surface="web"] #profile-view .profile-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.4fr);align-items:stretch}
 body[data-surface="web"] #profile-view .balance-card{grid-column:1;grid-row:1;align-self:stretch}
 body[data-surface="web"] #profile-view .account-tools{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(76px,1fr)}
 body[data-surface="web"] #profile-view .profile-action{border:0;border-bottom:1px solid #34363e}
 body[data-surface="web"] #profile-view .profile-action:nth-child(odd){border-right:1px solid #34363e}
 body[data-surface="web"] #profile-view .profile-action:last-child:nth-child(odd){grid-column:1/-1;border-right:0}
 body[data-surface="web"] #profile-view .profile-action:last-child,body[data-surface="web"] #profile-view .profile-action:nth-last-child(2):nth-child(odd){border-bottom:0}
 body[data-surface="web"] #profile-view #profile-wishlist{grid-column:1;grid-row:2}
 body[data-surface="web"] #profile-view .profile-help{grid-column:2;grid-row:2}
}
@media(max-width:899px){
 body[data-surface="web"] #profile-view .profile-layout{display:flex;flex-direction:column;gap:16px}
 body[data-surface="web"] #profile-view .profile-layout>*{width:100%}
 body[data-surface="web"] #profile-view .balance-card{order:-2;min-height:210px;padding:24px}
 body[data-surface="web"] #profile-view .account-tools{order:-1}
 body[data-surface="web"] #profile-view .profile-identity{margin-bottom:24px}
 body[data-surface="web"] #profile-view .profile-action{min-height:64px;padding:16px 18px}
 body[data-surface="web"] #profile-view #profile-balance{font-size:36px}
}
@media(hover:hover){body[data-surface="web"] #profile-view .profile-action:hover{background:#292630}}
body[data-surface="web"] #profile-view .profile-action>.profile-cart-badge{width:fit-content;min-width:24px;justify-self:start;padding:2px 8px;text-align:center;border-radius:8px}
/* Long values and repeated actions stay readable in secondary windows. */
body[data-surface="web"] #sheet-content>.primary,body[data-surface="web"] #sheet-content>.secondary{width:100%;box-sizing:border-box}
body[data-surface="web"] .referral-summary-detailed>div{min-width:0}
body[data-surface="web"] .referral-summary-detailed>div:nth-child(3){grid-column:1/-1}
body[data-surface="web"] .referral-summary-detailed>div:nth-child(3)>strong{font-size:clamp(22px,6vw,28px);overflow-wrap:normal}
body[data-surface="web"] :is(.referral-friend-identity,.referral-friend-reward,.admin-order,.income-order,.ledger-row,.buyer-order-gift){min-width:0;overflow-wrap:anywhere}
body[data-surface="web"] :is(.admin-order,.income-order)>:is(.primary,.secondary){width:100%;box-sizing:border-box;white-space:normal}
body[data-surface="web"] :is(.referral-wallet,.referral-summary,.admin-user-card,.admin-risk){border-radius:14px}
body[data-surface="web"] .income-metrics>div,body[data-surface="web"] .income-profit-lines>div{min-width:0}
@media(max-width:390px){
 body[data-surface="web"] .income-metrics{grid-template-columns:minmax(0,1fr)}
 body[data-surface="web"] .income-metrics dd{overflow-wrap:normal;font-size:20px}
 body[data-surface="web"] .income-profit-lines>div{grid-template-columns:minmax(0,1fr);gap:5px}
 body[data-surface="web"] .income-profit-lines dd{text-align:left}
}
@media(max-width:390px){body[data-surface="web"] .income-profit-lines>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}}
/* Currency-free Mini App summaries have simpler markup than website cards. */
body[data-surface="mini"] #sheet-content .cart-item{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:16px 0;border:0;border-bottom:1px solid #34363e;border-radius:0;background:transparent}
body[data-surface="mini"] #sheet-content .cart-item>strong,body[data-surface="mini"] #sheet-content .cart-item>span{display:block;min-width:0;overflow-wrap:anywhere}
body[data-surface="mini"] #sheet-content .cart-item>span{font-size:13px;color:#bbb7c7}
body[data-surface="mini"] #sheet-content .cart-item>.quiet-action{justify-self:start;min-height:44px;padding:8px 0}
body[data-surface="mini"] #orders-list .order-card{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:8px;padding:16px;text-align:left}
body[data-surface="mini"] #orders-list .order-card>strong,body[data-surface="mini"] #orders-list .order-card>span{display:block;min-width:0;overflow-wrap:anywhere;white-space:normal}
body[data-surface="mini"] #orders-list .order-card>span{font-size:13px;color:#c2b8d3}
body[data-surface="mini"] #sheet-content>.secondary{display:flex;width:100%;align-items:center;justify-content:center;min-height:48px;margin-top:10px;white-space:normal}
@media(max-width:390px){body[data-surface="web"] .income-profit-lines dt{flex:none;width:100%}body[data-surface="web"] .income-profit-lines dd{margin:0;align-self:flex-start}}

.installment-plan-notice{padding:14px 0;color:#d2c5e4;font-size:14px;line-height:1.6}
.installment-payment{margin:24px 0;min-width:0}.installment-payment h3{font-size:20px;margin:0 0 8px}.installment-payment-status{color:#c8bdd6;margin:0 0 18px}
.installment-payment-row{padding:18px 0;border-top:1px solid #41404a;min-width:0}.installment-payment-head{display:flex;justify-content:space-between;gap:16px;align-items:baseline;margin-bottom:12px}.installment-payment-head b{font-variant-numeric:tabular-nums;white-space:nowrap}.installment-payment-row>.primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;text-decoration:none}
.installment-payment-confirmed{color:#c9b1ff;font-weight:600}.installment-payment>p{font-size:14px;line-height:1.6;color:#c8bdd6;overflow-wrap:anywhere}.installment-payment>.secondary{width:100%;min-height:48px;margin-top:12px}

/* Size the toolbar from its labelled market buttons, rather than a 300px box. */
body[data-surface="web"] #market-section .market-controls{height:auto;min-height:48px}
body[data-surface="web"] #market-section .market-controls .market-switch{height:auto;min-height:48px;flex:1 0 auto}
body[data-surface="web"] #market-section .market-controls .market-switch button{min-height:40px;padding:8px 10px}
@media(min-width:1100px){
 body[data-surface="web"] #market-section{grid-template-columns:minmax(220px,1fr) 190px 190px max-content}
 body[data-surface="web"] #market-section .market-controls{width:max-content;max-width:100%;justify-self:start}
}
@media(min-width:1100px) and (max-width:1279px){
 body[data-surface="web"] #market-section{grid-template-columns:minmax(0,1fr) 190px 190px}
 body[data-surface="web"] #market-section .market-controls{grid-column:1/-1;grid-row:2}
}
@media(max-width:420px){
 body[data-surface="web"] #market-section .market-controls{align-items:flex-start}
 body[data-surface="web"] #market-section .market-controls .market-switch{flex:1;min-width:0}
 body[data-surface="web"] #market-section .market-controls .market-switch button{padding:8px 5px}
}

@media(max-width:700px){body[data-surface="web"] #market-section .market-controls .market-switch button{min-height:44px}}
