@charset "UTF-8";
.onicon-button,
#chat24-root {
  display: none !important;
}

.mg-global-messengers {
  position: fixed;
  right: 21rem;
  bottom: 93rem;
  z-index: 99;
}

.mg-global-messengers__button {
  width: 56rem;
  height: 56rem;
  background: #15BB47;
  border-radius: 50%;
  border: none;
  position: relative;
  cursor: pointer;
}

.mg-global-messengers__button.hide {
  display: none;
}

.mg-global-messengers__button span {
  position: absolute;
  width: 30rem;
  height: 30rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.mg-global-messengers__button span:nth-child(1) {
  left: 46%;
  top: 51%;
}

.mg-global-messengers__button:before {
  position: absolute;
  content: "";
  left: -5rem;
  right: -5rem;
  top: -5rem;
  bottom: -5rem;
  border-radius: 50%;
  background: rgba(28, 163, 69, 0.22);
}

.mg-global-messengers__button:after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1rem solid rgba(28, 163, 69, 0.22);
  animation: messageLine 2s cubic-bezier(0.58, -0.27, 0.3, 1.31) infinite;
}

.mg-global-messengers__button.active {
  width: 48rem;
  height: 48rem;
  margin-right: 4rem;
  margin-bottom: 4rem;
  box-shadow: 0 0 0 1000000rem rgba(0, 0, 0, 0.24);
  background: #fff url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m21.25 8.75-12.5 12.5m0-12.5 12.5 12.5' stroke='%23F44658' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center center no-repeat;
}

.mg-global-messengers__button.active span {
  display: none;
}

.mg-global-messengers__button.active:before {
  background: rgba(255, 255, 255, 0.22);
}

.mg-global-messengers__button.active:after {
  display: none;
}

.mg-global-messengers__list {
  position: absolute;
  right: -4rem;
  bottom: 64rem;
  transition: all 0.3s;
  padding: 0 8rem 8rem;
  opacity: 0;
  pointer-events: none;
}

.mg-global-messengers__list.active {
  opacity: 1;
  pointer-events: all;
}

.mg-global-messengers__item {
  position: relative;
  font-size: 0rem;
}

.mg-global-messengers__item + .mg-global-messengers__item {
  margin-top: 8rem;
}

.mg-global-messengers__item-text {
  position: absolute;
  right: 58rem;
  color: #000;
  font-size: 14rem;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;
  /* 19.6rem */
  letter-spacing: -0.028rem;
  padding: 8rem 16rem;
  border-radius: 24rem;
  background: #FFF;
  top: 50%;
  margin-top: -18rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.2s;
}

.mg-global-messengers__item-button {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  font-size: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  display: block;
}

.mg-global-messengers__item-button:hover {
  transform: scale(1.166);
}

.mg-global-messengers__item-button:hover ~ .mg-global-messengers__item-text {
  opacity: 1;
}

body .mg-global-messengers__button span:nth-child(1) {
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1.617 14.335 6.44 2.15 15.291-9.192c.222-.133.45.163.258.336L12.03 18.107l-.43 5.866a.48.48 0 0 0 .285.475.501.501 0 0 0 .553-.093l3.564-3.447 6.516 4.85c.702.523 1.72.155 1.908-.691l4.537-20.258c.26-1.156-.893-2.131-2.016-1.708L1.585 12.65a.89.89 0 0 0 .032 1.684Z' fill='%23fff'/%3E%3C/svg%3E");
  animation: messageSpan1 6s infinite;
}

body .mg-global-messengers__button span:nth-child(2) {
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 1C7.28 1 1 7.28 1 15c0 2.716.778 5.335 2.257 7.608l-2.181 5.09A.933.933 0 0 0 2.3 28.925l5.09-2.182A13.887 13.887 0 0 0 15 29c7.72 0 14-6.28 14-14S22.72 1 15 1Zm7.187 19.012s-1.165 1.492-2.007 1.841c-2.137.885-5.157 0-8.596-3.438-3.437-3.438-4.323-6.458-3.437-8.596.349-.842 1.842-2.005 1.842-2.005a1.087 1.087 0 0 1 1.396.087l1.69 1.69a.936.936 0 0 1 0 1.318l-1.062 1.06s-.429 1.288 2.15 3.867c2.578 2.58 3.867 2.15 3.867 2.15l1.06-1.06a.936.936 0 0 1 1.32 0l1.689 1.689c.362.363.401.991.086 1.396l.002.001Z' fill='%23fff'/%3E%3C/svg%3E");
  animation: messageSpan2 6s infinite;
}

body .mg-global-messengers__button span:nth-child(3) {
  display: none;
}

body .button-on-top {
  right: auto;
  left: 10rem;
}

@media (max-width: 768px) {
  .mg-global-messengers {
    right: 6rem;
    bottom: 80rem;
    scale: 0.9;
  }
}
@keyframes messageLine {
  0% {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  75% {
    left: -20rem;
    right: -20rem;
    top: -20rem;
    bottom: -20rem;
  }
  80% {
    opacity: 0;
  }
  100% {
    left: -16rem;
    right: -16rem;
    top: -16rem;
    bottom: -16rem;
    opacity: 0;
  }
}
@keyframes messageSpan1 {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  /* начало видимости первого элемента */
  45% {
    opacity: 1;
  }
  /* продолжительность видимости первого элемента */
  50% {
    opacity: 0;
  }
  /* окончание видимости первого элемента */
  100% {
    opacity: 0;
  }
}
@keyframes messageSpan2 {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  /* окончание видимости первого элемента */
  60% {
    opacity: 1;
  }
  /* начало видимости второго элемента */
  95% {
    opacity: 1;
  }
  /* продолжительность видимости второго элемента */
  100% {
    opacity: 0;
  }
  /* окончание видимости второго элемента */
}