/* ==================================================
   WHATSAPP FLOATING BUTTON CSS
================================================== */
.whatsapp-floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9990;
    /* Only the round button receives clicks — not the full flex row / tooltip area */
    pointer-events: none;
}

/* Tooltip Message Design */
.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    white-space: nowrap;
    background-color: #ffffff;
    color: #334155;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    border: 1px solid #e2e8f0;
}

.whatsapp-tooltip.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Main Button Design */
.whatsapp-float-btn {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: pulse-animation 2s infinite;
    cursor: pointer;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* Pulse Animation Effect */
@keyframes pulse-animation {
    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); }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .whatsapp-floating-container {
        bottom: max(14px, env(safe-area-inset-bottom, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
    }

    .whatsapp-float-btn {
        width: 48px;
        height: 48px;
        font-size: 26px;
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 600px) {
    .whatsapp-floating-container {
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        right: max(10px, env(safe-area-inset-right, 0px));
    }

    .whatsapp-float-btn {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }
}

/* Cart drawer open — keep floating widget below drawer and non-interactive */
body.mini-cart-open .whatsapp-floating-container {
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}


