/* Only the negotiated PACO iframe changes geometry; direct catalog is unchanged. */
.pds-catalog .pds-catalog-header .pie-open-quote{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.pds-catalog .pds-catalog-header .pie-open-quote svg{flex:none}
body.pds-catalog.pds-parent-cart>.pds-catalog-header{display:none!important}
body.pds-catalog.pds-parent-viewport{position:static!important}
body.pds-catalog.pds-parent-viewport.pie-quote-open{overflow:visible!important}
body.pds-catalog.pds-parent-viewport.pie-part-photo-open{overflow:visible!important}
/* The photo must be centered in the phone window, not a 5,000px iframe. */
.pds-catalog.pds-parent-viewport>.pie-part-photo-viewer{
  position:absolute!important;top:var(--pds-visible-top)!important;bottom:auto!important;
  height:var(--pds-visible-height)!important;box-sizing:border-box;
}
.pds-catalog.pds-parent-viewport .pie-part-photo-card{
  box-sizing:border-box;min-height:0!important;max-height:calc(var(--pds-visible-height) - 24px)!important;
  overflow:auto;overscroll-behavior:contain;
}
.pds-catalog.pds-parent-viewport .pie-part-photo-card img{
  height:min(390px,calc(var(--pds-visible-height) - 130px))!important;min-height:40px;
}
@media(max-width:720px),(hover:none),(pointer:coarse){
  .pds-catalog.pds-parent-viewport .is-mobile-schematic-inspecting .pie-panzoom-viewer{
    grid-template-rows:min(250px,calc(var(--pds-visible-height) * .32)) 38px 12px!important;
  }
}
.pds-catalog.pds-parent-viewport>.pie-quote-drawer{
  position:absolute!important;top:var(--pds-visible-top,0px)!important;bottom:auto!important;
  right:0!important;height:var(--pds-visible-height,600px)!important;max-height:var(--pds-visible-height,600px)!important;
  box-sizing:border-box;overscroll-behavior:contain;
}
.pds-catalog.pds-parent-viewport>.pie-quote-drawer:not(.is-open){visibility:hidden;pointer-events:none}
.pds-catalog.pds-parent-viewport>.pie-quote-overlay{
  position:absolute!important;top:var(--pds-visible-top,0px)!important;bottom:auto!important;
  height:var(--pds-visible-height,600px)!important;left:0!important;right:0!important;
}
@media(max-width:600px){
  .pds-catalog.pds-parent-viewport .pie-quote-form input{font-size:16px}
  .pds-catalog.pds-parent-viewport .pie-close-quote{min-width:44px;min-height:44px}
}

/* Set dialogs use the negotiated visible window, not the full catalog iframe. */
body.pds-catalog.pds-parent-viewport.pie-purchase-set-open{overflow:visible!important}
.pds-catalog.pds-parent-viewport>.pie-purchase-set-modal{
  position:absolute!important;top:var(--pds-visible-top)!important;bottom:auto!important;
  left:0!important;right:0!important;height:var(--pds-visible-height)!important;
  min-height:0!important;padding:12px!important;box-sizing:border-box;align-items:center!important;
}
.pds-catalog.pds-parent-viewport>.pie-purchase-set-modal>section{
  box-sizing:border-box;min-height:0!important;max-height:calc(var(--pds-visible-height) - 24px)!important;
  overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
}
/* Direct PACO catalog also keeps a long set dialog within its browser window. */
.pds-catalog:not(.pds-parent-viewport)>.pie-purchase-set-modal>section{
  box-sizing:border-box;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;
}
