/* OTM v6.0.194 — unified mobile popup, customer checkout and POS scroll fix */
html.otml-v194-scroll-locked,body.otml-v194-scroll-locked{overscroll-behavior:none!important;}
body.otml-v194-modal-open #publicMobileNav,
body.otml-v194-modal-open #otmlCustomerFixedNav,
body.otml-v194-modal-open .otml-public-mobile-nav,
body.otml-v194-modal-open>.otml-hub-tabs,
body.otml-v194-modal-open #viewCardHub>.otml-nav-segment,
body.otml-v194-modal-open .otml-customer-cart-bar,
body.otml-v194-modal-open .otml-mobile-cart-jump {visibility:hidden!important;pointer-events:none!important;}
.otml-v194-layered-modal{z-index:2147483300!important;}
/* Native touch scrolling belongs to the active sheet; no bubbling into background. */
.otml-sheet-overlay,.otml-modal-overlay,.otml-customer-item-modal,
#customerCartSheet,#posCashModal,#posReviewModal,#posDiscountModal,
#posGiftCardModal,#staffSettleModal,#posProductModal,#posMemberModal,
#staffMessageModal,#staffSubstitutionModal,#otmlActivityPanel,
#customerDailySpinModal,#tastePassportModal,#otmlEditMemberModal{
 overscroll-behavior:contain!important;
}
@media(max-width:800px){
 /* Customer checkout is its own fixed sheet, not a scrolling region behind navigation. */
 body:not(.otml-mode-staff) #customerCartSheet{
  box-sizing:border-box!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;
  width:100%!important;max-width:100%!important;height:auto!important;
  max-height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)))!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important;
  scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important;
  z-index:2147482000!important;
  padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
 }
 /* The submit action stays reachable even with a long menu and Apple Pay options. */
 body:not(.otml-mode-staff) #customerCartSheet #customerSubmitOrderBtn{
  position:sticky!important;bottom:0!important;z-index:15!important;
  min-height:52px!important;margin-top:8px!important;
  padding:12px 15px!important;border:1px solid rgba(255,225,194,.35)!important;
  box-shadow:0 -5px 18px rgba(17,9,4,.32)!important;
 }
 body:not(.otml-mode-staff) #customerCartSheet .otml-customer-cart-head{
  position:sticky!important;top:-16px!important;z-index:15!important;
  background:#35261D!important;padding:13px 0 10px!important;
  border-bottom:1px solid rgba(242,207,176,.25)!important;
 }
 body:not(.otml-mode-staff) #customerCartSheet .otml-customer-cart-head h3{color:#fff0e4!important;}
 /* Staff POS cart: single scrolling panel; checkout actions don't hide under navbar. */
 body.otml-mode-staff.otml-mobile-cart-open #posRegisterWorkspace .otml-pos-right{
  box-sizing:border-box!important;top:auto!important;bottom:0!important;
  max-height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)))!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;
  scroll-padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))!important;
  z-index:2147482000!important;
  padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
 }
 body.otml-mode-staff.otml-mobile-cart-open #posRegisterWorkspace .otml-checkout-actions{
  position:sticky!important;bottom:0!important;z-index:22!important;
  background:#2d2019!important;padding:12px 8px calc(12px + env(safe-area-inset-bottom,0px))!important;
  box-shadow:0 -6px 20px rgba(10,5,3,.25)!important;
 }
 body.otml-mode-staff.otml-mobile-cart-open #posRegisterWorkspace .otml-mobile-cart-head{
  position:sticky!important;top:0!important;z-index:24!important;
 }
 /* Consistent internal scrolling for the many POS/customer dialogs. */
 #posCashModal,#posReviewModal,#posDiscountModal,#posReceiptOverlay,#posGiftCardModal,
 #posSquareSetupModal,#staffSettleModal,#posProductModal,#posMemberModal,
 #staffCustomerPreviewModal,#staffMessageModal,#staffSubstitutionModal,
 #otmlGiftCardCheckoutModal,#otmlGiftCardHistoryModal,#otmlEditMemberModal,
 #orderingControlModal,#modalClaimGiftCard,#modalBatchGiftCards,
 #feedbackCampaignModal,#cafeFeedbackModal,#drinkFeedbackModal,
 #customerOrderDetailModal,#customerHelpModal,#posSettingsModal,#staffInviteModal,
 #staffAccessCenterModal,#pinModalOverlay{
  box-sizing:border-box!important;max-height:100dvh!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  padding-bottom:max(12px,env(safe-area-inset-bottom,0px))!important;
 }
 #posCashModal>div,#posReviewModal>div,#posDiscountModal>div,
 #posReceiptOverlay>div,#posGiftCardModal>div,#posSquareSetupModal>div,
 #staffSettleModal>div,#posProductModal>div,#posMemberModal>div,
 #staffCustomerPreviewModal>div,#staffMessageModal>div,#staffSubstitutionModal>div,
 #otmlGiftCardCheckoutModal>div,#otmlGiftCardHistoryModal>div,
 #otmlEditMemberModal>div,#orderingControlModal>div,#modalClaimGiftCard>div,
 #modalBatchGiftCards>div,#feedbackCampaignModal>div,#cafeFeedbackModal>div,
 #drinkFeedbackModal>div,#customerOrderDetailModal>div,#customerHelpModal>div,
 #posSettingsModal>div,#staffInviteModal>div,#staffAccessCenterModal>div,#pinModalOverlay>div{
  box-sizing:border-box!important;min-height:0!important;
  max-height:calc(100dvh - max(24px,env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px) + 16px))!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
  scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;
 }
}

@media(max-width:800px){
 #posCashModal>div>button:last-child,#posGiftCardModal>div>button:last-child{
  position:sticky!important;bottom:0!important;z-index:20!important;min-height:52px!important;
  box-shadow:0 -6px 18px rgba(24,14,8,.14)!important;
 }
}
