#whatsapp-bubble {
    position: fixed;
    bottom: 40px;
    right: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    z-index: 9999;
}

#whatsapp-icon {
    color: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #25d366, #128c7e);
}

#whatsapp-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

#whatsapp-chatbox {
    width: 520px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(1);
    opacity: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#whatsapp-chatbox.hidden {
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #374C69, #128c7e);
    color: #fff;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header::before {
    content: "💬";
    font-size: 18px;
}

.chat-body {
    padding: 20px;
    height: 180px;
    overflow-y: auto;
    font-size: 14px;
    background: linear-gradient(180deg, #f8fffe 0%, #f0f9f6 100%);
    position: relative;
}

.chat-body p {
    margin: 0 0 12px 0;
    padding: 12px 16px;
    background: #fff;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.1);
    color: #374151;
    line-height: 1.5;
    max-width: 85%;
}

.chat-footer {
    display: flex;
    background: #fff;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.chat-footer input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #374151;
    font-family: inherit;
}

.chat-footer input::placeholder {
    color: #9ca3af;
}

.chat-footer button {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    color: white;
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.chat-footer button:hover {
    background: linear-gradient(135deg, #128c7e, #0a6b5d);
}

.chat-footer button:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    #whatsapp-chatbox {
        width: 280px;
        right: -10px;
    }
    
    #whatsapp-bubble {
        right: 15px;
        bottom: 15px;
    }
}
