.TUIChat {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: absolute;

  &-header {
    padding: 12Px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #DFE1E3;
    background-color: #F1F2F3;

    h1 {
      font-size: 16Px;
      line-height: 30Px;
    }
  }

  &-safe-tips {
    padding: 12Px 20Px;
    background-color: rgba(255, 149, 0, 0.1);
    color: #ff8c39;
    line-height: 18Px;
    font-family: 'PingFang SC';
    font-style: normal;
    font-weight: 400;
    text-align: justify;
    font-size: 12Px;

    a {
      color: #006eff;
      float: right;
    }
  }

  .TUIChat-setting {
    position: absolute;
    right: 0;
    height: calc(100% - 40Px);
    z-index: 2;
    top: 40Px;
  }

  &-main {
    min-height: 0Px;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  &-footer {
    border-top: 2px solid #DFE1E3;
    height: 173Px;
    display: flex;
    flex-direction: column;
    background-color: #f1f2f3;

    .input {
      flex: 1;
      position: relative;
      display: flex;
      flex-direction: column;

      textarea {
        width: 100%;
        line-height: 20Px;
        margin: 0;
        padding: 2Px 20Px;
        resize: none;
        box-sizing: border-box;
        border: none;
        background: no-repeat;

        &:focus {
          outline: none;
          border: none;
        }
      }

      p {
        padding: 12Px 20Px 20Px;
      }

      .input-btn {
        position: absolute;
        bottom: 20Px;
        right: 20Px;
        padding: 8Px 20Px;
        border-radius: 4Px;
        border: none;
        font-size: 14Px;
        text-align: center;
        line-height: 20Px;

        &:hover {
          .input-btn-hover {
            display: flex;
          }
        }

        &-hover {
          display: none;
          justify-content: center;
          align-items: center;
          position: absolute;
          right: 120%;
          word-break: keep-all;
          height: 30Px;
          white-space: nowrap;
          top: 0;
          bottom: 0;
          margin: auto 0;
          padding: 5Px 10Px;
          border-radius: 3Px;

          &::before {
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            right: -20Px;
          }
        }
      }
    }
  }

  .disabled {
    position: relative;

    &::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
    }
  }
}

.TUI-message-list {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background-color: #F1F2F3;

  .message-more {
    font-size: 0.9rem;
    padding: 5Px;
    text-align: center;
  }

  li:first-child {
    margin-top: 5Px;
  }

  li {
    display: flex;
    position: relative;
    padding: 0 20Px 30Px;
    flex-direction: column;

    .message-label {
      max-width: 50Px;
    }
  }

  .right {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }

  .to-bottom-tip {
    position: sticky;
    bottom: 10Px;
    left: 100%;
    margin-right: 15Px;
    width: 110Px;
    height: 28Px;
    padding: 0 5Px;
    background: #ffffff;
    border: 1Px solid #e0e0e0;
    box-shadow: 0 4Px 12Px 0 rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 3Px;

    .icon {
      width: 10Px;
      height: 10Px;
    }

    &-cont {
      font-family: PingFangSC-Regular;
      font-weight: 400;
      font-size: 10Px;
      color: #147aff;
      letter-spacing: 0;
      text-align: center;
      padding-left: 3Px;
    }
  }
}

