/**
 * Elementor News Ticker – frontend styles
 * Horizontale oneindige scroll-animatie.
 * Sticky optie: vastgeplakt aan boven- of onderkant viewport.
 */

.ent-news-ticker {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    min-height: 48px;
}

/* Sticky: bovenzijde viewport */
.ent-news-ticker--sticky-top {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Sticky: onderzijde viewport */
.ent-news-ticker--sticky-bottom {
    position: sticky;
    bottom: 0;
    z-index: 999;
}

.ent-news-ticker__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.ent-news-ticker__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ent-news-ticker__track {
    display: flex;
    width: max-content;
    animation: ent-ticker-scroll var(--ent-ticker-duration, 30s) linear infinite;
}

.ent-news-ticker--right .ent-news-ticker__track {
    animation-direction: reverse;
}

.ent-news-ticker--pause-hover:hover .ent-news-ticker__track {
    animation-play-state: paused;
}

@keyframes ent-ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ent-news-ticker__content {
    display: flex;
    align-items: center;
    gap: 0;
    padding-right: 2rem;
    white-space: nowrap;
}

.ent-news-ticker__content--duplicate {
    padding-right: 0;
}

.ent-news-ticker__item {
    display: inline-flex;
    align-items: center;
}

.ent-news-ticker__item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ent-news-ticker__item-icon svg {
    flex-shrink: 0;
}

.ent-news-ticker__separator {
    display: inline-flex;
    align-items: center;
    opacity: 0.85;
}

.ent-news-ticker__link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.ent-news-ticker__link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.ent-news-ticker__link:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
