.has-store-pages {padding-bottom:100px!important;}
.store-pages-nav {position:sticky;bottom:0;z-index:20;margin-top:20px;padding:12px 20px max(12px,env(safe-area-inset-bottom));background:var(--background-color,#fff);color:var(--text-color,#171717);border-top:1px solid #8882;}
.store-pages-pills {display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;justify-content:safe center;}
.store-pages-pills button {flex:none;border:0;border-radius:24px;padding:11px 20px;font:500 14px system-ui;cursor:pointer;background:#8882;color:inherit;white-space:nowrap;}
.store-pages-pills button[aria-selected=true] {background:#171717;color:#fff;}
.store-pages-dots {display:flex;justify-content:center;gap:2px;margin-top:5px;}
.store-pages-dots button {border:0;background:transparent;width:24px;height:24px;padding:8px;cursor:pointer;}
.store-pages-dots button::after {content:'';display:block;width:7px;height:7px;border-radius:50%;background:#8886;}
.store-pages-dots button[aria-current=page]::after {background:currentColor;}
.store-pages-frame {display:flex;flex-direction:column;min-height:65dvh;}
.store-pages-frame[hidden] {display:none!important;}
.store-pages-frame iframe {width:100%;height:75dvh;border:0;flex:1;min-height:400px;}
.store-pages-note {font:12px/1.5 system-ui;padding:8px 20px;margin:0;color:inherit;}
.store-pages-note a {color:inherit;}
.tab-shop.is-store-page > #sh-main {display:none!important;}
.tab-shop.is-store-page :is(#sh-bag-btn,#sh-find-btn,#sh-catalog-search) {display:none!important;}
.store-pages-mobile > .store-pages-nav {position:absolute;bottom:0;left:0;right:0;z-index:25;margin:0;}
.store-pages-mobile > .store-pages-frame {position:absolute;inset:0 0 98px;z-index:24;background:var(--background-color,#fff);}
.store-pages-mobile > .store-pages-frame iframe {height:100%;min-height:0;}
#shop-main-area.is-store-page > :not(.store-pages-nav):not(.store-pages-frame) {display:none!important;}
#shop-main-area.has-store-pages #main-external-shop {display:none!important;}
.store-pages-editor {padding:20px;color:inherit;}
.store-pages-editor h3 {margin:0 0 10px;}
.store-pages-editor p {font:14px/1.5 system-ui;}
.store-editor-row {display:grid;gap:10px;margin:16px 0;padding-bottom:16px;border-bottom:1px solid #8883;}
.store-editor-row input {box-sizing:border-box;width:100%;padding:12px 16px;border:1px solid #8885;border-radius:20px;background:transparent;color:inherit;font:14px system-ui;}
.store-pages-editor button {border:1px solid #8884;border-radius:20px;background:transparent;color:inherit;padding:9px 14px;margin:3px;font:500 13px system-ui;cursor:pointer;}
.store-pages-editor button:disabled {opacity:.4;cursor:default;}
.tab-shop.has-store-pages {display:flex;flex-direction:column;height:100%;min-height:0;padding-bottom:0!important;}
html:not(.ws-on) .tab-shop.has-store-pages {height:100dvh;}
.tab-shop.has-store-pages > .sh-top {flex:none;}
.tab-shop.has-store-pages > #sh-main {flex:1;min-height:0;overflow-y:auto;width:100%;box-sizing:border-box;}
.tab-shop.has-store-pages > .store-pages-nav {position:relative;flex:none;margin-top:0;}
.tab-shop.has-store-pages > .store-pages-frame {flex:1;min-height:0;}
.tab-shop.has-store-pages > .store-pages-frame iframe {height:100%;min-height:0;}
html body #shop-main-area.has-store-pages > #moments-scroll-container {bottom:100px!important;}
html body:has(#shop-main-area.is-store-page) #home-destination-header :is(.shop-destination-bag,.shop-destination-more) {display:none!important;}
.store-editor-dialog {width:min(560px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:0;border-radius:20px;padding:12px;background:var(--background-color,#fff);color:var(--text-color,#171717);}
.store-editor-dialog::backdrop {background:#0007;}
.store-pages-editor > input[type=password] {padding:10px 14px;border:1px solid #8885;border-radius:20px;max-width:160px;}
/* Native Shop already starts below its existing 54px header. */
html body.home-destination-fullscreen #shop-main-area#shop-main-area.has-store-pages {height:calc(100dvh - 54px - env(safe-area-inset-top))!important;max-height:calc(100dvh - 54px - env(safe-area-inset-top))!important;}
html body #shop-main-area#shop-main-area .store-pages-nav {background:rgba(255,255,255,.96)!important;color:#17212b!important;box-sizing:border-box;}
html body #shop-main-area#shop-main-area .store-pages-pills button {background:#edf0f3!important;color:#17212b!important;-webkit-text-fill-color:currentColor!important;border:0!important;box-shadow:none!important;font:500 14px/20px system-ui!important;padding:10px 20px!important;min-height:40px!important;height:auto!important;width:auto!important;}
html body #shop-main-area#shop-main-area .store-pages-pills button[aria-selected=true] {background:#17212b!important;color:#fff!important;}
html body #shop-main-area#shop-main-area .store-pages-dots button {background:transparent!important;border:0!important;box-shadow:none!important;width:24px!important;height:24px!important;min-height:24px!important;padding:8px!important;}
html body.home-destination-fullscreen #shop-main-area#shop-main-area.has-store-pages {min-height:0!important;}
html body #shop-main-area#shop-main-area .store-pages-dots button {color:#17212b!important;}
html body #shop-main-area#shop-main-area .store-pages-dots button::after {background:#b5bac0!important;}
html body #shop-main-area#shop-main-area .store-pages-dots button[aria-current=page]::after {background:#17212b!important;}
.tab-shop.has-store-pages {height:100dvh!important;max-height:100dvh;}
/* Workspace normally uses display:contents; store pages need one flex viewport. */
html body .ws-body.tab-shop.has-store-pages {display:flex!important;flex-direction:column;min-height:0!important;}
html body .ws-body.tab-shop.has-store-pages {align-items:stretch!important;}
.tab-shop.has-store-pages > .sh-top {width:100%;box-sizing:border-box;}
/* Hiding the catalog search must not shift header actions into its grid slot. */
html body .tab-shop.has-store-pages > .sh-top {position:sticky;top:0;z-index:30;max-width:none!important;margin-inline:0!important;flex-shrink:0;}
html body .tab-shop.is-store-page > .sh-top {display:flex!important;justify-content:space-between;}
html body .tab-shop.is-store-page > .sh-top .sh-top__left {flex:1;min-width:0;}
html body .tab-shop.is-store-page > .sh-top .sh-top__right {flex:none;margin-left:auto;justify-content:flex-end;}
