/* Production-only shop rating block, aligned with the Chocolenka homepage redesign. */
body.in-index #hodnoceniobchodu {
  --ch-rating-brown: #603914;
  --ch-rating-dark: #351d0d;
  --ch-rating-caramel: #c97921;
  --ch-rating-cream: #f7f1e7;
  --ch-rating-line: #e6d9ca;
  --ch-rating-text: #35271e;
  width: calc(100% - 60px);
  max-width: 1380px;
  margin: 0 auto 70px;
  padding: 62px 30px 66px;
  float: none;
  border: 1px solid var(--ch-rating-line);
  border-radius: 18px;
  background: var(--ch-rating-cream);
  color: var(--ch-rating-text);
  box-shadow: 0 16px 45px rgba(53, 29, 13, .07);
}

body.in-index #hodnoceniobchodu::before,
body.in-index #hodnoceniobchodu::after {
  display: none;
}

body.in-index #hodnoceniobchodu > h2 {
  max-width: 720px;
  margin: 0 auto 10px;
  padding: 0;
  color: var(--ch-rating-dark);
  font: inherit;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

body.in-index #hodnoceniobchodu > h2::before {
  content: "Ověřeno zákazníky";
  display: block;
  margin-bottom: 7px;
  color: var(--ch-rating-caramel);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.in-index #hodnoceniobchodu > h2::after {
  content: "Skutečné zkušenosti zákazníků s produkty Chocolenky.";
  display: block;
  margin-top: 9px;
  color: #716359;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

body.in-index #hodnoceniobchodu > h2 a {
  color: inherit;
  text-decoration: none;
}

body.in-index #hodnoceniobchodu .shop-eval-stars {
  margin: 20px auto 30px;
  text-align: center;
}

body.in-index #hodnoceniobchodu .rate-average-inner {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 15px;
  border: 1px solid var(--ch-rating-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(53, 29, 13, .06);
}

body.in-index #hodnoceniobchodu .rate-average {
  color: var(--ch-rating-caramel);
  font-size: 16px;
  font-weight: 800;
}

body.in-index #hodnoceniobchodu .rate-star-wrap,
body.in-index #hodnoceniobchodu .vote-rating {
  display: flex;
  align-items: center;
  gap: 9px;
}

body.in-index #hodnoceniobchodu .stars-label,
body.in-index #hodnoceniobchodu .vote-time {
  color: #7b6d62;
  font-size: 12px;
}

body.in-index #hodnoceniobchodu .star.star-on::before {
  color: var(--ch-rating-caramel);
}

body.in-index #hodnoceniobchodu > br {
  display: none;
}

body.in-index #hodnoceniobchodu .shop-eval {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

body.in-index #hodnoceniobchodu .vote-wrap {
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  min-height: 190px !important;
  margin: 0 !important;
  padding: 24px 22px 22px !important;
  border: 1px solid var(--ch-rating-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--ch-rating-text);
  box-shadow: 0 8px 24px rgba(53, 29, 13, .07) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.in-index #hodnoceniobchodu .vote-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 34px rgba(53, 29, 13, .13);
}

body.in-index #hodnoceniobchodu .vote-header {
  margin: 0 0 15px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid #eee3d6 !important;
}

body.in-index #hodnoceniobchodu .vote-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

body.in-index #hodnoceniobchodu .vote-name {
  max-width: 100%;
  color: var(--ch-rating-dark);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

body.in-index #hodnoceniobchodu .vote-rating {
  flex-wrap: wrap;
}

body.in-index #hodnoceniobchodu .vote-delimeter {
  color: #cbb9a6;
}

body.in-index #hodnoceniobchodu .vote-content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  color: #4f433a;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

body.in-index #hodnoceniobchodu .shop-stat-all {
  margin: 30px 0 0;
  text-align: center;
}

body.in-index #hodnoceniobchodu .shop-stat-all .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--ch-rating-caramel);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .2s ease, transform .2s ease;
}

body.in-index #hodnoceniobchodu .shop-stat-all .btn:hover,
body.in-index #hodnoceniobchodu .shop-stat-all .btn:focus {
  transform: translateY(-1px);
  background: var(--ch-rating-brown);
  color: #fff;
}

@media (max-width: 991px) {
  body.in-index #hodnoceniobchodu .shop-eval {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.in-index #hodnoceniobchodu {
    width: calc(100% - 16px);
    margin-bottom: 44px;
    padding: 42px 14px 46px;
    border-radius: 14px;
  }

  body.in-index #hodnoceniobchodu > h2 {
    font-size: 30px;
  }

  body.in-index #hodnoceniobchodu > h2::after {
    font-size: 14px;
  }

  body.in-index #hodnoceniobchodu .shop-eval {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.in-index #hodnoceniobchodu .vote-wrap {
    min-height: 0;
    padding: 21px 19px 20px !important;
  }

  body.in-index #hodnoceniobchodu .shop-stat-all .btn {
    width: 100%;
  }
}

