.nith-chat-launcher-mark::after {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 10px;
  min-width: 10px;
  height: 10px;
  padding: 0;
  top: -7px;
  right: -8px;
  background: #35d07f;
  border: 2px solid #0b2931;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transform-origin: center;
  will-change: transform, box-shadow, opacity;
  box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.48);
  animation: nith-chat-idle-pulse 1.65s ease-in-out infinite;
}

.nith-chat.has-unread .nith-chat-launcher-mark::after {
  content: attr(data-unread);
  display: grid;
  place-items: center;
  width: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  top: -10px;
  right: -14px;
  background: #f47b20;
  border-color: #0b2931;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(244, 123, 32, 0.38);
  animation: none;
}

@keyframes nith-chat-idle-pulse {
  0%,
  100% {
    transform: scale(0.82);
    box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.48);
    opacity: 0.78;
  }

  50% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(53, 208, 127, 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nith-chat-launcher-mark::after {
    animation: none;
  }
}
