/* IYES CHAT v3.5.0 - iPhone/Safari/mobile stability */
:root{
  --iyes-safe-top:env(safe-area-inset-top,0px);
  --iyes-safe-right:env(safe-area-inset-right,0px);
  --iyes-safe-bottom:env(safe-area-inset-bottom,0px);
  --iyes-safe-left:env(safe-area-inset-left,0px);
  --iyes-vv-height:100dvh;
}
html,body{min-height:100%;overscroll-behavior:none}
body.inbox-mode{
  min-height:100dvh;
  min-height:var(--iyes-vv-height,100dvh);
}
@supports(height:100dvh){
  body.inbox-mode #content,
  body.inbox-mode .inbox,
  body.inbox-mode .saas-inbox-layout{
    max-height:calc(var(--iyes-vv-height,100dvh) - var(--iyes-safe-top));
  }
}
@media(max-width:900px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{padding-left:var(--iyes-safe-left);padding-right:var(--iyes-safe-right)}
  body.inbox-mode{
    height:var(--iyes-vv-height,100dvh);
    overflow:hidden;
    padding-top:var(--iyes-safe-top);
    padding-bottom:0;
  }
  body.inbox-mode .inbox,
  body.inbox-mode .saas-inbox-layout{
    height:calc(var(--iyes-vv-height,100dvh) - var(--iyes-safe-top));
    min-height:0;
    overflow:hidden;
  }
  body.inbox-mode .chat,
  body.inbox-mode #saas-chat-pane{
    min-height:0;
    max-height:100%;
  }
  body.inbox-mode .messages,
  body.inbox-mode #saas-msgs{
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    min-height:0;
  }
  body.inbox-mode .composer,
  body.inbox-mode .composer-pro,
  body.inbox-mode .saas-composer{
    padding-bottom:max(10px,var(--iyes-safe-bottom));
    background:var(--card,#fff);
    position:relative;
    z-index:5;
  }
  body.inbox-mode input,
  body.inbox-mode textarea,
  body.inbox-mode select{
    font-size:16px!important;
  }
  body.iyes-keyboard-open .sidebar{pointer-events:none}
}
