/* Localsewa v32.8.52 — booking chat timeline + call history */
.ls-booking-chat-panel {
  background: #fff;
}

.ls-booking-chat-header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.ls-booking-chat-timeline {
  background:
    radial-gradient(circle at 12% 8%, rgba(22, 163, 74, 0.035), transparent 34%),
    linear-gradient(180deg, #f8fbf9 0%, #f5f9f6 100%);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ls-chat-message {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 5px 18px rgba(15, 23, 42, 0.035);
}

.ls-chat-message--mine {
  box-shadow: 0 5px 18px rgba(18, 132, 71, 0.13);
}

.ls-chat-date-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: #7b8f83;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ls-chat-date-separator::before,
.ls-chat-date-separator::after {
  content: '';
  height: 1px;
  flex: 1 1 auto;
  background: #dfe8e2;
}

.ls-chat-date-separator span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid #e1ebe5;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
}

.ls-chat-call-event {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(86%, 340px);
  margin: 10px auto 12px;
  padding: 10px 11px;
  border: 1px solid #d9e8df;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  color: #345144;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .045);
}

.ls-chat-call-event__icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eaf8ef;
  color: #15803d;
  font-size: 15px;
  font-weight: 900;
}

.ls-chat-call-event.is-live {
  border-color: #bae6c8;
  background: #f1fbf4;
}

.ls-chat-call-event.is-missed,
.ls-chat-call-event.is-declined {
  border-color: #fed7d7;
  background: #fff8f8;
  color: #8f3d3d;
}

.ls-chat-call-event.is-missed .ls-chat-call-event__icon,
.ls-chat-call-event.is-declined .ls-chat-call-event__icon {
  background: #feecec;
  color: #c24141;
}

.ls-booking-chat-composer {
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .035);
}

.ls-chat-textarea {
  field-sizing: content;
  line-height: 1.4;
}

.ls-chat-call-launch {
  min-width: 64px;
  justify-content: center;
}

@media (max-width: 359.98px) {
  .ls-booking-chat-header {
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .ls-chat-call-launch {
    min-width: 56px;
    padding-inline: 7px !important;
  }
  .ls-chat-call-event {
    width: 92%;
  }
}

@media (min-width: 640px) {
  .ls-booking-chat-panel {
    min-height: 560px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-chat-message,
  .ls-chat-call-event {
    transition: none !important;
  }
}
