/* WhatsApp Floating Widget Styles */

.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-widget:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
    color: white;
}

.whatsapp-widget:focus {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 2px;
}

.whatsapp-widget i {
    font-size: 28px;
    color: white;
}


/* Pulse animation */

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}


/* Tooltip */

.whatsapp-widget::before {
    content: 'Chat with us on WhatsApp';
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.whatsapp-widget::after {
    content: '';
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-widget:hover::before,
.whatsapp-widget:hover::after {
    opacity: 1;
    visibility: visible;
}


/* Mobile responsive */

@media (max-width: 768px) {
    .whatsapp-widget {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
    .whatsapp-widget i {
        font-size: 24px;
    }
    /* Hide tooltip on mobile */
    .whatsapp-widget::before,
    .whatsapp-widget::after {
        display: none;
    }
}


/* Extra small mobile devices */

@media (max-width: 480px) {
    .whatsapp-widget {
        width: 45px;
        height: 45px;
        bottom: 12px;
        left: 12px;
    }
    .whatsapp-widget i {
        font-size: 20px;
    }
}


/* High contrast mode support */

@media (prefers-contrast: high) {
    .whatsapp-widget {
        border: 2px solid #000;
    }
}


/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
    .whatsapp-widget {
        animation: none;
    }
    .whatsapp-widget:hover {
        transform: none;
    }
}