/* Shared mobile shell and visual viewport corrections. */
html{-webkit-text-size-adjust:100%}
@media(max-width:760px){
 html body.retail-store.reference-shop>.header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px 8px!important;padding:12px 14px!important}
 html body.retail-store.reference-shop>.header .shop-brand-group{min-width:0!important;width:auto!important;max-width:100%!important}
 html body.retail-store.reference-shop>.header .logo{display:flex!important;gap:7px!important;min-width:0!important;max-width:100%!important;width:auto!important}
 html body.retail-store.reference-shop>.header .brand-copy{display:block!important;min-width:0!important;flex:1!important}
 html body.retail-store.reference-shop>.header .shop-brand-group .brand-copy strong{display:block!important;white-space:normal!important;overflow-wrap:normal!important;font-size:17px!important;line-height:1.15!important;letter-spacing:-.45px!important}
 html body.retail-store.reference-shop.reference-mtm>.header .shop-brand-group .brand-copy strong{font-size:15px!important;max-width:18ch!important}
 html body.retail-store.reference-shop>.header .contractor-mark{flex:0 0 32px!important;width:32px!important;height:36px!important}
 html body.retail-store.reference-shop>.header .contractor-mark img{width:32px!important;height:32px!important;max-width:32px!important;object-fit:contain!important}
 html body.retail-store.reference-shop>.header .brand-copy small{display:none!important}
 html body.retail-store.reference-shop>.header .brand-platform-link{display:block!important;margin:3px 0 0 39px!important;font-size:9px!important;line-height:1.3!important}
 html body.retail-store.reference-shop>.header .header-tools{display:flex!important;gap:0!important;min-width:0!important;width:132px!important;justify-content:flex-end!important;align-items:center!important}
 html body.retail-store.reference-shop>.header .header-tools>*{margin:0!important}
 html body.retail-store.reference-shop>.header .header-tools .header-heart{display:none!important}
 html body.retail-store.reference-shop>.header .header-tools :is(.reference-call,.header-cart,.reference-menu){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:46px!important;min-height:44px!important;padding:3px!important;gap:3px!important;font-size:10px!important;line-height:1.1!important;position:relative!important}
 html body.retail-store.reference-shop>.header .header-tools :is(a,button)>svg{width:22px!important;height:22px!important;flex:none!important;margin:0!important}
 html body.retail-store.reference-shop>.header .header-tools :is(.cart-text,.reference-call>span,.reference-menu>span){display:block!important;font-size:10px!important;margin:0!important;line-height:1.1!important}
 html body.retail-store.reference-shop>.header #searchForm{grid-column:1/-1!important;grid-row:2!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;margin:0!important}
 html body.retail-store.reference-shop>.header #query{width:100%!important;min-width:0!important;font-size:16px!important;line-height:1.4!important}
 html body.retail-store.reference-shop>.header #searchForm>button{width:48px!important;min-width:48px!important;flex:0 0 48px!important}
 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea{font-size:16px!important;box-sizing:border-box;max-width:100%}
}
/* The embed already supplies the shop header, search, menu and home link. */
body.gq-shop-with-catalogue{height:var(--site-visual-height,100dvh)!important;overflow:hidden!important}
body.gq-shop-with-catalogue>main{height:100%!important;min-height:0!important}
body.gq-shop-with-catalogue .gq-shop-live{height:100%!important;min-height:0!important}
body.gq-shop-with-catalogue>.portfolio76-header,body.gq-shop-with-catalogue .gq-html-shopbar{display:none!important}
body.gq-shop-with-catalogue.shop-is-ready #product-catalogue{display:none!important}
html:has(body.gr-shop-host),body.gr-shop-host,body.gr-shop-host>main{height:var(--site-visual-height,100dvh)!important;min-height:0!important}
/* Keep the dialog and its focused field inside the space above the keyboard. */
html body :is(dialog.project-offer,dialog.phone-offer,dialog#quoteFunnel){box-sizing:border-box!important;position:fixed!important;inset:var(--site-visual-top,0px) 0 auto!important;margin:12px auto!important;max-height:calc(var(--site-visual-height,100dvh) - 24px)!important;overflow-y:auto!important;overscroll-behavior:contain;scroll-padding-block:20px}
html:not(.site-keyboard-open) body :is(dialog.project-offer,dialog.phone-offer,dialog#quoteFunnel){inset:0!important;margin:auto!important}
html body dialog.checkout-modal{inset:var(--site-visual-top,0px) 0 auto!important;margin:12px auto!important;height:min(880px,calc(var(--site-visual-height,100dvh) - 24px))!important;max-height:calc(var(--site-visual-height,100dvh) - 24px)!important}
html body :is(dialog.project-offer,dialog.phone-offer,dialog#quoteFunnel,dialog.checkout-modal)[open]{animation:site-dialog-enter 240ms cubic-bezier(.2,.75,.25,1) both}
html body :is(dialog.project-offer,dialog.phone-offer,dialog#quoteFunnel,dialog.checkout-modal)::backdrop{animation:site-backdrop-enter 240ms ease-out both}
.site-keyboard-open :is(.shop-quote-dock,.mobile-purchase-bar){display:none!important}
@keyframes site-dialog-enter{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes site-backdrop-enter{from{opacity:0}to{opacity:1}}
@media(max-width:600px){html body dialog.checkout-modal{width:100%!important;max-width:100%!important;height:var(--site-visual-height,100dvh)!important;max-height:var(--site-visual-height,100dvh)!important;margin:0!important;border-radius:0!important}.site-keyboard-open .checkout-modal .checkout-help{display:none!important}.site-keyboard-open :is(.phone-offer .offer-banner,.project-offer .project-offer-eyebrow){display:none!important}}
@media(prefers-reduced-motion:reduce){html body dialog[open],html body dialog::backdrop{animation:none!important}}

body.gq-shop-with-catalogue.shop-is-failed,body.gq-shop-with-catalogue.shop-is-failed>main{height:auto!important;overflow:auto!important}body.gq-shop-with-catalogue.shop-is-failed .gq-shop-live{height:240px!important}
