body:not(.home) #floating-chatbot-default,
body:not(.home) [id^="floating-chatbot-"] {
  width: 380px !important;
  max-width: calc(100vw - 24px) !important;
  height: 600px !important;
  max-height: calc(100vh - 32px) !important;
  right: 16px !important;
  bottom: 16px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.22) !important;
}

body:not(.home) #mxchat-chatbot-wrapper-default {
  height: 100% !important;
}

body:not(.home) .chatbot-top-bar {
  min-height: 92px !important;
  padding: 18px 18px 14px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  background: linear-gradient(135deg, #1f1f22 0%, #2a2a2f 100%) !important;
}

body:not(.home) .chatbot-title-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
}

body:not(.home) .chatbot-title {
  font-size: 20px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: #fff !important;
}

body:not(.home) .chatbot-title::after {
  content: "London travel help";
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d2b15a;
}

body:not(.home) .chat-mode-indicator {
  display: none !important;
}

body:not(.home) .exit-chat {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  min-width: auto !important;
}

body:not(.home) .exit-chat span {
  display: none !important;
}

body:not(.home) .chat-container {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100% - 92px) !important;
}

body:not(.home) .chat-box {
  flex: 1 1 auto !important;
  padding: 14px 14px 8px !important;
  overflow-y: auto !important;
}

body:not(.home) .bot-message,
body:not(.home) .user-message {
  max-width: 100% !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

body:not(.home) .bot-message {
  background: #232327 !important;
  color: #fff !important;
}

body:not(.home) .user-message {
  background: #f3f5f8 !important;
  color: #1c2333 !important;
}

body:not(.home) .mxchat-page-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px 6px;
}

body:not(.home) .mxchat-page-prompt {
  border: 1px solid #d9dee6;
  background: #fff;
  color: #1e355e;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

body:not(.home) .mxchat-page-prompt:hover {
  border-color: #c9a84c;
  background: #fbf6e8;
}

body:not(.home) #input-container-default {
  margin-top: 0 !important;
  padding: 10px 14px 12px !important;
  border-top: 1px solid #eceff3 !important;
  background: #fff !important;
}

body:not(.home) .chat-input {
  min-height: 48px !important;
  max-height: 120px !important;
  font-size: 16px !important;
  border-radius: 14px !important;
  border: 1px solid #d6dbe3 !important;
  padding: 12px 48px 12px 14px !important;
}

body:not(.home) .send-button {
  right: 12px !important;
  bottom: 12px !important;
}

body:not(.home) .chat-toolbar {
  padding: 0 14px 12px !important;
  gap: 10px !important;
  background: #fff !important;
}

@media (max-width: 640px) {
  body:not(.home) #floating-chatbot-default,
  body:not(.home) [id^="floating-chatbot-"] {
    width: calc(100vw - 16px) !important;
    right: 8px !important;
    bottom: 8px !important;
    height: 72vh !important;
    max-height: 72vh !important;
    border-radius: 18px !important;
  }

  body:not(.home) .chatbot-top-bar {
    min-height: 84px !important;
    padding: 16px 16px 12px !important;
  }

  body:not(.home) .chatbot-title {
    font-size: 18px !important;
  }
}


/* More engaging, page-aware Ask Thomas launcher on secondary pages */
body:not(.home) .floating-chatbot-button,
body:not(.home) [id^="floating-chatbot-button-"] {
  width: auto !important;
  min-width: 212px !important;
  max-width: min(88vw, 320px) !important;
  height: 52px !important;
  min-height: 52px !important;
  right: 16px !important;
  bottom: 16px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: linear-gradient(180deg, #d9bc67 0%, #c9a84c 100%) !important;
  color: #1f1f22 !important;
  border: 1px solid rgba(31,31,34,.08) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.20) !important;
  transform: translateY(0) !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

body:not(.home) .floating-chatbot-button svg,
body:not(.home) [id^="floating-chatbot-button-"] svg {
  display: none !important;
}

body:not(.home) .floating-chatbot-button::before,
body:not(.home) [id^="floating-chatbot-button-"]::before {
  content: "✦";
  font-size: 15px;
  line-height: 1;
  color: #1f1f22;
  transform: translateY(-1px);
}

body:not(.home) .floating-chatbot-button::after,
body:not(.home) [id^="floating-chatbot-button-"]::after {
  content: attr(data-label);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: #1f1f22;
  white-space: nowrap;
}

body:not(.home) .floating-chatbot-button:hover,
body:not(.home) [id^="floating-chatbot-button-"]:hover {
  background: linear-gradient(180deg, #e3c978 0%, #d5b85f 100%) !important;
  box-shadow: 0 18px 34px rgba(0,0,0,.24) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 640px) {
  body:not(.home) .floating-chatbot-button,
  body:not(.home) [id^="floating-chatbot-button-"] {
    min-width: 186px !important;
    height: 48px !important;
    min-height: 48px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 0 16px !important;
    gap: 8px !important;
  }

  body:not(.home) .floating-chatbot-button::before,
  body:not(.home) [id^="floating-chatbot-button-"]::before {
    font-size: 14px;
  }

  body:not(.home) .floating-chatbot-button::after,
  body:not(.home) [id^="floating-chatbot-button-"]::after {
    font-size: 14px;
  }
}


/* Hide launcher while the chat panel is open */
body:not(.home) .floating-chatbot-button.hidden,
body:not(.home) [id^="floating-chatbot-button-"].hidden,
body:not(.home) .floating-chatbot-button[style*="display: none"],
body:not(.home) [id^="floating-chatbot-button-"][style*="display: none"] {
  display: none !important;
}
