@charset 'utf-s';
:host {
  display: flex;
  width: 100%;
  height: 100%;
}
@mixin ellipsis($row) {
  overflow: hidden;
  text-overflow: ellipsis;
  @if $row == 1 {
    display: block;
    white-space: nowrap;
    word-wrap: normal;
  } @else if $row >= 2 {
    display: -webkit-box;
    -webkit-line-clamp: $row;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
  }
}
.container {
  position: relative;
  width: 100%;
}
.chat-toolbar {
  position: relative;
  display: flex;
  flex-flow: column;
  width: 100%;
  height: auto;
  align-items: center;
  background-color: #ffffff !important;
  border-bottom: 1px solid #dddddd;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  z-index: 1;
  padding: 0;
  .chat-header {
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: space-between;
    justify-items: center;
    padding: 4px 20px;
    .profile-img {
      margin-right: 10px;
      width: 30px;
      height: 30px;
      .responsive-chats-button {
        display: none;
        line-height: normal;
        cursor: unset;
        &:last-child {
          display: block;
          padding: 0;
          width: 30px;
          height: 30px;
          border-radius: 50%;
          color: #efefef;
          font-size: 1rem;
        }
      }
      &.thumbnail-mask {
        border-radius: 50%;
        overflow: hidden;
        img {
          width: 50px;
          height: auto;
        }
      }
    }
    .room-info {
      display: flex;
      flex-flow: row;
      overflow: hidden;
      align-items: center;
      .room-name {
        font-size: 0.94rem;
        line-height: normal;
        @include ellipsis(1);
      }
      .room-type {
        font-size: 0.9rem;
        line-height: normal;
        height: 20px;
        span {
          border-radius: 10px;
          padding: 2px 6px;
          margin-right: 6px;
          font-size: 0.7rem;
        }
      }
    }
    .room-option {
      margin-left: auto;
      margin-right: -10px;
      .icon-button {
        transform: translateY(-2px);
        i {
          font-size: 0.9em;
        }
      }
    }
  }
  .chat-search-frame {
    position: relative;
    width: 100%;
    .chat-search {
      margin: 0 4px 4px;
    }
  }
}

.chat-content {
  position: relative;
  background: transparent;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  .file-drop-zone-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;

    .file-drop-zone {
      position: absolute;
      padding: 10px;
      background-color: rgb(54, 54, 54, 0.8);
      bottom: 0;
      width: 100%;
    }
  }

  .sticker-selector-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent;

    .sticker-selector-zone {
      position: absolute;
      padding: 10px 10px 0 10px;
      background-color: rgba(250, 255, 255, 0.8);
      bottom: 0;
      width: 100%;
    }
  }
}
.translation-container {
  .translation-section {
    display: flex;
    flex-flow: column;
    border-top: 1px solid #dddddd;
    .translation-container {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: transparent;
      background-color: rgba(250, 255, 255, 0.8);
      border-top: 1px solid;

      .translation-zone {
        position: absolute;
        padding: 10px 10px 0 10px;
        background-color: rgba(250, 255, 255, 0.8);
        bottom: 0;
        width: 100%;
      }
    }
  }
}

::ng-deep .chat-snackbar-class {
  .mat-simple-snackbar {
    span {
      @include ellipsis(1);
    }
  }
}

::ng-deep .chat-header {
  .profile-img {
    .chat-timer {
      .mat-button-wrapper {
        display: flex;
        justify-content: center;
        justify-items: center;
        .mat-icon {
          line-height: normal;
          color: #ffffff;
          font-size: 20px;
          transform: translateY(1px);
        }
      }
    }
  }
}
