.ratings {
  display: none;
}
.ratings.ready {
  display: block;
}

.ratings {
  border: 0;
  margin: 0;
  background: var(--wg-gold);
  color: var(--wg-white);
  padding: 64px 0;
}
.ratings .container {
  display: flex;
  align-items: center;
  gap: 30px;
}
.ratings .container::before,
.ratings .container::after {
  display: none;
}
.ratings * {
  box-sizing: border-box;
}

/* ---------- HLAVIČKA (hodnocení obchodu) ---------- */
.ratings .r-header {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 24px;
  width: 35%;
}
.ratings .r-number,
.ratings .r-info {
  display: none;
}
.ratings .rate-average {
  font-family: var(--wg-font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: var(--wg-gold);
}
.ratings .review-left__top h4 {
  font-family: var(--wg-font-body);
  font-weight: 800;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--wg-white);
}
.ratings .review-left__description {
  display: inline-block;
  margin: 0;
  font-family: var(--wg-font-body);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.5;
  color: var(--wg-white);
  font-weight: 500;
}
.review-left__wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}
.review-left__image {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
}
.review-left__heureka-title {
  margin: 0;
  font-family: var(--wg-font-body);
  font-size: 18px;
  font-weight: 800;
  line-height: 137%;
  color: var(--wg-white);
}

.review-left__heureka-description {
  margin: 0;
  color: var(--wg-white);
  font-family: var(--wg-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 137%;
}

.review-left__heureka-wrapper .link {
  margin: 0;
  color: var(--wg-white);
  font-family: var(--wg-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 137.264%; /* 27.453px */
}

/* ---------- KARTY RECENZÍ ---------- */
.ratings .r-bottom {
  width: 65%;
  padding: 0;
  display: flex;
  gap: 20px;
}
.ratings .review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc((100% - 40px) / 3);
  padding: 20px;
  gap: 10px;
  background-color: white;
}
.review .top::before {
  display: none;
}

.review__card-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background-image: url("/user/documents/upload/avatar.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.ratings .review .top {
  display: none;
}
/* hvězdičky nahoru nad jméno */
.ratings .review .skore.stars {
  order: -1;
  flex-basis: 100%;
}
.ratings .review .autor {
  font-family: var(--wg-font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--wg-ink);
}
.ratings .review .datum {
  font-family: var(--wg-font-body);
  font-size: 13px;
  line-height: 1.2;
  color: var(--wg-muted);
}
.ratings .review__card-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ratings .review .datum:not(:empty)::before {
  content: "•";
  margin-right: 8px;
  color: var(--wg-muted);
}
.ratings .review .textove-hodnoceni {
  font-family: var(--wg-font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--wg-muted);
  margin: 0;
}

/* ---------- RESPONSIVE ---------- */

/* tablet: promo nad kartami, karty 2 v řadě */
@media (max-width: 992px) {
  .ratings {
    padding: 48px 0;
  }
  .ratings .container {
    flex-direction: column;
    padding: 0 15px;
    gap: 32px;
  }
  .review-left__top {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .ratings .r-header,
  .ratings .r-bottom {
    width: 100%;
  }
  .ratings .r-header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .ratings .review-left__top h4 {
    font-size: 22px;
    text-align: center;
  }
  .ratings .review-left__description {
    font-size: 18px;
    text-align: center;
  }
  .ratings .review {
    width: calc((100% - 20px) / 2);
  }
  .r-bottom .review:nth-child(n + 3) {
    display: none;
  }
}

/* menší tablet / velký mobil: promo do sloupce, menší Heureka logo */
@media (max-width: 768px) {
  .review-left__image {
    width: 88px;
    height: 88px;
  }
  .review-left__heureka-title {
    font-size: 22px;
  }
  .review-left__heureka-description,
  .review-left__heureka-wrapper .link {
    font-size: 18px;
  }
  .ratings .review {
    width: 80%;
    max-width: 500px;
  }
  .ratings .r-bottom {
    justify-content: center;
  }
}

/* mobil: karty pod sebou */
@media (max-width: 600px) {
  .ratings {
    padding: 40px 0;
  }
  .ratings .r-bottom {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .ratings .review {
    width: 100%;
  }
}
