[class*="--sprite-"]:before {
  content: "";
  display: block;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  flex-shrink: 0;
  width: var(--iw, 16px);
  aspect-ratio: 1/1;
  transition: all 0.3s;
  background-color: var(--icon-color, #010205);
}
.--sprite-chat:before {
  -webkit-mask-image: url(img/chat-widget/icons/chat.svg);
  mask-image: url(img/chat-widget/icons/chat.svg);
}
.--sprite-cross:before {
  -webkit-mask-image: url(img/chat-widget/icons/cross.svg);
  mask-image: url(img/chat-widget/icons/cross.svg);
}
.--sprite-pin:before {
  -webkit-mask-image: url(img/chat-widget/icons/pin.svg);
  mask-image: url(img/chat-widget/icons/pin.svg);
}
.--sprite-send:before {
  -webkit-mask-image: url(img/chat-widget/icons/send.svg);
  mask-image: url(img/chat-widget/icons/send.svg);
}
.--sprite-shield:before {
  -webkit-mask-image: url(img/chat-widget/icons/shield.svg);
  mask-image: url(img/chat-widget/icons/shield.svg);
}
.avatar {
  width: 32px;
  aspect-ratio: 1/1;
  position: relative;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.avatar::before {
  content: "";
  position: absolute;
  width: 18.75%;
  border-radius: 50%;
  border: #fff 1px solid;
  aspect-ratio: 1/1;
  opacity: 0;
  visibility: hidden;
  bottom: 0;
  right: 0;
  -webkit-transform: translateX(33%);
  transform: translateX(33%);
  background-color: #80eb16;
}
.avatar.--online::before {
  opacity: 1;
  visibility: visible;
}
.bubble-chat {
  padding: 12px 19px 12px 12px;
  border-radius: 12px 12px 2px 12px;
  border: 1px solid #fff;
  background-color: #fff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 14px;
  align-items: start;
}
.bubble-chat__text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
}
.bubble-chat__close {
  --iw: 10px;
  margin-top: 7px;
  border: 0px;
  background-color: white;
}
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  color: #010205;
}
.chat-widget__open {
  aspect-ratio: 1/1;
  width: 52px;
  border-radius: 50%;
  background: linear-gradient(
    141deg,
    rgba(198, 255, 0, 0.8) 8.99%,
    rgba(144, 243, 46, 0.8) 90.11%
  );
  box-shadow: 0 2px 4px 0 rgba(28, 77, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  --iw: 24px;
  --icon-color: #fff;
  border: 0px;
}
.chat-widget__bubble {
  width: calc(100vw - 48px);
  max-width: 264px;
  position: absolute;
  bottom: calc(100% + 14px);
  right: 26px;
}
.chat-widget__main {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 26px;
  background-color: #fafafa;
  border-radius: 12px;
  width: calc(100vw - 48px);
  max-width: 340px;
  padding-bottom: 12px;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s;
}
.chat-widget__main.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  -webkit-transform: none;
  transform: none;
}
.chat-widget__header {
  padding: 12px 19px 12px 12px;
  border-radius: 12px 12px 0 0;
  border: 1px solid #fafafa;
  background-color: #fff;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.03);
  display: flex;
  gap: 12px;
  align-items: center;
}
.chat-widget__h-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 4px;
}
.chat-widget__title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}
.chat-widget__status {
  color: #878c91;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.3;
}
.chat-widget__status.--online {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-widget__status.--online::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #80eb16;
}
.chat-widget__close {
  align-self: flex-start;
  --iw: 10px;
  margin-top: 5.5px;
  background-color: white;
  border: 0px;
}
.chat-widget__content {
  padding: 0 12px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.chat-widget__body {
  padding: 12px 0 16px;
  overflow: auto;
  min-height: 0;
}
.chat-widget__messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-widget__messages:not(:last-child) {
  margin-bottom: 16px;
}
.chat-widget__day {
  color: #878c91;
  text-align: center;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.3;
}
.chat-widget__quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-widget__quick-btn {
  padding: 10px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.2;
  font-family: inherit;
  transition: all 0.3s;
  border: 1px solid #fff;
}
.chat-widget__quick-btn img {
  -o-object-fit: contain;
  object-fit: contain;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chat-widget__actions {
  position: relative;

  padding: 12px 46px 12px 42px;
  font-size: 14px;
  font-weight: 300;
  font-family: inherit;
  border-radius: 50px;
  border: 1px solid rgba(135, 140, 145, 0.2);
  background-color: #fff;
  transition: all 0.3s;
  min-height: 44px;
}
.chat-widget__actions:not(:last-child) {
  margin-bottom: 16px;
}
.chat-widget__actions:focus-within {
  border-color: #c6ff00;
}
.chat-widget__file {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  left: 10px;
  z-index: 2;
  --iw: 24px;
  cursor: pointer;
}
.chat-widget__file input {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  width: 0;
  height: 0;
}
.chat-widget__input {
  /* padding: 12px 46px 12px 42px;
  font-size: 14px;
  font-weight: 300;
  font-family: inherit;
  border-radius: 50px;
  border: 1px solid rgba(135, 140, 145, 0.2);
  background-color: #fff;
  transition: all 0.3s;
  min-height: 44px; */

  all: unset;
  width: 100%;
}
/* .chat-widget__input:focus {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
  border-color: #c6ff00;
} */
.chat-widget__input::-webkit-input-placeholder {
  color: #878c91;
}
.chat-widget__input:-ms-input-placeholder {
  color: #878c91;
}
.chat-widget__input::-ms-input-placeholder {
  color: #878c91;
}
.chat-widget__input::placeholder {
  color: #878c91;
}
.chat-widget__send {
  width: 30px;
  border-radius: 50%;
  aspect-ratio: 1/1;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 10px;
  z-index: 2;
  /* background: linear-gradient(
    141deg,
    rgba(198, 255, 0, 0.8) 8.99%,
    rgba(144, 243, 46, 0.8) 90.11%
  ); */
  transition: all 0.3s ease;
  --icon-color: #fff;
  border: 0px;
}
.chat-widget__actions:focus-within .chat-widget__send {
  background: linear-gradient(
      141deg,
      rgba(198, 255, 0, 0.8) 8.99%,
      rgba(144, 243, 46, 0.8) 90.11%
  );
  transition: all 0.3s ease;
}
.chat-widget__send:disabled {
  background: #878c91;
}
.chat-widget__send::before {
  width: 17px;
  height: 15px;
  -webkit-transform: translateX(1px);
  transform: translateX(1px);
}
.chat-widget__warn {
  color: #878c91;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  --icon-color: #878c91;
}
.chat-message {
  display: flex;
  gap: 8px;
  align-items: start;
  max-width: calc(100% - 64px);
}
.chat-message.user {
  flex-direction: row-reverse;
  margin-left: auto;
}
.chat-message__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-message__content {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.3;
  border-radius: 12px 12px 12px 2px;
  background-color: #fff;
  padding: 10px 12px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.chat-message__content .typing {
  width: 34px;
  height: 14px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.chat-message__content .typing span,
.chat-message__content .typing::after,
.chat-message__content .typing::before {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #010205;
  border-radius: 50%;
  opacity: 0.3;
  -webkit-animation: typing 1.4s infinite both;
  animation: typing 1.4s infinite both;
}
.chat-message__content .typing span {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
.chat-message__content .typing::after {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}
.user .chat-message__content {
  background-color: #5897fb;
  color: #fff;
  border-radius: 12px 12px 2px 12px;
}
.chat-message__time {
  color: #878c91;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.3;
}
.user .chat-message__time {
  text-align: right;
}
@-webkit-keyframes typing {
  0%,
  100%,
  80% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}
@keyframes typing {
  0%,
  100%,
  80% {
    opacity: 0.3;
  }
  40% {
    opacity: 1;
  }
}
@media (max-width: 991.98px) {
  .chat-widget__bubble {
    right: 0;
  }
  .chat-widget__main {
    right: 0;
  }
}
@media (max-width: 767.98px) {
  .chat-widget__open {
    width: 48px;
  }
  .chat-widget__main {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    right: auto;
    height: 100%;
    max-height: 100%;
    opacity: 1;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    border-radius: 12px 12px 0 0;
  }

  .chat-widget__content {
    height: 100%;
  }

  .chat-widget__body {
    height: 100%;
  }
}
@media (any-hover: hover) {
  .bubble-chat__close:hover {
    --icon-color: #80eb16;
  }
  .chat-widget__open:hover::before {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
  .chat-widget__close:hover {
    --icon-color: #80eb16;
  }
  .chat-widget__quick-btn:hover {
    border-color: #c6ff00;
  }
  .chat-widget__file:hover {
    --icon-color: #80eb16;
  }
  .chat-widget__input:hover {
    border-color: #c6ff00;
  }
}
