[contenteditable] {
  outline: 0px solid transparent;
}
.chat-main-btn {
  background-color: #ffffff;
  border: 2px solid var(--color-main);
  border-radius: 50%;
  bottom: 15px;
  box-shadow: 0 2px 6px 0 rgba(0,0,0,.4);
  cursor: pointer;
  font-size: 8px;
  height: 50px;
  left: 15px;
  position: fixed;
  width: 50px;
  z-index: 20;
}
.chat-main-btn-active {
}
.chat-main-img {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 50px;
  justify-content: center;
  object-fit: contain;
  width: 50px;
}
.chat-main-img-img {
  height: 45px;
  object-fit: contain;
  width: 45px;
}
.chat-main-count-not-read {
  background-color: var(--color-main);
  border-radius: 10px;
  color: var(--color-btn);
  font-family: monospace;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px 3px 5px;
  position: absolute;
  right: -8px;
  top: -8px;
}
.chat-main-message-box {
  background-color: #ffffff;
  border: 2px solid var(--color-main);
  border-radius: 4px;
  bottom: 0;
  box-shadow: 0 2px 6px 0 rgba(0,0,0,.4);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  left: 100%;
  line-height: 1.2;
  margin-left: 15px;
  padding: 7px 20px;
  position: absolute;
}
.chat-main-message-box::after {
  background-color: inherit;
  bottom: 17px;
  box-shadow: 2px -2px 2px 0 var(--color-main);
  content: "";
  display: block;
  height: 10px;
  left: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-6px) rotate(-135deg);
  width: 10px;
}
.chat-message-close-box {
  border-color: var(--color-main);
  cursor: pointer;
  opacity: 0;
  position: absolute;
  right: 0px;
  top: 0px;
}
.chat-main-message-box:hover .chat-message-close-box {
  opacity: 1;
}
.chat-message-close-box .fa {
  background-color: var(--color-main);
  height: 16px;
  width: 16px;
}
.chat-window {
  background-color: #d5e8be;
  background-image: url(/image/catalog/chat/b.svg?a);
  background-size: 200px;
  border: 1px solid var(--color-main);
  border-radius: 4px;
  bottom: -5px;
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 450px;
  left: -5px;
  max-height: 80vh;
  position: absolute;
  width: 300px;
  z-index: 10;
}
.chat-header {
  background-color: var(--color-main);
  display: flex;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  padding: 4px;
}
.chat-btns {
  flex: 2;
  white-space: nowrap;
}
.chat-title {
  flex: 1;
  padding: 4px;
  text-align: center;
}
.chat-close-btn {
  cursor: pointer;
  flex: 2;
  padding: 4px;
  text-align: right;
}
.chat-btns .chat-ex-btn {
  cursor: pointer;
  display: inline-block;
  height: 20px;
  object-fit: contain;
  margin: 4px;
  width: 20px;
}
.chat-messages {
  flex: 1;
  font-size: 13px;
  line-height: 1.3;
  overflow: auto;
  padding: 4px;
}
.chat-message-box {
  display: inline-block;
  width: 100%;
}
.chat-message {
  background-color: #eeeeee;
  border: 1px solid #666666;
  border-radius: 1em;
  display: inline-block;
  margin: 4px;
  max-width: 80%;
  padding: 4px;
  text-align: left;
}
.chat-message a {
  color: #d12f14;
  text-decoration: underline;
}
.chat-message-left {
}
.chat-message-right {
  float: right;
}
.chat-user-name {
  color: #666666;
  font-size: 10px;
}
.chat-message-body {
  display: inline;
  word-break: break-word;
}
.chat-message-time {
  color: green;
  float: right;
  font-size:0.9em;
  line-height: 1.5;
  margin-left: 5px;
}
.chat-message-date {
  background-color: #eeeeee;
  border: 1px solid #666666;
  border-radius: 1em;
  display: inline-block;
  margin: 4px;
  padding: 2px 6px;
}
.chat-message-status {
  display: inline-block;
  height: 18px;
  margin-left: 3px;
  vertical-align: text-bottom;
  width: 18px;
  -webkit-mask-repeat: no-repeat;
}
.chat-message-status-0 {
  background-color: #222222;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 29"><path d="M14.638 27c-6.893 0-12.5-5.607-12.5-12.5S7.745 2 14.638 2s12.5 5.607 12.5 12.5S21.53 27 14.638 27zm0-23c-5.79 0-10.5 4.71-10.5 10.5S8.848 25 14.638 25s10.5-4.71 10.5-10.5S20.427 4 14.638 4zm-.08 11.42h-6.42a1 1 0 1 1 0-2h5.42V6a1 1 0 1 1 2 0v8.42a1 1 0 0 1-1 1z"></path></svg>');
}
.chat-message-status-1 {
  background-color: #222222;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M16.62 6.21a1 1 0 0 0-1.41.17l-7 9-3.43-4.18a1 1 0 1 0-1.56 1.25l4.17 5.18a1 1 0 0 0 .78.37 1 1 0 0 0 .83-.38l7.83-10a1 1 0 0 0-.21-1.41z"></path></g></svg>');
}
.chat-message-status-2 {
  background-color: green;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M16.62 6.21a1 1 0 0 0-1.41.17l-7 9-3.43-4.18a1 1 0 1 0-1.56 1.25l4.17 5.18a1 1 0 0 0 .78.37 1 1 0 0 0 .83-.38l7.83-10a1 1 0 0 0-.21-1.41zm5 0a1 1 0 0 0-1.41.17l-7 9-.61-.75-1.26 1.62 1.1 1.37a1 1 0 0 0 .78.37 1 1 0 0 0 .78-.38l7.83-10a1 1 0 0 0-.21-1.4z"></path></g></svg>');
}
.chat-footer {
  align-items: end;
  background-color: #eeeeee;
  border-top: 1px solid #666666;
  display: flex;
  position: relative;
}
.chat-footer-message {
  border-bottom: 1px solid var(--color-main);
  cursor: text;
  flex: 1;
  font-size: 13px;
  margin: 4px;
  max-height: 6em;
  overflow: auto;
  padding: 4px;
  scrollbar-width: thin;
}
body .chat-footer-btn {
  cursor: pointer;
  height: 20px;
  margin: 4px;
  width: 20px;
}
.chat-new-messages-sign {
  background-color: #eeeeee;
  padding: 4px;
  text-align: center;
}
.chat-message-typing {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  bottom: calc(100% + 5px);
  font-size: 10px;
  left: 5px;
  padding: 3px 6px;
  position: absolute;
  white-space: nowrap;
}
.chat-dot {
  font-size: 14px;
  line-height: 1;
}
.chat-message-typing-0 .chat-dot-0 {
  font-weight: 700;
}
.chat-message-typing-1 .chat-dot-1 {
  font-weight: 700;
}
.chat-message-typing-2 .chat-dot-2 {
  font-weight: 700;
}
.svg-icon-chat {
  fill: var(--color-main);
}