/**
 * Ruediger Vogel - Brevo Newsletter Subscription Modal Styles
 */

/* Button styles */
.rv-shortcode-button {
    display: inline-block;
    background-color: #a81010;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;

    font-size: 16px;
    transition: background-color 0.3s ease;
    text-align: center;
    min-width: 28ch;
}

.rv-shortcode-button:hover {
    background-color: #c01818;
}

.rv-unsubscribe-button {
    background-color: #979797;
}
.rv-subscribe-container {
    margin: 1em 0;
}

/* Modal container */
.rv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.rv-modal.rv-modal-open {
    display: flex;
}

/* Modal content */
.rv-modal-content {
    position: relative;
    background-color: #ffffff;
    margin: auto;
    padding: 0;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: rv-modal-appear 0.3s ease;
    max-height: 90vh;
    overflow: auto;
}

/* Animation for modal opening */
@keyframes rv-modal-appear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close button */
.rv-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    z-index: 10;
}

.rv-modal-close:hover {
    color: #a81010;
}

/* Modal body - contains the iframe */
.rv-modal-body {
    padding: 0;
    max-height: 100%;
    overflow: auto;
    background-color: #EFF2F7;
}

/* Prevent body scrolling when modal is open */
body.rv-modal-active {
    overflow: hidden;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .rv-modal-content {
        width: 95%;
        padding: 0;
    }
    
    .rv-modal-body iframe {
        
        max-height: 90vh;
    }
}
