﻿
#ai-chat-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1f7a3f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    z-index: 2147483647;
}

.ai-chat-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 360px;
    max-height: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    z-index: 2147483647;
}

    .ai-chat-window.is-hidden {
        display: none;
    }

.ai-chat-header {
    background: #1f7a3f;
    color: #fff;
    padding: 10px 12px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .ai-chat-header button {
        background: none;
        border: none;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
    }

.ai-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

.user-msg {
    text-align: right;
    margin: 6px 0;
}

.ai-msg {
    text-align: left;
    margin: 6px 0;
    color: #1f7a3f;
}

.ai-input {
    display: flex;
    border-top: 1px solid #ddd;
}

    .ai-input input {
        flex: 1;
        border: none;
        padding: 10px;
        outline: none;
    }

    .ai-input button {
        border: none;
        background: #1f7a3f;
        color: #fff;
        padding: 0 16px;
        cursor: pointer;
    }   


.ai-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 13px;
}

    .ai-table th,
    .ai-table td {
        border: 1px solid #ccc;
        padding: 6px;
        text-align: center;
    }

    .ai-table th {
        background: #f2f2f2;
        font-weight: 600;
    }