/*
 * Deadshot AR pre-paint layout stabilization.
 * Exists ONLY while the installed AR configurator is preparing its showcase.
 * The native AR showcase CSS takes full control as soon as its mode class lands.
 */
html.dsb-ar-preflight-10 body.single-product:not(.dsbar10-showcase-mode) div.product,
html.dsb-ar-preflight-15 body.single-product:not(.dsbar15-showcase-mode) div.product {
  display:block!important;
  width:100%!important;
  clear:both!important;
}
html.dsb-ar-preflight-10 body.single-product:not(.dsbar10-showcase-mode) div.product > .woocommerce-product-gallery,
html.dsb-ar-preflight-15 body.single-product:not(.dsbar15-showcase-mode) div.product > .woocommerce-product-gallery {
  display:none!important;
  visibility:hidden!important;
  float:none!important;
}
html.dsb-ar-preflight-10 body.woocommerce.single-product:not(.dsbar10-showcase-mode) div.product > .summary.entry-summary,
html.dsb-ar-preflight-15 body.woocommerce.single-product:not(.dsbar15-showcase-mode) div.product > .summary.entry-summary {
  display:block!important;
  float:none!important;
  clear:both!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0 18px!important;
  box-sizing:border-box!important;
}
/* Match the summary content hidden by the approved AR showcase after mount. */
html.dsb-ar-preflight-10 body:not(.dsbar10-showcase-mode) .summary.entry-summary > :is(.woocommerce-breadcrumb,.product_title,.pewc-main-price,.price,.dsr2-rating,.woocommerce-product-rating,.woocommerce-product-details__short-description),
html.dsb-ar-preflight-15 body:not(.dsbar15-showcase-mode) .summary.entry-summary > :is(.woocommerce-breadcrumb,.product_title,.pewc-main-price,.price,.dsr2-rating,.woocommerce-product-rating,.woocommerce-product-details__short-description) {
  display:none!important;
}
/* Keep native form DOM mounted/usable by Product Add-Ons, without making
 * its pre-hydration controls expand the layout before the AR bridge starts. */
html.dsb-ar-preflight-10 body:not(.dsbar10-showcase-mode) .summary.entry-summary > form.cart,
html.dsb-ar-preflight-15 body:not(.dsbar15-showcase-mode) .summary.entry-summary > form.cart {
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:900px!important;
  opacity:0!important;
  pointer-events:none!important;
  float:none!important;
}
html.dsb-ar-preflight-10 body:not(.dsbar10-showcase-mode) .summary.entry-summary > #dsbar10,
html.dsb-ar-preflight-15 body:not(.dsbar15-showcase-mode) .summary.entry-summary > #dsbar15 {
  width:100%!important;
  max-width:none!important;
  margin:0 auto!important;
  padding:14px!important;
  box-sizing:border-box!important;
}
/* Reserve space for the showcase intro and the photo gallery which the AR
 * script inserts when ready. This prevents those panels from pushing the
 * barrel drawing down hundreds of pixels during mobile initialization. */
html.dsb-ar-preflight-10 body:not(.dsbar10-showcase-mode) .summary.entry-summary::before,
html.dsb-ar-preflight-15 body:not(.dsbar15-showcase-mode) .summary.entry-summary::before {
  content:"";
  display:block;
  height:104px;
}
html.dsb-ar-preflight-10 body:not(.dsbar10-showcase-mode) #dsbar10 .dsbar10-preview::before,
html.dsb-ar-preflight-15 body:not(.dsbar15-showcase-mode) #dsbar15 .dsbar15-preview::before {
  content:"";
  display:block;
  height:420px;
  margin-bottom:20px;
  border:1px solid #dee5e7;
  background:linear-gradient(110deg,#f8f9fa 15%,#e9eff0 43%,#f8f9fa 65%);
}
@media(max-width:980px){
  html.dsb-ar-preflight-10 body:not(.dsbar10-showcase-mode) #dsbar10 .dsbar10-grid,
  html.dsb-ar-preflight-15 body:not(.dsbar15-showcase-mode) #dsbar15 .dsbar15-grid {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
@media(max-width:760px){
  html.dsb-ar-preflight-10 body.woocommerce:not(.dsbar10-showcase-mode) div.product > .summary.entry-summary,
  html.dsb-ar-preflight-15 body.woocommerce:not(.dsbar15-showcase-mode) div.product > .summary.entry-summary {
    padding:0 8px!important;
  }
  html.dsb-ar-preflight-10 body:not(.dsbar10-showcase-mode) .summary.entry-summary::before,
  html.dsb-ar-preflight-15 body:not(.dsbar15-showcase-mode) .summary.entry-summary::before {
    height:110px;
  }
  html.dsb-ar-preflight-10 body:not(.dsbar10-showcase-mode) #dsbar10 .dsbar10-preview::before,
  html.dsb-ar-preflight-15 body:not(.dsbar15-showcase-mode) #dsbar15 .dsbar15-preview::before {
    height:430px;
  }
}
