/* Allurix V4 – één rustige typmelding boven het invoerveld. */
.chat {
  grid-template-rows: minmax(0, 1fr) 22px auto;
}

.typing-indicator {
  box-sizing: border-box;
  height: 22px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 15px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #0d0d0d;
  color: #dcc486;
  font-size: 12px;
  line-height: 18px;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}

.typing-indicator.is-visible {
  opacity: 1;
}

.typing-indicator.is-visible::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #c8a45a;
  box-shadow: 0 0 7px rgba(200, 164, 90, .5);
  animation: allurix-typing-pulse-v4 1.8s ease-in-out infinite;
}

@keyframes allurix-typing-pulse-v4 {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .typing-indicator::before { animation: none !important; }
  .typing-indicator { transition: none; }
}

/* De knop voor nieuwe berichten blijft boven het invoerveld zichtbaar. */
#new-message-button {
  bottom: 104px;
}
