/* Company rating from Google (pixel_googlerating). Yellow stars on purpose: the product's own rating
   (ets_reviews) uses the shop's brown, so the two ratings are not mistaken for each other. */

.pixel-gr {
  text-decoration: none;
  color: #232323;
}

.pixel-gr:hover,
.pixel-gr:focus {
  text-decoration: none;
  color: #232323;
}

.pixel-gr:focus-visible {
  outline: 2px solid #bc8246;
  outline-offset: 2px;
}

.pixel-gr__stars {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 1px;
  line-height: 0;
}

.pixel-gr__star {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
}

.pixel-gr__star svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: #dedad3;
  stroke: none;
}

.pixel-gr__star-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  overflow: hidden;
}

.pixel-gr__star-fill svg {
  fill: #f4b400;
}

.pixel-gr__star--full .pixel-gr__star-fill {
  width: 100%;
}

.pixel-gr__star--half .pixel-gr__star-fill {
  width: 50%;
}

.pixel-gr__see {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a06a33;
  white-space: nowrap;
}

.pixel-gr__see svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- product facts row */

#product .pixel-gr--product {
  color: #232323;
}

#product .pixel-gr--product .pixel-gr__label {
  flex: 0 0 auto;
  color: #6f6f78;
}

#product .pixel-gr--product .pixel-gr__summary {
  flex: 1 1 auto;
  min-width: 0;
}

#product .pixel-gr--product .pixel-gr__rating {
  font-weight: 700;
}

#product .pixel-gr--product .pixel-gr__count {
  color: #6f6f78;
}

#product .pixel-gr--product:hover .pixel-gr__see {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
  /* The label stays on phones too: it is what tells the company rating apart from the product's own. */
  #product .pixel-gr--product {
    flex-wrap: wrap;
    row-gap: 4px;
    min-height: 44px;
  }

  #product .pixel-gr--product .pixel-gr__label {
    flex-basis: calc(100% - 28px);
  }

  #product .pixel-gr--product .pixel-gr__stars {
    margin-left: 28px;
  }

  #product .pixel-gr--product .pixel-gr__see {
    font-size: 0;
  }

  #product .pixel-gr--product .pixel-gr__see svg {
    width: 16px;
    height: 16px;
  }
}

/* ------------------------------------------------------------------ footer badge */

.pixel-gr--footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 260px;
  box-sizing: border-box;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e6e1d9;
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  line-height: 1.4;
}

.pixel-gr--footer .pixel-gr__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #6f6f78;
}

.pixel-gr--footer .pixel-gr__main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pixel-gr--footer .pixel-gr__big {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.pixel-gr--footer .pixel-gr__star,
.pixel-gr--footer .pixel-gr__star svg {
  width: 18px;
  height: 18px;
}

.pixel-gr--footer .pixel-gr__meta {
  color: #6f6f78;
}

.pixel-gr--footer .pixel-gr__see svg {
  width: 13px;
  height: 13px;
}

.pixel-gr--footer:hover {
  border-color: #bc8246;
}

@media (max-width: 767.98px) {
  .pixel-gr--footer {
    max-width: none;
  }
}
