.pmg-announcement-bar {
    width: 100%;
}

.pmg-announcement-bar__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.pmg-announcement-bar__link:hover,
.pmg-announcement-bar__link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.pmg-announcement-bar__desktop,
.pmg-announcement-bar__mobile {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
}

.pmg-announcement-bar__desktop {
    padding: 0.2rem 0.25rem;
    text-align: center;
}

.pmg-announcement-bar__mobile {
    display: none;
}

@media (max-width: 767px) {
    .pmg-announcement-bar__desktop {
        display: none;
    }

    .pmg-announcement-bar__mobile {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        padding: 0.72rem 0;
        font-size: 13px;
    }

    .pmg-announcement-bar__track {
        display: inline-flex;
        align-items: center;
        gap: 1.5rem;
        width: max-content;
        padding-inline: 1rem;
        animation: pmg-announcement-bar-scroll 18s linear infinite;
        will-change: transform;
    }

    .pmg-announcement-bar__item,
    .pmg-announcement-bar__separator {
        flex: 0 0 auto;
    }

    .pmg-announcement-bar__separator {
        opacity: 0.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pmg-announcement-bar__desktop {
        display: block;
    }

    .pmg-announcement-bar__mobile {
        display: none;
    }

    .pmg-announcement-bar__track {
        animation: none;
    }
}

@keyframes pmg-announcement-bar-scroll {
    from {
        transform: translateX(0);
    }

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