/**
 * Turing Shop Rating - shop rating module for PrestaShop
 *
 * @author    Agence Turing <contact@turing-software.com>
 * @copyright 2026 Turing Software
 * @license   Commercial license, see LICENSE.md
 *
 * Colours inherit from the theme; only the stars have their own colours (custom properties to override in the theme).
 */
.tsr {
  --tsr-star: #f5a623;
  --tsr-star-empty: #d4d7dc;
  line-height: 1.3;
}
.tsr__link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 .35em;
  color: inherit;
  text-decoration: none;
}
a.tsr__link:hover,
a.tsr__link:focus {
  color: inherit;
  text-decoration: underline;
}
.tsr__stars {
  position: relative;
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  letter-spacing: .05em;
  white-space: nowrap;
  color: var(--tsr-star-empty);
}
.tsr__stars::before,
.tsr__fill::before {
  content: "\2605\2605\2605\2605\2605";
}
.tsr__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--tsr-star);
}
.tsr__sep {
  opacity: .6;
}
.tsr__source {
  opacity: .75;
}

/* Product page: small text under the add to cart button */
.tsr--product {
  margin-top: .75rem;
  font-size: .875rem;
}

/* Compact (header): one line, short count on small screens */
.tsr--compact {
  display: inline-block;
  font-size: .8125rem;
  white-space: nowrap;
}
.tsr--compact .tsr__link {
  flex-wrap: nowrap;
}
.tsr__count--short {
  display: none;
}
@media (max-width: 575.98px) {
  .tsr--compact .tsr__count--long,
  .tsr--compact .tsr__sep {
    display: none;
  }
  .tsr--compact .tsr__count--short {
    display: inline;
  }
}
