#comments {
  position: relative;
  margin-top: 40px;
  clear: both;
}

#comments .title_comments {
  font-size: 28px;
  line-height: 1.2;
  color: #1a1a1a;
  padding-bottom: 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.commentlist {
  margin: 0 0 30px 0;
  list-style: none;
  clear: both;
}

.commentlist li {
  margin-bottom: 30px;
  position: relative;
}

.commbox {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: all 0.3s ease-in-out;
}

.commbox:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.commentlist ul.children {
  margin-left: 30px;
  padding-left: 20px;
  position: relative;
  margin-top: 25px;
  border-left: 3px solid #f0f0f0;
}

.commentlist ul.children .commbox:before {
  content: "";
  left: -15px;
  position: absolute;
  top: 15px;
  width: 15px;
  height: 3px;
  background-color: #f0f0f0;
}

.commentlist .comment-author img {
  width: 60px;
  height: 60px;
  float: left;
  margin-right: 20px;
  border-radius: 50%;
  border: 3px solid #f8f8f8;
}

.comm_meta_wrap {
  margin: 0 0 0 80px;
  display: block;
}

.commentlist .comment-author .fn {
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
  text-transform: capitalize;
  display: block;
}

.commentlist .comment-author .fn a {
  margin: 0;
  color: #1a1a1a;
  text-decoration: none;
}

.commentlist .comment-author .fn a:hover {
  color: #007bff;
}

.commentlist .comment-author span.time {
  font-size: 13px;
  display: block;
  text-decoration: none;
  margin: 6px 0 0 0;
}

.commentlist .comment-author span.time a {
  color: #999999;
}

.commentlist .comment-author a div.comment-link {
  display: none;
}

.commentlist .comment-content {
  display: block;
  padding: 15px 0 0 0;
  position: relative;
  overflow: auto;
}

.commentlist .comment-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 12px 0;
}

.commentlist .comment-content small {
  color: #aaa;
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

.comment-reply-link,
.comment-reply-login,
.comment-edit-link {
  font-size: 14px;
  float: right;
  color: #777;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.comment-reply-link:hover,
.comment-reply-login:hover,
.comment-edit-link:hover {
  color: #007bff;
}

.comment-reply-link:before,
.comment-reply-login:before {
  content: "\f062";
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  padding-right: 5px;
}

.comment-respond {
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-radius: 12px;
}

.comment-respond h3 {
  font-weight: bold;
  font-size: 22px;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 25px 0;
  color: #1a1a1a;
}

#cancel-comment-reply-link {
  border-bottom: 1px dotted #1a1a1a;
  margin: 0 10px;
  text-decoration: none;
  font-size: 13px;
  color: #1a1a1a;
}

.comment-respond .usr_re input,
.comment-respond .email_re input,
.comment-respond .site_re input {
  padding: 0 15px; /* Увеличили внутренний отступ для текста */
  width: 100%;
  font-size: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  height: 48px; /* Немного увеличили высоту */
  border: 1px solid #e0e0e0;
  float: left;
  position: relative;
  background-color: #f9f9f9;
  box-sizing: border-box; /* Важно, чтобы ширина не менялась от padding */
  transition: all 0.3s ease;
}

.comment-respond textarea {
  width: 100%;
  margin-bottom: 20px;
  clear: both;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background-color: #f9f9f9;
  padding: 15px;
  font-size: 15px;
  min-height: 150px; /* Задаем минимальную высоту, чтобы не было "странной штуки" */
  resize: vertical; /* Разрешаем изменение размера только по вертикали */
  transition: all 0.3s ease;
}

.comment-respond .usr_re,
.comment-respond .email_re,
.comment-respond .site_re {
  display: block;
  vertical-align: middle;
  position: relative;
  float: left;
  width: 32%;
  margin-right: 2%;
}

.comment-respond .end {
  margin-right: 0 !important;
}

.comment-respond .usr_re:after,
.comment-respond .email_re:after,
.comment-respond .site_re:after {
  display: none; /* Убираем иконки, чтобы не дублировать placeholder */
}

/* Изменения в стилях полей ввода */
.comment-respond .usr_re input,
.comment-respond .email_re input,
.comment-respond .site_re input {
  padding: 0 15px;
  /* Убрали отступ для иконок */
}

.comment-respond .usr_re::placeholder,
.comment-respond .email_re::placeholder,
.comment-respond .site_re::placeholder {
  color: #a0a0a0;
  font-style: italic;
}

.comment-respond p.form-submit {
  clear: both;
  margin-top: 15px;
}

#commentform #submit {
  font-size: 16px;
  padding: 12px 25px;
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

#commentform #submit:hover {
  background-color: #0056b3;
}

