/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    width: auto;
    height: 60px;
    bottom: 79px;
    right: 4px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.whatsapp-float:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.25);
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 100%;
    text-decoration: none;
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.whatsapp-button:hover,
.whatsapp-button:focus {
    color: white;
    text-decoration: none;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.whatsapp-icon svg {
    width: 24px;
    height: 24px;
}

.whatsapp-text {
    margin-left: 10px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    opacity: 1;
    max-width: 200px;
    transition: all 0.3s ease;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .whatsapp-button {
        padding: 0;
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .whatsapp-text {
        display: none;
    }

    .whatsapp-icon {
        margin: 0;
    }
}

/* Animation for entrance */
@keyframes whatsappPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-float.pulse {
    animation: whatsappPulse 2s infinite;
}

/* Hide/show animation */
.whatsapp-float.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.whatsapp-float.visible {
    opacity: 0.9;
    transform: translateY(0);
    pointer-events: all;
}

/* Accessibility improvements */
.whatsapp-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .whatsapp-float {
        display: none !important;
    }
}