/* Homepage hero photo fallback. */
body.in-index .ch-hero__media {
  background-image: url("https://www.chocolenka.cz/user/shop/big/5475-1.jpg?ts=69d8e2d0") !important;
  background-position: center 60% !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* Product detail: Satisflow photo reviews. */
body.type-detail #sf-reviews-widget-headline,
body.type-detail #sf-reviews-widget {
  width: calc(100% - 40px);
  max-width: 1380px;
  margin-right: auto !important;
  margin-left: auto !important;
  box-sizing: border-box;
  background: #f7f1e7 !important;
}

body.type-detail #sf-reviews-widget-headline {
  margin-top: 64px !important;
  margin-bottom: 0 !important;
  padding: 48px 28px 20px;
  border-radius: 18px 18px 0 0;
  color: #351d0d !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em;
}

body.type-detail #sf-reviews-widget-headline::before {
  content: "OVĚŘENO ZÁKAZNÍKY";
  display: block;
  margin-bottom: 9px;
  color: #603914;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

body.type-detail #sf-reviews-widget-headline #sf-widget-brand {
  display: inline-block;
  margin-top: 10px;
  color: #766a61 !important;
  font-size: 12px !important;
  font-weight: 500;
}

body.type-detail #sf-reviews-widget {
  margin-top: 0 !important;
  margin-bottom: 64px !important;
  padding: 8px 30px 38px;
  border-radius: 0 0 18px 18px;
}

body.type-detail #sf-reviews-widget .sf-review {
  width: 260px !important;
  max-width: 260px !important;
  min-height: 535px;
  display: flex;
  flex-direction: column;
  margin: 9px !important;
  overflow: hidden;
  border: 1px solid #eadfce !important;
  border-radius: 14px;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(53, 29, 13, .08);
}

body.type-detail #sf-reviews-widget .sf-review-img,
body.type-detail #sf-reviews-widget .sf-review-img img {
  width: 100% !important;
  max-width: none !important;
}

body.type-detail #sf-reviews-widget .sf-review-img img {
  height: 260px !important;
  display: block;
  object-fit: cover;
}

body.type-detail #sf-reviews-widget .sf-review-name {
  margin-top: 0 !important;
  padding: 18px 18px 8px !important;
  background: #fff !important;
  color: #35271e !important;
}

body.type-detail #sf-reviews-widget .sf-review-name > span:first-child {
  color: #351d0d !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

body.type-detail #sf-reviews-widget .sf-review-name [aria-label="Datum vytvoření fotorecenze"] {
  color: #766a61 !important;
  font-size: 13px;
}

body.type-detail #sf-reviews-widget .sf-review-name .rating {
  color: #c97921 !important;
  font-size: 22px !important;
}

body.type-detail #sf-reviews-widget .satisflow-reviewed-product-link {
  margin: 9px 0 0;
}

body.type-detail #sf-reviews-widget .satisflow-reviewed-product-link a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px !important;
  border: 1px solid #603914 !important;
  border-radius: 6px !important;
  color: #603914 !important;
  font-size: 12px !important;
  font-weight: 750;
  opacity: 1 !important;
}

body.type-detail #sf-reviews-widget .satisflow-reviewed-product-link a:hover,
body.type-detail #sf-reviews-widget .satisflow-reviewed-product-link a:focus {
  background: #603914;
  color: #fff !important;
}

body.type-detail #sf-reviews-widget .sf-review-text {
  flex: 1;
  padding: 8px 18px 18px !important;
  background: #fff !important;
  color: #4f433a !important;
  font-size: 14px;
  line-height: 1.5;
}

body.type-detail #sf-reviews-widget .sf-upvote-btn-wrapper,
body.type-detail #sf-reviews-widget .sf-upvote-active-btn-wrapper {
  min-height: 46px;
  padding: 0 10px 5px;
  color: #603914 !important;
}

body.type-detail #sf-reviews-widget .flickity-button {
  width: 44px;
  height: 44px;
  border: 0;
  background: #c97921 !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(53, 29, 13, .18);
}

body.type-detail #sf-reviews-widget .flickity-button:hover,
body.type-detail #sf-reviews-widget .flickity-button:focus {
  background: #603914 !important;
}

/* Product detail: store rating, matching the redesigned homepage block. */
body.type-detail #hodnoceniobchodu {
  --ch-rating-brown: #603914;
  --ch-rating-brown-dark: #351d0d;
  --ch-rating-caramel: #c97921;
  --ch-rating-cream: #f7f1e7;
  --ch-rating-line: #e6d9ca;
  width: calc(100% - 40px) !important;
  max-width: 1380px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto 76px !important;
  padding: 52px 44px 48px !important;
  float: none !important;
  border: 1px solid var(--ch-rating-line);
  border-radius: 18px;
  background: var(--ch-rating-cream) !important;
  color: #35271e;
  box-shadow: none;
  box-sizing: border-box;
}

