/* CRTT Rio v2.3.20 — final viewport-fit correction.
 * The open chat sits above a 58px launcher with a 12px flex gap.
 * The 108px allowance includes that launcher, gap, bottom offset, and
 * at least 20px of top clearance. This overrides earlier height rules.
 */

#crtt-neo-chatbot-root .chatbot-container:not(.is-large) .chatbot-window:not(.large) {
  height: min(690px, calc(100vh - 108px)) !important;
  max-height: calc(100vh - 108px) !important;
  height: min(690px, calc(100dvh - 108px)) !important;
  max-height: calc(100dvh - 108px) !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}

#crtt-neo-chatbot-root .chatbot-container.is-large .chatbot-window.large {
  height: min(780px, calc(100vh - 108px)) !important;
  max-height: calc(100vh - 108px) !important;
  height: min(780px, calc(100dvh - 108px)) !important;
  max-height: calc(100dvh - 108px) !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
}
