div.float_btn_msgr.show-on-mobile {
  display: none;
}

/* Smartphone Portrait and Landscape */
@media only screen and (max-device-width : 767px) {
  .show-on-mobile {
    display: inline;
  }
  div.float_btn_msgr.show-on-mobile {
    display: flex;
  }
  jdiv, div#jivo-iframe-container{
    display:none;
  }

}
/* Контейнер в нижнем правом углу */
.float_btn_msgr {
  position: fixed;
  bottom: 120px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Расстояние между кнопками */
  z-index: 9000; /* Чтобы кнопки были поверх остального контента */
}

/* Базовые стили для круглых кнопок */
.float_btn_msgr button, .float_btn_msgr a{
  position: relative;
  width: 60px;
  height: 60px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.2s ease;
}

/* Эффект при наведении (легкое увеличение) */
.float_btn_msgr button:hover, .float_btn_msgr a:hover {
  transform: scale(1.1);
}

/* Цвета для кнопок */
.btn-max { 
  background-image: url(./max_circle.svg);
  background-color: #662cbb;
}
.btn-tg { 
  background-image: url(./tg_circle.svg);
  background-color: #2c47bb00;
}
.btn-wha { 
  background-image: url(./wha_circle.svg);
  background-color: #2c47bb00;
}

/* Создание пульсирующего круга через псевдоэлемент ::after */
.float_btn_msgr button::after , .float_btn_msgr a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: -1; /* Импульс уходит на задний план под кнопку */
  /*animation: circle-fill-anim 2s infinite;*/
  /* Изменил фон круга на синий */
  transition: all 0.5s;

}
.btn-max::after {
  animation: pulse-fiolet 2.3s infinite ease-in-out;
}
.btn-tg::after {
  animation: pulse-blue 2.3s infinite ease-in-out;
}

.btn-wha:after {
  animation: pulse-green 2.3s infinite ease-in-out;
}

/* Индивидуальные цвета пульсации, совпадающие с кнопками */
/*.btn-max::after { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
.btn-tg::after { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }*/

/* Анимация пульсации */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4); /* Насколько сильно разрастается круг */
    opacity: 0; /* В конце круги полностью исчезают */
  }
}

@keyframes pulse-fiolet {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 44, 187, 0.7);
  }
  70% {
    /* Тень увеличивается в размерах и становится прозрачнее */
    box-shadow: 0 0 0 20px rgba(102, 44, 187, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 44, 187, 0);
  }
}

/* Ключевые кадры анимации пульсации для второй кнопки */
@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0  rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}