.dialog {
  position: absolute;
  z-index: 5;

  &-item {
    min-width: min-content;
    max-width: 220Px;
    width: 72Px;
    word-break: keep-all;
    top: 30Px;
    border-radius: 8Px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    white-space: nowrap;

    li:first-child {
      margin-top: 0;
    }

    li {
      padding: 4Px 12Px;
      font-size: 12Px;
      line-height: 17Px;
      display: flex;
      flex-direction: row;
      align-items: center;
      flex-direction: row;

      span {
        padding-left: 4Px;
      }
    }
  }

  &-conversation {
    .avatar {
      width: 36Px;
      height: 36Px;
      margin: 0 5Px 0 8Px;
    }

    .name {
      font-size: 14Px;
    }
  }

  &-userInfo {
    box-sizing: border-box;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;

    .userInfo-main {
      height: 100%;
      box-sizing: border-box;
      padding: 20Px;
      width: 240Px;

      header {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      main {
        display: flex;
        padding: 20Px 0;

        ol {
          flex: 1;
          display: flex;
          flex-wrap: wrap;

          dl {
            position: relative;
            flex: 0 0 33%;
            display: flex;
            flex-direction: column;
            align-items: center;

            img {
              width: 40Px;
              height: 40Px;
            }

            .more {
              padding-top: 10Px;
            }

            dd {
              max-width: 60Px;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }

            .userInfo-mask {
              position: absolute;
              z-index: 5;
              padding: 20Px;
              left: 100%;

              li {
                display: flex;
                align-items: center;

                label {
                  width: 60Px;
                }

                span {
                  max-width: 200Px;
                  word-break: keep-all;
                }
              }
            }
          }
        }
      }
    }
  }
}

.image-dialog {
  position: fixed;
  z-index: 5;
  width: 100vw;
  height: calc(100vh - 63Px);
  top: 63Px;
  left: 0;

  header {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
    padding: 10Px 10Px;
  }
}

.memberList-box {
  position: absolute;
  bottom: 128Px;
  width: 21.94rem;
  max-height: 10rem;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 0.06rem 0.63rem 0 rgba(2, 16, 43, 0.15);
  border-radius: 0.13rem;

  &-header {
    height: 2.5rem;
    padding-top: 5Px;
    cursor: pointer;

    &:hover {
      background: rgba(0, 110, 255, 0.1);
    }
  }

  span {
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 0.88rem;
    color: #000000;
    letter-spacing: 0;
    padding-left: 5Px;
  }

  &-body {
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;

    &:hover {
      background: rgba(0, 110, 255, 0.1);
    }
  }

  img {
    width: 1.5rem;
    height: 1.5rem;
    padding-left: 10Px;
  }

  .selected {
    background: rgba(0, 110, 255, 0.1);
  }
}

.reply {
  display: flex;
  width: 100%;

  &-box {
    flex: 1;
    align-items: center;
    display: flex;
    padding: 0 18Px;

    i {
      height: 3.5rem;
      border: 1Px solid #e8e8e9;
    }

    label {
      margin-top: 5Px;
    }

    &-show {
      flex: 1;
      display: flex;
      width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex-direction: column;
      justify-content: center;
      padding-left: 6Px;

      span {
        height: 1.25rem;
        font-family: PingFangSC-Regular;
        font-weight: 400;
        font-size: 0.88rem;
        color: #bfc1c5;
        letter-spacing: 0;
        text-overflow: ellipsis;
        width: 100%;
        overflow: hidden;
      }
    }
  }
}

.reference {
  width: auto;
  padding-bottom: 0Px;
  margin: 0Px 100Px 10Px 10Px;
  display: flex;

  &-box {
    padding: 0;
    overflow: hidden;
    width: max-content;
    padding: 10Px;
    background-color: #fbfbfb;
    display: flex;
    border-radius: 8Px;

    &-show {
      width: max-content;
      padding-right: 10Px;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      flex: 1;

      &-name {
        padding-right: 5Px;
      }

      span {
        width: max-content;
        font-family: 'PingFang SC';
        font-style: normal;
        font-weight: 400;
        font-size: 12Px;
        line-height: 17Px;
        color: #666666;
      }
    }
  }
}

.btn {
  padding: 8Px 20Px;
  border-radius: 4Px;
  border: none;
  font-size: 14Px;
  text-align: center;
  line-height: 20Px;
}

.toggleMask {
  &::before {
    position: fixed;
    z-index: 1;
    content: '';
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    opacity: 0;
  }
}

::-webkit-scrollbar {
  width: 6Px;
  height: 140Px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  border-radius: 10Px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10Px;
  background-color: #9a999c;
}