.commentlist {
  list-style: none;
  padding: 0;
  margin: 0;

  ul {
    list-style: none;
  }

  .comment {
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 10px;
    margin-top: 30px;

    .comment_container {
      display: flex;
      width: 100%;
      clear: both;

      .comment-avatar {
        margin-right: 24px;

        img {
          border-radius: 50%;
        }
      }

      .comment-text {
        flex-grow: 1;

        .comment-header {
          display: inline-block;
          vertical-align: middle;
          line-height: 1;
          margin-bottom: 10px;
          color: gray('500');

          .date {
            display: block;
            margin-top: 10px;
            line-height: 1.2;
            color: #8a8a8a;
            font-size: 14px;
          }

          .comment-author {
            display: inline-block;
            font-size: 18px;
            line-height: 1;
            color: #464749;
            font-weight: 500;
            margin-bottom: 0;
            margin-right: 10px;
          }
        }
      }

      @include media-breakpoint-down(sm) {

        .comment-avatar {
          width: 40px;
          min-width: 40px;
        }
      }
    }

    .comment-link-btn {
      margin-left: 10px;
      padding: 5px 10px;
      font-size: 13px;
      background-color: gray('100');
      border-radius: 2px;
      line-height: 1.5;

      i {
        margin-right: 8px;
      }
    }

    .star-rating {
      display: inline-block;
      vertical-align: top;
      width: 90px;
      height: 18px;
      background-size: 18px;
      background: url('../images/star-empty.svg') left top repeat-x;

      & > span {
        display: block;
        text-indent: -9999px;
        line-height: 1;
        height: 18px;
        background-size: 18px 18px;
        background: url('../images/star-fill.svg') left top repeat-x;
      }

    }

    .comment-respond {
      margin-bottom: 20px;
      padding: 30px;
      background-color: gray('100');
      border-radius: 3px;
    }

  }

  > li:first-child {
    padding-top: 30px;
    border-top: 1px solid #f2f2f2;
  }
}

.comment-respond {
  margin-top: 30px;

  .comment-form-rating {
    margin-bottom: 15px;

    .stars {
      display: none;
    }
  }

  .form-submit,
  .must-log-in {
    margin-bottom: 0;
  }

  .comment-reply-title {

    small a {
      font-size: 14px;
      margin-left: 10px;
      padding: 3px 6px;
      border-radius: 3px;
      border: 1px solid $border-color;
    }
  }

  p {
    margin-bottom: 16px;

    input,
    textarea {
      width: 100%;
    }

    textarea {
      height: 140px;
    }

    .form-submit,
    .submit {
      width: auto;
    }
  }


  .comment-form {
    @include make-row();

    p,
    .comment-form-rating {
      @include make-col-ready();
    }

    @include media-breakpoint-up(md) {

      .comment-form-author,
      .comment-form-email,
      .comment-form-url {
        @include make-col(4);
      }

      .review_form & {
        .comment-form-author,
        .comment-form-email {
          @include make-col(6);
        }
      }
    }
  }
}

// Comment Holder
.comment-holder {
  background-color: $white;
  border-radius: $border-radius;
  border: 1px solid $border-color;
  padding: 1.875rem;

  .commentlist {

    .children {
      margin-left: 95px;
      border-top: 1px solid #f2f2f2;

      @include media-breakpoint-down(sm) {
        margin-left: 15px;
      }

      .comment {

        &:last-child {
          border-bottom: none;
          padding-bottom: 0;
        }
      }
    }
  }
}

.comment-respond-holder {
  background-color: $white;
  border-radius: $border-radius;
  border: 1px solid $border-color;
  padding: 1.875rem;
  margin-top: 30px;

  .comment-respond {
    margin-top: 0;
  }
}

// Comment List on post type post and page single
.page,
.single-post {

  .commentlist .comment-body,
  .commentlist .comment-text {
    position: relative;
    padding-left: 58px;
    padding-bottom: 0;

    @include media-breakpoint-up(md) {
      padding-left: 94px;
    }
  }

  .commentlist {

    .comment {

      .avatar {
        width: 40px;
        height: 40px;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 50%;

        @include media-breakpoint-up(md) {
          width: 70px;
          height: 70px;
        }
      }

      .vcard {
        display: inline-block;
        border: 0;
        padding: 0;
        margin: 0 0 16px;

        .fn {
          font-size: 18px;
          font-style: normal;
          font-weight: 500;
          color: #464749;

          a {
            color: #464749;

            &:hover {
              color: color('blue');
            }
          }
        }

        .says {
          display: none;
        }
      }

      .comment-meta {
        display: inline-block;
        line-height: 1;
        font-size: 14px;
        color: #8a8a8a;
        margin-bottom: 16px;

        a {
          color: #8a8a8a;
        }
      }

      .comment-content {
        p {
          margin-bottom: 16px;
        }
      }

      .reply {
        margin-bottom: 20px;

        .comment-reply-link {
          color: color('blue');
        }
      }
    }
  }
}