.chat-widget {
  position: fixed;
  right: 17px;
  bottom: 72px;
  z-index: 100001;
  width: 60px;
  font-family: Roboto, Arial, sans-serif;
}
@media (max-width: 450px) {
  .chat-widget { right: 27px; bottom: 107px; }
}
.chat-widget__btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #4c8bf7;
  box-shadow: 0 0 0 7px rgba(76, 139, 247, .25), 1px 1px 15px 0 rgba(0, 0, 0, .15);
  cursor: pointer;
  z-index: 3;
  transition: background-color .2s, box-shadow .2s;
}
.chat-widget--collapsed .chat-widget__btn::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(76, 139, 247, .55);
  animation: chat-widget-wave 2.2s infinite ease-out;
  pointer-events: none;
}
@keyframes chat-widget-wave {
  0% { transform: scale(.9); opacity: .9; }
  100% { transform: scale(1.3); opacity: 0; }
}
.chat-widget__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, transform .2s;
}
.chat-widget__icon svg { width: 44px; height: 44px; }
.chat-widget__close {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity .2s, transform .2s;
}
.chat-widget:not(.chat-widget--collapsed) .chat-widget__btn {
  background: #fff;
  box-shadow: inset 0 0 0 2px #4c8bf7, 1px 1px 15px 0 rgba(0, 0, 0, .15);
}
.chat-widget:not(.chat-widget--collapsed) .chat-widget__icon { opacity: 0; transform: scale(.6); }
.chat-widget:not(.chat-widget--collapsed) .chat-widget__close { opacity: 1; transform: none; }
.chat-widget__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px;
}
.chat-widget__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform .2s ease-out, opacity .2s ease-out;
}
.chat-widget__item--tg { background: #2ca8dd; }
.chat-widget__item--tg svg { width: 80%; height: 80%; }
.chat-widget__item--max { background: #000; }
.chat-widget__item--max svg { width: 65%; height: 65%; }
.chat-widget__title {
  position: absolute;
  right: 60px;
  top: 50%;
  margin-top: -9px;
  font-size: 11px;
  line-height: 17px;
  padding: 0 7px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  box-shadow: 1px 1px 0 #525252;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s;
}
.chat-widget__item:hover .chat-widget__title { opacity: .75; }
.chat-widget--collapsed .chat-widget__item { opacity: 0; visibility: hidden; transform: translateY(60px); }
.chat-widget--collapsed .chat-widget__item--max { transform: translateY(120px); }
.chat-widget__brand {
  position: absolute;
  right: 0;
  bottom: -26px;
  white-space: nowrap;
  font-size: 10px;
  line-height: 18px;
  padding: 0 8px;
  border-radius: 10px;
  background: #262626;
  color: #fff;
}
.chat-widget--collapsed .chat-widget__brand { display: none; }
