.chatui {
  height: 100%;
  // overflow-y: scroll;
  overflow: hidden;
  // padding: 0px 2%;
  // margin: 0;
  // margin-left: 2%;
  background-color: @chat-whole-bg;
  @chat-editor-height: 36px;
  position: absolute;
  width: 100%;
  // margin-bottom: 10px;
  // -webkit-overflow-scrolling: touch;

  .chat-list-panel {
    position: relative;
    clear: both;
    overflow-y: scroll;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    margin: 0 2%;
  }

  .chat-editor-panel{
    position: relative;
    bottom: 0;
    width: 100%;
    left: 0;
  }

  .chat-list {
    // margin-bottom: @chat-editor-height + 30px;
    // margin-bottom: 30px;
    margin-bottom: 0px;
    // -webkit-overflow-scrolling: touch;
    .chat-item {
      width: 100%;
      color: @gray-base;
      font-weight: 800;
      font-size: @font-size-h5;/*px*/
      .defriend{
        color: #000;
        text-align: right;
        margin: 5px 20px 5px 0px;
        font-size: 14px;/*px*/
      }
    }
    .media {
      overflow: visible;
      position: relative;
      margin-top: 20px;
      .media-left {
        padding-right: 20px;
        position: relative;
        img {
          width: 40px;
          height: 40px;
          max-width: none;
          border-radius: 50%;
          pointer-events: initial!important;
        }
      }
      .media-time {
        text-align: center;
        font-weight: normal;
        color: #9b9b9b;
      }
      .media-body {
        position: relative;
        overflow: visible;
        max-width: 54%;
        .media-content {
          position: relative;
          padding: 10px 12px;
          width: auto;
          line-height: 22px;
          border-radius: 12px;
          display: inline-block;
          word-break: break-word;
          font-weight: normal;
          &:before {
            border-top: 10px solid transparent;
            border-right: 10px solid;
            border-right-color: #ffffff;
            border-bottom: 10px solid transparent;
            content: '';
            left: -8px;
            top: 10px;
            position: absolute;
            margin-left: 0;
          }
          background-color: #ffffff;
          border-color: #f5f5f5;
          .imgMessage {
            height: auto;
          }
          .fileMessage {
            max-width: 85px;
            border-radius: 12px;
          }
          .weizhi {
            max-width: 183px;
            margin-top: 6px;
            padding: 8px;
            color: #1a1a1f;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
          .geoMessage {
            max-width: 230px;
            min-height: 40px;
            font-size: @font-size-base;/*px*/
            margin-top: 8px;
            word-wrap: break-word;
            white-space: pre-wrap;
          }
          .emoji-small {
            width: 22px;
            height: 22px;
            vertical-align: bottom;
          }
        }
        .media-right-file {
          padding: 0;
          max-width: 85px;
          background-color: #f0f0f0 !important;
          &:before {
            left: auto;
            right: -10px !important;
            border-right: 0;
            border-top: 10px solid transparent;
            border-left: 10px solid;
            border-left-color: #ffffff !important;
            border-bottom: 10px solid transparent;
          }
        }
        .media-left-file {
          padding: 0;
          max-width: 85px;
          background-color: #f0f0f0 !important;
          &:before {
            border-top: 10px solid transparent;
            border-right: 10px solid;
            border-right-color: #ffffff;
            border-bottom: 10px solid transparent;
            content: '';
            left: -10px;
            top: 10px;
            position: absolute;
            margin-left: 0;
          }
        }
        .media-right-geo {
          padding: 0;
          line-height: 0;
          background-color: #fff !important;
          img {
            width: 200px;
            height: 100px;
            pointer-events: initial!important;
          }
          &:before {
            left: auto;
            right: -8px;
            border-right: 0;
            border-top: 10px solid transparent;
            border-left: 10px solid;
            border-left-color: #ffffff !important;
            border-bottom: 10px solid transparent;
          }
        }
        .media-left-geo {
          padding: 0;
          line-height: 0;
          background-color: #fff !important;
          img {
            width: 200px;
            height: 100px;
            pointer-events: initial!important;
          }
          &:before {
            border-top: 10px solid transparent;
            border-right: 10px solid;
            border-right-color: #ffffff;
            border-bottom: 10px solid transparent;
            content: '';
            left: -8px;
            top: 10px;
            position: absolute;
            margin-left: 0;
          }
        }
      }
      .media-left,
      .media-right,
      .media-body {
        display: table-cell;
        vertical-align: top;
      }
    }
    .reversed {
      overflow: hidden;
      .media-body {
        text-align: right;
        float: right;
        .media-content {
          background-color: #729ef0;
          border-color: #729ef0;
          text-align: left;
          color: #fff;
          &:before {
            left: auto;
            right: -8px;
            border-right: 0;
            border-top: 10px solid transparent;
            border-left: 10px solid;
            border-left-color: inherit;
            border-bottom: 10px solid transparent;
          }
        }
      }
      .media-right {
        padding-left: 20px;
        position: relative;
        float: right;
        img {
          width: 40px;
          height: 40px;
          max-width: none;
          border-radius: 50%;
        }
      }
    }
  }
  .chat-editor {
    position: relative;
    display: flex;
    height: @chat-editor-height;
    background-color: @chat-editor-bg;
    padding: 10px;
    left: 0;
    right: 0;
    bottom: 0px;
    padding: 10px;
    .textarea {
      flex-shrink: 1;
      width: 100%;
      min-height: @chat-editor-height;
      margin-right: 30px;
      margin-left: 4px;
      textarea {
        display: block;
        width: 100%;
        max-height: @chat-editor-height + 20px;
        margin-right: 10px;/*no*/
        font-size: 13px;/*px*/
        line-height: 1.5384616;
        color: #333333;
        border: none;
        resize: none;
        border-radius: 6px;/*no*/
        padding: 7px 12px;/*no*/
        background-color: @chat-whole-bg;
        background-image: none;
        -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);/*no*/
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);/*no*/
        -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
        transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
      }
    }
    #morefunction {
      i {
        &:before {
          font-weight: bold;
        }
      }
    }
    .send {
      flex-shrink: 0
    }
    .sendMsg1 {
      margin-right: 5px;
      color: @gray-littlelight !important;
    }
  }
  .popup-dialog {
    position: absolute;
    padding-bottom: 0px;
  }
  .functionItem {
    .flexbox-item {
      text-align: center;
      .iconfont {
        font-size: @font-size-h2;/*px*/
      }
    }
    .picItem {
      overflow: hidden;
      input[type='file'] {
        height: 200px;
        width: 200px;
        position: absolute;
        left: 0;
        top: -50px;
      }
    }
  }
  .historyLine {
    color: @gray;
    text-align: center;
    margin: 10px 0px;
    font-weight: normal;
    font-size: 14px;/*px*/
  }
  .chat-emoji {
    .emoji-list {
      padding: 0px 5%;
      width: 90% !important;
      -webkit-overflow-scrolling: touch;
      .item {
        display: inline-block;
        img {
          width: 32px;
          height: 32px;
          margin: 5px;
        }
      }
    }
  }

  .zf-face,
  .zf-pic,
  .zf-editor,
  .zf-location {
    font-size: 30px;/*px*/
    color: #585858;
  }
  .zf-add,
  .zf-send {
    color: #9b9b9b;
    line-height: 1;
    font-size: 20px;
  }
  .zf-send- {
    font-size: 18px;/*px*/
  }
  .btn-icon {
    line-height: 1;
    padding: 0 0;
    height: 58px;
    width: 58px;
    background: #f4f4f4;
    border-color: #dddddd;
    margin-top: 5px;
  }
  .flexbox-item {
    p {
      font-size: 14px;/*px*/
      font-weight: normal;
      padding: 5px 0
    }
  }
  .chat-editor {
    .btn-icon {
      height: 38px;
      line-height: 1;
      padding: 0 0px;
      margin-top: -3px;
      border-color: #f0f0f0;
      background: none;
    }
  }
  .zf-set {
    font-size: 22px;/*px*/
  }
}

