/* chat.css */
.ai-chat-toggle {
    position: fixed;
    width: 60px;
    bottom: 25px;
    right: 90px;
    background: #007bff;
    padding: 16px 0px 16px 19px;
    border-radius: 50px;
    font-size: 20px;
    cursor: pointer;
    z-index: 999999;
}

.ai-chat-popup {
    width: 350px;
    height: 500px;
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
    z-index: 99998;
}

.ai-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f5f7fb;
}

.ai-chat-input {
    border: none;
    padding: 12px;
    font-size: 15px;
    border-top: 1px solid #ddd;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

/* messages */
.ai-message {
    max-width: 80%;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    line-height: 1.4;
    font-size: 14px;
}

/* user (right / blue) */
.ai-message.user {
    background: #007bff;
    color: #fff;
    margin-left: auto;
}

/* ai (left / gray) */
.ai-message.ai {
    background: #e5e8ec;
    color: #333;
    margin-right: auto;
}

/* action button style */
.ai-action-btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    margin: 4px 4px 0 0;
    cursor: pointer;
}
.ai-action-btn:hover {
    background: #005fcc;
}
