/* Native iOS chat keyboard latency fix.
   Keep the composer on its own compositor layer and position it from the
   native keyboard height instead of waiting for WKWebView body resize. */
html[data-iris-native-interactions] body.iris-chat-open #app
:is(.conversation-screen,.group-chat-screen:not(.channel-discussion-screen))
:is(.message-compose,.group-message-compose).iris-native-chat-composer{
  position:fixed!important;
  left:14px!important;
  right:14px!important;
  bottom:max(8px,env(safe-area-inset-bottom))!important;
  z-index:80!important;
  width:auto!important;
  max-width:680px!important;
  margin:0 auto!important;
  transform:translate3d(0,0,0)!important;
  backface-visibility:hidden!important;
  -webkit-backface-visibility:hidden!important;
  transition:none!important;
  will-change:bottom!important;
}
html[data-iris-native-interactions] body.iris-chat-open #app
:is(.conversation-screen,.group-chat-screen:not(.channel-discussion-screen))
:is(.message-compose,.group-message-compose).iris-native-chat-composer.keyboard-open{
  bottom:var(--iris-chat-keyboard-height,0px)!important;
}
html[data-iris-native-interactions] body.iris-chat-open #app
:is(.conversation-screen,.group-chat-screen:not(.channel-discussion-screen))
:is(.message-compose,.group-message-compose).iris-native-chat-composer:focus-within{
  margin-bottom:0!important;
}
html[data-iris-native-interactions] body.iris-chat-open #app
:is(.conversation-screen,.group-chat-screen:not(.channel-discussion-screen))
.iris-native-chat-composer .iris-composer-field{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  background:var(--iris-surface,#fff)!important;
  box-shadow:0 2px 10px color-mix(in srgb,var(--iris-text,#211e25) 8%,transparent)!important;
}

html[data-iris-native-interactions] body.iris-chat-open #app
.conversation-screen.iris-native-chat-keyboard-managed .message-thread,
html[data-iris-native-interactions] body.iris-chat-open #app
.group-chat-screen.iris-native-chat-keyboard-managed:not(.channel-discussion-screen) .group-message-thread{
  padding-bottom:96px!important;
}
html[data-iris-native-interactions] body.iris-chat-open #app
.conversation-screen.iris-native-chat-keyboard-managed:has(.message-compose.has-reply) .message-thread,
html[data-iris-native-interactions] body.iris-chat-open #app
.group-chat-screen.iris-native-chat-keyboard-managed:not(.channel-discussion-screen):has(.group-message-compose.has-reply) .group-message-thread{
  padding-bottom:158px!important;
}
html[data-iris-native-interactions] body.iris-chat-open #app
.conversation-screen.iris-native-chat-keyboard-managed:has(.message-compose.keyboard-open) .message-thread,
html[data-iris-native-interactions] body.iris-chat-open #app
.group-chat-screen.iris-native-chat-keyboard-managed:not(.channel-discussion-screen):has(.group-message-compose.keyboard-open) .group-message-thread{
  padding-bottom:calc(var(--iris-chat-keyboard-height,0px) + 96px)!important;
}
html[data-iris-native-interactions] body.iris-chat-open #app
.conversation-screen.iris-native-chat-keyboard-managed:has(.message-compose.keyboard-open.has-reply) .message-thread,
html[data-iris-native-interactions] body.iris-chat-open #app
.group-chat-screen.iris-native-chat-keyboard-managed:not(.channel-discussion-screen):has(.group-message-compose.keyboard-open.has-reply) .group-message-thread{
  padding-bottom:calc(var(--iris-chat-keyboard-height,0px) + 158px)!important;
}
