.ab3-lex {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.ab3-lex__launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid #aaccec;
  border-radius: 999px;
  background: #dcecff;
  color: #174f7f;
  box-shadow: 0 10px 28px rgba(15, 52, 84, .22);
  cursor: pointer;
  font-size: 15px;
}

.ab3-lex__launcher svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: 0 0 24px;
}

.ab3-lex__dialog {
  display: flex;
  width: min(390px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 44px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #bed6ed;
  border-radius: 16px;
  background: #f5f8fc;
  box-shadow: 0 18px 55px rgba(15, 52, 84, .28);
}

.ab3-lex__dialog[hidden] { display: none !important; }

.ab3-lex__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #dcecff;
  color: #174f7f;
}

.ab3-lex__head div { display: grid; gap: 1px; }
.ab3-lex__head strong { font-size: 19px; }
.ab3-lex__head small { font-size: 12px; }
.ab3-lex__head button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 28px; line-height: 1; }

.ab3-lex__messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.ab3-lex__message {
  width: fit-content;
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid #d5e0eb;
  border-radius: 13px;
  background: #fff;
  color: #1f2937;
}

.ab3-lex__message.is-customer { align-self: flex-end; border-color: #b7d6ef; background: #e5f1fb; }
.ab3-lex__message strong { display: block; margin-bottom: 3px; font-size: 12px; color: #245f96; }
.ab3-lex__message p { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.45; }
.ab3-lex__message small { display: block; margin-top: 5px; color: #728096; font-size: 10px; }
.ab3-lex__empty { margin: auto; color: #526273; text-align: center; }
.ab3-lex__status { margin: 0; padding: 7px 14px; color: #526273; font-size: 12px; }
.ab3-lex__privacy { margin: 0; padding: 7px 14px; border-top: 1px solid #d6e2ee; color: #607086; font-size: 11px; line-height: 1.35; }
.ab3-lex__booking-action { align-self: stretch; margin: 2px 0 6px; border: 0; border-radius: 10px; padding: 11px 13px; background: #2f86ca; color: #fff; font-weight: 800; cursor: pointer; }

.ab3-lex__form {
  display: block;
  padding: 12px;
  border-top: 1px solid #d6e2ee;
  background: #fff;
}

.ab3-lex__form textarea { box-sizing: border-box; width: 100%; resize: none; border: 1px solid #b9cce0; border-radius: 9px; padding: 9px 10px; font: inherit; }
.ab3-lex__form textarea:disabled { opacity: .65; cursor: wait; }

@media (max-width: 520px) {
  .ab3-lex { right: 10px; bottom: 10px; }
  .ab3-lex__launcher { min-height: 44px; padding: 0 14px; }
  .ab3-lex__dialog { width: calc(100vw - 20px); height: min(680px, calc(100vh - 20px)); }
}
