.marquee-bar {
    background-color: #f7f2ea;
    overflow: hidden;
    position: relative;
}
@media (min-width: 72em) {
    .marquee-bar::before {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        background-image: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65));
        width: 12.5rem;
        top: 0;
        height: 100%;
    }
}

.marquee-bar__link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.marquee-bar__link:hover .marquee-bar__marquee-content {
    animation-play-state: paused;
}

.marquee-bar__marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 0.625rem 0;
    display: flex;
}

.marquee-bar__marquee-content {
    display: flex;
    flex-shrink: 0;
    animation: hello-bar-marquee-scroll 75s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-bar__marquee-content {
        animation: none;
    }
}

.marquee-bar__marquee-text {
    flex-shrink: 0;
    padding: 0 3rem;
    font-weight: normal;
    font-size: 1rem;
    position: relative;
}

.marquee-bar__marquee-text::before {
    content: "";
    position: absolute;
    left: -0.125rem;
    background-color: black;
    border-radius: 50%;
    width: 0.375rem;
    height: 0.375rem;
    line-height: 1;
    opacity: 0.25;
    top: 0.4375rem;
}

@keyframes hello-bar-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-bar__close {
    overflow: hidden;
    height: 2.5rem;
    width: 2.5rem;
    background: none;
    box-shadow: none;
    position: absolute;
    top: 0;
    right: 0;
}

@media (min-width: 60em) {
    .marquee-bar__close {
        height: 3.125rem;
        width: 3.125rem;
    }
}

.marquee-bar__close:hover {
    background: none;
    opacity: 0.5;
}

.marquee-bar__close span {
    position: absolute;
    top: -999rem;
    left: -999rem;
}

.marquee-bar__close::before {
    content: "×";
    font-size: 1.75rem;
    position: absolute;
    display: block;
    color: white;
    top: 0;
    padding-top: 0.25rem;
    line-height: 1;
    left: 0;
    right: 0;
    text-align: center;
}

@media (min-width: 60em) {
    .marquee-bar__close::before {
        padding-top: 0.5rem;
    }
}
