
.floating-chat {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: fixed;
  bottom: 20px;
  right: 180px;
  height: 45px;
  width: 150px;
  transition: all 250ms ease-out;
  border-radius: 30px;
  opacity: 1;
  background: #c74932;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 999;
}
.floating-chat .icon-wrap {
  font-weight: bold;
}
.floating-chat .icon-wrap .icon{
  display: flex;
  color: #c74932;
  background-color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

.floating-chat.enter {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.14);
}
.floating-chat.expand {
  width: 350px;
  height: 450px;
  border-radius: 5px;
  cursor: auto;
  opacity: 1;
  background-color: #FFF;
}
.floating-chat.expand .icon-wrap{
  display: none !important;
}
.floating-chat button {
  background: #c74932;
  border: 0;
  color: white;
  text-transform: uppercase;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}
.floating-chat .chat {
  display: flex;
  flex-direction: column;
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  transition: all 250ms ease-out;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.floating-chat .chat.enter {
  opacity: 1;
  border-radius: 0;
  margin: 10px;
  width: auto;
  height: auto;
}
.floating-chat .chat .header {
  flex-shrink: 0;
  padding-bottom: 10px;
  display: flex;
  background: transparent;
}
.floating-chat .chat .header .title {
  flex-grow: 1;
  flex-shrink: 1;
  padding: 0 5px;
  color: #c74932;
  font-weight: bold;
  text-align: center;
  margin-right: 40px;
}
.floating-chat .chat .header button {
  flex-shrink: 0;
}
.floating-chat .chat .messages {
  padding: 10px;
  margin: 0;
  list-style: none;
  overflow-y: scroll;
  overflow-x: hidden;
  flex-grow: 1;
  border-radius: 4px;
  background: transparent;
}
.floating-chat .chat .messages::-webkit-scrollbar {
  width: 5px;
}
.floating-chat .chat .messages::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: rgba(25, 147, 147, 0.1);
}
.floating-chat .chat .messages::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #c74932;
}
.floating-chat .chat .messages li {
  position: relative;
  clear: both;
  display: inline-block;
  padding: 5px 10px;
  margin: 0 0 20px 0;
  font: 12px/16px "Noto Sans", sans-serif;
  border-radius: 10px;
  background-color: #c74932;
  word-wrap: break-word;
  max-width: 81%;
}
.floating-chat .chat .messages li:before {
  position: absolute;
  top: 0;
  width: 25px;
  height: 25px;
  border-radius: 25px;
  content: "";
  background-size: cover;
}
.floating-chat .chat .messages li:after {
  position: absolute;
  top: 10px;
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid #c74932;
}
.floating-chat .chat .messages li.other {
  float: right;
  margin-right: 45px;
  color: #FFF;
}

.floating-chat .chat .messages li.other:after {
  border-right: 10px solid transparent;
  right: -10px;
}
.floating-chat .chat .messages li.self {
  float: left;
  margin-left: 45px;
  color: #FFF;
}
.floating-chat .chat .messages li.self:after {
  border-left: 10px solid transparent;
  left: -10px;
}
.floating-chat .chat .messages li.self .icon{
  position: absolute;
  left: -45px;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-size: cover;
  background-color: #c74932;
}
.floating-chat .chat .messages li.other .icon{
  position: absolute;
  right: -45px;
  width: 30px;
  height: 30px;
  border-radius: 15px;
  background-size: cover;
  background-color: #c74932;
}
.floating-chat .chat .messages li .name{
  font-size: 10px;
}
.floating-chat .chat .messages li.other .name{
  text-align: right;
}
.floating-chat .chat .messages li .text{
  font-size: 16px;
}
.floating-chat .chat .messages li .time{
  position: absolute;
  bottom: -15px;
  font-size: 10px;
  color: #000;
  width: 100px;
}

.floating-chat .chat .footer {
  flex-shrink: 0;
  display: flex;
  padding-top: 10px;
  max-height: 90px;
  background: transparent;
}
.floating-chat .chat .footer .text-box {
  border-radius: 3px;
  background: #ffffff;
  min-height: 100%;
  width: 100%;
  margin-right: 5px;
  color: #000;
  overflow-y: auto;
  padding: 8px 5px;
  border-radius: 10px;
  border: 1px solid #ccc;
}
.floating-chat .chat .footer .text-box::-webkit-scrollbar {
  width: 5px;
}
.floating-chat .chat .footer .text-box::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: rgba(25, 147, 147, 0.1);
}
.floating-chat .chat .footer .text-box::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #c74932;
}

@keyframes show-chat-even {
  0% {
    margin-left: -480px;
  }
  100% {
    margin-left: 0;
  }
}
@-moz-keyframes show-chat-even {
  0% {
    margin-left: -480px;
  }
  100% {
    margin-left: 0;
  }
}
@-webkit-keyframes show-chat-even {
  0% {
    margin-left: -480px;
  }
  100% {
    margin-left: 0;
  }
}
@keyframes show-chat-odd {
  0% {
    margin-right: -480px;
  }
  100% {
    margin-right: 0;
  }
}
@-moz-keyframes show-chat-odd {
  0% {
    margin-right: -480px;
  }
  100% {
    margin-right: 0;
  }
}
@-webkit-keyframes show-chat-odd {
  0% {
    margin-right: -480px;
  }
  100% {
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .floating-chat.expand {
    position: fixed;
    width: 90%;
    left: 5%;
    right: 5%;
    bottom: 20px;
    height: 80vh;
    border-radius: 5px;
    cursor: auto;
    opacity: 1;
    background-color: #FFF;
    z-index: 999999;
  } 
}