/* Native dialog semantics stay intact; the close controls remain in view. */
html.nesttel-overlay-open,body.nesttel-overlay-open{overflow:hidden;overscroll-behavior:none}
body.nesttel-overlay-open>.mobile-buybar{visibility:hidden;pointer-events:none}
.product-dialog[open]{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;overscroll-behavior:contain}
.product-dialog[open]>.dialog-close{grid-column:1;grid-row:1;position:sticky;top:8px;right:auto;justify-self:end;align-self:start;z-index:5;margin:8px 8px 0 0;min-width:44px;min-height:44px}
.product-dialog[open]>.dialog-layout{grid-column:1;grid-row:1;min-width:0}
.nst-compare-dialog{overscroll-behavior:contain;scroll-padding-block:16px}
.nst-compare-dialog-head{position:sticky;top:0;z-index:5;background:var(--paper,#f5f2eb);border-bottom:1px solid var(--line,#d9dbcf);padding:10px 0;margin-top:-10px}
.nst-compare-dialog-head>[data-shop-compare-action="close"]{min-height:44px}
@media(max-width:1000px){
 .site-header .main-nav{max-height:var(--nesttel-menu-height,calc(100dvh - 108px));overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:12px}
 .site-header .main-nav>a{flex:none}
}
@media(max-width:600px){
 html.nesttel-editing{scroll-behavior:auto;scroll-padding-bottom:16px}
 html.nesttel-editing .mobile-buybar,html.nesttel-editing .mobile-buybar.detail-mobile-buybar{display:none!important}
 html.nesttel-editing .nc-toast,html.nesttel-editing .detail-mobile-buybar~.nc-toast{bottom:12px}
 .product-dialog,.nst-compare-dialog{max-height:calc(100dvh - 20px)}
 .product-dialog[open]>.dialog-close{top:8px}
}
