.support-chat {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}

.support-chat__buttons {
  position: static;
}

.support-chat__button[hidden] {
  display: none !important;
}

.support-chat__button:not([hidden]) {
  position: fixed !important;
  right: 13px;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  color: #fff;
  text-align: center;
  z-index: 2147483000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.support-chat__button i {
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

.support-chat__button:hover,
.support-chat__button:focus {
  color: #fff;
  text-decoration: none;
}

.support-chat__button:before,
.support-chat__button:after {
  content: " ";
  display: block;
  position: absolute;
  left: -20px;
  right: -20px;
  top: -20px;
  bottom: -20px;
  border-radius: 50%;
  animation: support-chat-pulse 1.5s linear infinite;
  opacity: 0;
  backface-visibility: hidden;
  pointer-events: none;
}

.support-chat__button:after {
  animation-delay: 0.5s;
}

.support-chat__button--telegram {
  bottom: 90px;
  background: #0088cc;
}

.support-chat__button--telegram:before,
.support-chat__button--telegram:after {
  border: 1px solid #0088cc;
}

.support-chat__button--whatsapp {
  bottom: 160px;
  background: #25d366;
}

.support-chat__button--whatsapp:before,
.support-chat__button--whatsapp:after {
  border: 1px solid #25d366;
}

.support-chat__button--wechat {
  bottom: 160px;
  background: #09b83e;
}

.support-chat__button--wechat:before,
.support-chat__button--wechat:after {
  border: 1px solid #09b83e;
}

.support-chat__button--max {
  bottom: 160px;
  background: #4a2fe0;
}

.support-chat__button--max:before,
.support-chat__button--max:after {
  border: 1px solid #4a2fe0;
}

.support-chat__icon-img {
  /*width: 32px;*/
  /*height: 32px;*/
  display: block;
}

@keyframes support-chat-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.support-chat-modal[hidden] {
  display: none !important;
}

.support-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  pointer-events: auto;
}

.support-chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.support-chat-modal__box {
  position: relative;
  z-index: 1;
  width: 350px;
  max-width: calc(100vw - 32px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.support-chat-modal__close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.support-chat-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 24px 12px 0;
  text-align: left;
}

.support-chat-modal__hint {
  font-size: 13px;
  color: #555;
  margin: 0 0 12px;
}

.support-chat-modal__qr {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  margin: 0 auto 14px;
  background: #f4f4f4;
  object-fit: contain;
}

.support-chat-modal__open,
.support-chat-modal__save {
  display: inline-block;
  background: #0088cc;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  margin: 0 0 12px;
}

.support-chat-modal__open[hidden],
.support-chat-modal__save[hidden] {
  display: none !important;
}

.support-chat-modal__save {
  background: #09b83e;
}

.support-chat-modal__open:hover,
.support-chat-modal__save:hover {
  opacity: 0.9;
}

body.support-chat-modal-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .support-chat__button--telegram {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }

  .support-chat__button--whatsapp,
  .support-chat__button--wechat,
  .support-chat__button--max {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
}
