.announcement-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(5px);
}

.announcement-popup-overlay.is-open {
    display: flex;
    animation: announcement-fade-in 0.25s ease-out;
}

.announcement-popup-card {
    position: relative;
    width: min(560px, 100%);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    transform: translateY(10px) scale(0.98);
    animation: announcement-pop-in 0.25s ease-out forwards;
}

.announcement-popup-close-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #334155;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.announcement-popup-close-icon:hover {
    color: #0f172a;
    background: #ffffff;
}

.announcement-popup-image-wrap {
    background: linear-gradient(160deg, #dbeafe, #e0f2fe);
}

.announcement-popup-image {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}

.announcement-popup-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.announcement-popup-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.announcement-popup-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: #1877F2;
    cursor: pointer;
}

.announcement-popup-close-btn {
    border: 0;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    background: #1877F2;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.announcement-popup-close-btn:hover {
    background: #0f62cc;
}

@keyframes announcement-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes announcement-pop-in {
    from {
        transform: translateY(10px) scale(0.98);
    }

    to {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 767.98px) {
    .announcement-popup-overlay {
        padding: 0.75rem;
    }

    .announcement-popup-card {
        border-radius: 16px;
    }

    .announcement-popup-image {
        max-height: 60vh;
    }

    .announcement-popup-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .announcement-popup-close-btn {
        width: 100%;
    }
}
