/**
 * Tridhyatech WhatsApp Chat Styles
 *
 * @category  Tridhyatech
 * @package   Tridhyatech_WhatsappChat
 * @author    Tridhyatech
 * @copyright Tridhyatech (https://lilamigo.com)
 * @license   https://opensource.org/licenses/MIT
 */

.whatsapp-chat-widget {
    position: fixed;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 25px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 200px;
    z-index: 9999;
}

.whatsapp-chat-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.whatsapp-chat-widget .whatsapp-chat-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    justify-content: center;
    width: 100%;
}

.whatsapp-chat-widget .whatsapp-icon {
    display: flex;
    margin-right: 8px;
    align-items: center;
}

.whatsapp-chat-widget .whatsapp-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Position classes */
.position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.position-top-right {
    top: 20px;
    right: 20px;
}

.position-top-left {
    top: 20px;
    left: 20px;
}

.position-middle-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.position-middle-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .whatsapp-chat-widget[data-mobile="false"] {
        display: none !important;
    }

    .whatsapp-chat-widget .whatsapp-icon {
        margin-right: 0px;
    }
    
    .whatsapp-chat-widget {
        font-size: 12px;
        padding: 15px !important;
        max-width: 160px;
    }
    
    .whatsapp-chat-widget .whatsapp-text {
        display: none;
    }
    
    .whatsapp-chat-widget.mobile-only {
        border-radius: 50%;
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
    }
    
    .whatsapp-chat-widget.mobile-only .whatsapp-icon {
        margin-right: 0;
    }
}

/* Desktop visibility */
@media (min-width: 769px) {
    .whatsapp-chat-widget[data-desktop="false"] {
        display: none !important;
    }
}

/* Animation for mobile */
@media (max-width: 768px) {
    .whatsapp-chat-widget {
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        }
    }
}
