/* Phase 37.23: bounded catalogue and accessible searchable customer picker. */
#billingWorkspace{min-width:0;align-items:start}
#billingCatalog{min-width:0}
#productGrid{max-height:calc(100dvh - 270px);min-height:160px;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:2px 4px 12px 2px;scrollbar-gutter:stable}
#billingCartPanel{min-width:0;width:100%}
#billingCartPanel>div{max-height:calc(100dvh - 125px);overflow-y:auto;overscroll-behavior:contain}
#billingCartPanel>div>div{flex-shrink:0}
#billingCartPanel #cartItems{flex:0 0 auto;max-height:28dvh;min-height:0}
#billingCheckoutActions{position:sticky;bottom:0;background:#fff;padding-top:12px;z-index:2;border-top:1px solid #e4e4e7}
.dark #billingCheckoutActions{background:#18181b;border-color:#3f3f46}
#saleCustomerSelect[hidden]{display:none!important}
#billingCustomerPicker{flex:1;min-width:0;font-family:inherit;font-size:13px}
#billingCustomerSummary{cursor:pointer;padding:12px 10px;border:1px solid #a1a1aa;border-radius:12px;overflow-wrap:anywhere;min-height:44px}
#billingCustomerPicker label{display:block;margin:12px 0 5px}
#billingCustomerSearch{width:100%;min-width:0;padding:10px;border:1px solid #a1a1aa;border-radius:10px;font-size:16px;background:transparent;color:inherit}
#billingCustomerResults{max-height:200px;overflow-y:auto;overscroll-behavior:contain}
#billingCustomerResults button{display:block;width:100%;text-align:left;padding:12px 8px;min-height:44px;border-bottom:1px solid #a1a1aa;overflow-wrap:anywhere}
#billingCustomerResults button:hover,#billingCustomerResults button:focus-visible{background:#fbbf2433;outline:2px solid #fbbf24;outline-offset:-2px}
#billingCustomerCount{font-size:12px;margin:8px 0;color:#71717a}
.dark #billingCustomerCount{color:#a1a1aa}
#billingCartToggle{display:none}
@media(min-width:1280px){
 #billingWorkspace{grid-template-columns:minmax(0,1fr) 400px}
 #billingCatalog #productGrid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
}
@media(max-width:1279px){
 #billingWorkspace{padding-bottom:90px;scroll-margin-top:90px}
 #billingCartPanel{display:none;position:static}
 #billingWorkspace.billing-cart-open #billingCartPanel{display:block}
 #billingWorkspace.billing-cart-open #billingCatalog{display:none}
 #billingCartPanel>div{max-height:calc(100dvh - 190px);min-height:180px}
 #billingCartToggle{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:25;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px calc(16px + env(safe-area-inset-bottom));min-height:64px;background:#fbbf24;color:#09090b;box-shadow:0 -3px 18px #0002;font-weight:700;font-size:14px}
 #billingCartToggle:focus-visible{outline:3px solid #059669;outline-offset:-4px}
 #billingCatalog #productGrid{max-height:calc(100dvh - 310px)}
 #billingCartPanel>div>div:nth-child(2){flex-wrap:wrap}
 #billingCustomerPicker{flex-basis:100%}
}
@media(min-width:1024px) and (max-width:1279px){#billingCartToggle{left:256px}}
@media print{#billingCartToggle{display:none!important}}
