/* Caps actual visible height, including keyboard and browser chrome. */
:root { --pb-visible-height:100vh; --pb-visible-top:0px; }
@supports(height:100dvh) { :root { --pb-visible-height:100dvh; } }
:is(.overlay,.loc-overlay,.locpick-overlay,.veh-overlay,.promo-overlay,.rev-overlay,.ci-overlay,.call-sheet-overlay,.slot-edit-overlay,[data-pb-modal],#terms-overlay,#center-location-recovery,#ui-confirm-overlay,#dac-modal,#app-update-modal,#ir-modal,#sys-crash,#sys-report-modal,#ring-overlay,#geo-sheet,#gps-enable-modal-center,#gps-enable-modal-onb,.mock-pay-overlay) {
  position:fixed !important; box-sizing:border-box; top:var(--pb-visible-top) !important; bottom:auto !important;
  height:var(--pb-visible-height) !important; max-height:var(--pb-visible-height) !important;
  padding-top:max(8px,env(safe-area-inset-top,0px));
}
:is(.bottom-sheet,.loc-sheet,.veh-sheet,.promo-sheet,.rev-sheet,.ci-sheet,.call-sheet,.mock-pay-sheet,.dac-card,.terms-dialog,.slot-edit-sheet,[data-pb-modal]>section,#ui-confirm-overlay>div,#center-location-recovery>section,.aum-card,.ir-card,.sys-card,.ring-card,.geo-card,#gps-enable-modal-center>div,#gps-enable-modal-onb>div) {
  box-sizing:border-box; min-height:0 !important;
  max-height:calc(var(--pb-visible-height) - 16px - env(safe-area-inset-top,0px)) !important;
  overflow-y:auto !important; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  scroll-padding-block:16px;
}
:is(.loc-scroll,.veh-sheet-body,#terms-scroll,.scroll-area) { min-height:0; }
:is(.auth-screen,.login-screen) { min-height:0 !important; flex-shrink:0; box-sizing:border-box; max-height:var(--pb-visible-height); overflow-y:auto; overscroll-behavior:contain; padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
:is(.auth-card,.auth-brand,.login-card,.login-logo,.otp-row) { flex-shrink:0; }
.otp-destination { display:block; margin:8px 0; font-weight:700; overflow-wrap:anywhere; }
.guest-auth-dialog { box-sizing:border-box; max-height:var(--pb-visible-height); overflow:hidden; }
.guest-auth-sheet {
  display:flex; flex-direction:column; min-height:0; padding:0;
  max-height:calc(var(--pb-visible-height) - 16px - env(safe-area-inset-top,0px));
  overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
}
.guest-auth-header { flex-shrink:0; position:sticky; top:0; z-index:2; padding:20px 22px 12px; background:#fff; }
.guest-auth-body { flex:1 1 auto; min-height:0; overflow-y:auto; padding:0 22px 16px; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; scroll-padding-block:16px; }
.guest-auth-actions { flex-shrink:0; position:sticky; bottom:0; z-index:2; background:#fff; border-top:1px solid #e2e8f0; padding:10px 22px calc(12px + env(safe-area-inset-bottom,0px)); }
.guest-auth-actions .guest-auth-primary { margin-top:0; }
.guest-auth-close { min-width:44px; min-height:44px; top:10px; }
.guest-auth-sheet h2 { font-size:20px; }
@media(max-height:480px) { .guest-auth-header { padding-top:12px; padding-bottom:8px; } .guest-auth-actions { padding-top:8px; } .guest-auth-body p { margin-bottom:10px; } }

:is(.bottom-sheet,.veh-sheet,.promo-sheet,.rev-sheet,.ci-sheet,.call-sheet,.mock-pay-sheet,.dac-card,.aum-card,.terms-dialog) { padding-bottom:max(16px,env(safe-area-inset-bottom,0px)); }
#terms-scroll { min-height:0 !important; flex:1 1 auto !important; }

[data-screen] { min-height:0; max-height:var(--pb-visible-height); }
