@font-face {
  font-display: block;
  font-family: chat-fonticon;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/icomoon.eot?8lj0ri);
  src: url(fonts/icomoon.eot?8lj0ri#iefix) format("embedded-opentype"), url(fonts/icomoon.ttf?8lj0ri) format("truetype"), url(fonts/icomoon.woff?8lj0ri) format("woff"), url(fonts/icomoon.svg?8lj0ri#icomoon) format("svg");
}
.chat-fa {
  font-family: chat-fonticon !important;
  speak: never;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.chat-root {
  background: transparent;
  bottom: 10%;
  position: fixed;
  right: 2%;
  z-index: 9999;
}
.chat-root * {
  margin: 0;
  padding: 0;
}
.chat-main {
  display: none;
  filter: drop-shadow(0 0 10px rgba(180, 180, 180, 0.7));
  overflow: hidden;
  right: 25px;
}
.chat-box,
.chat-main {
  bottom: 0;
  position: absolute;
  width: 330px;
}
.chat-box {
  background: transparent;
  left: 330px;
  opacity: 0;
}
.chat-btn {
  background: linear-gradient(to bottom left, #9a1aff, #1094fa);
  bottom: 25px;
  filter: drop-shadow(0 0 8px #0e77ca);
  height: 50px;
  line-height: 50px;
  right: 0;
  text-align: center;
  width: 50px;
}
.chat-btn,
.chat-btn:before {
  border-radius: 50%;
  position: absolute;
}
.chat-btn:before {
  background: #fff;
  content: " ";
  height: 100%;
  overflow: hidden;
  transform: scale(0);
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  transition: -webkit-transform 0.3s linear 0s;
  transition: transform 0.3s linear 0s;
  width: 100%;
}
.chat-btn:active:before {
  transform: scale(1);
}
.chat-btn i {
  color: #fff;
  display: inline-block;
  font-size: 23px;
  height: 100%;
  line-height: inherit;
  transform: rotate(0deg);
  transition: transform 0.3s linear 0s;
  width: 100%;
}
.chat-btn:active i {
  color: #175ed9;
  transform: rotate(1turn);
}
.chat-open > i:after {
  content: "\e902";
}
.chat-send > i:after {
  content: "\e949";
}
.chat-top > i:after {
  content: "\e903";
}
.chat-head {
  background: linear-gradient(to bottom left, #9a1aff, #1094fa);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 25px 20px;
  text-align: left;
}
.chat-head .chat-avatar {
  border-radius: 50%;
  float: left;
  height: 50px;
  margin-right: 10px;
  width: 50px;
}
.chat-title {
  color: #f5f5f5;
  font-size: 20px;
  text-align: left;
  width: 100%;
}
.chat-close,
.chat-title {
  height: 50px;
  line-height: 50px;
}
.chat-close {
  display: inline-block;
  float: right;
  font-size: 25px;
}
i.chat-close:after {
  content: "\e900";
}
.chat-container {
  height: 300px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #fff;
  font-size: 10px;
}
.chat-container::-webkit-scrollbar {
  width: 0;
}
.chat-item {
  margin: 1.5em 1em;
  width: auto;
}
.chat-time {
  margin: 1em 0;
  text-align: center;
  width: 100%;
}
.chat-content {
  margin: 0.3em 0.5em;
  text-align: left;
  width: auto;
}
.chat-name {
  color: rgba(88, 88, 88, 0.5);
  font-size: 1em;
  margin: 0 0 0.3em;
}
.chat-name,
.chat-text {
  display: inline-block;
  text-align: left;
}
.chat-text {
  background: #f0f2f7;
  border-radius: 15px;
  color: #333;
  filter: drop-shadow(0 0 8px rgba(80, 80, 80, 0.5));
  font-size: 12px;
  line-height: 22px;
  max-width: 100%;
  min-width: 25px;
  padding: 5px 10px;
  word-break: break-all;
}
.chat-text a {
  color: #36adfc;
  text-decoration: none;
}
.chat-text a:hover {
  color: #329ae2;
}
.chat-text i.chat-dot {
  animation: chat-dot 1s linear infinite;
  font-size: 1.2em;
  width: 25px;
  height: 25px;
  display: inline-block;
  line-height: 25px;
  text-align: center;
}
.chat-text i.chat-dot:after {
  content: "\e901";
}
.chat-text pre {
  background: #f0f0ff;
  border-radius: 15px;
  color: #333;
  font-size: 10px;
  line-height: 20px;
  max-width: 100%;
  min-width: 25px;
  padding: 5px 10px;
  word-break: break-all;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.chat-reply .chat-content {
  text-align: right;
}
.chat-reply .chat-avatar {
  float: right;
}
.chat-reply .chat-text {
  background: linear-gradient(to bottom left, #1090f9, #9fbff9);
  color: #fff;
}
.chat-input {
  background: #fff;
  border-bottom-left-radius: 10px 10px;
  border-bottom-right-radius: 10px 10px;
  border-top: 1px solid hsla(0, 0%, 78%, 0.5);
  padding: 15px 0 25px;
}
.chat-input [name=msg] {
  border: none;
  height: 30px;
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  resize: none;
  scrollbar-width: none;
  white-space: pre-wrap;
  width: 280px;
  word-break: break-all;
  -ms-overflow-style: none;
}
.chat-input [name=msg]::-webkit-scrollbar {
  display: none;
}
@media screen and (max-width: 640px) {
  .chat-main,
  .chat-root {
    bottom: 0;
    right: 0;
  }
  .chat-main {
    height: 100% !important;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
  }
  .chat-box {
    display: flex;
    flex-flow: column;
    flex-direction: column;
    height: 100%;
    width: 100%;
  }
  .chat-head {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .chat-input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .chat-container {
    flex: 1;
    height: auto;
  }
  .chat-btn {
    bottom: 60px;
    height: 40px;
    line-height: 40px;
    position: fixed;
    right: 20px;
    transition: bottom 0.3s linear;
    width: 40px;
  }
  .chat-send {
    bottom: 20px;
  }
  .chat-input [name=msg] {
    width: -webkit-calc(20%);
    width: -moz-calc(20%);
    width: calc(100% - 80px);
  }
}
@keyframes chat-dot {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
