.chat {
  display: flex;
  .dialogs {
    @include block;
    border-radius: 0;
    min-width: 30%;
    min-height: 85vh;
    margin: 0 0 20px 0;
    .dialog.active {
      background: #e3e3e3;
    }
    .dialog {
      cursor: pointer;
      display: flex;
      padding: 20px;
      &:hover {
        background: #e3e3e3;
      }
      border-bottom: 1px solid #e3e3e3;
      img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 10px 0 0;
      }
      p {
        background: #e3e3e3;
        padding: 3px;
        border-radius: 3px;
        margin: 5px 0 0 0;
      }
    }
  }
  .open-dialog {
    @include block;
    border-radius: 0;
    width: 100%;
    margin: 0 0 20px 0;
    .messages {
      overflow-y: scroll;
      padding: 20px;
      li {
        display: flex;
        border-radius: 20px;
        padding: 10px 20px;
        margin: 10px 0;
        max-width: 40%;
        clear: both;
        img {
          display: block;
          height: 30px;
          width: 30px;
          border-radius: 50%;
          object-fit: cover;
          margin: 0 10px 0 0;
        }
        .date {
          font-size: 12px;
          color: rgba(255, 255, 255, 0.46);
        }
      }
      li.me {
        background: darken($theme-color, 20);
        color: #ffffff;
        float: right;
      }
      li.sender {
        background: #828282;
        color: #ffffff;
      }
    }
    .send-message-form {
      display: flex;
      padding: 10px;
      button {
        width: 50px;
        margin: 0 0 0 10px;
      }
    }
  }
}