/* WhatsApp Floating Button Component */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    outline: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.3);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Tooltip/Text Display */
.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: Arial, sans-serif;
    pointer-events: none;
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 15px;
        right: 15px;
        font-size: 28px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-float .tooltip {
        display: none; /* Hide tooltip on mobile for better UX */
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 12px;
        right: 12px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}

/* Alternative button with text label */
.whatsapp-float.with-text {
    width: auto;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    font-weight: 500;
}

.whatsapp-float.with-text .whatsapp-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.whatsapp-float.with-text .button-text {
    display: inline-block;
    vertical-align: middle;
}

/* Pulse animation effect */
.whatsapp-float.pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Hide on very small screens if needed */
@media (max-width: 320px) {
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 10px;
        right: 10px;
    }
    
    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
}