.Ai_modal{
    width: 420px;
    height: 600px;
    font-family: "Roboto", sans-serif;
    box-shadow: 1px 2px 4px 3px rgba(0, 0, 0, 0.2);
    border-radius: 15px 15px 0px 0;
    display: grid;
    grid-template-rows: 65px auto 70px;
    position: absolute;
    bottom: 1px;
    right: 20px;
}
.Ai_nav{
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #122538 url(../image/nav_bg.png);
    padding: 10px 20px;
    border-radius: 15px 15px 0px 0;
}
.Ai_manager{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.Ai_manager_logo{
    width: 40px;
}
.Ai_call_logo{
    width: 25px;
    cursor: pointer;
}
.Ai_manager_name{
    color: #e2e2e2;
    margin-top: 7px;
    font-weight: 450;
}


.Ai_message_storage{
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    overflow-y: auto;
}
.Ai_message{
    max-width: 70%;
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    background-color: #e8e8e8;
    padding: 10px;
    border-radius: 10px;
    font-weight: 420;
    padding: 10px 13px;
    gap: 3px;
}
.Ai_user_message{
    position: relative;
    right: -23%;
}
/* .Ai_user_message {
    align-items: end;
} */
.Ai_message_date{
    font-size: 12px;
    /* position: relative; */
    color: #00000096;
}
.Ai_message_date{
    display: flex;
    /* justify-content: center; */
    align-items: center;
    gap: 10px;
}
.message_user_name{
    font-size: 16px;
    font-weight: 500;
    color: black;
}


.Ai_panel{
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #12253873;
}

#Ai_request_input{
    width: 90%;
    height: 50px;
    padding: 10px;
    resize: none;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
}
#Ai_send_btn{
    height: 35px;
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.Ai_response_cont{
    white-space: pre-wrap;
}
.Ai_send_btn{
    width: 50px;
}
.Ai_message_value{
    white-space: pre-wrap;
}



.Ai_typing {
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    height: 20px;
}

.Ai_typing span {
    width: 8px;
    height: 8px;
    background-color: #555;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

/* задержка для каждой точки */
.Ai_typing span:nth-child(1) {
    animation-delay: 0s;
}

.Ai_typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.Ai_typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.Ai_message_loading{
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: start;
    background-color: #e8e8e8;
    border-radius: 10px;
    font-weight: 420;
    padding: 15px 13px;
}

.assistant_penel{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-left: 10px;
}
.assistant_btn{
    color: #dcdcdc;
    border: 1.5px solid #dcdcdc;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}
.assistant_btn_active{
    color: #122538;
    background-color: #eaeaea;
    font-weight: 500;
}

#instructions_icon_Ai{
    width: 25px;
    cursor: pointer;
}
.assistant_btn:hover{
    color: #122538;
    background-color: #eaeaea;
    font-weight: 500;
    transition: all .3s;
}