@mixin channel-input {

  .wcChannelInput {

    button {
      margin: 0;
    }

    .wcInputs {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      justify-content: flex-end;

      .wcInput {
        flex-grow: 1;
        min-height: 55px;
        padding: 14px 5px 14px 15px;
        border: 0;
        outline: 0;
        width: auto;
        min-width: 250px;
        resize: none;
        overflow: hidden;
        &, * {
          font-size: 16px;
          line-height: 24px;
        }

        img {
          max-width: 150px;
          max-height: 150px;
        }
      }

      .wcInput[contentEditable=true]:empty:not(:focus):before {
        content:attr(data-placeholder);
        pointer-events: none;
        color: grey;
      }

      .wcInputButtons {
        flex-grow: 0;
        flex-shrink: 0;
        display: flex;
        align-items: center;

        .wcInputButton {
          cursor: pointer !important;
          display: inline-block;
          width: 55px;
          height: 55px;
          position: relative;
          overflow: hidden;
          transition: all .2s ease-in;

          input {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            opacity: 0.001;
            cursor: pointer;
            z-index: 1000;
            margin: 0;
          }
        }

        .wcInputButton.wcFileAttachment {
          background: #f7f7f7 url(../../gfx/icons/attach.svg) center center no-repeat;
          width: 46px;
        }

        .wcInputButton.wcImageAttachment {
          background: #f7f7f7 url(../../gfx/icons/camera.svg) center center no-repeat;
          width: 50px;
        }

        .wcInputButton.wcEmoticon {
          background: #f7f7f7 url(../../gfx/icons/emoticon.svg) center center no-repeat;
          width: 46px;
        }

        .wcInputButton.wcSoundAttachmentStart {
          background: #f7f7f7 url(../../gfx/icons/mic.svg) center center no-repeat;
          width: 46px;
        }

        .wcInputButton.wcSoundAttachmentStop {
          background: #f7f7f7 url(../../gfx/icons/stop-button.svg) center center no-repeat;
          width: 46px;
        }

        .wcInputButton:hover {
          cursor: pointer !important;
          background-color: #dfdfdf;
        }

        .wcInputButtonSupplementary {
          background-color: #f7f7f7;
          height: 55px;
          overflow: hidden;
          display: inline-flex;
          align-items: center;
        }

      }
    }

    .wcReplyTo {
      position: relative;
      padding: 10px 45px 10px 15px;
      background: #f2f2f2;
      font-size: 0.9em;
      color: #4a4a4a;

      .wcContent {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -ms-word-break: break-all;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        hyphens: auto;
        line-height: 1.1;
        font-size: 0.8em;

        .wcImage, .wcEmoticon {
          max-height: 55px;
          max-width: 55px;
          border-radius: 5px;
          box-shadow: none;
          border: none;
          display: inline-block;
          vertical-align: middle;
          margin-bottom: 4px;
        }
        .wcEmoticon {
          max-height: initial;
          max-width: initial;
        }
      }

      .wcDeleteButton {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
        background-image: url(../../gfx/icons/x.svg);
        background-position: 50%;
        background-size: contain;
        cursor: pointer;
        transition: all .2s ease-in;
      }
      .wcDeleteButton:hover {
        background-color: #dfdfdf;
      }
    }

    /* Attachments section */
    .wcAttachments {
      .wcAttachment {
        display: flex;
        align-items: center;
        margin-top: 2px;

        .wcImagePreview {
          max-width: 70px;
          max-height: 50px;
          cursor: pointer;
          display: inline-block;
          vertical-align: middle;
          margin-right: 3px;
          border-radius: 5px;
        }

        .wcDelete {
          background: transparent url(../../gfx/icons/x.svg) center center no-repeat;
          width: 21px;
          height: 21px;
          border: 1px solid #A6A6A6;
          border-radius: 50%;
          transition: all .2s ease-in;
          margin-left: 5px;
          flex-shrink: 0;
        }

        .wcDelete:hover {
          background-color: #dfdfdf;
        }
      }
    }
  }
}