.kf-reviews-section {
  background: #f6f6f6;
  padding: 18px 10px 28px;
  font-family: Montserrat, Arial, sans-serif;
}

.kf-reviews-wrap {
  max-width: 430px;
  margin: 0 auto;
}

.kf-reviews-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d9d9d9;
}

.kf-reviews-summary {
  padding-bottom: 26px;
  border-bottom: 1px solid #e2e2e2;
}

.kf-reviews-average {
  text-align: center;
}

.kf-reviews-average-score {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.kf-score-big {
  font-size: 64px;
  line-height: 0.9;
  font-weight: 700;
  color: #f3c621;
}

.kf-score-small {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #2f3b52;
  margin-bottom: 9px;
}

.kf-reviews-stars {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #f3c621;
  font-size: 30px;
  line-height: 1;
}

.kf-reviews-count {
  margin-top: 8px;
  font-size: 14px;
  color: #6e7380;
}

.kf-reviews-breakdown {
  margin-top: 24px;
}

.kf-break-row {
  display: grid;
  grid-template-columns: 34px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.kf-break-label {
  font-size: 23px;
  line-height: 1;
  color: #202020;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kf-break-bar {
  height: 14px;
  border-radius: 999px;
  background: #d3d3d3;
  overflow: hidden;
}

.kf-break-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #f3c621;
}

.kf-break-count {
  min-width: 44px;
  height: 28px;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #212121;
}

.kf-write-review-btn {
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 216px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: #333438;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.kf-reviews-list {
  margin-top: 22px;
}

.kf-review-card {
  background: #f7f7f7;
  border-radius: 0 0 18px 18px;
  padding: 0 0 14px;
  margin-bottom: 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  overflow: hidden;
}

.kf-review-card__inner {
  padding: 18px 14px 0;
}

.kf-review-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kf-review-name {
  font-size: 16px;
  font-weight: 500;
  color: #222;
}

.kf-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #5b5b5b;
}

.kf-review-verified-dot {
  color: #47b34f;
  font-size: 12px;
}

.kf-review-stars {
  margin-top: 6px;
  display: flex;
  gap: 1px;
  color: #f3c621;
  font-size: 22px;
  line-height: 1;
}

.kf-review-text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.45;
  color: #232323;
}

.kf-review-media {
  margin-top: 14px;
  padding: 0 10px;
}

.kf-review-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.kf-reviews-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kf-page-btn {
  min-width: 34px;
  height: 34px;
  border: 1px solid #e5e5e5;
  background: #efefef;
  color: #303030;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

.kf-page-btn.is-active {
  background: #cad6e0;
}

.kf-page-btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* modal */
.kf-review-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.kf-review-modal.is-open {
  display: block;
}

.kf-review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.kf-review-modal__dialog {
  position: relative;
  width: calc(100% - 20px);
  max-width: 380px;
  margin: 28px auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 16px;
  z-index: 2;
}

.kf-review-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.kf-review-modal__title {
  margin: 0 0 14px;
  font-size: 20px;
  color: #2d2d2d;
  font-weight: 700;
}

.kf-review-form {
  display: grid;
  gap: 12px;
}

.kf-review-field {
  display: grid;
  gap: 6px;
}

.kf-review-field span {
  font-size: 14px;
  color: #2f2f2f;
  font-weight: 600;
}

.kf-review-field input,
.kf-review-field textarea {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: #222;
  outline: none;
}

.kf-review-rating-picker {
  display: grid;
  gap: 8px;
}

.kf-review-rating-label {
  font-size: 14px;
  font-weight: 600;
  color: #2f2f2f;
}

.kf-review-rating-stars {
  display: flex;
  gap: 6px;
}

.kf-review-rating-stars button {
  border: none;
  background: transparent;
  font-size: 30px;
  color: #d4d4d4;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.kf-review-rating-stars button.is-active,
.kf-review-rating-stars button.is-active ~ button {
  color: #d4d4d4;
}

.kf-review-rating-stars button.is-on {
  color: #f3c621;
}

.kf-review-submit {
  margin-top: 2px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: #333438;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 768px) {
  .kf-reviews-wrap {
    max-width: 500px;
  }
}
.kf-reviews-summary {
  padding-bottom: 18px;
}

.kf-reviews-average {
  text-align: center;
}

.kf-reviews-average-score {
  gap: 1px;
}

.kf-score-big {
  font-size: 48px;
  line-height: 0.9;
}

.kf-score-small {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 6px;
  color: #2f3b52;
}

.kf-reviews-stars {
  margin-top: 6px;
  gap: 2px;
  font-size: 18px;
  color: #f3c621;
}

.kf-reviews-count {
  margin-top: 6px;
  font-size: 12px;
  color: #6e7380;
}

.kf-reviews-breakdown {
  margin-top: 18px;
}

.kf-break-row {
  display: grid;
  grid-template-columns: 30px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.kf-break-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
  color: #202020;
}

.kf-break-label .kf-break-star {
  color: #f3c621;
  font-size: 14px;
  line-height: 1;
}

.kf-break-bar {
  height: 12px;
  border-radius: 999px;
  background: #d3d3d3;
  overflow: hidden;
}

.kf-break-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #f3c621;
}

.kf-break-count {
  min-width: 40px;
  height: 26px;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #212121;
}

.kf-write-review-btn {
  margin: 18px auto 0;
  width: 220px;
  height: 40px;
  border-radius: 10px;
  background: #333438;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 420px) {
  .kf-reviews-title {
    font-size: 19px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .kf-score-big {
    font-size: 42px;
  }

  .kf-score-small {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .kf-reviews-stars {
    font-size: 16px;
  }

  .kf-break-row {
    grid-template-columns: 26px 1fr 38px;
    gap: 7px;
    margin-bottom: 7px;
  }

  .kf-break-label {
    font-size: 13px;
  }

  .kf-break-label .kf-break-star {
    font-size: 13px;
  }

  .kf-break-bar {
    height: 11px;
  }

  .kf-break-count {
    min-width: 38px;
    height: 24px;
    font-size: 13px;
  }

  .kf-write-review-btn {
    width: 222px;
    height: 38px;
    font-size: 13px;
  }
}

.kf-footer-payments {
  width: 100%;
}

.kf-footer-payments-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.kf-footer-payments-row::-webkit-scrollbar {
  display: none;
}

.kf-footer-payment-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 32px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kf-footer-payment-icon svg {
  width: 75%;
  height: auto;
}
.kf-payment-trigger {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 13px;
  color: #222;
  cursor: pointer;
  white-space: nowrap;
  width: auto;
  max-width: 100%;
}

.kf-payment-trigger span:last-child {
  line-height: 1;
}

.kf-payment-trigger .kf-payment-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  flex: 0 0 18px;
}

.kf-payment-trigger .kf-payment-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0;
  padding: 0;
}