/* MenkulEX v1.2.418: viewport and composer stability; no new chat storage. */
.xan-customer-ai-v231 .xcai-chat-v175,
.xan-customer-ai-v231 .xcai-chat-log-v175 {min-width:0!important;}
.xan-customer-ai-v231 .xcai-chat-v175 > .xcai-chat-log-v175 {touch-action:pan-y!important;scroll-behavior:auto!important;}
.xan-customer-ai-v231 .xcai-chat-input-v175 {flex-shrink:0!important;isolation:isolate!important;}
.xan-customer-ai-v231 .xcai-chat-input-v175 > input {min-width:0!important;}
.xan-customer-ai-v231 .xcai-chat-msg-v175 p,
.xan-customer-ai-v231 .xcai-chat-msg-v175 a {overflow-wrap:anywhere!important;word-break:normal!important;}
/* Display only while an on-screen keyboard is demonstrably visible. */
@media(max-width:800px){
  .xan-customer-ai-v231.is-floating.mx418-keyboard-open .xcai-shell{
    position:fixed!important;
    bottom:calc(7px + var(--mx418-keyboard-shift,0px))!important;
    height:calc(var(--mx418-visible-height,100dvh) - 14px)!important;
    max-height:calc(var(--mx418-visible-height,100dvh) - 14px)!important;
    min-height:0!important;
  }
  .xan-customer-ai-v231.mx418-keyboard-open .xcai-resume-v224,
  .xan-customer-ai-v231.mx418-keyboard-open .xcai-connection-v175 {display:none!important;}
  .xan-customer-ai-v231.mx418-keyboard-open.is-floating .xcai-body{
    overflow:auto!important;min-height:0!important;padding:6px 8px!important;
  }
  .xan-customer-ai-v231.mx418-keyboard-open.is-floating .xcai-chat-v175{
    height:max(210px,calc(var(--mx418-visible-height,100dvh) - 138px))!important;
    max-height:100%!important;min-height:0!important;
  }
  .xan-customer-ai-v231.mx418-keyboard-open .xcai-chat-toolbar-v175{padding:4px 6px!important;}
  .xan-customer-ai-v231.mx418-keyboard-open .xcai-chat-v175 > .xcai-chat-log-v175{min-height:70px!important;}
  body.mx208-standalone .xan-customer-ai-v231.is-standalone.mx418-keyboard-open .xcai-chat-v175,
  body.xan-customer-ai-standalone-v246 .xan-customer-ai-v231.is-standalone.mx418-keyboard-open .xcai-chat-v175{
    height:clamp(180px,calc(var(--mx418-visible-height,100dvh) - 240px),480px)!important;
    min-height:0!important;
  }
}
