/* Animated Button Widget Styles */

.animated-btn-wrapper {
    display: block;
}

.animated-btn-link {
    text-decoration: none;
    display: inline-block;
}

.animated-btn {
    position: relative;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 0;
    padding-right: 20px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 50px;
    height: 40px;
}

.animated-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background-color: #27C77A;
    border-radius: 50px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.animated-btn:hover::before {
    width: 100%;
}

.icon-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    z-index: 1;
}

.icon-circle i {
    font-size: 18px;
    color: #fff;
}

.icon-circle svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.icon-text {
    position: relative;
    z-index: 1;
    padding-left: 5px;
    color: #003D2F;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.animated-btn:hover .icon-text {
    color: #fff;
}

/* Mobile: Disable animation and keep initial state */
@media (max-width: 767px) {
    .animated-btn::before {
        width: 40px !important;
        transition: none !important;
    }

    .animated-btn:hover::before {
        width: 40px !important;
    }

    .icon-text {
        color: #003D2F !important;
        transition: none !important;
    }

    .animated-btn:hover .icon-text {
        color: #003D2F !important;
    }
}