body.type-detail #hodnoceniobchodu::before,
body.type-detail #hodnoceniobchodu::after {
  display: none !important;
}

body.type-detail #hodnoceniobchodu > h2 {
  width: 100%;
  margin: 0 0 20px !important;
  padding: 0;
  color: var(--ch-rating-brown-dark);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-align: center;
}

body.type-detail #hodnoceniobchodu > h2::before {
  content: "DŮVĚRA, KTERÁ NÁS TĚŠÍ";
  display: block;
  margin-bottom: 10px;
  color: var(--ch-rating-brown);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

body.type-detail #hodnoceniobchodu > h2::after {
  content: "Skutečné zkušenosti zákazníků s nákupem u Chocolenky.";
  display: block;
  max-width: 620px;
  margin: 12px auto 0;
  color: #6f6258;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

body.type-detail #hodnoceniobchodu > h2 a {
  color: inherit;
  text-decoration: none;
}

body.type-detail #hodnoceniobchodu .shop-eval-stars {
  width: 100%;
  margin: 0 0 28px;
}

body.type-detail #hodnoceniobchodu .rate-average-inner {
  width: max-content;
  max-width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 10px 18px;
  border: 1px solid var(--ch-rating-line);
  border-radius: 999px;
  background: #fff;
}

body.type-detail #hodnoceniobchodu .rate-average {
  color: var(--ch-rating-caramel);
  font-size: 18px;
  font-weight: 800;
}

body.type-detail #hodnoceniobchodu .rate-star-wrap,
body.type-detail #hodnoceniobchodu .vote-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.type-detail #hodnoceniobchodu .stars-label,
body.type-detail #hodnoceniobchodu .vote-time {
  color: #766a61;
  font-size: 13px;
}

body.type-detail #hodnoceniobchodu .star.star-on::before {
  color: var(--ch-rating-caramel);
}

body.type-detail #hodnoceniobchodu > br {
  display: none;
}

body.type-detail #hodnoceniobchodu .shop-eval {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

body.type-detail #hodnoceniobchodu .vote-wrap {
  width: auto !important;
  min-width: 0;
  min-height: 196px;
  display: block;
  margin: 0 !important;
  padding: 24px 22px 22px !important;
  border: 1px solid var(--ch-rating-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #35271e !important;
  box-shadow: 0 10px 24px rgba(53, 29, 13, .06);
  box-sizing: border-box;
}

body.type-detail #hodnoceniobchodu .vote-name {
  display: block;
  overflow: hidden;
  color: var(--ch-rating-brown-dark);
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.type-detail #hodnoceniobchodu .vote-rating {
  margin-top: 8px;
}

body.type-detail #hodnoceniobchodu .vote-delimeter {
  color: #cbb9a6;
}

body.type-detail #hodnoceniobchodu .vote-content {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  color: #4f433a;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

body.type-detail #hodnoceniobchodu .shop-stat-all {
  margin: 30px 0 0;
  text-align: center;
}

body.type-detail #hodnoceniobchodu .shop-stat-all .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--ch-rating-caramel);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

body.type-detail #hodnoceniobchodu .shop-stat-all .btn:hover,
body.type-detail #hodnoceniobchodu .shop-stat-all .btn:focus {
  background: var(--ch-rating-brown);
  color: #fff;
}

@media (max-width: 991px) {
  body.type-detail #hodnoceniobchodu .shop-eval {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.type-detail #sf-reviews-widget-headline,
  body.type-detail #sf-reviews-widget,
  body.type-detail #hodnoceniobchodu {
    width: calc(100% - 16px) !important;
  }

  body.type-detail #sf-reviews-widget-headline {
    margin-top: 42px !important;
    padding: 36px 18px 16px;
    border-radius: 14px 14px 0 0;
    font-size: 28px !important;
  }

  body.type-detail #sf-reviews-widget {
    margin-bottom: 44px !important;
    padding: 4px 8px 28px;
    border-radius: 0 0 14px 14px;
  }

  body.type-detail #sf-reviews-widget .sf-review {
    width: min(82vw, 286px) !important;
    max-width: min(82vw, 286px) !important;
  }

  body.type-detail #hodnoceniobchodu {
    margin-bottom: 44px !important;
    padding: 42px 14px 46px !important;
    border-radius: 14px;
  }

  body.type-detail #hodnoceniobchodu > h2 {
    font-size: 30px;
  }

  body.type-detail #hodnoceniobchodu > h2::after {
    font-size: 14px;
  }

  body.type-detail #hodnoceniobchodu .shop-eval {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.type-detail #hodnoceniobchodu .vote-wrap {
    min-height: 0;
    padding: 21px 19px 20px !important;
  }

  body.type-detail #hodnoceniobchodu .shop-stat-all .btn {
    width: 100%;
  }
}
