.message-live-typing {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: flex-end;
  align-self: stretch;
  gap: 8px;
  margin: 2px 0;
  padding: 0;
  order: 2147483647;
  background: transparent;
  color: var(--primary-dark);
}

.message-live-typing.hidden {
  display: none;
}

[data-chat-activity-header] {
  display: block;
  max-width: 100%;
  margin-block-start: 2px;
  color: var(--lc-accent, #2476c8);
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-chat-activity-header][hidden] { display: none !important; }
html.messages-client-document[data-messages-theme] #messages-standalone-root [data-chat-activity-header] {
  color: var(--lc-muted, #4d6588) !important;
}
html.messages-client-document[data-messages-theme] body.messages-client-body #messages-standalone-root.messages-redesign .admin-inbox-thread-header[data-chat-activity-active="true"] [data-presence-label] {
  display: none !important;
}

html.messages-client-document[data-messages-theme] #messages-standalone-root [data-live-typing-text] {
  min-inline-size: 0;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
  color: var(--lc-text) !important;
  font-size: 12px;
  font-weight: 500;
}

.message-live-typing-avatar {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f80c9, #3978b4);
  box-shadow: 0 3px 10px rgba(47, 128, 201, 0.16);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.message-live-typing-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.message-live-typing-count {
  position: absolute;
  inset-inline-end: -7px;
  inset-block-end: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1;
}

.message-live-typing-bubble {
  display: inline-flex;
  width: fit-content;
  max-width: min(78%, 520px);
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #dbe6ea;
  border-radius: 15px 15px 15px 5px;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.055);
  color: #2476c8;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.message-live-typing-dots {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  color: var(--primary-dark);
}

.message-live-typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: message-typing-dot 1.05s infinite ease-in-out;
}

.message-live-typing-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.message-live-typing-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes message-typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.42; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 700px) {
  .message-live-typing {
    gap: 5px;
  }

  .message-live-typing-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex-basis: 28px;
    font-size: 0.57rem;
  }

  .message-live-typing-bubble {
    max-width: calc(100% - 40px);
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 14px 14px 14px 5px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .message-live-typing-dots i {
    animation: none;
    opacity: 0.8;
  }
}
