/* ============================================
   Product Reviews Component - CSS
   ============================================ */

/* Main Container */
.productreview-reviews-main-container {
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  padding: 0;
  box-sizing: border-box;
}

.productreview-reviews-content-wrapper {
  width: 100%;
  padding: 0;
}

/* Page Title */
.productreview-reviews-page-title {
  font-size: 20px;
  font-weight: 700;
  color: #20253C;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

/* ============================================
   Overall Rating Section
   ============================================ */
.productreview-reviews-overall-rating-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.productreview-reviews-overall-rating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 264px;
}

.productreview-reviews-rating-value {
  display: flex;
  align-items: center;
  gap: 4px;
}

.productreview-reviews-rating-number {
  font-size: 36px;
  font-weight: 700;
  color: #20253C;
  line-height:52px;
}

.productreview-reviews-star-half {
  width: 24px;
  height: 24px;
}

/* Rating Breakdown */
.productreview-reviews-rating-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.productreview-reviews-rating-row {
  display: flex;
  align-items: center;
  gap:12px;
  min-height: 20px;
}

.productreview-reviews-rating-label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #20253C;
}
.productreview-reviews-star-icon-small {
  width: 12px;
  height: 12px;
}

.productreview-reviews-rating-bar-wrapper {
  flex: 1;
  height: 1px;
  background: #ADD9FF;
  position: relative;
}

.productreview-reviews-rating-bar-filled {
  height: 100%;
  background:#0062B8;
  position: absolute;
  top: -2px;
  left: 0;
  transition: width 0.3s ease;
  height: 4px;
}

.productreview-reviews-rating-bar-empty {
  display: none;
}

.productreview-reviews-percentage {
  font-size:14px;
  color: #515567;
  min-width: 30px;
  text-align: right;
}

/* ============================================
   Rating Categories (Metric Badges)
   ============================================ */
.productreview-reviews-rating-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.productreview-reviews-rating-category {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  flex: 0 0 calc((100% - 24px) / 2);
}

.productreview-reviews-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #0062B8;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productreview-reviews-check-circle {
  width: 18px;
  height: 18px;
  display: none;
}

.productreview-reviews-category-rating {
  font-size: 14px;
  font-weight: 700;
  color: #20253C;
}

.productreview-reviews-category-name {
  font-size: 16px;
  font-weight: 700;
  color: #515567;
  text-transform: capitalize;
}

/* No ratings fallback */
.productreview-no-ratings {
  font-size: 14px;
  color: #6A6D7C;
  padding: 16px 0;
  margin-bottom: 16px;
}

/* ============================================
   User Reviews Section Title
   ============================================ */
