.tab-announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--tab-z-index, 2147483000);
    box-sizing: border-box;
    background: var(--tab-bg, #111111);
    color: var(--tab-text, #ffffff);
    box-shadow: var(--tab-shadow, none);
    font-size: var(--tab-font-size, 14px);
    font-weight: var(--tab-font-weight, 400);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    touch-action: pan-y pinch-zoom;
}

.tab-announcement-bar[hidden],
.tab-announcement-bar__arrow[hidden],
.tab-announcement-bar__dots[hidden] {
    display: none !important;
}

.tab-announcement-bar--initializing {
    visibility: hidden;
}

body.admin-bar .tab-announcement-bar {
    top: 32px;
}

.tab-announcement-bar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--tab-max-width, 1200px);
    min-height: var(--tab-min-height, 42px);
    margin: 0 auto;
    padding: var(--tab-padding-y, 9px) 14px;
    box-sizing: border-box;
}

.tab-announcement-bar--has-close .tab-announcement-bar__inner {
    padding-right: 50px;
}

.tab-announcement-bar--has-dots.tab-announcement-bar--dots-active .tab-announcement-bar__inner {
    padding-bottom: calc(var(--tab-padding-y, 9px) + 11px);
}

.tab-announcement-bar__viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 1.5em;
    overflow: hidden;
    text-align: var(--tab-text-align, center);
}

.tab-announcement-bar__slide {
    display: none;
    width: 100%;
    margin: 0;
    text-align: inherit;
    overflow-wrap: anywhere;
    will-change: opacity, transform;
}

.tab-announcement-bar__slide.is-active:not([hidden]) {
    display: block;
}

.tab-announcement-bar__slide p {
    margin: 0;
}

.tab-announcement-bar__slide a {
    color: inherit;
    font-weight: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tab-announcement-bar__arrow,
.tab-announcement-bar__close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    opacity: 0.82;
    transition: opacity 160ms ease, background-color 160ms ease;
}

.tab-announcement-bar__arrow:hover,
.tab-announcement-bar__arrow:focus,
.tab-announcement-bar__close:hover,
.tab-announcement-bar__close:focus {
    opacity: 1;
}

.tab-announcement-bar__arrow:focus-visible,
.tab-announcement-bar__close:focus-visible,
.tab-announcement-bar__dot:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.tab-announcement-bar__arrow {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    font-size: 25px;
    font-weight: 400;
    line-height: 32px;
}

.tab-announcement-bar__arrow:hover,
.tab-announcement-bar__arrow:focus {
    background: rgba(255, 255, 255, 0.10);
}

.tab-announcement-bar__arrow--prev {
    margin-right: 4px;
}

.tab-announcement-bar__arrow--next {
    margin-left: 4px;
}

.tab-announcement-bar__close {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    border-radius: 50%;
    font-size: 26px;
    font-weight: 400;
    line-height: 32px;
}

.tab-announcement-bar__dots {
    position: absolute;
    left: 50%;
    bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transform: translateX(-50%);
}

/* Explicit button reset prevents themes from stretching carousel dots. */
.tab-announcement-bar button.tab-announcement-bar__dot {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
    flex: 0 0 8px !important;
    box-sizing: border-box !important;
    width: 8px !important;
    min-width: 8px !important;
    max-width: 8px !important;
    height: 8px !important;
    min-height: 8px !important;
    max-height: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid currentColor !important;
    border-radius: 999px !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: inherit;
    font-size: 0 !important;
    line-height: 0 !important;
    cursor: pointer;
    opacity: 0.55;
}

.tab-announcement-bar button.tab-announcement-bar__dot.is-active {
    background: currentColor !important;
    opacity: 1;
}

.tab-announcement-bar-spacer {
    display: block;
    width: 100%;
    height: var(--tab-height, 0px);
    pointer-events: none;
}

.tab-announcement-bar--animation-fade .tab-announcement-bar__slide.is-active:not([hidden]) {
    animation: tab-fade-in 280ms ease both;
}

.tab-announcement-bar--animation-slide_up .tab-announcement-bar__slide.is-active:not([hidden]) {
    animation: tab-slide-up-in 300ms ease both;
}

.tab-announcement-bar--animation-slide_horizontal .tab-announcement-bar__slide.is-active:not([hidden]) {
    animation: tab-slide-horizontal-next 300ms ease both;
}

.tab-announcement-bar--animation-slide_horizontal.tab-announcement-bar--direction-prev .tab-announcement-bar__slide.is-active:not([hidden]) {
    animation-name: tab-slide-horizontal-prev;
}

.tab-announcement-bar--animation-none .tab-announcement-bar__slide.is-active:not([hidden]) {
    animation: none;
}

@keyframes tab-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tab-slide-up-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tab-slide-horizontal-next {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tab-slide-horizontal-prev {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tab-announcement-bar__slide.is-active:not([hidden]) {
        animation: none !important;
    }

    .tab-announcement-bar__arrow,
    .tab-announcement-bar__close {
        transition: none;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .tab-announcement-bar {
        top: 46px;
    }

    .tab-announcement-bar {
        font-size: var(--tab-mobile-font-size, 14px);
    }

    .tab-announcement-bar__inner {
        min-height: var(--tab-mobile-min-height, 44px);
        padding-top: var(--tab-mobile-padding-y, 10px);
        padding-bottom: var(--tab-mobile-padding-y, 10px);
        padding-left: 8px;
        padding-right: 8px;
    }

    .tab-announcement-bar--has-close .tab-announcement-bar__inner {
        padding-right: 42px;
    }

    .tab-announcement-bar--has-dots.tab-announcement-bar--dots-active .tab-announcement-bar__inner {
        padding-bottom: calc(var(--tab-mobile-padding-y, 10px) + 11px);
    }

    .tab-announcement-bar__arrow {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 22px;
        line-height: 28px;
    }

    .tab-announcement-bar__arrow--prev {
        margin-right: 2px;
    }

    .tab-announcement-bar__arrow--next {
        margin-left: 2px;
    }

    .tab-announcement-bar__close {
        right: 5px;
        width: 32px;
        height: 32px;
        font-size: 24px;
        line-height: 30px;
    }

    .tab-announcement-bar--hide-mobile,
    .tab-announcement-bar-spacer--hide-mobile {
        display: none !important;
    }
}

@media screen and (min-width: 783px) {
    .tab-announcement-bar--hide-desktop,
    .tab-announcement-bar-spacer--hide-desktop {
        display: none !important;
    }
}
