/* Unified pulse for the small green online/status indicators across Zayman.ru. */

.zayman-cbr__freshness--fresh .zayman-cbr__freshness-dot,
.zayman-cbr__pulse-live i,
.zayman-keyrate__freshness--fresh .zayman-keyrate__freshness-dot,
.zayman-keyrate__hero-card-state--fresh i,
.zayman-fssp__form-badge > span,
.zayman-contacts__eyebrow-dot,
.zayman-contacts__float-status {
  position: relative;
  isolation: isolate;
}

.zayman-cbr__freshness--fresh .zayman-cbr__freshness-dot {
  --zayman-status-pulse-color: rgba(22, 132, 92, 0.45);
}

.zayman-cbr__pulse-live i {
  --zayman-status-pulse-color: rgba(114, 226, 181, 0.48);
}

.zayman-keyrate__freshness--fresh .zayman-keyrate__freshness-dot {
  --zayman-status-pulse-color: rgba(22, 132, 92, 0.45);
}

.zayman-keyrate__hero-card-state--fresh i {
  --zayman-status-pulse-color: rgba(114, 226, 181, 0.48);
}

.zayman-fssp__form-badge > span {
  --zayman-status-pulse-color: rgba(40, 173, 123, 0.45);
}

.zayman-contacts__eyebrow-dot,
.zayman-contacts__float-status {
  --zayman-status-pulse-color: rgba(55, 185, 139, 0.45);
}

@keyframes zayman-status-dot-pulse {
  0% {
    opacity: 0.62;
    transform: scale(0.85);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(2.45);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .zayman-cbr__freshness--fresh .zayman-cbr__freshness-dot::after,
  .zayman-cbr__pulse-live i::after,
  .zayman-keyrate__freshness--fresh .zayman-keyrate__freshness-dot::after,
  .zayman-keyrate__hero-card-state--fresh i::after,
  .zayman-fssp__form-badge > span::after,
  .zayman-contacts__eyebrow-dot::after,
  .zayman-contacts__float-status::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--zayman-status-pulse-color);
    content: "";
    opacity: 0.62;
    transform: scale(0.85);
    transform-origin: center;
    animation: zayman-status-dot-pulse 1.8s ease infinite;
    pointer-events: none;
  }
}
