/* ===== RATING SECTION ===== */
.custom-rating-section {
  padding: 0px 20px 60px;
  background: #fff;
  box-sizing: border-box;
}

.custom-rating-section__inner {
  margin: 0 auto;
}

.custom-rating-section__title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 40px;
}

.custom-rating-section__layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Levý panel */
.custom-rating-section__left {
  flex: 0 0 330px;
  background: #fdf0f0;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.custom-rating__average {
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  color: #000;
}

.custom-rating__stars {
  display: flex;
  gap: 4px;
}

.custom-rating__stars .star {
  font-size: 20px;
  color: #f0c040;
}

.custom-rating__count {
  font-size: 13px;
  color: #000;
}

.custom-rating__add-btn {
  display: inline-block;
  background: #E86B88;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  border-radius: 10px 10px 0px 10px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  border: none;
  transition: background 0.2s;
}

.custom-rating__add-btn:hover, .custom-rating__load-more-btn:hover {
  background: #e05273;
}

.custom-rating__bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.custom-rating__bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #000;
}

.custom-rating__bar-row .star-icon {
  color: #f0c040;
  font-size: 13px;
}

.custom-rating__bar-track {
  flex: 1;
  height: 6px;
  background: #e8e8e8;
  border-radius: 999px;
  overflow: hidden;
}

.custom-rating__bar-fill {
  height: 100%;
  background: #f06292;
  border-radius: 999px;
}

.custom-rating__bar-label {
  width: 24px;
  text-align: right;
  font-size: 12px;
  color: #000;
}

/* Pravý panel - seznam */
.custom-rating-section__right {
  flex: 1;
}

.custom-vote-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.custom-vote {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 24px;
}

.custom-vote:last-child {
  border-bottom: none;
}

.custom-vote__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.custom-vote__avatar {
  width: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  display:none;
}

.custom-vote__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.custom-vote__name {
  font-size: 16px;
  font-weight: 500;
  color: #000;
}

.custom-vote__stars-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #aaa;
}

.custom-vote__stars-date .stars {
  display: flex;
  gap: 2px;
}

.custom-vote__stars-date .star-on::before {
  content: "★";
  color: #f0c040;
}

.custom-vote__stars-date .star-off::before {
  content: "★";
  color: #ddd;
}

.custom-vote__text {
  font-size: 14px;
  line-height: 1.6;
  color: #000;
  margin: 0;
}

/* Tlačítko zobrazit další */
.custom-rating__load-more {
  text-align: center;
  margin-top: 32px;
}





/* Formulář */
.custom-rating__form-wrapper {
  display: none;
  margin-top: 20px;
  padding: 24px;
  background: #fdf0f0;
  border-radius: 12px;
}

.custom-rating__form-wrapper.open {
  display: block;
}

@media (max-width: 767px) {
  .custom-rating-section__layout {
    flex-direction: column;
  }

  .custom-rating-section__left {
    flex: 1;
    width: 100%;
  }
}



/* ===== RATING POPUP ===== */
.custom-rating-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.custom-rating-popup-overlay.open {
  display: flex;
}

.custom-rating-popup {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin: 20px;
  box-sizing: border-box;
}

.custom-rating-popup__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  transition: color 0.2s;
}

.custom-rating-popup__close:hover {
  color: #000;
}

.custom-rating-popup__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.custom-rating-popup .form-control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 4px;
}

.custom-rating-popup .form-group {
  margin-bottom: 16px;
}

.custom-rating-popup .btn-primary, .custom-rating__load-more-btn {
  background: #E86B88;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-rating-popup .btn-primary:hover {
  background: #e05273;
}

.custom-rating-popup .fv-consent {
  font-size: 12px;
  color: #888;
}

.custom-rating-popup .star-wrap .star {
  cursor: pointer;
  font-size: 24px;
  color: #f0c040;
}



.custom-rating__top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.custom-rating__average {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  flex-shrink: 0;
}

.custom-rating__top-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.custom-rating__stars {
  display: flex;
  gap: 3px;
}



.custom-rating__stars .star.star-on::before{
content: "\e91c";
font-family:"shoptet";
}
.custom-rating__stars .star.star-half::before{
content: "\e91a";
font-family:"shoptet";
}