@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.wp-element-notification-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: calc(0px + var(--wp--adminbar--top));
    width: 100vw;
    height: clamp(1.33rem, 2.22vw, 2rem);
    font-size: clamp(0.67rem, 1.11vw, 1rem);
    padding-top: clamp(0.33rem, 0.56vw, 0.5rem);
    padding-bottom: clamp(0.33rem, 0.56vw, 0.5rem);
    z-index: 999;
    overflow: hidden;
}

.wp-element-notification-bar__wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.wp-element-notification-bar__text {
	font-weight: 700;
    line-height: 1;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}


.wp-element-notification-bar.is-scrolling-text .wp-element-notification-bar__text {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: left;

    transform: translateX(100%);
    animation: scroll-left 30s linear infinite;
}

@media screen and (max-width: 767px) {
    .wp-element-notification-bar .wp-element-notification-bar__text {
        position: absolute;
        width: 100%;
        height: 100%;
        text-align: left;

        transform: translateX(100%);
        animation: scroll-left 30s linear infinite;
    }
}

:root {
    --wp--notification-bar--height: 100px;
}
