/**
 * @author       Zbigniew Stanejko <info@prestashop.cc>
 * @copyright    © 2012-2026 Zbigniew Stanejko, PrestaPremium. All rights reserved.
 * @license      This program is not free software. You may not sell or distribute it.
 * @link         https://prestapremium.com
 *
 * Display / list SVG stars (loaded globally). Interactive rating: front.css.
 * Tokens overridden from BO → Appearance via #ppc-theme-vars.
 */

:root {
  --ppc-star: #f5a623;
  --ppc-star-empty: #d7d7d7;
  --ppc-color-muted: #8f9aa4;
}

.ppc-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  vertical-align: middle;
  margin: 0 -0.15em;
  line-height: 1;
}

.ppc-stars div {
  margin-bottom: 0;
}

a.ppc-stars--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.ppc-stars--link:hover,
a.ppc-stars--link:focus {
  color: inherit;
  text-decoration: none;
  outline: none;
}

a.ppc-stars--link:hover .ppc-stars__count,
a.ppc-stars--link:focus .ppc-stars__count {
  color: var(--ppc-star);
}

.ppc-stars__track {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.ppc-stars__layer {
  display: block;
}

.ppc-stars__icons {
  display: flex;
  width: max-content;
  font-size: 2rem;
}

.ppc-stars__icons svg + svg {
  margin-left: -0.2em;
}

.ppc-stars--sm .ppc-stars__icons svg + svg {
  margin-left: -0.1em;
}

.ppc-stars__layer--empty {
  color: var(--ppc-star-empty);
}

.ppc-stars__layer--full {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: var(--ppc-star);
}

.ppc-stars__icon {
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}

.ppc-stars--sm .ppc-stars__icon {
  width: 1em;
  height: 1em;
}

.ppc-stars--md .ppc-stars__icon {
  width: 1.2em;
  height: 1.2em;
}

.ppc-stars--lg .ppc-stars__icon {
  width: 1.6em;
  height: 1.6em;
}

.ppc-stars__count {
  font-size: 1em;
  color: var(--ppc-color-muted);
  transition: color 0.15s ease;
}

.ppc-stars--sm .ppc-stars__count {
  font-size: 0.8em;
}

.ppproductcomments-list-stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.ppGrid .ppproductcomments-list-stars {
  justify-content: center;
  display: flex;
  margin-bottom: var(--gap--2);
}
