#ai-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 340px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
}

#ai-chat-header {
    background: #07c160;
    color: white;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

#ai-chat-body {
    display: none;
    flex-direction: column;
    background: #f5f5f5;
    height: 420px;
}

#ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.ai-msg.bot {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #333;
}

.ai-msg.user {
    background: #07c160;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-msg.typing {
    color: #999;
    font-style: italic;
}

#ai-chat-input-area {
    display: flex;
    padding: 12px;
    background: white;
    gap: 8px;
    border-top: 1px solid #eee;
}

#ai-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
}

#ai-chat-input:focus {
    border-color: #07c160;
}

#ai-chat-input-area button {
    background: #07c160;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

#ai-chat-input-area button:hover {
    background: #06ad56;
}

#ai-chat-input-area button:disabled {
    background: #ccc;
    cursor: not-allowed;
}
