/* Bounded theme-specific dialogs with one content scroll area. */
body[data-menu-theme="modern-theme-18"] :is(#ti18-order-modal,#ti18-options-backdrop)>div{max-height:calc(100dvh - 32px);display:flex;flex-direction:column;min-width:0}
body[data-menu-theme="modern-theme-18"] :is(#ti18-order-modal,#ti18-options-backdrop)>div>div:first-child{flex:none}
body[data-menu-theme="modern-theme-18"] :is(#ti18-order-modal,#ti18-options-backdrop)>div>div:last-child{overflow:auto;min-height:0;overscroll-behavior:contain}
body[data-menu-theme="modern-theme-18"] :is(#ti18-order-close,#ti18-opt-close,.ti18-add,.ti18-minus,.ti18-plus){display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:36px;min-height:36px;padding:6px;line-height:1}
body[data-menu-theme="modern-theme-18"] #ti18-view-order-wrapper{right:auto!important;left:50%;transform:translateX(-50%);max-width:calc(100% - 136px)}
body[data-menu-theme="modern-theme-18"] #view-order-button{width:100%;justify-content:center}
body[data-menu-theme="modern-theme-19"] :is(#orderConfirmContent,#callWaiterContent){box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;min-width:0!important;width:min(520px,calc(100vw - 28px))!important}
body[data-menu-theme="modern-theme-19"] :is(#orderConfirmContent,#callWaiterContent) :is(input,select,textarea){box-sizing:border-box;min-width:0;font:inherit}
body[data-menu-theme="modern-theme-19"] :is(#orderConfirmContent,#callWaiterContent) button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;gap:6px}
.mi-order-error{margin-top:12px;padding:12px;border:1px solid #e64848;border-radius:10px;background:#fff1f2;color:#991b1b;font-size:14px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
body:is([data-menu-theme="modern-theme-20"],[data-menu-theme="modern-theme-21"],[data-menu-theme="modern-theme-22"]) #menuModal{z-index:11000!important}
body:is([data-menu-theme="modern-theme-20"],[data-menu-theme="modern-theme-21"],[data-menu-theme="modern-theme-22"]) #dishModal{z-index:11010!important}
body:is([data-menu-theme="modern-theme-20"],[data-menu-theme="modern-theme-21"],[data-menu-theme="modern-theme-22"]) :is(#cartBar,#basketBar){z-index:11020!important}
body:is([data-menu-theme="modern-theme-20"],[data-menu-theme="modern-theme-21"],[data-menu-theme="modern-theme-22"]) :is(#orderModal,#callWaiterModal,#langModal,#searchModal){z-index:11030!important}
body[data-menu-theme="modern-theme-19"] .menu-basket-bar{z-index:10000!important}
body[data-menu-theme="modern-theme-19"] #basketModal{z-index:10010!important}
body[data-menu-theme="modern-theme-19"] :is(#orderConfirmModal,#callWaiterModal,#itemModal){z-index:10020!important}
@media(max-width:575px){body[data-menu-theme="modern-theme-18"] #ti18-view-order-wrapper{bottom:calc(12px + env(safe-area-inset-bottom))!important}body[data-menu-theme="modern-theme-18"] #view-order-button{padding:10px!important;font-size:12px;gap:6px!important}}
