.field--type-comment {
  & > h2 {
    margin-bottom: 50px;
  }
}

article.comment {
  margin-bottom: 30px;

  .left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
    color: var(--primary-darker);
    border-radius: 100%;
    background-color: var(--primary-damped);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.5;

    article.profile {
      .field--name-user-picture {
        margin: 0;
        img {
          border-radius: 100%;
        }
      }
    }

    @media (min-width: $screen-md-min) {
      margin-bottom: 0;
    }
  }

  .right {
    .comment__meta {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
      padding: 0 8px;
      gap: 14px;

      mark {
        padding: 0 5px;
        color: var(--black);
        border-radius: 3px;
        font-size: 14px;
        font-weight: 800;
        line-height: 18px;
      }

      .comment-info {
        display: flex;
        align-items: center;
        margin-right: auto;
        line-height: 1.5;

        .author {
          margin-right: 15px;
          color: var(--primary-darker);
          font-size: 16px;
          font-weight: 800;
        }

        .date {
          color: var(--black-60);
          font-size: 14px;
          font-weight: 600;
        }
      }

      .permalink {
        display: flex;
        align-items: center;
        a {
          font-size: 12px;
          font-weight: bold;
        }

        @media (max-width: $screen-xs-max) {
          display: none;
        }
      }

      @media (min-width: $screen-md-min) {
        padding: 0 20px;
      }
    }

    .content {
      padding: 15px 20px 20px 20px;
      border-radius: 8px;
      background-color: var(--black-05);

      h3 {
        margin-bottom: 10px;
        padding: 0;
        color: var(--black);
        font-size: 20px;
        font-weight: 600;
        line-height: 1.5;

        a {
          text-decoration: none;
          color: var(--black);

          &:hover {
            color: var(--primary);
          }
        }
      }

      .field--name-comment-body {
        margin-bottom: 15px;
        font-size: 16px;
        line-height: 1.5;

        p {
          margin-bottom: 5px;
        }
      }

      ul.links {
        display: flex;
        flex-direction: row-reverse;
        margin: 0;
        padding: 10px 0 0 0;
        border-top: 1px solid var(--primary-damped);

        li {
          margin: 0;
          padding: 0;
          list-style: none;
          font-size: 14px;
          line-height: 1.5;

          &:last-child {
            margin-right: auto;
          }

          a {
            font-size: 14px;
            font-weight: 600;

            &:hover {
              color: var(--primary);
            }
          }

          a[href*='reply'],
          a[href*='edit'],
          a[href*='delete'] {
            display: inline-block;
            margin-right: 15px;
            padding-left: 40px;
            text-decoration: none;
            color: var(--black-80);
            background-size: auto 26px;
            line-height: 26px;

            &:hover {
              color: var(--primary);
            }
          }

          a[href*='reply'] {
            background: url('../images/ico-comments-reply.svg') no-repeat 7px 50%;
          }

          a[href*='edit'] {
            background: url('../images/ico-comments-edit.svg') no-repeat 7px 50%;
          }

          a[href*='delete'] {
            background: url('../images/ico-comments-delete.svg') no-repeat 7px 50%;
          }
        }
      }
    }
  }

  @media (min-width: $screen-md-min) {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 40px;
  }
}

.indented {
  @media (min-width: $screen-md-min) {
    margin-left: 110px;

    article.comment {
      grid-template-columns: 50px 1fr;
      gap: 30px;

      .left {
        width: 50px;
        height: 50px;
      }
    }

    .indented {
      margin-left: 80px;
    }
  }
}
