/* OTM v6.0.187 — one-scrolling-layer mobile popups, accessible action bars */
html.otml-v187-background-locked,
body.otml-v187-background-locked { overscroll-behavior:none!important; }
body.otml-v187-background-locked { width:100%!important; }
/* The fixed bottom navigation cannot cover active sheet actions. */
body.otml-v187-overlay-open #publicMobileNav,
body.otml-v187-overlay-open .otml-public-mobile-nav,
body.otml-v187-overlay-open #viewCardHub>.otml-nav-segment,
body.otml-v187-overlay-open .otml-hub-tabs,
body.otml-v187-overlay-open .otml-customer-cart-bar { visibility:hidden!important;pointer-events:none!important; }
/* Every active overlay is an isolated scroll region, rather than a window into the back page. */
#customerItemModal,
#customerDailySpinModal,
#tastePassportModal,
#customerOrderDetailModal,
#posMemberModal,
#posProductModal,
#staffSettleModal,
#cafeFeedbackModal,
#drinkFeedbackModal,
#otmlStaffDeclineModal {overscroll-behavior:contain!important;}
#customerItemModal {z-index:2147483000!important;align-items:flex-end!important;overscroll-behavior:contain!important;}
#customerItemModal .otml-customer-item-sheet {
  box-sizing:border-box!important;
  max-height:calc(100dvh - max(8px,env(safe-area-inset-top,0px)))!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  scroll-padding-bottom:128px;
  padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
  position:relative;
}
#customerItemModal .otml-item-sticky-action {
  position:sticky!important;bottom:0!important;z-index:120!important;
  display:flex!important;flex-direction:column!important;gap:8px!important;
  margin:18px -14px -10px!important;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))!important;
  border-top:1px solid rgba(183,145,110,.4)!important;
  background:#2e211a!important;
  box-shadow:0 -9px 22px rgba(12,6,3,.22)!important;
}
#customerItemModal .otml-item-sticky-action #customerItemActionBtn {
  margin:0!important;min-height:50px!important;font-size:15px!important;
  flex:none!important;position:relative!important;
}
#customerItemModal .otml-item-sticky-action #customerSaveUsualBtn {
  margin:0!important;min-height:45px!important;font-size:13px!important;
  background:#f8f3ed!important;color:#35241b!important;border:1px solid #d3bca5!important;
  border-radius:13px!important;position:relative!important;opacity:1!important;
}
#customerSaveUsualBtn:disabled{opacity:.65!important;cursor:wait!important;}
/* Compact daily wheel: keep spin and dismissal actions visible on small phones. */
#customerDailySpinModal{
  z-index:2147483002!important;box-sizing:border-box!important;
  padding:max(8px,env(safe-area-inset-top,0px)) 10px max(8px,env(safe-area-inset-bottom,0px))!important;
  overscroll-behavior:contain!important;
}
#customerDailySpinModal .otml-spin-modal-card{
  box-sizing:border-box!important;max-height:calc(100dvh - max(20px,env(safe-area-inset-top,0px) + env(safe-area-inset-bottom,0px)))!important;
  padding:15px 15px 10px!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
  scroll-padding-bottom:80px!important;
}
#customerDailySpinModal #customerDailySpinTitle {font-size:clamp(24px,7vw,31px)!important;margin:4px 35px 5px 0!important;line-height:1.1!important;}
#customerDailySpinModal #customerDailySpinText{margin:0 0 7px!important;font-size:11px!important;line-height:1.4!important;}
#customerDailySpinModal .otml-customer-eyebrow{font-size:9px!important;margin:0 35px 4px 0!important;}
#customerDailySpinModal .otml-spin-visual{margin:5px 0 9px!important;gap:0!important;}
#customerDailySpinModal .otml-spin-wheel-wrap{
  box-sizing:border-box!important;
  width:min(62vw,250px)!important;height:min(62vw,250px)!important;
  max-width:250px!important;max-height:250px!important;padding:5px!important;
}
#customerDailySpinModal .otml-spin-center{width:64px!important;height:64px!important;}
#customerDailySpinModal .otml-spin-brand-icon{max-width:48px!important;max-height:34px!important;}
#customerDailySpinModal .otml-spin-center small{font-size:7px!important;}
#customerDailySpinModal .otml-spin-segment-label{font-size:9px!important;max-width:61px!important;min-width:34px!important;line-height:1.15!important;}
#customerDailySpinModal .otml-spin-scripture{margin:3px auto 7px!important;padding:8px 8px!important;gap:2px!important;font-size:10px!important;line-height:1.3!important;}
#customerDailySpinModal .otml-spin-scripture small{font-size:8px!important;}
#customerDailySpinModal .otml-spin-result{min-height:47px!important;padding:8px!important;margin:0 0 6px!important;}
#customerDailySpinModal .otml-spin-result strong{font-size:17px!important;}
#customerDailySpinModal .otml-spin-footnote{margin:4px 0 6px!important;font-size:9px!important;line-height:1.3!important;}
#customerDailySpinModal .otml-v187-spin-actions{
  position:sticky!important;bottom:-10px!important;z-index:15!important;
  margin:0 -15px -10px!important;padding:10px 15px calc(10px + env(safe-area-inset-bottom,0px))!important;
  background:linear-gradient(180deg,rgba(40,25,17,.96),#28180f)!important;
  border-top:1px solid rgba(238,189,140,.25)!important;
}
#customerDailySpinModal .otml-v187-spin-actions button{min-height:47px!important;font-size:12px!important;}
@media(max-height:680px){
  #customerDailySpinModal .otml-spin-wheel-wrap{width:min(54vw,205px)!important;height:min(54vw,205px)!important;}
  #customerDailySpinModal .otml-spin-scripture{font-size:9px!important;}
  #customerDailySpinModal .otml-spin-footnote{font-size:8px!important;}
}
/* POS live register becomes a proper scrollable sheet, not independent scrollboxes. */
.otml-v187-activity-backdrop:not([hidden]){
  position:fixed!important;inset:0!important;background:rgba(10,6,4,.76)!important;
  -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
  z-index:2147482991!important;
}
.otml-v187-activity-backdrop[hidden]{display:none!important;}
body.otml-mode-staff #otmlActivityPanel{
  position:fixed!important;z-index:2147482992!important;
  box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
  box-shadow:0 20px 70px rgba(0,0,0,.54)!important;
}
body.otml-mode-staff #otmlActivityPanel .otml-support-list,
body.otml-mode-staff #otmlActivityPanel .otml-activity-list{
  max-height:none!important;overflow:visible!important;
}
@media(max-width:700px){
  body.otml-mode-staff #otmlActivityPanel{
    left:10px!important;right:10px!important;
    top:max(12px,env(safe-area-inset-top,0px))!important;
    bottom:max(12px,env(safe-area-inset-bottom,0px))!important;
    width:auto!important;max-width:none!important;max-height:none!important;
    padding:16px 16px calc(22px + env(safe-area-inset-bottom,0px))!important;
    border-radius:21px!important;
  }
}
/* Other shared sheets have one internal scroll, with comfortable phone safe areas. */
@media(max-width:700px){
  #posMemberModal>div,#posProductModal>div,#staffSettleModal>div,
  #cafeFeedbackModal>div,#drinkFeedbackModal>div,#tastePassportModal>div,
  #customerOrderDetailModal>div,#otmlStaffDeclineModal>div,
  .otml-sheet-overlay>.otml-review-sheet,.otml-sheet-overlay>.otml-mini-sheet{
    box-sizing:border-box!important;max-height:calc(100dvh - 32px)!important;
    overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
  }
}
/* At-a-glance notification status in member directory and staff profile. */
.otml-v187-member-name{display:flex!important;align-items:center;gap:7px;flex-wrap:wrap;}
.otml-v187-bell{display:inline-flex;align-items:center;gap:4px;font:800 10px/1.1 Poppins,Arial,sans-serif;white-space:nowrap;border-radius:30px;padding:6px 8px;border:1px solid #d9b89a;background:#f7ecdf;color:#5c3a24;}
.otml-v187-bell small{font-size:10px!important;color:inherit!important;}
.otml-v187-bell.registered{background:#e9f4ea;border-color:#b7dbbe;color:#235b39;}
.otml-v187-bell.issue{background:#fff1dc;border-color:#ebc38d;color:#87511d;}
.otml-v187-bell.off{background:#eee5dd;border-color:#d7c7ba;color:#776054;}
.otml-v187-push-subline{font-size:10px;line-height:1.4;margin-top:3px;color:#b39276;font-weight:700;}
.otml-v187-preview-push{display:inline-block;font:750 11px/1.4 Poppins,Arial,sans-serif;margin-top:7px;padding:6px 9px;border:1px solid rgba(241,204,160,.4);border-radius:10px;background:rgba(15,7,3,.28);color:#f9e3c7;}
