/* V20.20 — Runtime Clean: neutraliza resíduos mobile antigos e reforça camada atual. */
:root { --ultracell-build: '20-20-clean-runtime'; }

html, body { min-height: 100%; }

/* Cliente mobile V19: rolagem nativa e sem overlays antigos invisíveis. */
@media (max-width: 760px) {
  body.v19-store-mobile-active,
  body.v19-store-mobile-active #app,
  body.v19-store-mobile-active .v19-app {
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  body.v19-store-mobile-active .drawer-backdrop:not(.is-open):not(.open),
  body.v19-store-mobile-active .modal-backdrop:not(.is-open):not(.open),
  body.v19-store-mobile-active .legacy-overlay:not(.is-open):not(.open) {
    display: none !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  body.v19-store-mobile-active .toast-container,
  body.v19-store-mobile-active #toast-root,
  body.v19-store-mobile-active .toast-root {
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
    left: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    z-index: 9999 !important;
    pointer-events: none !important;
    display: grid !important;
    gap: 8px !important;
  }

  body.v19-store-mobile-active .toast,
  body.v19-store-mobile-active .app-toast,
  body.v19-store-mobile-active .uc-toast {
    max-width: min(420px, calc(100vw - 24px)) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    pointer-events: none !important;
  }
}

/* ADM mobile atual: evita que CSS antigo force estado de busca por código somente. */
@media (max-width: 760px) {
  body.official-mobile-active.admin-session .official-mobile-search input#product-search,
  body.official-mobile-active.seller-session .official-mobile-search input#product-search {
    font-size: 16px !important;
  }

  body.official-mobile-active.admin-session .official-empty-state,
  body.official-mobile-active.seller-session .official-empty-state {
    white-space: normal !important;
    line-height: 1.35 !important;
  }

  body.deliverer-session .drawer-backdrop,
  body.deliverer-session .delivery-drawer-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Marcador técnico invisível para confirmar build via DevTools. */
body::before { content: ''; display: none; }
