
/*** Popups ***/
.popup-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.5);
    display: none;
    z-index: -9999;
    visibility: hidden;
}

.popup-overlay.active {
    display: flex;
    z-index: 9999;
    visibility: visible;
    animation: popupFadeIn .3s ease forwards;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.popup {
    background: #fff;
    padding: 2rem;
    width: 100%;
    max-width: 50rem;
    position: relative;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.popup h2.popup-title {
    font-size: 1.5rem;
    text-align: center;
}

.popup-close {
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.popup-close:hover {
    cursor: pointer;
}

.popup-close::before, .popup-close::after {
    width: 2rem;
    height: 2px;
    display: block;
    position: absolute;
    background: #7D7D7D;
    left: 0;
    top: 50%;
    content: "";
}

.popup-close::before {
    transform: rotate(45deg);
}

.popup-close::after {
    transform: rotate(-45deg);
}