/*
    Extend the react-native-web reset:
    https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/StyleSheet/initialRules.js
*/
html,
body,
#root {
  width: 100%;
  /* To smooth any scrolling behavior */
  -webkit-overflow-scrolling: touch;
  margin: 0px;
  padding: 0px;
  /* Allows content to fill the viewport and go beyond the bottom */
  min-height: 100%;
}

#root {
  flex-shrink: 0;
  flex-basis: auto;
  flex-grow: 1;
  display: flex;
  flex: 1;
}

html {
  scroll-behavior: smooth;
  overflow: none;
  /* Prevent text size change on orientation change https://gist.github.com/tfausak/2222823#file-ios-8-web-app-html-L138 */
  -webkit-text-size-adjust: 100%;
  height: calc(100% + env(safe-area-inset-top));
}

body {
  display: flex;
  overflow-y: hidden;
  overscroll-behavior-y: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -ms-overflow-style: scrollbar;
}

input {
  outline: none;
}

input[type='date']::-webkit-inner-spin-button,
input[type='date']::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

/* Chat channel list */
.str-chat.messaging.light.str-chat-channel-list.str-chat__channel-list.str-chat__channel-list-react {
  flex: 1;
}

/* Chat channel */
.str-chat.messaging.light.str-chat__channel {
  flex: 2;
}

.str-chat.messaging.light.str-chat-channel-list.str-chat__channel-list.str-chat__channel-list-react,
.str-chat.messaging.light,
.str-chat-channel.str-chat__channel {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.str-chat.messaging.light.str-chat__channel,
.str-chat-channel.str-chat__channel,
.str-chat__channel .str-chat__container .str-chat__main-panel {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.str-chat__message-input {
  border-bottom-right-radius: 14px;
}

.str-chat__channel-list .str-chat__channel-list-empty {
  height: '100%';
  position: absolute;
  width: 100%;
  height: 100%;
}

.str-chat.messaging.light.str-chat-channel-list.str-chat__channel-list.str-chat__channel-list-react.str-chat-channel-list--open
  > div
  > div:last-child,
.str-chat.messaging.light.str-chat-channel-list.str-chat__channel-list.str-chat__channel-list-react.str-chat-channel-list--open
  > div
  > div:last-child
  > div,
.str-chat__channel-list #str-chat__channel-list-empty-container,
.str-chat__main-panel-inner .str-chat__list > div,
.str-chat.messaging.light.str-chat-channel-list.str-chat__channel-list.str-chat__channel-list-react.str-chat-channel-list--open {
  height: 100%;
}
