#ai-chatbot-widget {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.ai-chat-toggle {
    width: 56px; height: 56px; border-radius: 50%; background: #2563eb;
    color: #fff; border: none; cursor: pointer; font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15); display: flex;
    align-items: center; justify-content: center;
}
.ai-chat-toggle:hover { background: #1d4ed8; }
.ai-chat-window {
    display: none; width: 360px; height: 500px; background: #fff;
    border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
    flex-direction: column; overflow: hidden; margin-bottom: 12px;
}
.ai-chat-window.open { display: flex; }
.ai-chat-header {
    background: #2563eb; color: #fff; padding: 14px 16px;
    font-weight: 600; font-size: 15px;
}
.ai-chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
}
.ai-msg { margin-bottom: 10px; max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.ai-msg.user { background: #f1f5f9; align-self: flex-end; margin-left: auto; }
.ai-msg.assistant { background: #eff6ff; color: #1e40af; }
.ai-msg.loading { color: #94a3b8; font-style: italic; }
.ai-chat-input {
    display: flex; padding: 12px; border-top: 1px solid #e2e8f0;
}
.ai-chat-input input {
    flex: 1; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 10px 12px; font-size: 14px; outline: none;
}
.ai-chat-input button {
    margin-left: 8px; padding: 10px 16px; background: #2563eb;
    color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px;
}
