:root {
    --ann-bg: #fff8e6;
    --ann-border: #ffd87a;
    --ann-text: #5a3e00;
    --ann-accent: #c47a00;
    --btn-link: #0b66ff;
    --max-width: 1200px;
    --gap: 12px;
    --radius: 8px;
}

/* Banner container */
.announcement-banner {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, var(--ann-bg), #fff);
    border: 1px solid var(--ann-border);
    color: var(--ann-text);
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 9999;
    font-family: Inter, Roboto, Arial, sans-serif;
}

/* inner layout */
.announcement-inner {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
}

/* left side: icon + text */
.announcement-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.announcement-icon {
    flex: 0 0 24px;
    color: var(--ann-accent);
}

.announcement-text {
    font-size: 15px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* one-line with ellipsis */
}

/* actions */
.announcement-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* link to support */
.btn-link {
    text-decoration: underline;
    color: var(--btn-link);
    font-size: 14px;
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    white-space: nowrap;
}

/* dismiss button */
.btn-dismiss {
    font-size: 20px;
    line-height: 1;
    border: none;
    background: transparent;
    color: var(--ann-text);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.btn-dismiss:focus,
.btn-link:focus {
    outline: 3px solid rgba(11, 102, 255, 0.15);
    outline-offset: 2px;
}

/* Responsive: on small screens text becomes multiline */
@media (max-width: 640px) {
    .announcement-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .announcement-text {
        white-space: normal;
    }

    .announcement-actions {
        justify-content: flex-end;
    }
}