.ai-chat-window{
    max-width: 440px;
    width: 100%;
    background: #fff;
    border-radius: 25px;
    position: relative;
    border: solid 1px #eeedf2;
}

.ai-chat-window-header h3 {
    font-family: 'Euclid Circular A';
    font-weight: bold;
    font-style: italic;
    font-size: 23px;
    display: flex;
    align-items: center;
}

.ai-chat-window-header h3  img {
    margin-left: 3px;
    margin-right: 3px;
}


.ai-chat-body{
    position: relative;  
}

.ai-chat-window .chat-window-close{
    background: url(../images/chat-close.png) no-repeat 0 0;
    background-size: 100%;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.ai-chat-window-header{
    background: #fff;
    padding: 26px 25px;
    font-weight: 600;
    color: #000;
    position: relative;
    border-radius: 25px 25px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-view{
    padding: 50px 75px 70px 55px;
    border-radius: 0 0 25px 25px;
    background: #f6f8fd;
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: 18px;
    line-height: 28px;
    font-family: 'Euclid Circular A';
    color: #000e33;
    position: relative;
}

.ai-chat-sender{
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    max-width: 235px;
    width: 100%;
    word-break: break-word;
    -webkit-box-shadow: 5px 0px 13px 0px rgba(224, 227, 236, 0.22);
    -moz-box-shadow: 5px 0px 13px 0px rgba(224, 227, 236, 0.22);
    box-shadow: 5px 0px 13px 0px rgba(224, 227, 236, 0.22);
    position: relative;
}

.ai-chat-sender::after{
    position: absolute;
    content: '';
    width: 0; 
    height: 0; 
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #fff;
  }

.ai-chat-reply{
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    max-width: 235px;
    width: 100%;
    word-break: break-word;
    position: relative;
    -webkit-box-shadow: 5px 0px 13px 0px rgba(224, 227, 236, 0.22);
    -moz-box-shadow: 5px 0px 13px 0px rgba(224, 227, 236, 0.22);
    box-shadow: 5px 0px 13px 0px rgba(224, 227, 236, 0.22);
}

.ai-chat-reply::after {
    position: absolute;
    content: '';
    width: 0; 
    height: 0; 
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;  
    border-right:10px solid #fff; 

  }


.ai-chat-sender-flex,.ai-chat-reply-flex{
    flex-direction: column;
    gap: 12px;
    flex-wrap: wrap;
}

.ai-chat-sender-flex{
    align-items: flex-end;
}

.ai-chat-reply-flex{
    align-items: flex-start;
}

.ai-chat-reply-icon{
    background: url(../images/logo-sm.png) no-repeat 0 0;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.ai-chat-reply-single{
    gap: 15px;
    display: flex;
}

.ai-chat-message-typing{
    border-top: solid 1px #F3F3F3;
    padding: 16px 36px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-message-typing textarea{
    flex-grow: 1;
    font-family: 'Montserrat';
    font-size: 16px;
    border: none;
    height: 35px;
}

.ai-chat-send-message{
    background: url(../images/send-message-icon.png) no-repeat 0 0;
    background-size: 100%;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.ai-chat-msg{
    transition: 2s all ease-in-out;
    opacity: 0;
}

.ai-chat-msg.fadein {
    animation: fadeIn 0.9s 1;
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.chat-bot{
    position: absolute;
    left: -140px;
    top:35px;
}

.chat-bot-user{
    position: absolute;
    right: -165px;
    top: 70%;
}

.ai-chat-reply-first{
    position: relative;
}

@media screen and (max-width:1450px) {
    .ai-chat-window {
        max-width: 30.34vw;
    }

    .chat-bot img{
        width: 9.65vw;
    }

    .ai-chat-view {
        padding: 3.45vw 5.17vw 4.83vw 3.79vw;
        gap: 2.07vw;
        font-size: 1.24vw;
        line-height: 1.93vw;
    }

    .ai-chat-window-header {
        padding: 1.79vw 1.72vw;
    }

    .chat-bot {
        left: -9.66vw;
        top: 2.41vw;
    }

    .chat-bot-user {
        right: -11.38vw;
    }

    .chat-bot-user img{
       width: 15.17vw;
    }

    .ai-chat-reply,.ai-chat-sender {
        padding: 2.07vw 1.38vw;
        max-width: 16.21vw;
    }

    .ai-chat-window-header h3{
        font-size: 1.59vw;
    }

    .ai-chat-window .chat-window-close{
        width: 1.10vw;
        height: 1.103vw;
    }

}

@media screen and (max-width:991px) {
    .ai-chat-window {
        max-width: 300px;
    }

    .ai-chat-window-header {
        padding: 17px 17px;
    }

    .ai-chat-window-header h3 img{
        width: 25px;
    }

    .ai-chat-window-header h3{
        font-size: 15px;
    }

    .ai-chat-window .chat-window-close {
        width: 12px;
        height: 12px;
    }

    .ai-chat-view {
        padding: 34px 51px 47px  47px;
        gap: 20px;
        font-size: 13px;
        line-height: 21px;
    }

    .chat-bot {
        left: -95px;
        top: 25px;
    }

    .chat-bot img {
        width: 95px;
    }

    .chat-bot-user {
        right: -125px;
    }

    .chat-bot-user img {
        width: 150px;
    }

    .ai-chat-reply, .ai-chat-sender {
        padding: 20px 13px;
        max-width: 160px;
    }
}

@media screen and (max-width:768px) {
    .ai-chat-view {
        padding: 34px 20px 28px 20px;
    }

    .ai-chat-reply, .ai-chat-sender {
        padding: 10px 8px;
        max-width: 90%;
    }

    .ai-chat-reply-single{
        width: 100%;
    }

    .ai-chat-window-header {
        padding: 15px;
    }
}

@media screen  and (max-width:640px){
    .chat-bot,.chat-bot-user{
        display: none;
    }

   
}

