.app-comment {
  position: relative;
  clear: both;

  .app-comments-wrapper {
    display: flex;
    flex-direction: row;
  }
}

.app-comment-nested {
  padding-left: 33px;
}

.app-comment-avatar,
.app-comment-body {
  display: block;
}

.cmf-viewed-person {
  position: absolute;
  top: -11px;
  right: 35px;

  &.previous {
    top: 7px;
  }
}

.app-comment-avatar {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  margin-left: 2px;

  font-size: 24px;
  line-height: 24px;
  color: #aaa;
  text-align: center;

  background: #ececec;
  border-radius: 50%;

  mat-icon {
    font-size: 17px;
  }
}

.app-comment-text-wrap {
  display: inline-block;

  max-width: 100%;

  font-size: 12px;
  font-weight: normal;
  color: #222;
  word-break: break-word;

  &.it-audit {
    color: rgb(177 171 171);
  }
}

::ng-deep .app-comment-text-wrap a {
  color: #4b96e6;
  text-decoration: none;
}

.app-comment-body {
  width: 100%;
  padding-right: 0;
}

.app-comment-author a {
  display: inline-block;

  margin-bottom: 2px;

  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-222);
  text-decoration: none;
}

.app-comment-author {
  float: left;
}

.app-comment-date {
  display: inline-block;

  margin-bottom: 2px;
  margin-left: 10px;

  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-222);
  text-decoration: none;
}

.app-comment-date-in {
  font-size: 12px;
  color: #a0a0a0;
  text-align: left;
  text-decoration: none;
}

.app-comment-author a:hover {
  text-decoration: underline;
}

.app-comment-actions {
  cursor: pointer;

  position: relative;
  top: -2px;

  display: inline-flex;

  color: #a0a0a0;

  visibility: hidden;

  .app-comment-body:hover & {
    visibility: visible;
  }
}

.app-comment-text {
  display: flex;
  margin-bottom: 10px;
}

.app-comment-compact {
  .app-comment-text-wrap {
    padding: 5px;
    font-size: 13px;
  }
}

.app-comment-group-prev > .app-comment-body > .app-comment-text,
.app-comment-nested.app-comment-group-prev > .app-comment-body > .app-comment-text {
  margin-top: -13px;
  margin-left: 34px;
}

::ng-deep .app-comment {
  .app-comment-author .cmf-person-name a {
    display: inline-block;

    margin-bottom: 2px;

    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray-222);
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.like {
  display: flex;
  flex-direction: column;
  justify-content: center;

  max-width: 24px;
  max-height: 24px;
  padding: 0 5px;

  font-family: var(--default-font-emoji);
  font-size: 14px;

  background-color: rgb(0 0 0 / 0%);
}

.like-choice {
  max-width: 38px;
  max-height: 38px;
  font-family: var(--default-font-emoji);
  font-size: 28px;
}

.isYou {
  .like-group {
    cursor: default;
    display: flex;
    flex-direction: row;
  }
}

::ng-deep .like-menu {
  overflow: hidden;
  min-width: 24px;
  margin-top: -24px;
}

.like-icon {
  cursor: pointer;

  position: absolute;
  top: 0;
  right: 110px;

  width: 14px;
  height: 14px;

  font-family: var(--default-font-emoji);

  visibility: hidden;

  &.previous {
    top: 17px;
  }

  .app-comment-body:hover & {
    visibility: visible;
  }

  .like {
    font-size: 14px;
  }
}

.app-comment-actions {
  cursor: pointer;

  &.dots-menu {
    position: absolute;
    top: -2px;
    right: 90px;

    &.previous {
      top: 15px;
    }
  }
}

.comment__answer {
  cursor: pointer;

  position: absolute;
  top: -4px;
  right: 120px;
  transform: scale(-1, 1);

  visibility: hidden;

  &.previous {
    top: 13px;
  }

  .app-comment-body:hover & {
    visibility: visible;
  }
}

.app-comment-likes {
  display: flex;
  margin-top: -15px;
  margin-bottom: 10px;
}

.emoji-settings {
  cursor: pointer;

  position: absolute;

  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 24px;
  height: 24px;
  padding: 0 5px;

  background: var(--color-gray-fff);
  border-radius: 18px;
}

.likes {
  display: flex;
  flex-flow: row wrap;
}
