.overlay_loader {
    height: auto;
    width: 100%;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: #FFFF; */
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    /* Above Bootstrap's modal overlay */
}

.overlay {
    height: auto;
    width: 100%;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #FFFF;
    /* background-color: rgba(0, 0, 0, 0.9); */
    z-index: 9999;
    /* Above Bootstrap's modal overlay */
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Ensure .btn-close is visible on the dark background */
.btn-close {
    filter: invert(1);
}

.overlay {
    /* Other styles */
    display: none;
    /* Hidden by default */
    opacity: 0;
    transition: opacity .3s ease-in-out;
}

.overlay.active {
    display: block;
    /* Show overlay */
    opacity: 1;

}

body:has(.requires-no-scroll) {
    overflow: hidden;
}