.commonSays {
  width: 100%;
  overflow: hidden;
  background: @body-bg;
  overflow-y: scroll;
  border-top: 1px solid #eee;
  -webkit-overflow-scrolling: touch;
  li {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
    color: #1b1b1f;
    font-size: @font-size-base;/*px*/
    padding: 17px 10px;
    .del_this {
      display: inline-block;
      position: absolute;
      right: 31px;
      top: 19px;
      zoom: 0.5;
      display: inline-block;
      i {
        font-size: 30px;/*px*/
      }
    }
  }
  .defaults {
    position: relative;
    .edit {
      display: inline-block;
      right: 56px;
      top: 19px;
      position: absolute;
      zoom: 0.5;
      display: inline-block;
      i {
        font-size: 30px;/*px*/
      }
    }
    .says_detail {
      width: 85%;
      display: inline-block;
      word-wrap: break-word
    }
  }
  .add_newSays {
    position: relative;
    .add_ {
      width: 76%;
      display: inline-block;
      text-align: center;
      text-indent: 60px;
    }
    .add_ok {
      width: 90%;
      display: inline-block;
      text-align: center;
      text-indent: 23px;
    }
    .setting {
      width: 33px;
      height: 33px;
      display: inline-block;
      background-size: 33px 33px;
      right: 15px;
      top: 15px;
      position: absolute;
      &:before {
        content: '';
        border: 1px solid #eee;
        margin-right: 3px;
      }
    }
  }
}

