.dwb-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: dwbFadeIn 0.3s forwards;
}

.dwb-modal-overlay.show {
    display: flex;
}

.dwb-modal-content-wrapper {
    background-color: var(--gray-0);
    background-color: var(--surface-1);
    color: var(--gray-8);
    color: var(--text-1);
    margin: auto;
    padding: 20px;
    width: 100%;
    max-width: 950px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: dwbSlideInTop 0.5s forwards;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: auto;
}

.dwb-modal-close-button {
    color: #000;
    float: right;
    font-size: 48px;
    font-weight: bold;
    position: absolute;
    top: -12px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    z-index: 10;
}

.dwb-modal-close-button:hover,
.dwb-modal-close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Animations */
@keyframes dwbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dwbSlideInTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Optional: Styles to hide scrollbar on body when modal is open */
.dwb-modal-open {
    overflow: hidden;
}

/* page loader styles */
.page-loader {
    width: 100%;
    height: 100vh;
    position: fixed;
    background: var(--gradient-1) fixed;
    z-index: 100002;
    top: 0;
    left: 0;
    opacity: 0.9;
    display: none;
}

.page-loader.show {
    display: block;
}

.page-loader .txt {
    color: black;
    text-align: center;
    top: 40%;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-weight: bold;
    line-height: 1.5;
}

/* SPINNER ANIMATION */
.spinner {
    position: relative;
    top: 35%;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 100%;
    -webkit-animation: sk-scaleout 1s infinite ease-in-out;
    animation: sk-scaleout 1s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0);
    }

    100% {
        -webkit-transform: scale(1);
        opacity: 0;
    }
}

@keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}