/* Minimal Brevo Popup Styles */

.brevo-popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: auto; /* Allow scrolling if popup is taller than viewport */
}

.brevo-popup-overlay.active { display: flex; }

.brevo-popup {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    position: relative;
    /* Width and height will be set dynamically by JavaScript */
    min-width: 320px;
    min-height: 200px;
    max-width: calc(100vw - 32px);
    /* Remove max-height constraint to allow full form height */
    overflow: hidden;
}

.brevo-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    z-index: 10;
}
.brevo-popup-close:hover { color: #000; }

.brevo-popup-content {
    padding: 12px;
    height: 100%;
    box-sizing: border-box;
}

#brevo-iframe-container {
    height: 100%;
    width: 100%;
}

#brevo-iframe-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
}

/* Prevent body scroll when popup is open */
body.popup-open { overflow: hidden; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .brevo-popup-overlay {
        padding: 8px;
    }
    
    .brevo-popup {
        min-width: 280px;
        min-height: 150px;
    }
    
    .brevo-popup-content {
        padding: 8px;
    }
} 