#disqus_thread {
  margin-top: 20px;
}

p.comment-subscription-form {
  margin-top: 10px;
}

#comments_pagination {
  font-size: 18px;
  text-align: center;
}

#comments_pagination a {
  color: #111;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

#comments_pagination a:hover {
  background: #f0f0f0;
}

#comments_pagination span.page-numbers.current {
  background: #007bff;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
}

#loadcomment-list .loadingcomment i {
  font-size: 20px;
  color: #007bff;
}

.commentlist #user_reviews_in_comment {
  display: none;
}

.ap_waiting {
  color: red;
  margin: 10px 0;
}

#rehub-comments-tabs .add_user_review_link {
  float: right;
  padding: 8px 15px;
  margin: 5px 0 20px 20px;
  border-radius: 6px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

#rehub-comments-tabs .add_user_review_link:hover {
  background-color: #0056b3;
}

.commentlist .rh-user-rank-mc {
  font-size: 11px;
  padding: 2px 5px;
}

.commentlist .rh_mycred-users-badges img {
  width: 20px;
  height: 20px;
  margin: 0 2.5px;
  border-radius: 0;
}

/* Новый стиль для слайдера рейтинга */
.wpsm-rating-input .rh-review-stars-wrap {
  display: flex;
  align-items: center;
}

.wpsm-rating-input .rh-review-stars-wrap .star-wrap {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s ease;
}

.wpsm-rating-input .rh-review-stars-wrap .star-wrap:hover,
.wpsm-rating-input .rh-review-stars-wrap .star-wrap.active {
  color: #ffc107;
}

/* Слайдер */
.wpsm-slider-wrap .ui-slider {
  background: #f0f0f0;
  border: none;
  border-radius: 6px;
  height: 8px;
  position: relative;
}

.wpsm-slider-wrap .ui-slider .ui-slider-range {
  background: linear-gradient(to right, #654ea3, #eaafc8);
  border-radius: 6px;
}

.wpsm-slider-wrap .ui-slider .ui-slider-handle {
  background: #fff;
  border: 3px solid #654ea3;
  border-radius: 50%;
  cursor: pointer;
  height: 18px;
  width: 18px;
  top: -5px;
  outline: none;
  transition: border-color 0.3s ease;
}

.wpsm-slider-wrap .ui-slider .ui-slider-handle:hover {
  border-color: #eaafc8;
}

/* Цвет рейтинга */
.wpsm-rating-input .rating-label span {
  font-weight: bold;
  background: linear-gradient(to right, #654ea3, #eaafc8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rehub-rating-bar {
  background-color: #f0f0f0;
  height: 8px;
  border-radius: 4px;
  position: relative;
  margin-top: 5px;
}

.rehub-rating-bar .rehub-rating-line {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to right, #654ea3, #eaafc8);
}

.review-summary {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.review-summary .summary-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.review-summary .summary-text {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.rh-reviewbox-score {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.rh-reviewbox-score .rh-review-stars-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.rh-reviewbox-score .rh-review-stars-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rh-reviewbox-score .rh-review-stars-wrap .star {
  font-size: 22px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s ease;
}

.rh-reviewbox-score .rh-review-stars-wrap .star.active {
  color: #ffc107;
}

@media screen and (max-width: 767px) {
  .comment-respond .usr_re,
  .comment-respond .email_re,
  .comment-respond .site_re {
    width: 100%;
    margin: 0;
  }
  .commentlist .comment-author img {
    width: 40px;
    height: 40px;
  }
  .comm_meta_wrap {
    margin: 0 0 0 60px;
  }
  .commentlist ul.children {
    margin-left: 10px;
    padding-left: 10px;
  }
  .commentlist ul.children .commbox:before {
    left: -10px;
  }
}