/* WhatsApp Floating Button Styles */

.wfb-floating-button {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wfb-floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.wfb-floating-button:active {
    transform: scale(0.95);
}

/* Position variants */
.wfb-bottom-right {
    right: 20px;
}

.wfb-bottom-left {
    left: 20px;
}

/* Tooltip */
.wfb-tooltip {
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

.wfb-bottom-left .wfb-tooltip {
    right: auto;
    left: 70px;
}

.wfb-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #fff;
}

.wfb-bottom-left .wfb-tooltip::after {
    right: auto;
    left: -8px;
    border-width: 8px 8px 8px 0;
    border-color: transparent #fff transparent transparent;
}

.wfb-floating-button:hover .wfb-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Pulse animation */
@keyframes wfb-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.wfb-floating-button {
    animation: wfb-pulse 2s infinite;
}

.wfb-floating-button:hover {
    animation: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wfb-floating-button {
        width: 56px;
        height: 56px;
        bottom: 15px;
    }
    
    .wfb-bottom-right {
        right: 15px;
    }
    
    .wfb-bottom-left {
        left: 15px;
    }
    
    .wfb-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .wfb-floating-button {
        width: 50px;
        height: 50px;
        bottom: 10px;
    }
    
    .wfb-bottom-right {
        right: 10px;
    }
    
    .wfb-bottom-left {
        left: 10px;
    }
    
    .wfb-floating-button svg {
        width: 28px;
        height: 28px;
    }
}
