/* Scope all overrides to our chat. TM loads its own styles after the theme. */
.lipno-travelmanager-chatbot #tm-chatbot {
  --bubble-user-bg: var(--lipno-royal, #0b3d78);
  --bubble-user-text: #fff;
  --bubble-bot-bg: #f0f5fa;
  --bubble-bot-text: var(--lipno-navy, #061d45);
  --border-gray: #cbd5e1;
  --border-light: #dce4ed;
  --focus-blue: var(--lipno-royal, #0b3d78);
  --focus-blue-shadow: rgb(11 61 120 / 18%);
  color: var(--lipno-navy, #061d45);
  font-family: inherit;
}
.lipno-travelmanager-chatbot #tm-chatbot.hovering {
  width: min(440px, calc(100vw - 2rem));
  height: min(620px, 80dvh);
  max-height: 80dvh;
  border: 1px solid rgb(6 29 69 / 12%);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgb(6 29 69 / 22%);
  backdrop-filter: none;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot {
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  color: inherit;
  background: #fff;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 1rem;
  padding: .65rem .85rem .65rem 1.15rem;
  background: var(--lipno-navy, #061d45);
  color: #fff;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-header::before {
  content: 'LIPNO LINE';
  color: var(--lipno-gold, #f6c64c);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.lipno-travelmanager-chatbot #tm-chatbot :is(.chatbot-close-button, .chatbot-send-button, .chatbot-station-choice) {
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: var(--lipno-gold, #f6c64c);
  color: var(--lipno-navy, #061d45);
  font-family: inherit;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 150ms ease;
}
.lipno-travelmanager-chatbot #tm-chatbot :is(.chatbot-close-button, .chatbot-send-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: .6rem;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-close-button {
  background: transparent;
  color: #fff;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-close-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-close-button:hover { background: rgb(255 255 255 / 12%); }
.lipno-travelmanager-chatbot #tm-chatbot :is(.chatbot-send-button, .chatbot-station-choice):hover { background: #ffda70; }
.lipno-travelmanager-chatbot #tm-chatbot :is(.chatbot-close-button, .chatbot-send-button):is(:hover, :active) {
  filter: none;
  box-shadow: none;
  transform: none;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-send-button img { filter: brightness(0); opacity: .85; }
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-messages {
  min-height: 0;
  padding: 1rem;
  overscroll-behavior: contain;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-message {
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-message.user :is(p, span) { color: inherit; }
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-form {
  flex: 0 0 auto;
  gap: .6rem;
  margin: 0;
  padding: .85rem;
  border-top: 1px solid var(--border-light);
  background: #fff;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-input {
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: .7rem .85rem;
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  background: #fff;
  color: var(--lipno-navy, #061d45);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-input:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 3px var(--focus-blue-shadow);
  outline: none;
}
.lipno-travelmanager-chatbot #tm-chatbot button:focus-visible {
  outline: 3px solid var(--lipno-royal, #0b3d78);
  outline-offset: 3px;
}
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-close-button:focus-visible { outline-color: var(--lipno-gold, #f6c64c); }
.lipno-travelmanager-chatbot #tm-chatbot .chatbot-station-choice.hollow {
  border: 1px solid var(--lipno-royal, #0b3d78);
  background: transparent;
  color: var(--lipno-royal, #0b3d78);
}
@media (max-width: 768px) {
  .lipno-travelmanager-chatbot #tm-chatbot.hovering {
    top: calc(var(--lipno-chat-visible-top, 0px) + max(.5rem, env(safe-area-inset-top))) !important;
    bottom: auto !important;
    left: .5rem !important;
    right: .5rem !important;
    width: auto;
    height: calc(var(--lipno-chat-visible-height, 100dvh) - max(.5rem, env(safe-area-inset-top)) - max(.5rem, env(safe-area-inset-bottom))) !important;
    max-height: calc(var(--lipno-chat-visible-height, 100dvh) - max(.5rem, env(safe-area-inset-top)) - max(.5rem, env(safe-area-inset-bottom))) !important;
    min-height: 0 !important;
    border-radius: 16px;
  }
  .lipno-travelmanager-chatbot #tm-chatbot .chatbot { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
  .lipno-travelmanager-chatbot #tm-chatbot .chatbot-messages { flex: 1 1 0; overflow-y: auto; }
  .lipno-travelmanager-chatbot #tm-chatbot .chatbot-form { padding-bottom: max(.85rem, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .lipno-travelmanager-chatbot #tm-chatbot *,
  .lipno-travelmanager-chatbot #tm-chatbot *::after { animation: none !important; transition: none !important; }
}
