@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

.custom_chat_main_container{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    height: 540px;
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
    z-index: 102;
}
.custom_chat_main_container{
    display: none;
}
.custom_chat_main_container.open_chat_box{
    display: block;

}

.custom_chat_header{
    width: 100%;
    height: 48px;
    background-color: #000;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.custom_chat_header p{
    margin-bottom: 0;
    color: #FFFFFF;
    font-weight: 450;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    line-height: 20px;
}

.custom_chat_header .custom_chat_close_btn img{
    width: 24px;
    height: 24px;
}

.custom_chat_header .custom_chat_close_btn{
    border: none;
    background: none;
    width: 24px;
    height: 24px;
}

.message_box_block{
    position: relative;
    width: 100%;
    height: calc(100% - 48px);
}

.chat_text_wrapper{
    position: absolute;
    bottom: 0;
    padding: 16px;
    width: 100%;
    background-color: #FFFFFF;
    border-bottom-left-radius: 16px ;
    border-bottom-right-radius: 16px ;
    
}
.chat_input_text_block{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.chat_input_text_block textarea{
    width: 100%;
    border: 1px solid #8888888e;
    overflow: auto;
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    resize: none;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    text-decoration: none;
}

.chat_input_text_block textarea::placeholder{
   font-size: 14px;
   text-decoration: none;
}

.chat_text_wrapper .chat_input_text_block .chat_send_button {
    background: none;
    border: none;
}
 
.message_box_block .message_box_main_container {
    width: 100%;
    height: calc(100% - 96px);
    padding: 0 16px 0 16px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    position: absolute;
    top: 20px;
}

.message_box_block .message_box_main_container::-webkit-scrollbar{
    width: 3px;
}
.message_box_block .message_box_main_container::-webkit-scrollbar-track{
    background: #ececec;
}
.message_box_block .message_box_main_container::-webkit-scrollbar-thumb{
    background: #000;
}

.message_box_block .message_box_main_container {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    position: relative;
  }
  
  .message_box_block .message_box_main_container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 40px;
    border-radius: 2px;
    pointer-events: none;
  }

.message_box_main_container ol{
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.message_box_main_container ol .messege_sender {
    width: 100%;
    display: flex;
    margin: 20px 0;
}
.message_box_main_container ol .messege_sender p{
    margin-bottom: 0;
    max-width: 80%;
    background-color: #e3ecf1;
    color: #000;
    padding: 8px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    font-size: 14px;
    font-weight: normal;
    font-family: "Manrope",sans-serif ;
    line-height: 20px;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
}
.message_box_main_container ol .messege_reciver{
    display: flex;
    width: 100%;
    justify-content: flex-end;   
    margin: 20px 0;   
}

.message_box_main_container ol .messege_reciver p{
    max-width: 80%;
    background-color: #000;
    color: #FFFFFF;
    padding: 8px;
    border-top-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    font-family: "Manrope",sans-serif ;
    line-height: 20px;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
}
.message_box_main_container ol .messege_reciver p span{
    text-align: end;
    font-size: 9px;
    font-family: "Manrope",sans-serif;
    padding-top: 2px;
    color: #fff;
    min-width: 40px;
}
.message_box_main_container ol .messege_sender p span{
    text-align: end;
    font-size: 9px;
    font-family: "Manrope",sans-serif;
    padding-top: 2px;
    color: #000;
    min-width: 40px;
}

.chat_send_button svg{
    width: 28px;
    height: 28px;
}
.message_box_main_container ol .messege_sender p a,
.message_box_main_container ol .messege_reciver p a{
    text-decoration: underline;
    color: #000;
} 
.message_box_main_container .placeholder-glow .placeholder{
    border-radius: 8px;
}
@media only screen and (max-width:575px){
    .custom_chat_main_container{
        width: 320px;
        height: 480px;
        border-radius: 12px;
    }
    .custom_chat_header{
        border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    }

    .message_box_main_container ol .messege_sender{
        margin: 16px 0;
    }
    .message_box_main_container ol .messege_reciver{
        margin: 16px 0;
    }
}

@media only screen and (max-width: 390px){
    .chat_send_button svg{ 
        width: 24px;
        height: 24px;
    }

    .custom_chat_main_container {
        width: 290px;
        height: 432px;
        right: 16px;
    }
    .message_box_main_container ol .messege_sender{
        margin: 14px 0;
    }
    .message_box_main_container ol .messege_reciver{
        margin: 14px 0;
    }

    .chat_input_text_block textarea::placeholder{
        font-size: 12px;
        text-decoration: none;
     }
}

@media only screen and (max-width: 325px){
    .custom_chat_main_container{
        right: 10px;
    }
}