/* Scheduled Announcements Modal */

#sa-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#sa-overlay.sa-visible {
    opacity: 1;
}

#sa-modal {
    position: relative;
    background: #fff;
    border-radius: 6px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    z-index: 999999;
}

#sa-overlay.sa-visible #sa-modal {
    transform: translateY(0);
}

#sa-modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin: 12px 12px 0 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    color: #333;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s;
    flex-shrink: 0;
}

#sa-modal-close:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #000;
}

#sa-modal-body {
    padding: 40px;
    clear: both;
}

/* Keep Elementor widgets looking right inside the modal */
#sa-modal-body .elementor {
    width: 100%;
}

@media (max-width: 600px) {
    #sa-modal-body {
        padding: 24px 20px;
    }
}
