.chat_window {
  /* position: absolute; */
  /* width: calc(100% - 20px); */
  /* max-width: 800px; */
  /* height: 500px; */
  border-radius: 10px;
  /* background-color: #fff; */
  left: 50%;
  top: 50%;
  /* transform: translateX(-50%) translateY(-50%); */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: #f8f8f8;
  overflow: hidden;
}

.chat_window {
  overflow: hidden;
}

.messages {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.messages::-webkit-scrollbar {
  width: 8px;
}

.messages::-webkit-scrollbar-track {
  background: transparent;
}

.messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.messages::-webkit-scrollbar-thumb:active {
  background-color: rgba(0, 0, 0, 0.7);
}

.messages {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
}

.top_menu {
  background-color: #d5d5d5;
  width: 100%;
  padding: 5px 0 5px;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
}

.top_menu .title {
  text-align: center;
  color: black;
  font-size: 20px;
}

.messages {
  position: relative;
  list-style: none;
  padding: 20px 10px 0 10px;
  margin: 0;
  height: 22rem;
  overflow: auto;
  overflow-x: hidden !important;
  background-color: silver;
}

.messages .message {
  clear: both;
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.5s linear;
  opacity: 0;
}

.messages .message.left .avatar {
  background-color: #f5886e;
  float: left;
}

.messages .message.left .text_wrapper {
  background-color: #fff;
  margin-left: 20px;
}

/* .messages .message.left .text_wrapper::after, .messages .message.left .text_wrapper::before {
  right: 98%;
  border-right-color: #ffe6cb;
} */
.messages .message.left .text {
  color: black;
}

.messages .message.right .avatar {
  background-color: #222a33;
  float: right;
}

.messages .message.right .text_wrapper {
  background-color: #00644d;
  margin-right: 20px;
  float: right;
  color: white;
}

/* .messages .message.right .text_wrapper::after, .messages .message.right .text_wrapper::before {
  left: 98%;
  border-left-color: #c7eafc;
} */
.messages .message.right .text {
  color: #fff;
}

.messages .message.appeared {
  opacity: 1;
}

.messages .message .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-block;
}

.messages .message .text_wrapper {
  display: inline-block;
  padding: 5px;
  border-radius: 6px;
  width: max-content;
  max-width: 57%;
  /* min-width: 100px; */
  position: relative;
}

.messages .message .text_wrapper::after, .messages .message .text_wrapper:before {
  top: 7px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

.messages .message .text_wrapper::after {
  border-width: 13px;
  margin-top: 0px;
}

.messages .message .text_wrapper::before {
  border-width: 15px;
  margin-top: -2px;
}

.messages .message .text_wrapper .text {
  font-size: 18px;
  font-weight: 300;
  word-wrap: break-word;
}

.bottom_wrapper {
  position: relative;
  width: 100%;
  background-color: #d5d5d5;
  padding: 10px 10px;
  /* position: absolute; */
  bottom: 0;
  display: flex;
}

.bottom_wrapper .message_input_wrapper {
  display: inline-block;
  height: 50px;
  /* border-radius: 25px; */
  border-radius: 5px;
  /* border: 1px solid #bcbdc0;        */
  /* width: calc(100% - 160px); */
  width: 90%;
  position: relative;
  padding: 0 0;
}

.bottom_wrapper .message_input_wrapper .message_input {
  border: none;
  height: 100%;
  box-sizing: border-box;
  width: 99%;
  position: absolute;
  outline-width: 0;
  color: black;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 5px;
}

.bottom_wrapper .send_message {
  /* width: 140px; */
  height: 50px;
  display: inline-block;
  /* border-radius: 50px; */
  /*border-radius: 25rem;*/
  border-radius: 6px;
  background-color: #006d4f;
  border: 2px solid #006d4f;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s linear;
  text-align: center;
  float: right;
}

.bottom_wrapper .send_message:hover {
  /*color: #a3d063;*/
  /*background-color: #fff;`*/
}

.bottom_wrapper .send_message .text {
  font-size: 18px;
  font-weight: 300;
  display: inline-block;
  line-height: 48px;
}

.message_template {
  display: none;
}

#send_button{
  width:4.3rem;
}
/*.typing-animation {*/
/*  position: relative;*/
/*  display: none;*/
/*  overflow: hidden;*/
/*}*/

/*.typing-animation::before,*/
/*.typing-animation::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  width: 5px;*/
/*  height: 5px;*/
/*  background-color: #000;*/
/*  border-radius: 50%;*/
/*  animation: blink 1s infinite ease-in-out;*/
/*}*/

/*.typing-animation::before {*/
/*  left: -7px;*/
/*  animation-delay: 0s;*/
/*}*/

/*.typing-animation::after {*/
/*  left: 0px;*/
/*  animation-delay: 0.2s;*/
/*}*/

/*@keyframes blink {*/
/*  0% {*/
/*    transform: scale(0);*/
/*  }*/
/*  50% {*/
/*    transform: scale(1);*/
/*  }*/
/*  100% {*/
/*    transform: scale(0);*/
/*  }*/
/*}*/