/* Rotating announcement bar above the header (Vehicle Context > Mensajes del header). */
.vc-topbar {
    --vc-topbar-bg: #000;
    --vc-topbar-color: #fff;
    --vc-topbar-duration: 30s;

    position: relative;
    z-index: 391;
    overflow: hidden;
    height: 34px;
    background: var(--vc-topbar-bg);
    color: var(--vc-topbar-color);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 34px;
    text-transform: uppercase;
    white-space: nowrap;
}

.vc-topbar__track {
    display: flex;
    width: max-content;
}

/* The inline script fills the width and starts the loop. */
.vc-topbar.is-running .vc-topbar__track {
    animation: vc-topbar-scroll var(--vc-topbar-duration) linear infinite;
}

.vc-topbar:hover .vc-topbar__track,
.vc-topbar:focus-within .vc-topbar__track {
    animation-play-state: paused;
}

.vc-topbar__list {
    display: flex;
    flex: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vc-topbar__item {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 28px;
}

.vc-topbar__item::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-left: 56px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.vc-topbar__item a,
.vc-topbar__item a:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@keyframes vc-topbar-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    .vc-topbar {
        height: 30px;
        font-size: 12px;
        line-height: 30px;
    }

    .vc-topbar__item {
        padding: 0 18px;
    }

    .vc-topbar__item::after {
        margin-left: 36px;
    }
}

/* Without motion: one static message, centered. */
@media (prefers-reduced-motion: reduce) {
    .vc-topbar__track,
    .vc-topbar.is-running .vc-topbar__track {
        width: auto;
        justify-content: center;
        animation: none;
    }

    .vc-topbar__list[aria-hidden="true"],
    .vc-topbar__item[aria-hidden="true"],
    .vc-topbar__item + .vc-topbar__item {
        display: none;
    }

    .vc-topbar__item::after {
        display: none;
    }
}
