/* =============================================================================
   WhatsApp Floating Button Styles
   ============================================================================= */

.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* Position variants */
.whatsapp-float--right {
    right: 1.5rem;
}

.whatsapp-float--left {
    left: 1.5rem;
}

/* Hover state */
.whatsapp-float:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff;
    text-decoration: none;
}

/* Icon */
.whatsapp-float__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.whatsapp-float__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Text label */
.whatsapp-float__text {
    white-space: nowrap;
}

/* Pulse animation */
.whatsapp-float__pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: #25d366;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* =============================================================================
   Responsive Styles
   ============================================================================= */

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem;
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .whatsapp-float--right {
        right: 1rem;
    }

    .whatsapp-float--left {
        left: 1rem;
    }

    .whatsapp-float__icon {
        width: 22px;
        height: 22px;
    }

    .whatsapp-float__icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Compact version - icon only on small screens */
@media (max-width: 480px) {
    .whatsapp-float {
        padding: 0.875rem;
        border-radius: 50%;
    }

    .whatsapp-float__text {
        display: none;
    }

    .whatsapp-float__icon {
        width: 26px;
        height: 26px;
    }

    .whatsapp-float__icon svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-float__pulse {
        border-radius: 50%;
    }
}

/* Adjust position when there's a bottom nav or other fixed elements */
@media (max-width: 768px) {
    .has-bottom-nav .whatsapp-float {
        bottom: 5rem;
    }
}
