/* ==========================================================
   BUBUBU — hodnotenie obchodu
   Samostatné pravidlá iba pre /hodnotenie-obchodu/
   ========================================================== */

body.in-hodnotenie-obchodu {
  --bb-rating-ink: #232323;
  --bb-rating-muted: #6a6865;
  --bb-rating-line: #dededb;
  --bb-rating-soft: #f5f5f2;
  --bb-rating-red: #cf3b33;
  --bb-rating-star: #232323;
}

body.in-hodnotenie-obchodu #content.content.wide {
  padding-top: 0 !important;
}

body.in-hodnotenie-obchodu #content .content-inner {
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 64px 0 96px !important;
}

body.in-hodnotenie-obchodu #content .content-inner > h1 {
  margin: 0 0 38px !important;
  color: var(--bb-rating-ink) !important;
  font-size: clamp(40px, 5vw, 68px) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em !important;
}

/* Súhrn hodnotenia */

body.in-hodnotenie-obchodu #ratingWrapper {
  position: relative !important;
  margin: 0 0 44px !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .rate-wrap {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr) !important;
  gap: 52px !important;
  align-items: center !important;
  padding: 36px 48px 104px !important;
  border: 1px solid var(--bb-rating-line) !important;
  border-radius: 2px !important;
  background: #fff !important;
}

body.in-hodnotenie-obchodu .rate-average-wrap,
body.in-hodnotenie-obchodu .rate-average-inner {
  display: flex !important;
  align-items: center !important;
}

body.in-hodnotenie-obchodu .rate-average-inner {
  gap: 24px !important;
}

body.in-hodnotenie-obchodu .rate-average {
  color: var(--bb-rating-ink) !important;
  font-size: clamp(68px, 7vw, 96px) !important;
  font-weight: 700 !important;
  line-height: 0.8 !important;
  letter-spacing: -0.07em !important;
}

body.in-hodnotenie-obchodu .rate-star-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.in-hodnotenie-obchodu .stars-label {
  color: var(--bb-rating-muted) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

body.in-hodnotenie-obchodu .star::before,
body.in-hodnotenie-obchodu .star {
  color: var(--bb-rating-star) !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .votes {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .rate-list {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  margin: 0 !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .rate-star {
  display: flex !important;
  gap: 5px !important;
  align-items: center !important;
  color: var(--bb-rating-muted) !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .rate-block {
  position: relative !important;
  height: 8px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 99px !important;
  background: #e9e9e6 !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .rate-bar {
  display: block !important;
  width: var(--rate-bar-width) !important;
  height: 8px !important;
  border-radius: 99px !important;
  background: var(--bb-rating-ink) !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .rate-count {
  position: absolute !important;
  left: calc(100% + 12px) !important;
  top: 50% !important;
  min-width: 44px !important;
  color: var(--bb-rating-muted) !important;
  font-size: 14px !important;
  transform: translateY(-50%) !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .add-comment {
  position: absolute !important;
  left: 48px !important;
  bottom: 32px !important;
  z-index: 2 !important;
  margin: 0 !important;
  text-align: left !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .btn,
body.in-hodnotenie-obchodu #ratingWrapper button[type="submit"] {
  min-height: 52px !important;
  padding: 0 26px !important;
  border: 1px solid var(--bb-rating-ink) !important;
  border-radius: 2px !important;
  background: var(--bb-rating-ink) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: none !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

body.in-hodnotenie-obchodu #ratingWrapper .btn:hover,
body.in-hodnotenie-obchodu #ratingWrapper button[type="submit"]:hover {
  border-color: var(--bb-rating-red) !important;
  background: var(--bb-rating-red) !important;
}

/* Formulár hodnotenia */

body.in-hodnotenie-obchodu #rate-form {
  max-width: 760px !important;
  margin: 32px 0 0 !important;
  padding: 32px !important;
  border: 1px solid var(--bb-rating-line) !important;
  background: var(--bb-rating-soft) !important;
}

body.in-hodnotenie-obchodu #rate-form h3 {
  margin: 0 0 24px !important;
  color: var(--bb-rating-ink) !important;
  font-size: 28px !important;
  font-weight: 650 !important;
}

body.in-hodnotenie-obchodu #rate-form .form-control {
  min-height: 50px !important;
  border: 1px solid #cfcfcb !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.in-hodnotenie-obchodu #rate-form textarea.form-control {
  min-height: 140px !important;
}

/* Karty jednotlivých recenzií */

body.in-hodnotenie-obchodu #ratingsList {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-content: stretch !important;
  gap: 16px !important;
  align-items: start !important;
  margin: 0 !important;
}

body.in-hodnotenie-obchodu #ratingsList .vote-wrap {
  display: flex !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 24px 26px !important;
  border: 1px solid var(--bb-rating-line) !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.in-hodnotenie-obchodu #ratingsList .vote-header {
  display: flex !important;
  align-items: center !important;
  margin: 0 0 16px !important;
}

body.in-hodnotenie-obchodu #ratingsList .vote-pic {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  margin: 0 14px 0 0 !important;
}

body.in-hodnotenie-obchodu #ratingsList .vote-pic img,
body.in-hodnotenie-obchodu #ratingsList .vote-pic svg {
  width: 36px !important;
  height: 36px !important;
  opacity: 0.58 !important;
}

