.chat {
   color: #434651;
   border-radius: 10px;
   background: linear-gradient(#F8EAAB,#F9F5AE);
   --green: #86BB71;
   --blue: #94C2ED;
   --gray: #92959E;
}
.chat .author .firstletter {
   color: #FFF;
   border-radius: 15px;
   width: 25px;
   height: 25px;
   text-align: center;
   line-height: 21px;
   background-color: #555;
   padding: 2px;
   margin-left: 1px;
   margin-right: 1px;
   display: inline-block;
   cursor: default;
}
.chat .author .firstletter.you {
   font-size: 8pt;
}

.chat .author .unread.firstletter{
   color: #f9e9e9;
   background-color: #D01111;
}
.chat .author .bcc.firstletter{
   background-color: rgb(81, 81, 81);
}
.chat .author .unread.bcc.firstletter{
   color: #FFF;
   background-color: rgb(119, 42, 42);
}

.chat .chat-header {
   padding: 10px;
   position: sticky;
   position: -webkit-sticky;
   top: 0;
   z-index: 1;
   background-color: #eee470;
}
.chat .chat-header img {
   float: left;
}

.chat .chat-header .chat-about {
   float: left;
   padding-left: 10px;
   margin-top: 6px;
}

.chat .chat-header .chat-with {
   font-weight: bold;
   font-size: 16px;
}

.chat .chat-history {
   padding: 10px 10px 1px;
   /* display: flex;
   flex-direction: column-reverse; */
}
.chat .chat-history  ul{
   list-style: none;
   padding: 0;
}

.chat .chat-history .message-data {
   margin-bottom: 10px;
}

.chat .chat-history .message-data-time {
   color: lighten(var(--grey), 8%);
   font-size: smaller;
   /* padding-left: 6px; */
}

.chat .chat-history .message {
   color: white;
   padding: 18px 20px;
   line-height: 13px;
   font-size: 12px;
   border-radius: 7px;
   margin-bottom: 25px;
   width: 90%;
   position: relative;
}

.chat .chat-history .incoming .message::after,
.chat .chat-history .my-message::after {
   bottom: 100%;
   left: 7%;
   border: solid transparent;
   content: " ";
   height: 0;
   width: 0;
   position: absolute;
   pointer-events: none;
   border-bottom-color: var(--blue);
   border-width: 10px;
   margin-left: -10px;
}
.chat .chat-history .outgoing .message::after,
.chat .chat-history .other-message::after {
   bottom: 100%;
   right: 7%;
   border: solid transparent;
   content: " ";
   height: 0;
   width: 0;
   position: absolute;
   pointer-events: none;
   border-bottom-color: var(--green);
   border-width: 10px;
   margin-left: -10px;
}

.chat .chat-history .incoming .message,
.chat .chat-history .my-message {
   background: var(--blue);
}

.chat .chat-history .outgoing .message,
.chat .chat-history .other-message {
   background: var(--green);
}

.chat .chat-message {
   padding: 15px;
   bottom: 0px;
   position: sticky;
   position: -webkit-sticky;
}
.chat .chat-message #textarea {
   width: 80%;
   border: 1px solid #dbdbdb;
   padding: 10px 20px;
   font: 14px/22px "Lato", Arial, sans-serif;
   border-radius: 5px;
   resize: none;
   background: #fff;
   overflow: auto;
   min-height: 75px;
   height: auto;
   max-height: 200px;
}

.chat .send_message {
   height: 70px;
   width: 15%;
   margin-top: 15px;
   border-radius: 30px;
   height: 60px;
   width: 60px;
   float: right;
   border: none;
   cursor: pointer;
   font-weight: bold;
   box-shadow: #FFF 0px 0px 10px 0px;
   background-image: url("images/send.svg");
   background-color: #F9F1AD;
   background-repeat: no-repeat;
   background-position: center;
}

.chat .chat-message button:hover {
   color: darken(var(--blue), 7%);
}

.chat .outgoing .message-data {
   text-align: right;
}
.chat .outgoing .message {
   float: right;
}

.chat .section:after {
   visibility: hidden;
   display: block;
   font-size: 0;
   content: " ";
   clear: both;
   height: 0;
}