/* Announcement bar styles */
:root {
    --ann-bg: #01579B;
    --ann-accent: #FF305B;
    --ann-white: #ffffff;
}

.announcement-bar {
    /* will sit under the header; JS sets --site-header-height */
    position: sticky;
    top: var(--site-header-height, 56px);
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: var(--ann-bg);
    z-index: 50;
    direction: rtl;
    box-sizing: border-box;
    font-family: inherit;
}

.announcement-countdown {
    flex: 0 0 auto;
    background: var(--ann-accent);
    color: var(--ann-white);
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.announcement-track {
    overflow: hidden;
    flex: 1 1 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.track-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
    /* will be animated by JS by setting animation-duration */
    animation-name: scroll-left;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.announcement-content {
    color: var(--ann-white);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0 8px;
}

@keyframes scroll-left {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Small screens adjustments */
@media (max-width:480px) {
    .announcement-countdown {
        min-width: 100px;
        padding: 6px 8px;
        font-size: 0.95rem
    }

    .announcement-content {
        font-size: 0.95rem
    }
}