.str-chat__input-flat {
  background: white;
  padding: 10px 40px;
  position: relative;
  .str-chat__textarea {
    flex: 1;
  }
  textarea {
    min-height: 56px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 20px 69px;
    font-size: 15px;
    line-height: 17px;
    border: none;
    margin: 0;
    &:focus {
      border: none;
      border-radius: 8px;
      box-shadow: 0 0 0 3px rgba(0, 108, 255, 1);
    }
  }

  &-footer {
    padding: 10px 40px;
    background: white;
  }

  &-emojiselect {
    position: absolute;
    top: calc(100% - 45px);
    left: 25px;
    svg {
      fill: #000;
      opacity: 0.5;
      &:hover {
        opacity: 1;
      }
    }
  }

  &--textarea-wrapper {
    display: flex;
  }

  &--emojipicker {
    position: absolute;
    bottom: calc(100%);
  }

  .rfu-file-upload-button {
    position: absolute;
    top: calc(100% - 40px);
    right: 55px;

    svg {
      fill: #000;
      opacity: 0.5;
      &:hover {
        opacity: 1;
      }
    }
    @media screen and (min-width: 768px) {
      right: 25px;
    }
  }
}

.rfu-image-previewer {
  &__image {
    width: 60px !important;
    height: 60px !important;
    .rfu-thumbnail__wrapper {
      width: 60px !important;
      height: 60px !important;
      border-radius: 10px;
      .rfu-thumbnail__overlay,
      .rfu-icon-button {
        padding: 0;
        svg {
          opacity: 0.9;
          height: 25px;
          width: 25px;
        }
      }
    }
  }
  .rfu-thumbnail-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 10px;
  }
}

.commerce.str-chat {
  .str-chat__input-flat {
    padding: 10px 22px;
    background: transparent;
  }
}

.dark.str-chat {
  .str-chat__input-flat {
    background: rgba(white, 0.04);
    textarea {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 10px;
      color: white;
    }
    &-emojiselect,
    .rfu-file-upload-button {
      svg {
        fill: #fff;
      }
    }
  }
  &.commerce {
    .str-chat__input-flat {
      background: none;
    }
  }
}

@media screen and (max-width: 960px) {
  .str-chat.messaging {
    .str-chat__input-flat {
      padding: 10px 10px;
    }
  }
}
