.anti-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Editor-specific styles */
.anti-ticker-wrapper.elementor-editor-active {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 10px 0;
    background: #f5f5f5;
}

.anti-ticker-wrapper.elementor-editor-active .anti-ticker-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    animation: none !important;
    transform: none !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    gap: 0 !important;
}

.anti-ticker-wrapper.elementor-editor-active .anti-ticker-image {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.anti-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    transform: translateX(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.anti-ticker-text {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.4;
}

.anti-ticker-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    height: 100%;
    flex-shrink: 0;
}

.anti-ticker-image img {
    display: block;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Animation classes */
.anti-ticker-track[data-direction="left"] {
    animation: ticker-left linear infinite;
}

.anti-ticker-track[data-direction="right"] {
    animation: ticker-right linear infinite;
}

@keyframes ticker-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes ticker-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
} 