/* --- Floating WhatsApp Button Styles --- */

/* The Button Container */
.floating-wpp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    /* Add the pulse animation */
    animation: pulse-green 2s infinite;
}

/* Icon Size */
.floating-wpp svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.floating-wpp:hover {
    background-color: #20b858;
    transform: scale(1.1);
    animation: none; /* Stop pulsing when hovering */
}

.floating-wpp:hover svg {
    transform: rotate(-10deg);
}

/* Tooltip Text (Hidden by default) */
.floating-wpp::after {
    content: "Chat with us";
    position: absolute;
    right: 70px;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, right 0.3s ease;
    font-family: sans-serif;
}

/* Show Tooltip on Hover */
.floating-wpp:hover::after {
    opacity: 1;
    visibility: visible;
    right: 75px; /* Moves slightly for animation effect */
}

/* Pulse Animation Keyframes */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .floating-wpp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .floating-wpp svg {
        width: 28px;
        height: 28px;
    }
    /* Hide tooltip on mobile to save space */
    .floating-wpp::after {
        display: none;
    }
}