$otherBox-line: #cccccc;
$otherBox-bg: #ffffff;
$meBox-line: #cccccc;
$meBox-bg: #ffffff;
$tablet-l-width: 1024px;

.chat-messages {
  padding: 2vh 2vw;
  display: flex;
  flex-direction: column;
  width: 100%;
  @media screen and (max-width: #{$tablet-l-width}), (max-height: 800px) {
    font-size: 13px;
  }
}
.information-msg {
  width: 100%;
}

.message-row {
  margin-bottom: 20px;
  .date-splitter {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  .chat-row {
    position: relative;
    display: flex;
    flex-direction: row;
    margin-left: 0;
    .profile-img {
      flex: 0 0 auto;
      &.thumbnail-mask {
        border-radius: 50%;
        width: 50px;
        height: 50px;
        overflow: hidden;
        img {
          width: 50px;
          height: auto;
        }
      }
    }
  }
  .message-main-container {
    .message-main {
      margin-left: 20px;
      margin-right: 10px;
      .chat-name {
        font-size: 12px;
        color: #333333;
        margin-bottom: 6px;
      }
      .bubble {
        border-radius: 0 10px 10px 10px;
        font-weight: 900;
        position: relative;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
        word-break: break-all;
        word-wrap: break-word;
      }
    }
  }
  .secondary-text {
    align-self: flex-end;
    font-size: 11px;
    color: #666666;
    word-wrap: break-word;
    white-space: nowrap;
  }
  &.searched {
    .bubble {
      color: red;
    }
  }
}

.message-row {
  &.me {
    .chat-row {
      flex-direction: row-reverse;
      margin-left: 0;
      margin-right: 0;
      .profile-img {
        display: none;
      }
      .message-main-container {
        .chat-name {
          display: none;
        }
        .message-main {
          text-align: right;
          margin-left: 10px;
          margin-right: 20px;
          .bubble {
            border-radius: 10px 10px 0 10px;
          }
        }
        .secondary-text {
          text-align: end;
        }
      }
    }
  }
}

.bubble-main {
  word-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-word;
}
::ng-deep .view-previous {
  display: flex;
  flex-flow: column;
  color: #ffffff;
  justify-content: center;
  justify-items: center;
  margin: 10px 0 20px;
  button {
    height: 100%;
    width: 100%;
    line-height: 2em;
    border-radius: 100px;
    .mat-button-wrapper {
      justify-items: center;
      svg {
        stroke: #ffffff;
        align-self: center;
        margin-right: 4px;
      }
    }
  }
  .unRead-count {
    display: flex;
    justify-items: self-end;
    flex-flow: row;
    align-items: flex-end;
    height: 20px;
    margin: 10px 0;
    .line {
      height: 1px;
      background-color: #cccccc;
      width: 40%;
      flex: 1 1 auto;
      margin-bottom: 10px;
      display: inline-flex;
    }
    .count {
      width: 260px;
      font-size: 13px;
      text-align: center;
      font-weight: 600;
      color: #333333;
    }
  }
}

.hide {
  opacity: 0 !important;
}

.disappear {
  display: none !important;
}

.chat-messages-buffer-container {
  position: absolute;
  top: 0px;
  overflow-y: hidden !important;
  padding: 2vh 2vw;
  flex-direction: column;
  .chat-messages-buffer {
  }
}
.translation-container {
  font-size: 0.9em;
}
