.site-announcement-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: min(320px, calc(100vw - 24px));
    z-index: 1100;
    animation: siteAnnouncementIn 0.28s ease;
}

.site-announcement-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.site-announcement-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.site-announcement-link img {
    display: block;
    width: 100%;
    height: auto;
}

.site-announcement-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.site-announcement-close:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: scale(1.04);
}

.site-announcement-caption {
    padding: 12px 16px 14px;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
}

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

@media (max-width: 767px) {
    .site-announcement-widget {
        left: 12px;
        bottom: 12px;
        width: min(290px, calc(100vw - 24px));
    }

    .site-announcement-close {
        width: 34px;
        height: 34px;
    }

    .site-announcement-caption {
        padding: 10px 14px 12px;
        font-size: 0.9rem;
    }
}
