/* NoorVista 2.1.159 — chatbot booking handoff + receive wording */
.chat-action-btn.nav-booking,
[data-open-booking],
.nav-booking {
  white-space: nowrap;
}

/* NoorVista 3.1.17 — fullscreen mobile consultation layer. */
html body .chatbot-panel#chatbotPanel {
  /* Appointment booking is 120000; consultation is intentionally next-highest. */
  z-index: 119900 !important;
}

@media (max-width: 820px) {
  html body .chatbot-panel#chatbotPanel {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overscroll-behavior: contain !important;
  }

  html body .chatbot-panel#chatbotPanel.is-open,
  html body .chatbot-panel#chatbotPanel.open,
  html body .chatbot-panel#chatbotPanel[aria-hidden="false"] {
    display: flex !important;
  }

  html body .chatbot-panel#chatbotPanel .chatbot-header {
    flex: 0 0 auto !important;
    padding-top: max(14px, env(safe-area-inset-top)) !important;
  }

  html body .chatbot-panel#chatbotPanel .chatbot-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body .chatbot-panel#chatbotPanel .chatbot-form {
    flex: 0 0 auto !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  }

  html:has(.chatbot-panel#chatbotPanel.is-open),
  html:has(.chatbot-panel#chatbotPanel.open),
  body.nv-chat-open {
    height: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }
}