/* Dèlain commerce surfaces: black, white and gray with consistent line icons. */
:is(#viewerShopPanel,#quickSheetBackdrop){--commerce-paper:#fff;--commerce-ink:#222222;--commerce-muted:#707070;--commerce-line:#e7e7e7;--commerce-soft:#f6f6f6;--commerce-accent:#222222;--commerce-focus:#111111;color:var(--commerce-ink)}
#quickSheetBackdrop .quick-sheet-card{display:flex;flex-direction:column;width:min(540px,100%);max-height:calc(var(--mobile-visible-height,100dvh) - 32px);padding:0;border:1px solid #ffffff80;border-radius:20px;overflow:hidden;overscroll-behavior:contain;background:var(--commerce-paper);color:var(--commerce-ink);box-shadow:0 18px 64px #15151526}
.qsc-toolbar{flex:none;display:flex;align-items:center;gap:8px;min-height:60px;padding:6px 16px;border-bottom:1px solid var(--commerce-line);background:var(--commerce-paper)}
.qsc-toolbar strong{flex:1;font-size:16px;font-weight:600;line-height:1.4;text-align:center}
.qsc-toolbar button,.commerce-resize{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;touch-action:manipulation}
.qsc-toolbar svg,.commerce-resize svg,.commerce-panel-title svg,#mobileCatalogClose svg{display:block;width:22px;height:22px;margin:auto}
.qsc-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d5d5d5 transparent}
#quickSheetBackdrop .qsc-head{display:block;margin:0;padding:24px 24px 12px}
#quickSheetBackdrop .qsc-head img{display:block;width:auto;max-width:100%;height:min(340px,34dvh);aspect-ratio:1;object-fit:contain;margin:0 auto 22px;border-radius:14px;background:var(--commerce-soft)}
#quickSheetBackdrop .qsc-title{margin:0 0 10px;font-size:20px;font-weight:600;line-height:1.55;overflow-wrap:anywhere;letter-spacing:.01em}
#quickSheetBackdrop .qsc-price{font-size:22px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
#quickSheetBackdrop #qscNotes{margin-top:10px!important;color:var(--commerce-muted)!important;font-size:13px!important;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
#quickSheetBackdrop #qscNotes:empty{display:none}
.qsc-body>.mobile-demo-note{margin:6px 0 12px;padding:0 24px;color:var(--commerce-muted);font-size:11px;line-height:1.6}
#quickSheetBackdrop .qsc-variants{display:block;padding:0 24px 16px;margin:0;max-height:none;overflow:visible}
.qsc-option-label{display:block;margin:10px 0 18px;font-size:13px;font-weight:600;line-height:1.5;letter-spacing:.01em}
.qsc-option-label select{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:48px;margin-top:8px;padding:11px 40px 11px 14px;border:1px solid #d4d4d4;border-radius:10px;font:inherit;font-size:16px;font-weight:400;color:var(--commerce-ink);background-color:var(--commerce-paper);appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:20px;cursor:pointer}
.qsc-option-label select:disabled{color:var(--commerce-muted);background-color:var(--commerce-soft);border-color:var(--commerce-line);cursor:default;opacity:1}
.qsc-option-label select:has(option:checked:not([value=""])){border-color:#969696}
.qsc-stock-options{min-width:0;padding:0;border:0}
.qsc-stock-options legend{padding:0;margin-bottom:8px}
.qsc-stock-options>div{display:flex;flex-wrap:wrap;gap:10px}
.qsc-stock-choice{position:relative;display:block;max-width:100%;cursor:pointer}
.qsc-stock-choice input{position:absolute;width:1px;height:1px;opacity:0}
.qsc-stock-choice>span{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;box-sizing:border-box;padding:12px 18px;border:1px solid #bdbdbd;border-radius:2px;background:#fff;color:#111;font-size:18px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.qsc-stock-check{display:none;flex:none;width:18px;height:18px}
.qsc-stock-check path{stroke:#000}
.qsc-stock-choice input:checked+span{background:#000;border-color:#000;color:#fff}
.qsc-stock-choice input:checked+span .qsc-stock-check{display:block}
.qsc-stock-choice input:focus-visible+span{outline:2px solid #111;outline-offset:3px}
.qsc-stock-choice input:disabled+span{background:#ebebeb;border-color:#ddd;color:#737373;cursor:default}
#qscActions{flex:none;position:relative;z-index:2;background:var(--commerce-paper)}
.qsc-buybar{padding:12px 24px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--commerce-line);background:var(--commerce-paper)}
.qsc-buybar button{width:100%;min-height:48px;padding:12px 18px;border:1px solid #000;border-radius:12px;background:#000;color:#fff;opacity:1;font:inherit;font-size:15px;font-weight:600;line-height:1.4;letter-spacing:.02em;cursor:pointer;touch-action:manipulation}
.qsc-buybar button:disabled{border-color:#ebebeb;background:#ebebeb;color:#737373;cursor:default;opacity:1}
.commerce-resize,.qsc-toolbar .commerce-resize{display:none}
.commerce-resize[aria-expanded=true] svg{transform:rotate(180deg)}
.commerce-panel-title{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:600;line-height:1.4}
.commerce-panel-title svg{width:19px;height:19px;margin:0}
#viewerShopPanel #mobileShopTabs{gap:20px;padding:0 20px;border-color:var(--commerce-line);background:var(--commerce-paper)}
#viewerShopPanel #mobileShopTabs button{position:relative;flex:1;min-height:46px;padding:12px 4px;border:0;border-radius:0;background:transparent;color:var(--commerce-muted);font-size:13px;line-height:1.4}
#viewerShopPanel #mobileShopTabs button[aria-selected=true]{background:transparent;color:var(--commerce-ink);font-weight:600}
#viewerShopPanel #mobileShopTabs button[aria-selected=true]:after{content:'';position:absolute;bottom:0;left:calc(50% - 14px);width:28px;height:2px;border-radius:2px;background:var(--commerce-accent)}
#viewerShopPanel .sgc-price{color:var(--commerce-accent);font-weight:600;font-variant-numeric:tabular-nums}
#viewerShopPanel .shop-grid-card{min-width:0;padding:8px}
#viewerShopPanel .shop-grid-card.active-pin{background:#f6f6f6;border-radius:14px;box-shadow:inset 0 0 0 1.5px #111}
#viewerShopPanel .shop-grid-card.active-pin .sgc-img-box{box-shadow:none}
#viewerShopPanel .sgc-action{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;margin-top:10px;padding:6px 12px;border:1px solid #111;border-radius:999px;background:#fff;color:#111;font-size:16px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
#viewerShopPanel .sgc-action svg{width:18px;height:18px;flex:none}
#viewerShopPanel .active-pin .sgc-action{background:#000;color:#fff;border-color:#000}
#viewerShopPanel .product-catchup{border-color:var(--commerce-line);background:var(--commerce-paper)}
#viewerShopPanel .product-catchup button{border-color:var(--commerce-line);background:var(--commerce-soft);color:var(--commerce-ink);border-radius:9px}
#viewerShopPanel .product-catchup button[aria-pressed=true]{border-color:#b2b2b2;background:#f2f2f2;color:#222222}
#viewerShopPanel .product-catchup button:disabled{background:var(--commerce-soft);color:var(--commerce-muted)}
:is(#viewerShopPanel,#quickSheetBackdrop) :is(button,select){transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease}
:is(#viewerShopPanel,#quickSheetBackdrop) :is(button,select):focus-visible{outline:2px solid var(--commerce-focus);outline-offset:3px}
@media(hover:hover){.qsc-toolbar button:hover,.commerce-resize:hover{background:var(--commerce-soft)}.qsc-buybar button:hover:not(:disabled){background:#000;border-color:#000}#viewerShopPanel .shop-grid-card:hover{transform:none;background:var(--commerce-soft)}}
.qsc-buybar button:active:not(:disabled){background:#000;transform:translateY(1px)}
/* Both layers reuse the existing visual-viewport bounds and the same live player. */
body.mobile-live{--commerce-panel-height:min(66dvh,calc(var(--mobile-visible-height,100dvh) - 24px))}
body.mobile-live.mobile-commerce-expanded{--commerce-panel-height:min(90dvh,calc(var(--mobile-visible-height,100dvh) - 12px))}
.mobile-live #liveModalBackdrop #viewerShopPanel{height:var(--commerce-panel-height);min-height:0;max-height:calc(var(--mobile-visible-height,100dvh) - 12px);border-radius:22px 22px 0 0;background:var(--commerce-paper);color:var(--commerce-ink);box-shadow:0 -8px 32px #1515151f}
.mobile-live.mobile-shop-open #mobilePanelBackdrop{background:transparent;backdrop-filter:none}
.mobile-live #viewerShopPanel .panel-top-header{gap:4px;min-height:60px;padding:6px 12px 6px 20px;border-color:var(--commerce-line);color:var(--commerce-ink)}
.mobile-live #viewerShopPanel .commerce-panel-title{order:0;flex:none}
.mobile-live #viewerShopPanel #shopTotalCount{order:1;margin-left:auto;min-width:0;font-size:11px!important;color:var(--commerce-muted)!important;text-align:right;line-height:1.5}
.mobile-live #viewerShopPanel #mobileShopResize{order:2}
.mobile-live #viewerShopPanel #mobileCatalogClose{order:3;display:grid;place-items:center;width:44px;height:44px;padding:11px;border:0;border-radius:50%;background:transparent;color:var(--commerce-muted)}
.mobile-live #quickSheetBackdrop{top:var(--mobile-visible-top,0px);bottom:auto;height:var(--mobile-visible-height,100dvh);padding:0;background:transparent;align-items:flex-end}
.mobile-live #quickSheetBackdrop .quick-sheet-card{height:var(--commerce-panel-height);max-height:calc(var(--mobile-visible-height,100dvh) - 12px);border:0;border-radius:22px 22px 0 0;box-shadow:0 -8px 32px #1515151f}
.mobile-live #quickSheetBackdrop .qsc-head{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;padding:18px 20px 10px}
.mobile-live #quickSheetBackdrop .qsc-head img{width:80px;height:100px;max-height:none;margin:0;aspect-ratio:auto;align-self:start;border-radius:12px}
.mobile-live #quickSheetBackdrop .qsc-title{margin-bottom:8px;font-size:15px;line-height:1.5}
.mobile-live #quickSheetBackdrop .qsc-price{font-size:20px;line-height:1.4}
.mobile-live #quickSheetBackdrop #qscNotes{font-size:12px!important;line-height:1.6}
.mobile-live .commerce-resize{display:grid}
.mobile-live .qsc-toolbar{gap:0;min-height:56px;padding:4px 8px}
.mobile-live .qsc-toolbar strong{font-size:15px}
.mobile-live #quickSheetBackdrop .qsc-variants{padding:0 20px 8px}
.mobile-live .qsc-body>.mobile-demo-note{padding:0 20px;margin:4px 0 8px}
.mobile-live #qscActions .qsc-buybar{padding:10px 20px calc(10px + env(safe-area-inset-bottom,0px))}
.mobile-live #viewerShopPanel #desktopShopGrid{display:flex;flex-direction:column;gap:0;padding:4px 20px 20px;scrollbar-width:thin;scrollbar-color:#d5d5d5 transparent}
.mobile-live #desktopShopGrid .shop-grid-card{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:1fr auto auto;gap:6px 12px;flex:none;min-height:164px;padding:14px 10px;border:0;border-bottom:1px solid var(--commerce-line);border-radius:0;transform:none}
.mobile-live #desktopShopGrid .shop-grid-card.active-pin{border-radius:14px;border-bottom-color:transparent;margin:6px 0;background:#f6f6f6;box-shadow:inset 0 0 0 1.5px #111}
.mobile-live #desktopShopGrid .sgc-img-box{grid-row:1/4;width:96px;height:128px;aspect-ratio:auto;margin:0;border:0;border-radius:10px;background:var(--commerce-soft);box-shadow:none;align-self:start}
.mobile-live #desktopShopGrid .sgc-img-box img{width:100%;height:100%;object-fit:contain}
.mobile-live #desktopShopGrid .sgc-title{margin:0;font-size:13px;font-weight:500;line-height:1.55;align-self:center;letter-spacing:.01em}
.mobile-live #desktopShopGrid .sgc-price{margin:0;font-size:15px;line-height:1.4;align-self:end;letter-spacing:-.015em}
.mobile-live #desktopShopGrid .sgc-live-tag{inset:auto 0 0;padding:6px 2px;border-radius:0 0 10px 10px;background:#bf442e;color:#fff;font-size:14px;line-height:1.5;text-align:center;font-weight:600;letter-spacing:0;backdrop-filter:none}
.mobile-live #desktopShopGrid .sgc-action{grid-column:2;justify-self:start;max-width:100%;min-width:0;box-sizing:border-box;margin:0;font-size:16px}
@media(max-width:360px){.mobile-live #viewerShopPanel #desktopShopGrid{padding-left:12px;padding-right:12px}}
@media(max-height:650px){#quickSheetBackdrop .qsc-head img{height:min(240px,28dvh);max-height:28dvh;margin-bottom:12px}.mobile-live #quickSheetBackdrop .qsc-head img{height:100px;max-height:none;margin:0}}
@media(prefers-reduced-motion:reduce){:is(#viewerShopPanel,#quickSheetBackdrop) :is(button,select){transition:none}.qsc-buybar button:active:not(:disabled){transform:none}}