#chat-addSays-popup {
  z-index: 8889;
  height: 220px;
  width: 90%;
  border-radius: 12px;
  margin: 0 auto;
  position: absolute;
  top: 50px;
  left: 5%;
  resize: none;
  .add_father {
    position: relative;
    padding: 15px 5px 15px 15px;
    .close {
      position: absolute;
      top: 10px;
      right: 10px;
    }
    .add_title {
      width: 100%;
      text-align: center;
      display: block;
      padding-top: 11px;
      padding-bottom: 15px;
      color: @gray-base;
      font-size: 14px;/*px*/
    }
    #edit_says {
      border: 1px solid #eee;
      width: 90%;
      height: 50px;
      border-radius: 12px;
      border: 1px solid #dedee2;
      background: #fbfbfb;
      padding: 10px;
      overflow-y: scroll;
      -webkit-overflow-scrolling: touch;
      font-size: 14px;/*px*/
      color: @text-color;/*px*/
    }
    .count_num {
      color: #9e9ea4;
      font-size: @font-size-small;/*px*/
      display: block;
      position: absolute;
      bottom: 25px;
      right: 20px;
      #count {
        font-style: normal;
      }
    }
  }
  .complete_edit {
    width: 180px;
    height: 35px;
    line-height: 35px;
    color: #000;
    font-size: 14px;/*px*/
    text-align: center;
    border-radius: 8px;
    position: absolute;
    bottom: -38px;
    left: 80px;
    border: 1px solid #eee;
  }
}

.previewPic {
  position: relative;
  height: 100%;
  width: 600px;
  margin: 0 auto;
}

.previewPic img {
  max-width: 600px;
  position: absolute;
  z-index: 9999999999999;
  bottom: 0;
  top: 0;
  right: 0;
  left: 0;
  margin: auto;
  pointer-events: initial!important;
}

.close_preview {
  z-index: 888990;
  position: absolute;
  top: -37px;
  left: 320px;
}

#chat-targetinfo-popup {
  z-index: 8889;
  height: 420px;
  width: 90%;
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
  top: 50px;
  left: 5%;
  .add_father {
    position: relative;
    padding: 15px 20px;
    .close {
      position: absolute;
      top: 10px;
      right: 10px;
    }
    .tx_targetinfo {
      width: 100%;
      padding: 30px 0;
      border-bottom: 1px solid #eee;
      position: relative;
      img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: block;
        margin: 0 auto;
        pointer-events: initial!important;
      }
    }
    .info1 {
      border-bottom: 1px solid #eee;
      width: 100%;
      height: 45px;
      line-height: 45px;
      .infoDetail {
        display: inline-block;
        width: 35%;
        float: left;
        text-indent: 10px;
      }
      .infoDetail1 {
        display: inline-block;
        width: 64%;
        float: left;
        border-left: 1px solid #eee;
        text-indent: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        a {
          color: #1a1a1f !important;
        }
      }
    }
  }
}


._warm {
  width: 260px;
  height: 160px;
  background: #fff;
  border-radius: 12px;
  z-index: 888890;
  position: fixed;
  top: 130px;
  left: 57px;
  .warm_content {
    color: #1b1b1f;
    font-weight: bold;
    font-size: @font-size-base;/*px*/
    text-align: center;
    height: 27px;
    line-height: 27px;
    padding-top: 20px;
  }
  .wram_title {
    border-bottom: 1px solid #e3e3e3;
    color: #1b1b1f;
    width: 100%;
    height: 50px;
    margin-top: 20px;
    text-align: center;
  }
  .onok {
    text-align: center;
    color: #1b1b1f;
    height: 20px;
    line-height: 40px;
    width: 100%;
    background: #fff;
    border-radius: 0 0 5px 5px;
  }
}

.chat-mobile {
  .chat-editor {
    // position: fixed !important;
  }
  .popup-dialog {
    position: fixed !important;
  }
}
