/* =========================================================
   ANCOR LOADER SAFETY
   The loader is visual only and can never block the page.
   ========================================================= */

html,
body,
html.ancor-page-loading,
html.ancor-page-loading body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* The loader must never capture mouse or touch events */
html body #ancor-brand-loader {
    pointer-events: none !important;
    user-select: none !important;
    touch-action: none !important;
}

/* Strong hidden state */
html body #ancor-brand-loader.ancor-loader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Protect the page from legacy loading-state classes */
html.loading,
html.is-loading,
html.page-loading,
html.preloader-active,
body.loading,
body.is-loading,
body.page-loading,
body.preloader-active {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Make sure the real page remains interactive */
body > *:not(#ancor-brand-loader) {
    pointer-events: auto;
}
