.str-chat__input {
  background: #fff;
  box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.05), 0 -1px 0 0 rgba(0, 0, 0, 0.07);
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  position: relative;
  font-family: $second-font;
  padding-bottom: 0;
  // display: flex;

  &-large {
    position: relative;
    z-index: 1;
    width: 100%;
  }

  &--emojipicker {
    position: absolute;
    bottom: 100%;
    right: 0;
  }
  .rfu-file-previewer {
    flex: 1 1 100%;
  }
  &--textarea-wrapper {
    display: flex;
    flex: 1 0;
    position: relative;
    .str-chat__textarea {
      textarea {
        padding-right: 70px;
      }
    }
  }

  &-emojiselect,
  .rfu-file-upload-button {
    position: absolute;
    cursor: pointer;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-size: 44px 44px;
    fill: rgba(0, 0, 0, 0.6);

    &:hover {
      fill: rgba(0, 0, 0, 1);
    }
  }

  &-emojiselect {
    right: 20px;
    top: calc(100% - 35px);
  }

  .rfu-file-upload-button {
    right: 46px;
    top: calc(100% - 34px);
  }

  &-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    background: $white;
    padding: 0 10px 10px 10px;
    color: lighten($black, 50%);

    &--typing {
      font-style: italic;
    }

    &--count {
      &--hidden {
        visibility: hidden;
      }
    }
  }
}

.str-chat__textarea {
  height: auto;
  flex: 1;
  textarea {
    width: 100%;
    outline: none;
    padding: 11px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    min-height: 42px;
    transition: height 100ms ease-in;
    resize: none;

    &:focus {
      background: #fff;
      border: 1px solid $secondary-color;
      box-shadow: 0 0 0 2px rgba(0, 108, 255, 0.36);
    }

    &:placeholder {
      color: rgba(0, 0, 0, 0.5);
    }
  }
}

.str-chat__emojisearch {
  bottom: calc(100%);
  left: 0;
  width: calc(100% - 20px);
  position: absolute;
  background: rgba(240, 240, 240, 0.95);
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.31), 0 0 6px 0 rgba(0, 0, 0, 0.12);
  z-index: -1;
  border-radius: 4px 4px 0 0;
  margin: 0 10px;
  max-height: 360px;
  overflow-y: auto;

  &__list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    border-radius: 4px 4px 0 0;
  }
}

.dark.str-chat {
  .str-chat__emojisearch {
    background: #35373a;
    box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.31), 0 0 6px 0 rgba(0, 0, 0, 0.12);
    border-radius: 4px 4px 0 0;
    .rta__list-header {
      background: #1b1d20;
      border: 1px solid rgba(224, 224, 224, 0.03);
      box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.07);
      color: white;
    }
    .rta__entity {
      color: white;
    }
  }
  .rfu-file-previewer__file {
    a {
      color: white;
    }
    &:hover {
      background: transparent;
    }
  }
  .rfu-file-previewer__close-button {
    color: white;
  }
}

.rta {
  font-size: 14px;
}

.rta__entity--selected {
  background-color: $secondary-color;
  color: $white;
}

.rta__list {
  border-radius: 4px 4px 0 0;
}

.rta__list-header {
  padding: 15px;
  font-size: 14px;
}

.str-chat__emoji-item {
  padding: 0 20px;
  display: flex;
  align-items: center;
  margin: 0 -8px;

  span {
    display: block;
  }

  &--entity {
    min-width: 24px;
  }

  &--name {
    font-size: 12px;
  }
}

.str-chat__slash-command {
  padding: 10px 15px;
  font-size: 14px;

  &-description {
    font-size: 12px;
  }
}

.str-chat__user-item {
  padding: 10px 15px;
  display: flex;
}

.str-chat {
  .rfu-dropzone .rfu-dropzone__notifier {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 5px;
    z-index: 1001;
    display: none;
  }

  .rfu-dropzone--accept .rfu-dropzone__notifier {
    background: rgba(#006cff, 0.7);
    display: block;
  }

  .rfu-dropzone--reject .rfu-dropzone__notifier {
    background: rgba(red, 0.7);
    display: block;
  }
}

.rfu-dropzone__inner {
  width: 100%;
  height: 100%;
  padding: 0 30px;
  border: 1px dashed transparent;
  box-sizing: border-box;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  font-weight: 800;
  font-size: 12px;
  svg {
    display: none;
  }
}

.rfu-dropzone--reject .rfu-dropzone__inner {
  display: none;
}

.team.str-chat,
.livestream.str-chat {
  .str-chat {
    &__input {
      padding: 10px 40px;

      &-footer {
        padding: 0 40px 10px;
      }
    }
  }
}

.livestream {
  &.str-chat {
    .str-chat {
      &__input {
        position: relative;
        z-index: 1;
        background: rgba(255, 255, 255, 0.29);
        box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.1);
        padding: 10px 20px 5px;

        textarea {
          border-radius: 2px;
          background: rgba(255, 255, 255, 0.26);
          border: 1px solid rgba(0, 0, 0, 0.2);
          font-size: 13px;
          padding: 12px;
        }
        &-footer {
          padding: 0 20px 10px;

          background: rgba(255, 255, 255, 0.29);
        }
      }
    }
  }
}

.str-chat__file-uploads {
  max-height: 300px;
  flex: 1 1 100%;
  overflow-y: auto;
}

.rfu-file-upload-button svg {
  fill: rgba(0, 0, 0, 0.6);
}

.dark.str-chat {
  .str-chat__input {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.34);
    &-footer {
      background: rgba(255, 255, 255, 0.03);
    }
    textarea {
      background: rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(0, 0, 0, 0.4);
      border-radius: 2px;
      color: white;
    }
    .str-chat__input-emojiselect {
      svg {
        fill: white;
      }
    }
    .rfu-file-upload-button {
      svg {
        fill: white;
      }
    }
  }
}

.str-chat__fileupload-wrapper {
  .str-chat__tooltip {
    display: none;
    bottom: 35px;
    right: 50px;
  }

  &:hover {
    .str-chat__tooltip {
      display: block;
    }
  }
}

.str-chat__emojiselect-wrapper {
  .str-chat__tooltip {
    display: none;
    bottom: 35px;
    right: 24px;
  }
  &:hover {
    .str-chat__tooltip {
      display: block;
    }
  }
}
.str-chat__small-message-input--textarea-wrapper {
  .str-chat__fileupload-wrapper {
    .str-chat__tooltip {
      bottom: 32px;
      right: 32px;
    }
  }
  .str-chat__emojiselect-wrapper {
    .str-chat__tooltip {
      bottom: 32px;
      right: 10px;
    }
  }
}