.productreview-reviews-reviews-title {
  font-size: 18px;
  font-weight: 700;
  color: #20253C;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

/* ============================================
   User Review Cards - Horizontal Scroll Carousel
   ============================================ */
.productreview-user-review-section {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  cursor: grab;
  padding-bottom: 8px;
}

.productreview-user-review-section::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.productreview-user-review-container {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  width: max-content;
  padding: 4px 0;
}

/* Individual Review Card */
.productreview-reviewer-card {
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  background: #FFFFFF;
  border: 1px solid #E8E9ED;
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
  scroll-snap-align: start;
  transition: box-shadow 0.2s ease;
}

/* .productreview-reviewer-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
} */

/* Reviewer Header */
.productreview-reviewer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.productreview-profile-picture {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.productreview-profile-inner {
  width: 40px;
  height: 40px;
  background:#0083F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.productreview-profile-initials {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.productreview-reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.productreview-reviewer-name {
  font-size: 14px;
  font-weight: 600;
  color: #20253C;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.productreview-review-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6A6D7C;
}

.productreview-calendar-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Review Content */
.productreview-review-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.productreview-review-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.productreview-rating-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #E6F4E6;
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.productreview-rating-value {
  font-size: 12px;
  font-weight: 700;
  color: #007A00;
}

.productreview-star-icon {
  width: 14px;
  height: 14px;
}

.productreview-review-heading {
  font-size: 14px;
  font-weight: 600;
  color: #20253C;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Review Body */
.productreview-review-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.productreview-review-text {
  font-size: 13px;
  color: #4A4D5C;
  line-height: 1.5;
}

.productreview-review-text p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Read More Link */
.productreview-read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #0062B8;
  text-decoration: none;
  margin-top: 4px;
}

.productreview-read-more-link:hover {
  text-decoration: underline;
}

.productreview-arrow-icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   Bottom Action Buttons
   ============================================ */
.productreview-reviews-action-buttons-container {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
}

.productreview-reviews-btn-outline {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1.5px solid #0062B8;
  border-radius: 8px;
  background: transparent;
  color: #0062B8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.productreview-reviews-btn-outline:hover {
  background: #F0F6FF;
}

.productreview-reviews-btn-filled {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #0062B8;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.productreview-reviews-btn-filled:hover {
  background: #004D91;
}

/* ============================================
   AI Summary Section (currently commented out)
   ============================================ */
.productreview-reviews-ai-summary-section {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.productreview-reviews-summary-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #20253C;
  margin: 0 0 8px 0;
}

.productreview-reviews-summary-text {
  font-size: 14px;
  color: #4A4D5C;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.productreview-reviews-ai-label-container {
  display: flex;
  align-items: center;
}

.reviews-ai-label-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.productreview-reviews-ai-icon-badge svg {
  width: 28px;
  height: 28px;
}

.productreview-user-review-section.fullWidthReview{width: 100%;}
.fullWidthReview .productreview-user-review-container {flex-direction: column; width: 100%; gap: 20px;}
.fullWidthReview .productreview-reviewer-card{border:none; border-bottom: 0.4px solid #CDCED3; padding: 0 0 20px; margin: 0; width: 100%; border-radius: 0; flex:inherit}
.fullWidthReview .productreview-reviewer-card:last-child {border-bottom: none; padding-bottom: 0;}
.fullWidthReview .productreview-reviewer-header{gap: 8px;}
.fullWidthReview .productreview-profile-inner {background:#0083F5;}
.fullWidthReview .productreview-profile-initials {font-size: 16px; font-weight: 900; color: #fff;}
.fullWidthReview .productreview-reviewer-info{gap: 4px;}
.fullWidthReview .productreview-reviewer-name{font-size: 14px; line-height: 20px; font-weight: 700}
.fullWidthReview .productreview-review-title{align-items: flex-start;}
.fullWidthReview .productreview-rating-badge {background: #F5FFF5; padding: 0 11.55px; height: 24px; display: inline-flex; align-items: center;}
.fullWidthReview .productreview-rating-value{font-size: 16px; line-height: 16px;}
.fullWidthReview .productreview-star-icon{width: 16px; height: 16px;}
.fullWidthReview .productreview-review-heading{font-size: 16px; line-height: 24px;}
.fullWidthReview .productreview-review-text{font-size: 14px; color: #515567;}
.fullWidthReview .productreview-read-more-link{font-size: 14px; line-height: 20px; font-weight: 700}
.fullWidthReview .productreview-read-more-link span{font-weight: 700;}
.productreview-reviews-action-buttons-container.fullWidthAction{margin-top: 0; gap: 16px;}
.fullWidthAction .productreview-reviews-btn-outline{height: 40px; padding:0; font-size: 14px; border:.4px solid #0062B8; font-weight: 700}
.fullWidthAction .productreview-reviews-btn-filled{height: 40px; padding:0; font-size: 14px; font-weight: 700}
.releatedNews{margin-bottom: 32px;}
.releatedNews .readAllBtn {
    width: 206px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 0.4px solid #0062B8;
    border-radius: 8px;
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 767px) {
  .productreview-reviews-page-title {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 16px
  }

  .productreview-reviews-overall-rating-section {
    gap: 16px;
    justify-content:space-between;
    margin-bottom: 20px;
  }

  .productreview-reviews-overall-rating-container {
    gap: 8px;
    width: calc(100% - 172px);
    min-width: inherit;
  }

  .productreview-reviews-rating-number {
    font-size: 32px;
  }

  .productreview-reviews-rating-categories {
    gap: 16px;
    margin-bottom: 20px;
  }

  .productreview-reviewer-card {
    flex: 0 0 260px;
    width: 260px;
    min-width: 260px;
    padding: 12px;
  }

  .productreview-reviews-action-buttons-container {
    flex-direction: column;
    gap: 8px;
  }
  .productreview-reviews-rating-category{
    gap: 4px;
    min-height: 32px;
  }
  .productreview-reviews-category-icon{
    width: 30px;
    height: 30px;
  }
  .productreview-reviews-category-rating{
    font-size: 12px;
    position: relative;
    top:-1px;
  }
  .productreview-reviews-category-name{
    font-size: 14px;
  }
  .productreview-reviews-main-container{margin-bottom: 0;}
  .fullWidthAction .productreview-reviews-btn-outline,
  .fullWidthAction .productreview-reviews-btn-filled{flex: inherit}
  .releatedNews .readAllBtn {width: 100%;}
}
