/* ===== WHATSAPP CHATBOT ===== */

.whatsapp-chat-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.whatsapp-float-btn {
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37,211,102,0.4);
    animation: pulseWhatsapp 2s infinite;
    transition: 0.3s;
}

.whatsapp-float-btn:hover {
    transform: scale(1.08);
}

.whatsapp-chat-box {
    width: 330px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: absolute;
    bottom: 80px;
    right: 0;
    display: none;
    animation: slideUp 0.3s ease;
}

.whatsapp-chat-box.active {
    display: block;
}

.whatsapp-header {
    background: #25D366;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-header h3 {
    margin: 0;
    font-size: 16px;
}

.whatsapp-header span {
    font-size: 12px;
}

.whatsapp-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.whatsapp-body {
    padding: 20px;
    background: #f5f5f5;
    min-height: 180px;
}

.chat-message {
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    width: fit-content;
    max-width: 90%;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.whatsapp-footer {
    display: flex;
    padding: 12px;
    gap: 10px;
    background: white;
}

.whatsapp-footer input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 30px;
    outline: none;
}

.whatsapp-footer button {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
}

.whatsapp-footer button:hover {
    background: #1ebe5d;
}

@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0.6);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(37,211,102,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37,211,102,0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .whatsapp-chat-box {
        width: 300px;
    }

    .whatsapp-float-btn {
        width: 58px;
        height: 58px;
    }
}
