.angie-hover-btn-dc59c8f4 {
    --color-1: #009640;
    --color-2: #19a052;
    --color-3: #32ab65;
    --color-4: #4cb577;
    --color-5: #66c089;
    --color-6: #007a35;
    --color-7: #00662c;
    --color-8: #004d21;

    background-image: linear-gradient(
        90deg,
        var(--color-1),
        var(--color-2),
        var(--color-3),
        var(--color-4),
        var(--color-5),
        var(--color-6),
        var(--color-7),
        var(--color-8),
        var(--color-1) /* Loop back */
    );
    background-size: 300% 100%;
    background-position: 0% 50%;
    transition: background-position var(--hover-speed, 1.5s) ease-in-out, transform 0.3s;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden; /* Keep icon inside button */
}

/* Default Elementor button sizes mapping to ensure they apply correctly */
.angie-hover-btn-dc59c8f4.elementor-size-xs {
    padding: 10px 20px;
    font-size: 13px;
}
.angie-hover-btn-dc59c8f4.elementor-size-sm {
    padding: 12px 24px;
    font-size: 15px;
}
.angie-hover-btn-dc59c8f4.elementor-size-md {
    padding: 15px 30px;
    font-size: 18px;
}
.angie-hover-btn-dc59c8f4.elementor-size-lg {
    padding: 20px 40px;
    font-size: 20px;
}
.angie-hover-btn-dc59c8f4.elementor-size-xl {
    padding: 25px 50px;
    font-size: 24px;
}

/* Override default elementor button display rules to prevent bottom gap */
.elementor-button.angie-hover-btn-dc59c8f4 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important; /* Ensure no extra space below text */
}

.angie-hover-btn-dc59c8f4:hover {
    background-position: 100% 50%;
}

.angie-hover-btn-dc59c8f4 .elementor-button-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1; /* Text behind the animation container */
    width: 100%;
    line-height: 1; /* Match the button wrapper */
}

.angie-hover-btn-dc59c8f4 .elementor-button-icon {
    display: flex;
    align-items: center;
    margin-right: 8px;
    line-height: 1;
}

.angie-hover-btn-dc59c8f4 .elementor-button-icon svg {
    width: 1em;
    height: 1em;
}

/* Animation Container */
.angie-car-container-dc59c8f4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Full height to center */
    pointer-events: none; /* Don't interfere with clicks */
    z-index: 2; /* Above text */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

.angie-hover-btn-dc59c8f4:hover .angie-car-container-dc59c8f4 {
    opacity: 1; /* Show on hover */
}

.angie-car-animation-dc59c8f4 {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Animation is paused until hover */
    animation-play-state: paused;
}

.angie-hover-btn-dc59c8f4:hover .angie-car-animation-dc59c8f4 {
    /* Play animation only on hover */
    animation-play-state: running;
}

/* Left to Right Animation */
.angie-car-animation-dc59c8f4.anim-ltr-dc59c8f4 {
    left: -40px;
    animation-name: driveIconLTR-dc59c8f4;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes driveIconLTR-dc59c8f4 {
    0% { transform: translateX(0); left: -40px; }
    100% { transform: translateX(0); left: calc(100% + 40px); }
}

/* Right to Left Animation */
.angie-car-animation-dc59c8f4.anim-rtl-dc59c8f4 {
    left: calc(100% + 40px);
    /* Flip the icon horizontally for right-to-left motion */
    animation-name: driveIconRTL-dc59c8f4;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Using transform to flip the icon and move it from right to left */
@keyframes driveIconRTL-dc59c8f4 {
    0% { transform: translateX(0) scaleX(-1); left: calc(100% + 40px); }
    100% { transform: translateX(0) scaleX(-1); left: -40px; }
}