/* Demo rating, reference price and discount in the purchase block (values in js/demo-offer.mjs).
   Sizes come from the --fs-* tokens of typography.css, loaded before this file. */
.rating[hidden], .price-compare[hidden] { display: none; }

.rating {
  display: flex;
  align-items: center;
  width: fit-content;
  margin: 2px 0 6px;
  color: #101317;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.rating > span { display: inline-flex; align-items: center; gap: 8px; }
.rating:hover .rating-count { text-decoration: underline; }
.rating-stars { display: inline-flex; gap: 2px; }
.rating-stars svg { width: 20px; height: 20px; fill: var(--orange); }
.rating-stars svg.is-empty { fill: #d6dbe0; }

.price-compare {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0;
}
.price-compare s {
  color: #7a828a;
  font-size: var(--fs-lead);
  line-height: 1.2;
  text-decoration-thickness: 1.5px;
}
.discount-pill {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-body);
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 8px;
}

/* Mobile purchase bar: reference price and discount on a second line under the price. */
.mobilebuy-price { display: flex; flex-direction: column; gap: 3px; }
.mobilebuy .price-compare { margin-left: 0; gap: 6px; flex-wrap: nowrap; }
.mobilebuy .price-compare s { font-family: var(--font-body); font-size: var(--fs-meta); }
.mobilebuy .discount-pill { font-size: var(--fs-meta); padding: 2px 6px; border-radius: 6px; }
