/* Fix only the homepage inline chat. Keep all other website sections unchanged. */
/* Give the embedded widget a larger virtual canvas, then scale its whole UI down.
   This avoids the cropped bottom of the form without stretching the hero. */
:root { --chat-scale: .78; --chat-virtual-height: 750px; }
.dark-intro .chat-shell { height: 625px !important; min-height: 0 !important; }
.dark-intro .chat-live {
  height: 540px !important; min-height: 0 !important; flex: 1 1 auto !important;
  overflow: hidden !important; position: relative !important; border-radius: 16px;
}
.dark-intro .chat-live iframe {
  display: block !important; position: absolute !important; top: 0 !important; left: 0 !important;
  width: calc(100% / var(--chat-scale)) !important;
  max-width: none !important;
  height: var(--chat-virtual-height) !important;
  min-height: var(--chat-virtual-height) !important;
  border: 0 !important;
  transform: scale(var(--chat-scale)) !important;
  transform-origin: top left !important;
}
/* Any extra wrapper injected by the loader must fill the chat region. */
.dark-intro .chat-live > div { width:100%; height:100%; }
@media(max-width:760px) {
  :root { --chat-scale: .86; --chat-virtual-height: 740px; }
  .dark-intro .chat-shell { height: 690px !important; }
  .dark-intro .chat-live { height: 605px !important; }
}
@media(max-width:420px) {
  :root { --chat-scale: .83; --chat-virtual-height: 745px; }
  .dark-intro .chat-shell { height: 660px !important; }
  .dark-intro .chat-live { height: 580px !important; }
}
