/* One full-screen modal contract for admin, customer and driver pages. */
html body :is(dialog,.modal,.checkout-editor,.checkout-pickup-modal,.ops-modal,.kg-operations-modal,.address-search-modal){position:fixed!important;inset:0!important;width:100%!important;height:100vh!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box!important;transform:none!important}
html body :is(.modal,.checkout-editor,.checkout-pickup-modal,.ops-modal,.kg-operations-modal,.address-search-modal){padding:0!important;align-items:stretch!important;justify-content:stretch!important}
html body :is(.modal>.sheet,[role="dialog"][aria-modal="true"]){width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;border-radius:0!important;box-sizing:border-box!important;transform:none!important;overflow-y:auto;overscroll-behavior:contain}
html body dialog{overflow-y:auto;overscroll-behavior:contain}
html body dialog:not([open]){display:none!important}
html body :is(dialog,.modal,[role="dialog"])[hidden]{display:none!important}
/* Existing body/footer structures remain responsible for form and map scrolling. */
html body :is(.fee-dialog-head,.dialog-head,.dialog-heading,.customer-modal-heading,.option-modal-head,.checkout-editor-head,.checkout-pickup-head,.ops-sheet>header,.notice-editor>header,.kg-operations-modal section>header){position:sticky;top:0;z-index:20;flex-shrink:0}
html body .modal>.sheet>.row.between:first-child{position:sticky;top:0;z-index:20;background:var(--modal-heading-background,#fff);padding-block:8px}
html body .sandbox-screen{padding:0!important;overflow:hidden!important}
html body .sandbox-screen>iframe{min-height:0;width:100%;flex:1}
html .sandbox-screen.sandbox-inner-modal>.sandbox-screen-head,html .sandbox-screen.sandbox-map-fullscreen>.sandbox-screen-head{display:none!important}
html .sandbox-screen.sandbox-inner-modal>iframe{padding-bottom:0!important}
/* Each nested full-screen view must retain its own exit control. */
html.sandbox-driver-screen #driverManagerDialog>.fee-dialog-head{display:flex!important}
html.sandbox-embedded .oai-popup-close{display:block!important;position:sticky;top:8px;z-index:30}
html.sandbox-embedded .notice-editor header [data-close]{display:inline-flex!important}
html.sandbox-embedded .sandbox-tools-dialog .dialog-heading{display:flex!important}
html body.shared-modal-open{overflow:hidden!important}
html body :is(.product-editor-head,.delivery-search-heading){position:sticky;top:0;z-index:20;flex-shrink:0}
html body .address-search-sheet{display:flex;flex-direction:column}
html body #hallaPaidFrame{flex:1;min-height:0;height:auto!important}

html body .sandbox-screen.sandbox-driver-home>.sandbox-screen-head{display:none!important}
