/* Application controls retain Cartzilla's grid and offcanvas geometry. */
.bp-mobile-purchase{display:none}
#catalogue-filter-form select{max-width:100%}
@media(max-width:991.98px){
 #shopFilters .offcanvas-body{padding-bottom:max(1rem,env(safe-area-inset-bottom));overscroll-behavior:contain}
 .bp-filter-actions{position:sticky;bottom:-1rem;background:var(--cz-body-bg,#fff);padding:1rem 0 calc(1rem + env(safe-area-inset-bottom));z-index:2;border-top:1px solid var(--cz-border-color,#e0e5eb)}
}
@media(max-width:575.98px){
 .bp-catalogue-sort{width:100%}.bp-catalogue-sort .form-select{flex:1}
 #catalogue-options .btn{min-height:44px;display:flex;align-items:center}
 #catalogue-quantity{font-size:16px}
 #catalogue-purchase-controls{gap:.75rem!important}
 .bp-mobile-purchase:not([hidden]){position:fixed;bottom:0;left:0;right:0;z-index:1040;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--cz-body-bg,#fff);border-top:1px solid var(--cz-border-color,#e0e5eb);box-shadow:0 -4px 16px #0000000d;padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom))}
 .bp-mobile-purchase>div{overflow:hidden}.bp-mobile-purchase button{flex-shrink:0;min-height:44px}
 body.bp-mobile-buy-visible{padding-bottom:var(--bp-purchase-height,90px)}
 body.bp-mobile-buy-visible #tbp-chat:not(.is-open){bottom:calc(var(--bp-purchase-height,90px) + .75rem)}
 body.tbp-chat-active .bp-mobile-purchase{display:none!important}
}

@media(max-width:575.98px){.floating-buttons{display:none}}

@media(max-width:991.98px){
 body:has(#shopFilters.show) #tbp-chat:not(.is-open){visibility:hidden}
 #shopFilters .offcanvas-body{overflow:hidden;padding-bottom:0}
 #catalogue-filter-form{display:flex;flex-direction:column;min-height:0;height:100%}
 .bp-filter-fields{flex:1;min-height:0;overflow-y:auto;padding-bottom:.5rem}
 .bp-filter-actions{position:static;flex-shrink:0}
}
