/* WBCC Next Stream / YouTube modal fix
   Makes the stream button and modal independent of Tailwind's generated
   hidden/flex utility availability. */

.site-topbar {
    position: relative;
    z-index: 40;
}

.site-topbar .site-topbar-actions {
    position: relative;
    z-index: 41;
    pointer-events: auto;
}

.site-topbar .topbar-social-link,
.site-topbar .topbar-stream-button {
    position: relative;
    z-index: 42;
    pointer-events: auto !important;
}

.site-topbar .topbar-stream-button {
    cursor: pointer !important;
}

/*
 * header.php opens/closes the modal by toggling the classes:
 *   hidden
 *   flex
 *
 * Explicit selectors here ensure that works even if the local static
 * Tailwind build does not contain (or loses precedence for) those utilities.
 */
.youtube-live-modal.hidden {
    display: none !important;
    pointer-events: none !important;
}

.youtube-live-modal.flex {
    display: flex !important;
    pointer-events: auto !important;
}

.youtube-live-modal {
    z-index: 1000 !important;
}
