/* static/css/components/announcement-banner.css */

.ann-banner {
    display: flex;
    height: 48px;
    padding: 7px 40px;
    justify-content: center;
    align-items: center;
    gap: 24px;
    align-self: stretch;
    width: 100%;
    background: #000;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ann-banner__text {
    color: #FFF;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    flex-shrink: 0;
}

.ann-banner__cta {
    display: flex;
    height: 28px;
    padding: 7.801px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 35px;
    background: #FFF;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--Primary-Text, #353535);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    transition: opacity 0.2s ease;
}

.ann-banner__cta:hover {
    opacity: 0.85;
}

.ann-banner__close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    line-height: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 640px) {
    .ann-banner {
        padding: 7px 16px;
        gap: 12px;
        height: auto;
        min-height: 48px;
    }

    .ann-banner__text {
        font-size: 12px;
    }

    .ann-banner__close {
        right: 8px;
    }
}
