.online-operator-widget-wrapper {
  position: relative; /* или auto; */
  z-index: 9999;
}

/* Кружок */
.operator-badge {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.3s ease-in-out;
}

/* Состояние скрытия кружка (в replace-режиме) */
.operator-badge-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Анимированная точка (онлайн) */
.online-dot {
  width: 10px;
  height: 10px;
  background-color: #30d158;
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
  right: 4px;
  box-shadow: 0 0 5px rgba(48, 209, 88, 0.5);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

/* Всплывающее окно */
.operator-popup {
  display: none;
  position: fixed;
  background-color: #fff;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 10000;
}

/* Кнопка крестика */
.operator-popup-close {
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.operator-popup-inner {
  padding: 35px 10px 10px;
}

/* Анимации окна */
.operator-popup-fade {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.operator-popup-fade.operator-popup-open {
  display: block;
  opacity: 1;
}

.operator-popup-slide {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease-in-out;
}
.operator-popup-slide.operator-popup-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.operator-popup-zoom {
  opacity: 0;
  transform: scale(0.8);
  transition:
    transform 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}
.operator-popup-zoom.operator-popup-open {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.operator-popup-none {
  /* Без анимации */
}
.operator-popup-none.operator-popup-open {
  display: block;
}
