.message-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  @media (max-width: 1023px) {
    display: block;
  }
  .message-grid {
    flex: 1;
    .rgt-cell-header {
      border-radius: .375rem;
    }
  }
}

.chat-style {
  border-left: 1px solid var(--#{$variable-prefix}input-floating-border);
  @media (max-width: 1023px) {
    margin-top: .938rem;
    border-top: 15px solid var(--#{$variable-prefix}light-gray-background);
    border-left: 0;
  }
  .chat-header {
    border-radius: 0 .375rem 0 0;
    @media (max-width: 1023px) {
      border-radius: .375rem .375rem 0 0;
    }
  }
  .chat-body {
    @media (max-width: 1023px) {
      min-height: 25rem;
      max-height: 25rem;
    }
  }
}

.chat-block {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.chat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background-color: var(--#{$variable-prefix}color-light-gray);
  border-radius: .375rem .375rem 0 0;
  gap: 1rem;
  .circle-wrap {
    position: relative;
    overflow: visible;
    font-size: 1.125rem;
    font-weight: 500;
  }
  .online-status {
    position: absolute;
    top: 0;
    right: -.25rem;
    width: .75rem;
    height: .75rem;
    background-color: #87ff77;
    border: 2px solid #f9fafb;
    border-radius: 50%;
    &.offline {
      background-color: #fff;
    }
    &.away {
      background-color: #ff9377;
    }
    &.busy {
      background-color: #b93333;
    }
  }
  .information-detail {
    h4 {
      margin: 0;
      font-size: 1rem;
      line-height: 1.25rem;
    }
    span {
      font-size: .625rem;
      line-height: .813rem;
      color: #4c7ded;
      opacity: .6;
    }
  }
}

.chat-body {
  flex: 1;
  min-height: calc(100vh - 350px);
  max-height: calc(100vh - 136px);
  padding: 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-top: 1px solid var(--#{$variable-prefix}input-floating-border);
  .btn-send {
    padding: .25rem;
  }
  .form-control {
    flex: 1;
  }
}

.chat-msg-block {
  h4 {
    margin: 1.063rem 0;
    font-size: .75rem;
    font-weight: 600;
    line-height: .938rem;
    color: var(--#{$variable-prefix}eerie-black);
    text-align: center;
    opacity: .7;
  }
}

.chat-msg-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  .chat-msg-content {
    padding: .75rem .875rem;
    margin-bottom: .5rem;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.125rem;
    color: #1b1c21;
  }

  &.msg-received {
    .chat-msg-content {
      background-color: #eaedf4;
      border-radius: 0 .375rem .375rem;
    }
  }

  &.msg-send {
    align-items: flex-end;
    .chat-msg-content {
      background-color: #c7dcff;
      border-radius: .375rem 0 .375rem .375rem;
    }
  }
  .msg-chat-holder {
    max-width: 60%;
  }

  .chat-msg-time {
    display: flex;
    font-size: .625rem;
    font-weight: 600;
    line-height: .813rem;
    color: var(--#{$variable-prefix}eerie-black);
    opacity: .7;
  }
}
