.scroll-ticker-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.scroll-ticker-track {
    display: flex;
    width: 100%;
    position: relative;
    align-items: center;
}

.scroll-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 100%;
    will-change: transform;
    animation: scroll-ticker linear infinite;
}

.scroll-ticker-wrapper[data-direction="left"] .scroll-ticker-content {
    animation-name: scroll-left;
}

.scroll-ticker-wrapper[data-direction="right"] .scroll-ticker-content {
    animation-name: scroll-right;
}

.scroll-ticker-wrapper[data-pause="yes"]:hover .scroll-ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ticker-item a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.ticker-item.icon-left {
    flex-direction: row;
}

.ticker-item.icon-right {
    flex-direction: row-reverse;
}

.ticker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ticker-icon svg {
    transition: all 0.3s ease;
}

.ticker-text {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Smooth scrolling animations */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

/* Ensure smooth rendering */
.scroll-ticker-content {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
}

/* Editor Mode Styles */
.elementor-editor-active .scroll-ticker-content {
    animation: none !important;
}

.elementor-editor-active .scroll-ticker-content:nth-child(2) {
    display: none;
}
