#tab-comments .title {
  max-width: 792px;
  margin: 64px auto 40px;
  font-size: 40px;
  line-height: 40px;  
}

#tab-comments .comment_top {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
}

#tab-comments .comment_top .rating_wrapper {
  margin-right: 24px;
}

#tab-comments .comment_top .dot {
  width: 6px;
  height: 6px;
  margin: 0 13px;
  border-radius: 50%;
  background-color: var(--shade);
}

#tab-comments .comments-wrap {
  display: flex;
  flex-direction: column-reverse;
  max-width: 792px;
  margin: 0 auto;
}

#tab-comments .reviews_container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

#tab-comments .reviews_container .comment {
  position: relative;
  margin: 0;
  padding: 24px;
  border-radius: 16px;
  border-end-start-radius: 0;
  background-color: var(--white);
}

#tab-comments .reviews_container .comment:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -24px;
  width: 40px;
  height: 24px;
  background-color: var(--white);
  clip-path: polygon(0 0, 0% 100%, 100% 0);
}

#tab-comments .comment_text {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

#tab-comments .comment .reply-to-comment {
  display: none;
}

#tab-comments nav {
  position: relative;
}

#tab-comments .pagination {
  position: absolute;
  left: 50%;
  margin-top: 0;
  transform: translateX(-50%);
}

#tab-comments .left-comment {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 792px;
  margin: 0 auto 32px;
}

#tab-comments .left-comment:has(.rating-info) {
  justify-content: space-between;
}
#tab-comments .left-comment .rating-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  line-height: 23px;
  font-weight: 700;
}

#tab-comments .left-comment .rating-info .rating_wrapper {
  transform: translateY(1px);
}


#tab-comments button.btn.open-comment-form {
  color: var(--white);
}

#tab-comments .add_comment_box > p {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 600px) {
  #tab-comments .title {
    margin: 32px 0 24px;
    font-size: 24px;
    line-height: 26px;
    text-align: center;
  }

  #tab-comments .left-comment {
    flex-wrap: wrap;
    flex-direction: column-reverse;
    gap: 32px;
    
  }

  #tab-comments .left-comment .rating-info {
    
    width: 100%;
    font-size: 16px;
  }

  #tab-comments .left-comment .quantity_rating {
    margin-left: auto;
  }

  #tab-comments .reviews_container .comment {
    padding: 16px;
  }

  #tab-comments .comment_top {
    flex-wrap: wrap;
    font-size: 14px;
  }

  #tab-comments .comment_text {
    font-size: 14px;
  }

  #tab-comments .reviews_container {
    gap: 32px;
  }

  #tab-comments .comment_top .rating_wrapper {
    width: 100%;
    margin-top: 8px;
    order: 1;
  }

  #tab-comments .add_comment_box .btn.btn-secondary {
    margin: 0 auto;
  }

  #tab-comments .comments-wrap {
    padding-bottom: 40px;
  }

  #tab-comments .pagination {
    top: 15px;
  }
}
