﻿.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.whatsapp-button {
    background-color: #25d366;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

    .whatsapp-button:hover {
        transform: scale(1.1);
    }

    .whatsapp-button img {
        width: 38px;
        height: 38px;
    }

.chat-popup {
    display: none;
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 320px;
    min-height: 320px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.chat-header {
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
}

    .chat-header img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        border: 2px solid white;
    }

    .chat-header div {
        line-height: 1.2;
    }

    .chat-header strong {
        display: block;
        font-size: 15px;
    }

    .chat-header small {
        font-size: 13px;
        opacity: 0.9;
    }

.chat-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.message-bubble {
    background: #e5e5ea;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 10px;
    max-width: 80%;
    color: #333;
    font-size: 14px;
}

    .message-bubble.bot {
        align-self: flex-start;
        background: #f1f1f1;
    }

.chat-input {
    display: flex;
    border-top: 1px solid #eee;
    background: #fafafa;
}

    .chat-input input {
        flex: 1;
        border: none;
        padding: 12px;
        font-size: 14px;
        border-radius: 0 0 0 15px;
        outline: none;
    }

    .chat-input button {
        background: #25d366;
        color: white;
        border: none;
        padding: 0 20px;
        font-size: 16px;
        cursor: pointer;
        border-radius: 0 0 15px 0;
    }

        .chat-input button:hover {
            background: #1ebe5b;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
