/* =============================================================================
   1. Reviews Title
   ============================================================================= */
h2.woocommerce-Reviews-title {
  font-size: 20px;
  margin-bottom: 20px;
}

.woocommerce-Reviews-title span {
  color: var(--primary, #6c3fff) !important;
  font-weight: 700 !important;
}

.woocommerce-noreviews {
  font-size: 14px !important;
  color: #6b6b8a !important;
  padding: 24px 0 !important;
}

/* =============================================================================
   2. Review List
   ============================================================================= */
#comments ol.commentlist,
ol.commentlist {
  margin: 0 0 32px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* -----------------------------------------------------------------------
   2.1 Review Card
   ----------------------------------------------------------------------- */
ol.commentlist li.review .comment_container {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid #ebebf5;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.05) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

ol.commentlist li.review .comment_container:hover {
  box-shadow: 0 6px 24px rgba(26, 26, 46, 0.10) !important;
  transform: translateY(-2px) !important;
}

ol.commentlist li.review img.avatar {
  position: relative !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0 !important;
  border: 2px solid #e8e8f0 !important;
}

ol.commentlist li.review .comment-text {
  flex: 1 !important;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

ol.commentlist li.review .comment-text .description p {
  font-size: 14px;
  color: #6b6b8a;
  margin: 0 !important;
}

/* -----------------------------------------------------------------------
   2.2 Author, Date & Rating
   ----------------------------------------------------------------------- */
ol.commentlist li.review .comment-text p.meta strong.woocommerce-review__author {
  font-size: 14px;
  color: #1a1a2e;
}

time.woocommerce-review__published-date {
  font-size: 12px;
  color: #9999b3;
}

ol.commentlist li.review .comment-text .star-rating {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0 !important;
  float: none !important;
}

ol.commentlist li.review .comment-text .star-rating span::before {
  color: var(--pc-rating-star-color, var(--primary, #f59e0b));
}

/* -----------------------------------------------------------------------
   2.3 Verified Badge
   ----------------------------------------------------------------------- */
ol.commentlist li.review .comment-text p.meta .woocommerce-review__verified {
  display: inline-flex;
  align-items: center;
  gap: 3px !important;
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 20px;
  padding: 2px 10px 2px 8px;
  white-space: nowrap;
  line-height: 1.6;
}

ol.commentlist li.review .comment-text p.meta .woocommerce-review__verified::before {
  content: '✓' !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* =============================================================================
   3. Review Form
   ============================================================================= */

/* -----------------------------------------------------------------------
   3.1 Form Wrapper & Labels
   ----------------------------------------------------------------------- */
#review_form_wrapper #respond,
#tab-reviews #respond {
  border: 1px solid #ebebf5 !important;
  border-radius: 16px !important;
  padding: 28px !important;
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.05) !important;
}

#review_form_wrapper #respond #reply-title,
#respond #reply-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8f0;
  display: block;
}

#respond label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1a1a2e);
}

#respond .comment-form-rating,
#respond .comment-form-comment {
  margin-bottom: 16px;
}

/* -----------------------------------------------------------------------
   3.2 Star Rating Widget (replaces woocommerce.css base)
   ----------------------------------------------------------------------- */
#respond p.stars {
  margin: 4px 0 12px;
  display: flex;
  align-items: center;
}

#respond p.stars span a {
  display: inline-block;
  position: relative;
  width: 1em;
  height: 1em;
  font-size: 1.4em;
  line-height: 1;
  text-indent: -999em;
  overflow: hidden;
  margin-right: 2px;
  text-decoration: none;
  color: transparent;
  vertical-align: middle;
}

#respond p.stars span a::before {
  content: '\2605';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  text-indent: 0;
  font-size: 1em;
  line-height: 1;
  color: #d1d1e0;
}

#respond p.stars span:hover a::before { color: #f59e0b; }
#respond p.stars span a:hover ~ a::before { color: #d1d1e0; }
#respond p.stars.selected span a::before { color: #f59e0b; }
#respond p.stars.selected span a.active ~ a::before { color: #d1d1e0 !important; }

/* -----------------------------------------------------------------------
   3.3 Inputs
   ----------------------------------------------------------------------- */
#respond textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  color: var(--text, #1a1a2e);
  padding: 11px 14px;
  border: 1px solid #e2e2f0;
  border-radius: 10px;
  background: #f8f8fc !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#respond textarea:focus,
#respond input[type="text"]:focus,
#respond input[type="email"]:focus {
  outline: none;
  border-color: var(--primary, #6c3fff);
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(108, 63, 255, 0.10);
}

#respond textarea#comment {
  min-height: 110px !important;
}

/* -----------------------------------------------------------------------
   3.4 Submit Button
   ----------------------------------------------------------------------- */
#respond .form-submit #submit {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 15px 30px;
  background: var(--main-bg);
  color: #fff;
  border-radius: 10px;
  transition: var(--transition);
}

#respond .form-submit #submit:hover {
  box-shadow: 0 14px 34px var(--btn-shadow);
}

/* =============================================================================
   4. Mobile Responsive
   ============================================================================= */
@media (max-width: 640px) {
  ol.commentlist li.review .comment_container {
    padding: 16px;
    gap: 12px;
  }

  /* Stack verified badge + date below the author name */
  ol.commentlist li.review .comment-text p.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }

  ol.commentlist li.review .comment-text p.meta strong.woocommerce-review__author {
    flex: 0 0 100%;
  }

  #review_form_wrapper #respond,
  #tab-reviews #respond {
    padding: 20px !important;
  }

  #respond .form-submit #submit {
    width: 100% !important;
  }
}