/* --- UI Overlay (global backdrop, see ui-overlay.js) --- */

/*
 Default layering: above ordinary page content, header included, but below
 panels that use it (z-index 9999), so they stay crisp and clickable while
 everything behind them dims out.
*/
.itx-ui-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(255, 255, 255, .8);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}

.itx-ui-overlay.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease;
}

/*
 Passive mode: the overlay sits *behind* a component (e.g. a megamenu), at
 the z-index the consumer passes in as --itx-ui-overlay-z. pointer-events:none
 lets hover/click events reach whatever is behind the overlay.
*/
.itx-ui-overlay.is-passive {
    z-index: var(--itx-ui-overlay-z, 9998);
    pointer-events: none;
}
