.trip-calendar-chat {
  max-width: 420px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #dfd3eb;
  border-radius: 16px;
  background: #fffdfa;
}
.trip-calendar-chat-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; gap: 8px; color: #695b77; font-size: .72rem; font-weight: 700; }
.trip-chat-typing { display: none; align-items: center; gap: 3px; color: #357352; }
.trip-chat-typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: trip-chat-dot .85s ease-in-out infinite alternate; }
.trip-chat-typing i:nth-child(2) { animation-delay: .12s; }
.trip-chat-typing i:nth-child(3) { animation-delay: .24s; margin-right: 2px; }
.trip-chat-replay { padding: 5px 8px; border: 1px solid #dfd3eb; border-radius: 7px; background: #f8f1fe; color: #542d77; font: inherit; cursor: pointer; }
.trip-chat-replay[aria-disabled="true"] { opacity: .55; cursor: default; }
.trip-chat-replay:focus-visible { outline: 2px solid #8756b9; outline-offset: 2px; }
.trip-calendar-chat[data-chat-state="playing"] .trip-chat-typing { display: inline-flex; margin-left: auto; }
.trip-calendar-chat[data-chat-state="ready"] :is(li span, .trip-calendar-chat-count, .trip-calendar-chat-fix) { opacity: 0; }
.trip-calendar-chat[data-chat-state="playing"] :is(li span, .trip-calendar-chat-count, .trip-calendar-chat-fix) {
  animation: trip-chat-message .28s cubic-bezier(.22, 1, .36, 1) var(--chat-delay) both;
}
.trip-calendar-chat li:nth-child(1) { --chat-delay: .45s; }
.trip-calendar-chat li:nth-child(2) { --chat-delay: .94s; }
.trip-calendar-chat li:nth-child(3) { --chat-delay: 1.35s; }
.trip-calendar-chat li:nth-child(4) { --chat-delay: 1.83s; }
.trip-calendar-chat li:nth-child(5) { --chat-delay: 2.24s; }
.trip-calendar-chat li:nth-child(6) { --chat-delay: 2.7s; }
.trip-calendar-chat li:nth-child(7) { --chat-delay: 3.08s; }
.trip-calendar-chat-count { --chat-delay: 3.44s; }
.trip-calendar-chat-fix { --chat-delay: 4.05s; }
@keyframes trip-chat-message {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes trip-chat-dot {
  from { opacity: .35; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-2px); }
}
.trip-calendar-chat ul { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; }
.trip-calendar-chat li { display: flex; }
.trip-calendar-chat li.outgoing { justify-content: end; }
.trip-calendar-chat li span { padding: 6px 10px; border-radius: 11px; background: #f0edf4; color: #3e344c; font-size: .77rem; }
.trip-calendar-chat li.outgoing span { background: #eee1fa; color: #542d77; }
.trip-calendar-chat-count { margin-bottom: 8px; color: #695b77; font-size: .74rem; }
.trip-calendar-chat-fix { padding: 9px 10px; border-radius: 10px; background: #e3f5e9; color: #245b40; font-size: .78rem; }
