.popup,
.popup__overlay {
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    position: fixed;
}

.popup {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 16px 40px;
    display: flex;
    box-sizing: border-box;
}

.popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup__overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
}

.popup__content {
    position: relative;
    z-index: 1001;
    max-width: 100%;
}

@media (max-width: 768px) {
    .popup {
        padding: 16px;
    }
}