/**
 * UltraAddons WooCommerce Product Rating Widget Styles
 *
 * @package UltraAddons
 * @since 1.1.0.14
 */

/* Main Wrapper */
.ua-product-rating-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Alignments */
.ua-product-rating-wrapper.ua-align-left {
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.ua-product-rating-wrapper.ua-align-center {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.ua-product-rating-wrapper.ua-align-right {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.ua-product-rating-wrapper.ua-align-justify {
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

/* Stars Container */
.ua-pr-stars-wrap {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 4px;
  line-height: 1;
  vertical-align: middle;
}

/* Individual Star */
.ua-pr-star {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  line-height: 1;
  font-size: 16px;
  transition: transform 0.2s ease, fill 0.2s ease, color 0.2s ease;
}

.ua-pr-star svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: block;
}

.ua-pr-star i {
  font-size: inherit;
  line-height: 1;
}

/* Star States */
.ua-pr-star.ua-pr-star-full {
  color: #ffb800;
  fill: #ffb800;
}

.ua-pr-star.ua-pr-star-half {
  color: #ffb800;
  fill: #ffb800;
}

.ua-pr-star.ua-pr-star-empty {
  color: #d1d5db;
  fill: #d1d5db;
}

/* Score Display */
.ua-pr-score {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.ua-pr-score .ua-pr-score-max {
  font-size: 0.85em;
  font-weight: 400;
  color: #6b7280;
  margin-left: 1px;
}

/* Rating Badge / Pill Layout */
.ua-pr-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  background-color: #10b981;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.2s ease;
}

.ua-pr-badge .ua-pr-badge-star {
  font-size: 0.9em;
  color: #ffffff;
  fill: #ffffff;
}

.ua-pr-badge .ua-pr-badge-star svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Review Link & Count */
.ua-pr-review-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.3;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ua-pr-review-link:hover {
  color: #111827;
  text-decoration: underline;
}

.ua-pr-review-link .ua-pr-count-num {
  font-weight: 600;
}

/* Stacked Layout */
.ua-rating-layout-stacked {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 6px;
}

.ua-rating-layout-stacked.ua-align-center {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.ua-rating-layout-stacked.ua-align-right {
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
}

.ua-rating-layout-stacked .ua-pr-top-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

/* Empty / Zero Review State */
.ua-pr-empty-wrap {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.ua-pr-no-review-link {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ua-pr-no-review-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Container Box Mode */
.ua-product-rating-box {
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
}
