@import '~@ucap/lg-scss/mixins';

.info {
  display: flex;
  flex-direction: column;
  flex-grow: 1.354;
  margin-left: 30px;
  overflow: hidden;
  justify-content: space-between;
  min-width: 450px;
  @include screen(mid) {
    overflow: visible;
    margin-left: 0;
    padding: 30px 0;
  }
  .bookmark {
    display: flex;
    flex-direction: column;
    .chatlist {
      display: flex;
      flex-direction: column;
      margin-top: 15px;
      .chatlist-con {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        position: relative;
        min-height: 70px;
        &:after {
          content: '';
          width: calc(100% - 66px);
          height: 1px;
          background-color: $gray-rec;
          position: absolute;
          bottom: 0;
          right: 0;
        }
        // Profile thumb//////////////////
        .user-profile-thumb {
          @include profile-avatar-default(
            0,
            18.6,
            $green,
            30px
          ); //오른 아래 공간, 모바일 온라인 아이콘 크기, 모바일 아이콘 색, 모바일 아이콘 bg크기
          flex-basis: 46px;
          .profileImage {
            @include avatar-img(46px, 0); //아바타 크기, 왼쪽공간
          }
        }
        //////////////////Profile thumb //
        .chat-info {
          display: flex;
          flex-direction: column;
          justify-content: center;
          min-height: 70px;
          flex-grow: 1;
          padding-left: 20px;
          .roomName {
            font: {
              size: 16px;
              weight: 600;
            }
            color: #333;
            line-height: 21px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            height: 21px;
          }
          .lastMessage {
            font: {
              size: 12px;
            }
            color: $gray-re70;
            line-height: 16px;
            margin-top: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            height: 16px;
          }
        }
        .subInfo {
          color: $gray-re9;
          line-height: 15px;
          align-self: flex-start;
          padding: 12px 0 0 12px;
          .mat-badge-content {
            right: 0 !important;
            border: 1px solid #ffbf2a;
            width: 20px;
            height: 20px;
            line-height: 20px;
            box-sizing: content-box;
            top: 23px !important;
            //background-color: #ffbf2a;
          }
        }
      }
    }
  }
  .allim {
    overflow-x: auto;
    @include no-scrollbar();
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
    .btn-scroll-ctrl {
      position: absolute;
      z-index: 10;
      top: calc(50% - 23px);
      left: 22px;
      width: 46px;
      height: 46px;
      background-color: rgba(32, 32, 32, 0.56);
      border: 1px solid $gray-re70;
      border-radius: 50%;
      justify-content: center;
      display: flex;
      align-items: center;
      &.btn-scroll-right {
        left: auto;
        right: 22px;
      }
    }
    .allimList {
      margin-top: 24px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      .allim-card {
        flex: 1 0 200px;
        padding: 27px 17px 0;
        min-width: 200px;
        height: 240px;
        border: solid 1px #d4d4d4;
        border-bottom-width: 2px;
        background-color: #ffffff;
        box-shadow: none;
        border-radius: 0;
        margin-left: 16px;
        &:first-of-type {
          margin-left: 0;
        }
        .mat-card-header {
          .allim-header-image {
            background-size: cover;
          }
        }
        .allim-con-title {
          display: block;
          height: 36px;
          line-height: 36px;
          font-size: 14px;
          font-weight: 600;
          color: $gray-re3;
          border-bottom: 1px solid #d4d4d4;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          align-self: stretch;
        }
        .allim-contents {
          display: block;
          font-size: 12px;
          color: $gray-re70;
          line-height: 1.67;
          margin: 12px 0 22px;
          max-height: 43px;
          height: 43px;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          align-self: stretch;
        }
        .btn-more {
          width: 100%;
          height: 40px;
          border-top: 1px solid #d4d4d4;
          font-size: 12px;
          font-weight: 600;
          color: $gray-re9;
          border-radius: 0;
        }
      }
    }
  }
  .banner-box {
    width: 100%;
    height: 74px;
    @extend %guideline;
    align-self: flex-end;
  }
}