body.in-hodnotenie-obchodu #ratingsList .vote-summary {
  min-width: 0 !important;
}

body.in-hodnotenie-obchodu #ratingsList .vote-rating {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

body.in-hodnotenie-obchodu #ratingsList .vote-delimeter {
  color: #c8c8c5 !important;
}

body.in-hodnotenie-obchodu #ratingsList .vote-time {
  color: var(--bb-rating-muted) !important;
  font-size: 13px !important;
}

body.in-hodnotenie-obchodu #ratingsList .vote-content {
  margin: 0 !important;
  padding: 0 !important;
  color: #3f3e3b !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

/* Stránkovanie */

body.in-hodnotenie-obchodu .pagination-wrapper {
  grid-column: 1 / -1 !important;
  margin-top: 30px !important;
}

body.in-hodnotenie-obchodu .pagination a,
body.in-hodnotenie-obchodu .pagination strong {
  display: inline-flex !important;
  min-width: 44px !important;
  height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--bb-rating-line) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--bb-rating-ink) !important;
  text-decoration: none !important;
}

body.in-hodnotenie-obchodu .pagination strong {
  border-color: var(--bb-rating-ink) !important;
  background: var(--bb-rating-ink) !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  body.in-hodnotenie-obchodu #content .content-inner {
    width: min(100% - 32px, 1180px) !important;
    padding: 38px 0 64px !important;
  }

  body.in-hodnotenie-obchodu #content .content-inner > h1 {
    margin-bottom: 26px !important;
    font-size: 42px !important;
  }

  body.in-hodnotenie-obchodu #ratingWrapper {
    margin-bottom: 46px !important;
  }

  body.in-hodnotenie-obchodu #ratingWrapper .rate-wrap {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    padding: 28px 22px 98px !important;
  }

  body.in-hodnotenie-obchodu .rate-average-inner {
    gap: 18px !important;
  }

  body.in-hodnotenie-obchodu .rate-average {
    font-size: 76px !important;
  }

  body.in-hodnotenie-obchodu #ratingWrapper .rate-list {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    padding-right: 42px !important;
  }

  body.in-hodnotenie-obchodu #ratingWrapper .add-comment {
    right: 22px !important;
    bottom: 22px !important;
    left: 22px !important;
    width: auto !important;
  }

  body.in-hodnotenie-obchodu #ratingWrapper .btn {
    width: 100% !important;
  }

  body.in-hodnotenie-obchodu #rate-form {
    padding: 24px 18px !important;
  }

  body.in-hodnotenie-obchodu #ratingsList {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.in-hodnotenie-obchodu #ratingsList .vote-wrap {
    min-height: 0 !important;
    padding: 22px 20px !important;
  }
}
