/* SCUZO ONE POS RC6.6.9.7 — mobile catalog scroll + persistent selected-products summary.
   Presentation-only. No cart/discount/payment events or backend changes. */
@media screen and (max-width:700px){
  /* Legacy POS capped its product-grid at 48vh and made a second nested scrollbar.
     Restore one natural document scroll owner for the mobile billing catalogue. */
  body.scuzo-mobile-billing #posView.active .pos-layout,
  body.scuzo-mobile-billing #posView.active .catalog-panel{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body.scuzo-mobile-billing #posView.active #productGrid.product-grid{
    display:block!important;
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    overscroll-behavior:auto!important;
    scrollbar-gutter:auto!important;
    -webkit-overflow-scrolling:auto!important;
    touch-action:pan-y pinch-zoom!important;
  }
  body.scuzo-mobile-billing #posView.active #productGrid .product-section,
  body.scuzo-mobile-billing #posView.active #productGrid .product-section-grid,
  body.scuzo-mobile-billing #posView.active #productGrid .scuzo6696-tile{
    touch-action:pan-y pinch-zoom;
  }
  /* A compact persistent selected-items strip ABOVE the pre-existing fixed Cart action. */
  body.scuzo-mobile-billing #posView.active .scuzo6696-selection-summary:not([hidden]){
    position:fixed!important;
    display:block!important;
    top:auto!important;
    bottom:calc(83px + env(safe-area-inset-bottom,0px))!important;
    left:12px!important;
    right:12px!important;
    margin:0!important;
    padding:7px 11px 8px!important;
    min-height:0!important;
    max-height:72px!important;
    overflow:hidden!important;
    z-index:395!important;
    background:#ffffff!important;
    border:1px solid #a6c7ed!important;
    border-left:4px solid #155db2!important;
    border-radius:12px!important;
    box-shadow:0 5px 20px #071d4533!important;
    box-sizing:border-box!important;
    pointer-events:none;
  }
  body.scuzo-mobile-billing #posView.active .scuzo6696-selection-summary .scuzo6696-summary-head{
    font-size:12px!important;
    line-height:1.25;
  }
  body.scuzo-mobile-billing #posView.active .scuzo6696-selection-summary .scuzo6696-summary-items{
    overflow-x:auto!important;
    white-space:nowrap;
    padding-top:3px!important;
    pointer-events:auto;
    scrollbar-width:none;
  }
  body.scuzo-mobile-billing #posView.active .scuzo6696-selection-summary .scuzo6696-summary-items::-webkit-scrollbar{display:none}
  body.scuzo-mobile-billing #posView.active .scuzo6696-selection-summary .scuzo6696-chip{
    font-size:10px!important;
    padding:3px 7px!important;
  }
  /* Keep the final catalogue rows clear of BOTH fixed strips. */
  body.scuzo-mobile-billing #posView.active{
    padding-bottom:calc(195px + env(safe-area-inset-bottom,0px))!important;
  }
  /* When reviewing the bill or navigating modules, the floating selected strip must never obstruct the drawer. */
  body.scuzo-mobile-billing.scuzo-mobile-cart-open #posView.active .scuzo6696-selection-summary:not([hidden]),
  body.scuzo-mobile-billing.scuzo-mobile-nav-open #posView.active .scuzo6696-selection-summary:not([hidden]){
    display:none!important;
  }
}
@media print{.scuzo6696-selection-summary{display:none!important}}
