@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%;
      }
    }
  }
}
//mat-snack-bar
::ng-deep .cdk-global-overlay-wrapper {
  .mat-snack-bar-container {
    margin: 0;
    padding: 30px;
    max-width: 60vw;
    .mat-simple-snackbar {
      display: flex;
      justify-content: center;
      span {
        @include ellipsis(3);
        display: inline-block;
        padding: 7px 20px;
        border: 1px solid #ffffff;
        background-color: rgb(255, 255, 255, 0.2);
        color: #ffffff;
        margin-right: 4px;
        flex: 1 1 auto;
        max-width: 40vw;
      }
      &-action {
        display: inline-flex;
        margin-left: auto;
        flex: 0 0 auto;
        height: 100%;
        button {
          //background-color: #00b6d5;
          border-radius: 2px;
          span {
            padding: 0 20px;
            color: #ffffff;
            background: none;
            border: none;
            font-weight: 500;
          }
        }
      }
    }
  }
}

::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);
        }
      }
    }
  }
}