/* include this file on all pages where custom rating stars are visible could be visible - e.g.
- product page
- pages where handpicked prodducts block is visible
*/

.wfa-wc-product-star-rating {
  --fill: 0;
  --color: #fdb230;
  --stars: 5;
  --size: 16px;
  display: block;
  width: calc(var(--stars) * var(--size));
  height: var(--size);
  position: relative;
}

.wfa-wc-product-star-rating::before {
  content: "";
  position: absolute;
  width: calc(var(--size) * var(--stars));
  height: var(--size);
  background-repeat: repeat-x;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FDB230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
  background-size: var(--size) var(--size);
  left: 0;
  top: 0;
}

.wfa-wc-product-star-rating::after {
  content: "";
  position: absolute;
  width: calc(var(--fill) * (var(--size) * var(--stars)));
  height: var(--size);
  background-repeat: repeat-x;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23FDB230' stroke='%23FDB230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
  background-size: var(--size) var(--size);
  overflow: hidden;
  top: 0;
  left: 0;
}
