/* Popup Overlay */
.nyhedsbrev-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.nyhedsbrev-popup-overlay.active {
    display: flex;
}

/* Popup Container */
.nyhedsbrev-popup-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80%;
    max-height: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.nyhedsbrev-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f0f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.nyhedsbrev-popup-close:hover {
    background-color: rgb(183, 28, 183);
}

/* Popup Content */
.nyhedsbrev-popup-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Iframe */
#nyhedsbrev-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nyhedsbrev-popup-container {
        width: 95%;
        height: 90%;
    }
    
    .nyhedsbrev-popup-content {
        padding: 10px;
    }
}
