.popup {
    display: none;
    /* always in DOM */
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.popup-content {
    position: relative;
    background: var(--light-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: calc(var(--spacing) / 2);
    box-shadow: 0 0 20px var(--dark-shadow-color);
    transform: scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: var(--vertical-spacing);
    right: var(--horizontal-spacing);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all .2s ease;
}

.popup-close:hover {
    color: var(--primary-color);
}

.double-action {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--spacing) / 2);
}


/* Responsive adjustments */

@media (max-width: 600px) {
    .popup-content {
        width: 95%;
        padding: 15px 20px;
    }
}