.otk-marquee-wrapper {
    --otk-marquee-duration: 51s;
    --otk-marquee-speed: 50;
    --otk-marquee-shift: 50%;
    --otk-gap: 24px;
    --otk-divider-spacing: 16px;
    --otk-text-color: #ffffff;
    --otk-divider-color: currentColor;
    --otk-divider-size: 0.75em;
    --otk-stroke-color: currentColor;
    --otk-stroke-width: 1px;
    --otk-stroke-fill-color: transparent;
    --otk-align-items: center;

    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
    color: var(--otk-text-color);
}

.otk-marquee-wrapper.otk-marquee-fade {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.otk-marquee-track {
    display: flex;
    align-items: var(--otk-align-items);
    gap: 0;
    width: max-content;
    min-width: max-content;
    will-change: transform;
    animation-duration: var(--otk-marquee-duration);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
    transform: translate3d(0, 0, 0);
}

.otk-marquee-wrapper.otk-marquee-pause-hover:hover .otk-marquee-track {
    animation-play-state: paused;
}

.otk-marquee-wrapper[data-loop-mode="infinite"][data-direction="left"] .otk-marquee-track {
    animation-name: otk-marquee-infinite-left;
}

.otk-marquee-wrapper[data-loop-mode="infinite"][data-direction="right"] .otk-marquee-track {
    animation-name: otk-marquee-infinite-right;
}

.otk-marquee-wrapper[data-loop-mode="restart"][data-direction="left"] .otk-marquee-track {
    animation-name: otk-marquee-restart-left;
}

.otk-marquee-wrapper[data-loop-mode="restart"][data-direction="right"] .otk-marquee-track {
    animation-name: otk-marquee-restart-right;
}

.otk-marquee-group {
    display: flex;
    align-items: var(--otk-align-items);
    gap: 0;
    width: max-content;
    min-width: max-content;
    white-space: nowrap;
}

.otk-marquee-item,
.otk-marquee-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    flex: 0 0 auto;
}

.otk-marquee-item {
    color: var(--otk-text-color);
}

.otk-marquee-no-divider .otk-marquee-item:not(:last-child),
.otk-marquee-wrapper[data-loop-mode="infinite"].otk-marquee-no-divider .otk-marquee-group .otk-marquee-item:last-child {
    margin-right: var(--otk-gap);
}

.otk-marquee-item.otk-stroke {
    color: var(--otk-stroke-fill-color);
    -webkit-text-stroke-color: var(--otk-stroke-color);
    -webkit-text-stroke-width: var(--otk-stroke-width);
    text-stroke-color: var(--otk-stroke-color);
    text-stroke-width: var(--otk-stroke-width);
}

.otk-marquee-divider {
    color: var(--otk-divider-color);
    font-size: var(--otk-divider-size);
    margin-right: var(--otk-divider-spacing);
    margin-left: var(--otk-divider-spacing);
}

.otk-marquee-divider svg,
.otk-marquee-divider i {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

@keyframes otk-marquee-infinite-left {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(-1 * var(--otk-marquee-shift)), 0, 0);
    }
}

@keyframes otk-marquee-infinite-right {
    from {
        transform: translate3d(calc(-1 * var(--otk-marquee-shift)), 0, 0);
    }

    to {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes otk-marquee-restart-left {
    from {
        transform: translate3d(100vw, 0, 0);
    }

    to {
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes otk-marquee-restart-right {
    from {
        transform: translate3d(-100%, 0, 0);
    }

    to {
        transform: translate3d(100vw, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .otk-marquee-track {
        animation-duration: 1ms;
        animation-iteration-count: 1;
    }
}