/* Shared responsive canvas. Keep navigation and content on a common reading grid. */
:root{--ben-gutter:clamp(16px,2.2vw,40px);--ben-canvas:calc(100% - var(--ben-gutter) - var(--ben-gutter));--ben-gap:clamp(12px,1.2vw,22px)}
html{scroll-padding-top:108px;scroll-behavior:auto}
html:root body.modern-site :is(.container,.bit-container),html:root body #site-header .nav-wrap,html:root body.modern-site :is(.utility-inner,.footer-top){width:var(--ben-canvas)!important;max-width:1440px!important;min-width:0;box-sizing:border-box;margin-inline:auto!important}
html:root body.modern-site .account-stage .container{max-width:1320px!important}
html:root body.dashboard-shell #admin-dashboard-content,html:root body.dashboard-shell>.dashboard-header>div{width:var(--ben-canvas)!important;max-width:1440px!important;margin-inline:auto!important;box-sizing:border-box}
html:root body.dashboard-shell .admin-workspace-shell{grid-template-columns:220px minmax(0,1fr);gap:20px}
html:root body.dashboard-shell #admin-products{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))!important;align-items:stretch}
html:root body.commerce .store-shop-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}
html:root body.commerce .store-catalogue-content{container-type:inline-size;min-width:0}
/* auto-fill reserves vacant tracks. One product never expands across the shop. */
html:root body.commerce .store-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr))!important;gap:16px;align-items:stretch}
html:root body.commerce .store-recent-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr))!important;gap:12px}
html:root body.commerce .bit-product-card{width:100%;max-width:380px;min-width:0;justify-self:start;display:flex;flex-direction:column;overflow:hidden}
html:root body.commerce .bit-product-media{height:auto;aspect-ratio:4/3;display:grid;place-items:center;padding:12px;box-sizing:border-box;overflow:hidden}
html:root body.commerce .bit-product-photo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;min-height:0}
html:root body.commerce .bit-product-meta{overflow-wrap:anywhere;line-height:1.35}
html:root body.commerce .bit-product-title{font-size:1rem;line-height:1.35;overflow-wrap:anywhere;min-height:2.7em}
html:root body.commerce .bit-product-description{min-height:3.4em;line-height:1.45;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-width:100%;overflow-wrap:anywhere}
html:root body.commerce .bit-product-bottom{margin-top:auto;min-width:0;gap:6px;flex-wrap:wrap}
html:root body.commerce .bit-card-actions{display:grid;grid-template-columns:minmax(0,1fr) 40px!important;gap:7px;max-width:none!important;width:auto!important;align-items:stretch}
html:root body.commerce .bit-card-actions>*{min-width:0;max-width:none!important;width:auto!important;min-height:42px;font-size:.82rem;white-space:normal}
html:root body.commerce .bit-card-actions .bit-add-btn{grid-column:1/-1}
html:root body.commerce .store-recent-link{max-width:260px;width:100%;min-width:0;overflow-wrap:anywhere}
html:root body.commerce .store-recent-photo{width:100%;height:110px;object-fit:contain}
html:root body.commerce .store-results-toolbar{flex-wrap:wrap;gap:10px}
html:root body.commerce .store-sort-wrap{min-width:0;max-width:100%}
html:root body.commerce .store-sort-wrap select{max-width:100%}
.dashboard-shell .admin-product-media img{object-fit:contain!important;padding:8px}
.dashboard-shell .admin-product-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.dashboard-shell .admin-product-copy h3{line-height:1.35;margin-bottom:6px;min-height:2.7em}
.dashboard-shell .admin-product-copy>div:last-child{margin-top:auto!important;padding-top:6px;flex-wrap:wrap}
.csv-preview{margin:12px 0;padding:12px;border:1px solid var(--look-border,#dbe5f3);border-radius:12px;overflow:auto;max-width:100%;font-size:.86rem}
.csv-preview table{border-collapse:collapse;width:100%;min-width:540px}.csv-preview :is(th,td){text-align:left;padding:8px;border-bottom:1px solid var(--look-border,#dbe5f3)}
.csv-preview[hidden]{display:none}.csv-links{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0}.csv-links a{text-decoration:underline}.package-ready{font-size:.8rem;color:var(--look-muted,#526985)}
/* Display actual page content immediately instead of a full-screen loading overlay. */
.ben-startup-screen{display:none!important}html.ben-starting .ben-startup-screen{display:none!important}
main :is(section,[id]){scroll-margin-top:12px}main :is(img,video,iframe){max-width:100%}main :is(input,textarea,select){min-width:0;max-width:100%}
@media(max-width:1100px){html:root body.commerce .store-shop-layout{grid-template-columns:200px minmax(0,1fr);gap:16px}}
@media(max-width:900px){html:root body.commerce .store-shop-layout{grid-template-columns:minmax(0,1fr)}html{scroll-padding-top:88px}}
@media(max-width:760px){html:root body.dashboard-shell .admin-workspace-shell{grid-template-columns:minmax(0,1fr)!important}html:root body.commerce .store-product-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,155px),1fr))!important;gap:10px}html:root body.commerce .bit-product-card{max-width:100%}html:root body.commerce .bit-product-media{padding:7px}html:root body.commerce .bit-product-title{font-size:.88rem}html:root body.commerce .bit-product-description{font-size:.78rem;-webkit-line-clamp:2;min-height:2.9em}html:root body.commerce .bit-card-actions{grid-template-columns:minmax(0,1fr) 36px!important;padding:0 8px 9px}html:root body.commerce .bit-card-actions>*{font-size:.76rem;min-height:42px}.dashboard-shell .admin-product-copy h3{min-height:0}}
@media(max-width:355px){html:root body.commerce .store-product-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.bit-product-card,.admin-product-card{transition:none!important}}

/* All-page bounded layout, independent of theme initialisation. */
html:root body.modern-site main > section > :is(.container,.bit-container),
html:root body.modern-site main > :is(.container,.bit-container),
html:root body.modern-site .footer-grid,
html:root body #site-header .nav-wrap {box-sizing:border-box;width:calc(100% - var(--ben-gutter) - var(--ben-gutter))!important;max-width:1440px!important;margin-inline:auto!important;min-width:0}
html:root body.modern-site main :is(.container,.bit-container) :is(.container,.bit-container){width:100%!important;max-width:100%!important}
html:root body.commerce section:has(> .container > #product-detail) > .container{max-width:1280px!important}
html:root body.commerce #product-detail{width:100%!important;max-width:1280px!important;min-width:0;margin-inline:auto!important;padding:clamp(12px,1.6vw,24px)!important;box-sizing:border-box}
html:root body.commerce .bit-product-detail-layout.bit-pdp-layout{display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;align-items:start!important;gap:clamp(14px,2vw,24px)!important;max-width:100%;min-width:0}
html:root body.commerce :is(.bit-pdp-gallery,.bit-pdp-buy){width:100%;min-width:0;max-width:100%;padding:clamp(12px,1.6vw,22px)!important;box-sizing:border-box}
html:root body.commerce .bit-pdp-main-wrap{width:100%;min-width:0;max-width:100%}
html:root body.commerce .bit-detail-main-image.bit-pdp-main{display:block!important;position:relative;width:100%!important;height:auto!important;aspect-ratio:4/3;min-height:0!important;max-height:470px!important;padding:0!important;overflow:hidden;box-sizing:border-box}
html:root body.commerce .bit-detail-main-image.bit-pdp-main img.bit-product-large-image{position:absolute;inset:12px;width:calc(100% - 24px)!important;height:calc(100% - 24px)!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:center!important;padding:0!important;box-sizing:border-box;display:block}
html:root body.commerce .bit-pdp-main .bit-pdp-no-image{position:absolute;inset:0;display:grid;place-items:center}
html:root body.commerce .bit-pdp-top{flex-wrap:wrap;align-items:flex-end;gap:12px}html:root body.commerce .bit-pdp-top h2{font-size:clamp(1.45rem,2.2vw,2.15rem)!important}html:root body.commerce .bit-pdp-contact{white-space:normal}
html:root body.commerce .bit-pdp-buy .bit-detail-price{font-size:clamp(1.85rem,2.8vw,2.45rem)!important}
html:root body.commerce .bit-pdp-purchase-row{min-width:0;flex-wrap:wrap;gap:9px}html:root body.commerce .bit-pdp-quantity{flex:0 0 auto;min-width:115px}html:root body.commerce .bit-pdp-add{flex:1 1 145px;min-width:0;max-width:none!important;width:auto!important;min-height:48px!important}
html:root body.commerce .bit-pdp-payment-box{margin-top:14px!important}html:root body.commerce .bit-pdp-accordions{margin-block:20px;min-width:0}html:root body.commerce .bit-pdp-description{max-width:85ch}
html:root body.commerce :is(.bit-pdp-thumbs,.bit-pdp-related-track,.bit-pdp-lightbox-thumbs){min-width:0;max-width:100%}html:root body.commerce .bit-pdp-related-card{min-width:0;max-width:300px}
html:root body.commerce .checkout-layout{max-width:1280px!important;margin-inline:auto!important}
html:root body.modern-site .auth-layout{max-width:1100px;margin-inline:auto}html:root body.modern-site #article-content{min-width:0;overflow-wrap:anywhere}html:root body.modern-site #article-content :is(p,li){max-width:85ch}html:root body.modern-site #article-content :is(img,video){max-width:100%;height:auto;object-fit:contain}html:root body.modern-site #article-content :is(pre,table){display:block;max-width:100%;overflow-x:auto}
html:root body.modern-site :is(.cards-grid,.blog-grid,.wishlist-grid,.two-col,.contact-grid,.section-split,.bit-split)>*{min-width:0;overflow-wrap:anywhere}
html:root body.dashboard-shell #admin-products{grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr))!important}html:root body.dashboard-shell .admin-product-card{width:100%;max-width:350px}
.csv-mode-panel{max-width:760px;margin-block:12px}.csv-mode-panel>label{font-weight:700}.csv-mode-panel select{display:block;width:100%;margin-top:5px}.csv-mode-panel>p{font-size:.85rem;margin:8px 0;line-height:1.5}.csv-mode-panel [hidden]{display:none!important}#product-import-management code{overflow-wrap:anywhere;white-space:normal}
@media(max-width:900px){html:root body.commerce .bit-product-detail-layout.bit-pdp-layout{grid-template-columns:minmax(0,1fr)!important}html:root body.commerce .bit-detail-main-image.bit-pdp-main{max-height:420px!important}}
@media(max-width:600px){html:root{--ben-gutter:12px}html:root body.commerce #product-detail{padding:9px!important}html:root body.commerce :is(.bit-pdp-gallery,.bit-pdp-buy){padding:10px!important}html:root body.commerce .bit-pdp-thumbs button{flex-basis:62px!important;width:62px!important;height:62px!important}html:root body.commerce .bit-pdp-secondary-actions>*{flex:1 1 115px;min-width:0;text-align:center}html:root body.commerce .bit-pdp-accordion summary{padding:13px;gap:8px}html:root body.commerce .bit-pdp-accordion-content{padding:0 13px 14px}html:root body.commerce .bit-pdp-specs>div{grid-template-columns:minmax(0,1fr);gap:4px}}
@media print{html:root body.receipt-page main{max-width:none!important;width:100%!important}}
