.iau-newsticker {
    --iau-newsticker-height: 44px;
    --iau-newsticker-gap: 36px;
    --iau-newsticker-radius: 0px;
    --iau-newsticker-bg: #f3f4f6;
    --iau-newsticker-color: #1f2937;
    --iau-newsticker-link: #111827;
    --iau-newsticker-label-bg: #b71c1c;
    --iau-newsticker-label-color: #ffffff;
    --iau-newsticker-distance: 0px;
    --iau-newsticker-duration: 20s;

    display: flex;
    width: 100%;
    min-width: 0;
    height: var(--iau-newsticker-height);
    overflow: hidden;
    border-radius: var(--iau-newsticker-radius);
    background: var(--iau-newsticker-bg);
    color: var(--iau-newsticker-color);
    line-height: 1.25;
}

.iau-newsticker__label {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 100%;
    padding: 0 1rem;
    background: var(--iau-newsticker-label-bg);
    color: var(--iau-newsticker-label-color);
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.iau-newsticker__viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.iau-newsticker__track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: 100%;
    height: 100%;
    will-change: transform;
}

.iau-newsticker__group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 100%;
    padding-inline-end: var(--iau-newsticker-gap);
    white-space: nowrap;
}

.iau-newsticker__item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: calc(var(--iau-newsticker-gap) / 2);
    margin-inline-end: var(--iau-newsticker-gap);
}

.iau-newsticker__link,
.iau-newsticker__text {
    color: var(--iau-newsticker-color);
    text-decoration: none;
}

.iau-newsticker__link {
    color: var(--iau-newsticker-link);
}

.iau-newsticker__link:hover,
.iau-newsticker__link:focus-visible {
    color: var(--iau-newsticker-link);
    text-decoration: underline;
}

.iau-newsticker__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.iau-newsticker__separator {
    opacity: 0.55;
}

.iau-newsticker.is-ready[data-direction="left"] .iau-newsticker__track {
    animation: iau-newsticker-left var(--iau-newsticker-duration) linear infinite;
}

.iau-newsticker.is-ready[data-direction="right"] .iau-newsticker__track {
    animation: iau-newsticker-right var(--iau-newsticker-duration) linear infinite;
}

.iau-newsticker[data-pause="1"]:hover .iau-newsticker__track,
.iau-newsticker[data-pause="1"]:focus-within .iau-newsticker__track {
    animation-play-state: paused;
}

@keyframes iau-newsticker-left {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(calc(-1 * var(--iau-newsticker-distance)), 0, 0);
    }
}

@keyframes iau-newsticker-right {
    from {
        transform: translate3d(calc(-1 * var(--iau-newsticker-distance)), 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 575.98px) {
    .iau-newsticker__label {
        padding-inline: 0.75rem;
        font-size: 0.875rem;
    }

    .iau-newsticker__item {
        font-size: 0.9375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iau-newsticker[data-respect-motion="1"] {
        height: auto;
        min-height: var(--iau-newsticker-height);
    }

    .iau-newsticker[data-respect-motion="1"] .iau-newsticker__viewport {
        overflow: hidden;
    }

    .iau-newsticker[data-respect-motion="1"] .iau-newsticker__track {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: var(--iau-newsticker-height);
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }

    .iau-newsticker[data-respect-motion="1"] .iau-newsticker__group {
        flex: 1 1 auto;
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: var(--iau-newsticker-height);
        padding-block: 0.5rem;
        white-space: normal;
    }

    .iau-newsticker[data-respect-motion="1"] .iau-newsticker__item {
        flex: 0 1 auto;
        max-width: 100%;
        white-space: normal;
    }

    .iau-newsticker[data-respect-motion="1"] .iau-newsticker__link,
    .iau-newsticker[data-respect-motion="1"] .iau-newsticker__text {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .iau-newsticker[data-respect-motion="1"] .iau-newsticker__group[aria-hidden="true"] {
        display: none;
    }
}
