/* RC16.51.6.9.5.9.7.17 — mobile-only Commerce layout adjustments.
 * No alteration to checkout arithmetic, stock/variation logic or desktop theme rules.
 */
@media(max-width:900px){
  /* Native storefront: hamburger | centred brand | real cart action; full-width search next row. */
  body .bct-site-header:not(.bct-site-header-builder) .bct-main-header-inner{
    display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;
    grid-template-rows:minmax(54px,auto) auto!important;column-gap:8px!important;
    row-gap:7px!important;height:auto!important;min-height:65px!important;
    padding:8px 0 10px!important;align-items:center!important;
  }
  body .bct-site-header:not(.bct-site-header-builder) .bct-mobile-menu-button{grid-area:1/1!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;padding:8px!important;align-self:center!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-main-header-inner>.bct-logo{grid-area:1/2!important;justify-content:center!important;width:100%!important;min-width:0!important;margin:0!important;max-width:none!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-main-header-inner>.bct-logo img{max-width:min(170px,62vw)!important;max-height:46px!important;width:auto!important;height:auto!important;object-fit:contain!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-header-actions{grid-area:1/3!important;display:flex!important;width:44px!important;height:44px!important;justify-content:flex-end!important;margin:0!important;padding:0!important;min-width:0!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-header-actions>a:not(.bct-cart-action){display:none!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-header-actions>a.bct-cart-action{display:grid!important;place-items:center!important;position:relative!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;border-radius:11px!important;background:#e9f8f1!important;color:#087c58!important;flex-shrink:0!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-header-actions>a.bct-cart-action svg{width:23px!important;height:23px!important;max-width:23px!important;max-height:23px!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-cart-action [data-bct-cart-count]{position:absolute!important;top:-4px!important;right:-4px!important;left:auto!important;min-width:18px!important;height:18px!important;line-height:18px!important;font-size:10px!important;border-radius:20px!important;z-index:2!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-main-header-inner>.bct-header-live-search{grid-column:1/-1!important;grid-row:2!important;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;position:relative!important;inset:auto!important;transform:none!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-header-live-search>.bct-search{display:flex!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding-left:12px!important;border-radius:10px!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-header-live-search input{min-width:0!important;width:100%!important;font-size:13px!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-header-live-search button[type=submit]{width:44px!important;min-width:44px!important;height:44px!important}
  body .bct-site-header:not(.bct-site-header-builder) .bct-topbar{min-height:0!important}

  /* The premium PDP layout is a mobile column; never retain a desktop 3-column grid. */
  body .bw58-product-page .bq-product-premium-detail>.bq-pd-layout,
  body .bw58-product-page .bq-product-premium-detail>.bq-pd-layout.is-image-right,
  body .bw58-product-page .bw5963-native>.bq-pd-layout,
  body .bq-product-premium-detail>.bq-pd-layout{
    display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    grid-template-columns:none!important;grid-template-areas:none!important;
    align-items:stretch!important;gap:10px!important;margin:0!important;padding:0!important;
  }
  body .bq-product-premium-detail>.bq-pd-layout>.bq-pd-gallery{
    order:1!important;position:relative!important;width:100%!important;max-width:100%!important;
    min-width:0!important;margin:0!important;float:none!important;grid-column:auto!important;
  }
  body .bq-product-premium-detail>.bq-pd-layout>.bq-pd-info{
    order:2!important;display:flex!important;flex-direction:column!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;padding:8px 0!important;float:none!important;grid-column:auto!important;
  }
  body .bq-product-premium-detail>.bq-pd-layout>.bw5963-purchase,
  body .bq-product-premium-detail>.bq-pd-layout>.bq-pd-side{
    order:3!important;width:100%!important;max-width:100%!important;min-width:0!important;
    grid-column:auto!important;grid-row:auto!important;position:static!important;margin:0!important;
  }
  body .bq-product-premium-detail .bq-pd-breadcrumb{order:0!important;max-width:100%!important;overflow-wrap:anywhere!important;white-space:normal!important;font-size:11px!important;line-height:1.45!important}
  body .bq-product-premium-detail .bq-pd-main-media,
  body .bw58-product-page .bq-product-premium-detail .bq-pd-main-media{
    max-width:100%!important;width:100%!important;min-width:0!important;
    min-height:0!important;height:min(88vw,390px)!important;max-height:390px!important;
    overflow:hidden!important;
  }
  body .bq-product-premium-detail .bq-pd-main-media img,
  body .bq-product-premium-detail .bq-gallery-main img{object-fit:contain!important;max-width:100%!important;max-height:100%!important}
  body .bq-product-premium-detail .bq-pd-info>h1{order:1!important;font-size:clamp(18px,5vw,23px)!important;line-height:1.25!important;margin:6px 0 9px!important}
  body .bq-product-premium-detail .bq-pd-info>.bw5963-brand,
  body .bq-product-premium-detail .bq-pd-info>.bq-pd-eyebrow{order:0!important}
  body .bq-product-premium-detail .bq-pd-info>.bw5963-rating{order:2!important;margin-bottom:6px!important}
  body .bq-product-premium-detail .bq-pd-info>.bwt7-price-top,
  body .bq-product-premium-detail .bq-pd-info>.bq-pd-shop-price{order:3!important;margin:7px 0!important}
  body .bq-product-premium-detail .bq-pd-info>.bq-product-options{order:4!important;min-width:0!important}
  body .bq-product-premium-detail .bq-pd-info>.bw5963-stock,
  body .bq-product-premium-detail .bq-pd-info>.bw717-stock{order:5!important}
  /* These data are already accessible in the technical-details accordion below. */
  body .bq-product-premium-detail.bwt7-native .bq-pd-info>.bq-pd-specs,
  body .bq-product-premium-detail.bwt7-native .bq-pd-info>.bw5963-summary,
  body .bq-product-premium-detail.bwt7-native .bq-pd-info>.bwt7-highlight-list{display:none!important}
  body .bq-product-premium-detail .bw5963-purchase{padding:12px!important;border-radius:12px!important;gap:9px!important;box-shadow:none!important}
  body .bq-product-premium-detail .bw5963-purchase .bw5963-buy-controls{order:1!important;width:100%!important;margin:0!important}
  body .bq-product-premium-detail .bw5963-purchase .bw5963-buy-now{order:2!important;width:100%!important;min-height:44px!important}
  body .bq-product-premium-detail .bw5963-purchase .bw5963-utils{order:3!important;min-width:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body .bq-product-premium-detail .bw5963-purchase .bw5963-utils>*{min-width:0!important;font-size:11px!important;line-height:1.25!important;overflow-wrap:break-word!important}
  body .bq-product-premium-detail .bw5963-purchase .bw5963-help{order:4!important;width:100%!important}
  body .bq-product-premium-detail .bw5963-purchase .bw5963-benefits{order:5!important;min-width:0!important;width:100%!important;gap:5px!important}
  body .bq-product-premium-detail .bw5963-purchase .bw5963-benefits>*{min-width:0!important;overflow-wrap:break-word!important}
  body .bq-product-premium-detail .bq-pd-actions,
  body .bq-product-premium-detail .bw5963-buy-controls,
  body .bq-product-premium-detail .bw593-buy-row{min-width:0!important;width:100%!important;max-width:100%!important}
  body .bq-product-premium-detail .bq-pd-actions .bq-btn,
  body .bq-product-premium-detail .bw5963-buy-controls .bq-btn{min-height:43px!important;font-size:13px!important;padding:10px!important;white-space:normal!important;line-height:1.35!important}
  body .bq-product-premium-detail .bq-product-options .bq-option-group{min-width:0!important;max-width:100%!important}

  /* Mobile product information: native tab panels become proper disclosure items via JS. */
  body .bq-product-premium-detail .bw5963-tabs.bw717-accordion-ready{
    display:block!important;width:100%!important;max-width:100%!important;
    border:0!important;background:transparent!important;box-shadow:none!important;
    padding:0!important;margin:18px 0!important;overflow:visible!important;
  }
  body .bw5963-tabs.bw717-accordion-ready>.bw5963-tab-list{display:none!important}
  body .bw5963-tabs .bw717-mobile-accordion{display:grid!important;gap:9px!important;min-width:0!important;width:100%!important}
  body .bw5963-tabs .bw717-mobile-accordion>details{min-width:0!important;border:1px solid #e4eaf1!important;border-radius:10px!important;background:#fff!important;overflow:hidden!important}
  body .bw5963-tabs .bw717-mobile-accordion summary{display:flex!important;align-items:center!important;justify-content:space-between!important;cursor:pointer!important;list-style:none!important;min-height:48px!important;padding:12px 15px!important;color:#152238!important;font-size:13px!important;font-weight:750!important;gap:12px!important}
  body .bw5963-tabs .bw717-mobile-accordion summary::-webkit-details-marker{display:none!important}
  body .bw5963-tabs .bw717-mobile-accordion summary:after{content:'+';flex:none;font-size:22px;line-height:1;color:#677790}
  body .bw5963-tabs .bw717-mobile-accordion details[open] summary{background:#f3f8ff!important;border-bottom:1px solid #e4eaf1!important}
  body .bw5963-tabs .bw717-mobile-accordion details[open] summary:after{content:'−';color:#045cbb}
  body .bw5963-tabs .bw717-mobile-accordion .bw5963-tab-panel,
  body .bw58-product-page .bw5963-tabs .bw717-mobile-accordion .bw5963-tab-panel{display:block!important;min-width:0!important;max-width:100%!important;padding:14px 15px!important;margin:0!important;overflow-wrap:anywhere!important;max-height:min(68vh,570px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;font-size:13px!important;line-height:1.65!important}
  body .bw5963-tabs .bw717-mobile-accordion .bw5963-tab-panel img,
  body .bw5963-tabs .bw717-mobile-accordion .bw5963-tab-panel table{max-width:100%!important}

  /* Cart: do not keep wide desktop column widths in a 320–430 px viewport. */
  html body .bq-quote-page.bq-ref-cart{display:block!important;box-sizing:border-box!important;width:calc(100% - 20px)!important;max-width:100%!important;min-width:0!important;margin:12px auto 34px!important;padding:0!important;overflow:visible!important}
  html body .bq-ref-cart .bq-ref-cart-grid,
  html body .bq-ref-cart .bq25-cart-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;min-width:0!important}
  html body .bq-ref-cart .bq25-cart-items-panel,
  html body .bq-ref-cart .bq-ref-cart-side,
  html body .bq-ref-cart .bq25-cart-summary-panel{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important}
  html body .bq-ref-cart .bq25-cart-items-panel{padding:14px 11px!important}
  html body .bq-ref-cart .bq-ref-progress{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;margin:3px 0 12px!important;padding:0 2px!important;min-width:0!important}
  html body .bq-ref-cart .bq-ref-progress>span{display:flex!important;flex-direction:column!important;align-items:center!important;gap:4px!important;min-width:0!important;text-align:center!important}
  html body .bq-ref-cart .bq-ref-progress b{width:29px!important;height:29px!important;min-width:29px!important;flex-basis:29px!important;font-size:11px!important}
  html body .bq-ref-cart .bq-ref-progress strong{font-size:10px!important;line-height:1.25!important;max-width:80px!important;overflow-wrap:anywhere!important}
  html body .bq-ref-cart .bq-ref-progress small{display:none!important}
  html body .bq-ref-cart .bq25-cart-items-panel .bq-basket-item:not(.bq-basket-combo-item){grid-template-columns:minmax(0,1fr) 34px!important;gap:9px!important;max-width:100%!important;min-width:0!important}
  html body .bq-ref-cart .bq25-cart-items-panel .bq-basket-product{grid-column:1/-1!important;min-width:0!important;gap:10px!important}
  html body .bq-ref-cart .bq25-cart-items-panel .bq-basket-product img{width:72px!important;min-width:72px!important;max-width:72px!important;height:72px!important;max-height:72px!important;flex-basis:72px!important}
  html body .bq-ref-cart .bq25-cart-items-panel .bq-basket-side{grid-row:2!important;grid-column:1!important;min-width:0!important;justify-self:start!important;align-items:flex-start!important}
  html body .bq-ref-cart .bq25-cart-items-panel .bq-remove{grid-row:2!important;grid-column:2!important;justify-self:end!important}
  html body .bq-ref-cart .bq25-cart-summary-panel{padding:16px!important;position:static!important}
  html body .bq-ref-cart .bq-ref-recommendations .bq-order-bump-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  html body .bq-ref-cart .bq-ref-recommendations .bq-order-bump-card{min-width:0!important;max-width:100%!important}
  html body .bq-ref-cart .bq-ref-shipping-note{padding:12px!important;min-width:0!important}
  html body .bq-ref-cart .bq-ref-shipping-note small{overflow-wrap:anywhere!important}

  /* Checkout: address/payment forms, provider cards and summary must never force horizontal scroll. */
  html body .bq-ref-checkout.bw-checkout-modern-v2{display:block!important;grid-template-columns:minmax(0,1fr)!important;box-sizing:border-box!important;max-width:100%!important;min-width:0!important;width:calc(100% - 20px)!important;margin:10px auto 25px!important;padding:8px 0 100px!important}
  html body .bw-checkout-modern-v2 .bq-marketplace-checkout-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;gap:12px!important}
  html body .bw-checkout-modern-v2 .bq-marketplace-checkout-main,
  html body .bw-checkout-modern-v2 .bq-marketplace-checkout-sidebar,
  html body .bw-checkout-modern-v2 .bq-checkout-section,
  html body .bw-checkout-modern-v2 .bq-marketplace-summary-card{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important}
  html body .bw-checkout-modern-v2 .bq-marketplace-checkout-main{padding:14px 12px!important}
  html body .bw-checkout-modern-v2 .bq-checkout-section{padding:12px!important}
  html body .bw-checkout-modern-v2 .bq-form-grid,
  html body .bw-checkout-modern-v2 .bq-checkout-grid,
  html body .bw-checkout-modern-v2 .bq16-checkout-address-grid,
  html body .bw-checkout-modern-v2 .bw-ref-payment-choices,
  html body .bw-checkout-modern-v2 .bq-payment-methods{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  html body .bw-checkout-modern-v2 input:not([type=checkbox]):not([type=radio]),
  html body .bw-checkout-modern-v2 select,
  html body .bw-checkout-modern-v2 textarea{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;font-size:16px!important}
  html body .bw-checkout-modern-v2 .bq-checkout-progress{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:4px!important;width:100%!important;min-width:0!important;overflow:hidden!important}
  html body .bq-ref-checkout.bw-checkout-modern-v2 .bq-ref-checkout-progress{min-width:0!important;width:100%!important;max-width:100%!important;padding:10px 2px!important;gap:4px!important;overflow:hidden!important}
  html body .bw-checkout-modern-v2 .bq-checkout-progress>div{flex:1 1 0!important;min-width:0!important;flex-direction:column!important;gap:4px!important;text-align:center!important}
  html body .bw-checkout-modern-v2 .bq-checkout-progress>div strong{display:block!important;font-size:10px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important}
  html body .bw-checkout-modern-v2 .bq-checkout-progress>b{flex:0 0 8px!important;min-width:0!important;margin-top:15px!important}
  html body .bw-checkout-modern-v2 .bw2-mobile-action{box-sizing:border-box!important;width:100%!important;max-width:100%!important;left:0!important;right:0!important;z-index:1000!important;padding:9px 12px max(10px,env(safe-area-inset-bottom))!important;gap:9px!important}
  html body .bw-checkout-modern-v2 .bw2-mobile-action>button{min-width:0!important;min-height:46px!important;white-space:normal!important;line-height:1.25!important}
  html body .bw-checkout-modern-v2 .bq-bank-account-card,
  html body .bw-checkout-modern-v2 [class*=iban]{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  html body .bw-checkout-modern-v2 .bw2-trust-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
}
@media(max-width:380px){
  body .bq-product-premium-detail .bw5963-purchase .bw5963-utils{gap:3px!important}
  body .bq-product-premium-detail .bw5963-purchase .bw5963-utils>*{font-size:10px!important}
  html body .bq-ref-cart .bq-ref-progress strong{font-size:9px!important}
}
@media(prefers-reduced-motion:reduce){
  .bw717-mobile-accordion *, .bw717-mobile-accordion *:before, .bw717-mobile-accordion *:after{animation:none!important;transition:none!important}
}
