/* One bounded scroll area keeps the customer form reachable on small screens. */
html body #checkoutCustomerDialog[open]{display:flex!important;flex-direction:column!important;overflow:hidden!important;height:min(860px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)!important;padding:0!important;box-sizing:border-box}
html body #checkoutCustomerDialog>.checkout-dialog-head{position:relative!important;flex:0 0 auto!important;margin:0!important}
html body #checkoutCustomerDialog>.checkout-customer{display:block!important;flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:20px!important;box-sizing:border-box;border-radius:0!important;margin:0!important}
html body #checkoutCustomerDialog .buyer-selection-grid{margin:0 0 20px!important;gap:18px!important}
html body #checkoutCustomerDialog #checkoutCustomerInfo{margin:0 0 20px!important}
html body #checkoutCustomerDialog .customer-loyalty-box{margin:0!important;padding:18px!important;min-height:0!important;height:auto!important;gap:14px!important}
html body #checkoutCustomerDialog .member-buyer-box{margin:0!important}
@media(max-width:700px){
 html body #checkoutCustomerDialog[open]{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;height:calc(100dvh - 32px);margin:auto!important;border-radius:20px!important}
 html body #checkoutCustomerDialog>.checkout-customer{padding:18px 16px calc(24px + env(safe-area-inset-bottom))!important}
 html body #checkoutCustomerDialog .buyer-selection-grid{grid-template-columns:1fr!important}
 html body :is(.pocket-all-features,.mobile-sales-chart-button){display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;height:56px!important;min-height:56px!important;margin:0!important;padding:12px 16px!important;box-sizing:border-box;border:1px solid var(--pocket-line,#81958940)!important;border-radius:16px!important;background:var(--pocket-tint,var(--theme-background))!important;color:var(--theme-font)!important;font:500 14px/1.3 var(--theme-font-family,system-ui)!important}
 html body :is(.pocket-all-features,.mobile-sales-chart-button)>svg{width:22px!important;height:22px!important;flex:0 0 22px}
 html body :is(.pocket-all-features,.mobile-sales-chart-button)>span:last-child{margin-left:auto!important}
}
@media screen and (max-width:700px){
 html body #checkoutPrinterDialog[open]{display:flex!important;flex-direction:column!important;width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;height:min(780px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;margin:auto!important;padding:0!important;overflow:hidden!important;border-radius:20px!important}
 html body #checkoutPrinterDialog>.checkout-dialog-head{flex:0 0 auto!important;margin:0!important;position:relative!important;padding:18px!important}
 html body #checkoutPrinterDialog>.checkout-print-settings{flex:1 1 0!important;min-height:0!important;height:auto!important;overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important;gap:20px!important;padding:20px 18px!important;margin:0!important;border-radius:0!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 html body #checkoutPrinterDialog>.checkout-print-settings>*{flex-shrink:0!important;min-width:0;max-width:100%;box-sizing:border-box}
 html body #checkoutPrinterDialog .printer-field-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
 html body #checkoutPrinterDialog .printer-field-grid label{display:grid;gap:9px;margin:0!important}
 html body #checkoutPrinterDialog .printer-connection{padding:14px!important;display:grid!important;gap:12px!important;margin:0!important}
 html body #checkoutPrinterDialog .printer-connection button{width:100%;min-height:44px!important;margin:0!important;white-space:normal}
 html body #checkoutPrinterDialog>.printer-settings-footer{flex:0 0 auto!important;padding:18px!important;margin:0!important;display:grid;gap:12px;background:var(--theme-background)!important;border-top:1px solid #81958930}
 html body #checkoutPrinterDialog .printer-settings-footer button{width:100%;min-height:44px;margin:0!important}
}
#checkoutPrinterDialog .checkout-printer-preference-hint,#checkoutPrinterDialog #bluetoothPrinterStatus:empty{display:none!important}
