.txt-ai-booking-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: Arial, sans-serif;
}

.txt-ai-booking-chat__toggle {
  border: 0;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.txt-ai-booking-chat__panel {
  width: min(380px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 100px));
  margin-top: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.txt-ai-booking-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #111827;
  color: #fff;
}

.txt-ai-booking-chat__close,
.txt-ai-booking-chat__book,
.txt-ai-booking-chat__composer button,
.txt-ai-booking-chat__quote {
  cursor: pointer;
}

.txt-ai-booking-chat__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
}

.txt-ai-booking-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
}

.txt-ai-booking-chat__route-helper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.txt-ai-booking-chat__route-helper input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
}

.txt-ai-booking-chat__route-helper button {
  grid-column: 1 / -1;
  border: 0;
  border-radius: 10px;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}

.txt-ai-booking-chat__message {
  max-width: 85%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.txt-ai-booking-chat__message.is-assistant {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e5e7eb;
}

.txt-ai-booking-chat__message.is-user {
  margin-left: auto;
  background: #f97316;
  color: #fff;
}

.txt-ai-booking-chat__quotes {
  padding: 0 16px 12px;
  display: grid;
  gap: 10px;
}

.txt-ai-booking-chat__quote {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #7c2d12;
  border-radius: 14px;
  padding: 12px;
  text-align: left;
}

.txt-ai-booking-chat__quote.is-selected {
  border-color: #ea580c;
  background: #ffedd5;
}

.txt-ai-booking-chat__quote strong,
.txt-ai-booking-chat__quote-price {
  display: block;
}

.txt-ai-booking-chat__quote-price {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.txt-ai-booking-chat__quote-meta {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.txt-ai-booking-chat__quote-original {
  text-decoration: line-through;
  color: #9a3412;
}

.txt-ai-booking-chat__actions {
  padding: 0 16px 12px;
}

.txt-ai-booking-chat__book {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  font-weight: 700;
}

.txt-ai-booking-chat__book:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.txt-ai-booking-chat__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.txt-ai-booking-chat__composer textarea {
  width: 100%;
  resize: none;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 46px;
}

.txt-ai-booking-chat__composer button {
  border: 0;
  border-radius: 12px;
  background: #f97316;
  color: #fff;
  font-weight: 700;
  padding: 0 16px;
}

@media (max-width: 640px) {
  .txt-ai-booking-chat {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .txt-ai-booking-chat__toggle {
    width: 100%;
  }

  .txt-ai-booking-chat__panel {
    width: 100%;
    height: min(70vh, 620px);
  }

  .txt-ai-booking-chat__route-helper {
    grid-template-columns: 1fr;
  }
}
