:host {
  display: block;
}

.host-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Strip Bar Styles */
.ews-stripe-wrapper {
    width: max(200vw, 2000px);
    height: 30px;
    overflow: hidden;
    white-space: nowrap;
    margin: 0px !important;
    padding: 0px !important;
    display: flex;
}

.ews-stripe-wrapper.vertical {
    height: 100%;
    width: 30px;
    display: flex;
    flex-direction: column;
}

.ews-stripe-bar {
    width: max(200vw, 2000px);
    height: 100%;
    display: inline-block;
    flex-shrink: 0;
    margin-right: 0px !important;
    margin-left: 0px !important;
    --ews-stripe-color: var(--orange, #fa0);
    --ews-stripe-size: 15px;
    --ews-glow-color: rgba(255, 94, 0, 0.8);
    --ews-glow-size: 3px;
    background-image: repeating-linear-gradient(-45deg,
            var(--ews-glow-color) calc(-1 * var(--ews-glow-size)),
            var(--ews-stripe-color) 0,
            var(--ews-stripe-color) calc(var(--ews-stripe-size) - var(--ews-glow-size) / 2),
            var(--ews-glow-color) calc(var(--ews-stripe-size) + var(--ews-glow-size) / 2),
            transparent calc(var(--ews-stripe-size) + var(--ews-glow-size) / 2),
            transparent calc(2 * var(--ews-stripe-size)),
            var(--ews-glow-color) calc(2 * var(--ews-stripe-size) - var(--ews-glow-size)));
    background-size: 47px 47px;
}

.ews-stripe-bar.red {
    --ews-stripe-color: var(--red, #f23);
    --ews-stripe-size: 15px;
    --ews-glow-color: rgba(255, 17, 0, 0.8);
    --ews-glow-size: 3px;
}

.ews-stripe-bar.vertical {
    width: 100%;
    height: 100%;
}

/* Include the legacy combined classes just in case */
.ews-stripe-bar-red {
    width: max(200vw, 2000px);
    height: 30px;
    display: inline-block;
    flex-shrink: 0;
    --ews-stripe-color: var(--red, #f23);
    --ews-stripe-size: 15px;
    --ews-glow-color: rgba(255, 17, 0, 0.8);
    --ews-glow-size: 3px;
    background-image: repeating-linear-gradient(-45deg,
            var(--ews-glow-color) calc(-1 * var(--ews-glow-size)),
            var(--ews-stripe-color) 0,
            var(--ews-stripe-color) calc(var(--ews-stripe-size) - var(--ews-glow-size) / 2),
            var(--ews-glow-color) calc(var(--ews-stripe-size) + var(--ews-glow-size) / 2),
            transparent calc(var(--ews-stripe-size) + var(--ews-glow-size) / 2),
            transparent calc(2 * var(--ews-stripe-size)),
            var(--ews-glow-color) calc(2 * var(--ews-stripe-size) - var(--ews-glow-size)));
}

.ews-stripe-bar-vertical {
    height: max(2000px, 200vh);
    transform: translate3d(0, 0, 0);
    --ews-stripe-color: var(--orange, #fa0);
    --ews-stripe-size: 15px;
    --ews-glow-color: rgba(255, 94, 0, 0.8);
    --ews-glow-size: 3px;
    background-image: repeating-linear-gradient(45deg,
            var(--ews-glow-color) calc(-1 * var(--ews-glow-size)),
            var(--ews-stripe-color) 0,
            var(--ews-stripe-color) calc(var(--ews-stripe-size) - var(--ews-glow-size) / 2),
            var(--ews-glow-color) calc(var(--ews-stripe-size) + var(--ews-glow-size) / 2),
            transparent calc(var(--ews-stripe-size) + var(--ews-glow-size) / 2),
            transparent calc(2 * var(--ews-stripe-size)),
            var(--ews-glow-color) calc(2 * var(--ews-stripe-size) - var(--ews-glow-size)));
}

.ews-stripe-bar-red-vertical {
    height: max(2000px, 200vh);
    transform: translate3d(0, 0, 0);
    --ews-stripe-color: var(--red, #f23);
    --ews-stripe-size: 15px;
    --ews-glow-color: rgba(255, 17, 0, 0.8);
    --ews-glow-size: 3px;
    background-image: repeating-linear-gradient(45deg,
            var(--ews-glow-color) calc(-1 * var(--ews-glow-size)),
            var(--ews-stripe-color) 0,
            var(--ews-stripe-color) calc(var(--ews-stripe-size) - var(--ews-glow-size) / 2),
            var(--ews-glow-color) calc(var(--ews-stripe-size) + var(--ews-glow-size) / 2),
            transparent calc(var(--ews-stripe-size) + var(--ews-glow-size) / 2),
            transparent calc(2 * var(--ews-stripe-size)),
            var(--ews-glow-color) calc(2 * var(--ews-stripe-size) - var(--ews-glow-size)));
}

.ews-stripe-wrapper-vertical {
    height: max(200vh, 2000px);
    overflow: hidden;
    white-space: nowrap;
    margin: 0px !important;
    padding: 0px !important;
    display: flex;
}

.ews-stripe {
    background-color: black;
    width: 100vw;
    border-top: 1px solid var(--red, #f23);
    border-bottom: 1px solid var(--red, #f23);
    position: fixed;
}

/* Animations */
@keyframes loopStripVertical {
    from {
        background-position: 0px 0px;
    }

    to {
        background-position: 0px calc(-42.4264px * 47);
    }
}

@keyframes stripeAnimationVertical {
    from {
        background-position: 0px 0px;
    }

    to {
        background-position: 0px calc(-42.4264px * 47);
    }
}

@keyframes stripeAnimation {
    from {
        background-position: 0px 0px;
    }

    to {
        background-position: calc(-42.4264px * 47) 0px;
    }
}

@keyframes loopStrip {
    from {
        background-position: 0px 0px;
    }

    to {
        background-position: calc(-42.4264px * 47) 0px;
    }
}

.loop-stripe-vertical {
    animation: stripeAnimationVertical 15s infinite linear;
}

.loop-stripe-vertical.reverse {
    animation: stripeAnimationVertical 15s infinite linear reverse;
}

.loop-stripe-vertical-reverse {
    animation: loopStripVertical 15s infinite linear reverse;
}

.stripe-animation {
    animation: stripeAnimation 10s infinite linear;
}

.stripe-animation-reverse {
    animation: stripeAnimation 10s infinite linear reverse;
}

.loop-stripe {
    animation: stripeAnimation infinite linear;
    animation-duration: 10s;
}

.loop-stripe.reverse {
    animation: loopStrip infinite linear reverse;
}

.loop-stripe-reverse {
    animation: loopStrip infinite linear reverse;
    animation-duration: 10s;
}

.anim-duration-5 {
    animation-duration: 5s !important;
}

.anim-duration-10 {
    animation-duration: 10s !important;
}

.anim-duration-20 {
    animation-duration: 20s !important;
}
