.reviews-section {
  margin-top: 30px;
  padding: 36px;
  border-radius: var(--border-radius-5xl);
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, .08);
}
.reviews-section + .similar { margin-top: 64px; }
.reviews-section .oo-block-title { margin: 0 0 8px; text-align: left; }
.reviews-heading { margin-bottom: 28px; }
.reviews-average { color: var(--sgrey-text-color); }
.review-stars {
  display: inline-block;
  flex: none;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #087f3e var(--rating-percent, 0%), #d5d8d5 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.review-stars::before { content: "★★★★★"; }
.reviews-overview {
  align-items: flex-end;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--base-border-color);
  border-bottom: 1px solid var(--base-border-color);
}
.rating-distribution { width: min(100%, 430px); }
.rating-filter {
  display: grid;
  grid-template-columns: 48px minmax(150px, 1fr) 32px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.rating-filter:hover, .rating-filter:focus-visible, .rating-filter.is-active { background: #eef6e8; }
.rating-bar { display: block; height: 8px; overflow: hidden; border-radius: 20px; background: #e6e8e6; }
.rating-bar i { display: block; height: 100%; border-radius: inherit; background: #087f3e; }
.reviews-toolbar { align-self: flex-start; flex-shrink: 0; }
.reviews-toolbar label { white-space: nowrap; }
.reviews-toolbar .uk-select { min-width: 170px; border-radius: 8px; }
.review-filter-clear, .review-read-toggle {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #24573c;
  text-decoration: underline;
  cursor: pointer;
}
.review-owner-notice {
  margin: 24px 0 4px;
  padding: 16px 18px;
  border-left: 4px solid #af7c00;
  border-radius: 8px;
  background: #fff8e5;
}
.review-owner-notice.status-rejected { border-color: var(--form-error-color); background: #fff0f0; }
.review-owner-notice.status-approved { border-color: #087f3e; background: #eef8f1; }
.review-list { margin-top: 8px; }
.review-card { padding: 28px 0; border-bottom: 1px solid var(--base-border-color); }
.review-author { margin-bottom: 14px; }
.review-avatar {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #dce8d6;
  color: #23412d;
  font-weight: 800;
}
.review-verified {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #eef8f1;
  color: #087f3e;
  font-size: 12px;
  font-weight: 700;
}
.review-card > .review-stars { margin-bottom: 10px; }
.review-title { margin: 0 0 6px; }
.review-meta { display: flex; gap: 8px; margin-bottom: 12px; color: var(--sgrey-text-color); }
.review-meta span + span::before { content: "•"; margin-right: 8px; }
.review-body { max-width: 780px; line-height: 1.7; }
.review-body p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-body.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.review-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 160px));
  gap: 8px;
  margin-top: 16px;
}
.review-photo-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.review-photo, .review-photo-preview-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--base-background-color);
}
.review-photo img, .review-photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.review-date { margin-top: 16px; color: var(--sgrey-text-color); font-size: 13px; }
.reviews-empty { padding: 50px 10px; text-align: center; }
.reviews-actions { margin-top: 26px; }
.review-modal .uk-modal-dialog { width: min(760px, calc(100vw - 40px)); border-radius: 24px; }
.review-modal form { max-height: calc(100vh - 60px); overflow-y: auto; }
.review-modal form > * + * { margin-top: 16px; }
.review-form-help { color: var(--sgrey-text-color); }
.review-rating-field { margin: 0; padding: 0; border: 0; }
.review-rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; margin-top: 8px; }
.review-rating-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.review-rating-input label {
  padding-right: 6px;
  color: #c9ccc9;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.review-rating-input label:hover,
.review-rating-input label:hover ~ label,
.review-rating-input input:checked ~ label { color: #087f3e; }
.review-rating-input input:focus-visible + label { outline: 3px solid #1e87f0; outline-offset: 3px; }
.review-modal .uk-form-label { display: block; margin-bottom: 7px; }
.review-modal .uk-input, .review-modal .uk-select, .review-modal .uk-textarea {
  border-radius: 8px;
  font-size: 16px;
}
.review-char-count { margin-top: 4px !important; color: var(--sgrey-text-color); text-align: right; font-size: 12px; }
.review-optional { color: var(--sgrey-text-color); font-weight: normal; }
.review-upload-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-upload-heading .uk-form-label { margin-bottom: 0; }
.review-photo-count { color: var(--sgrey-text-color); font-size: 13px; font-weight: 700; }
.review-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.review-photo-add {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 12px;
  border: 1px dashed var(--base-border-color);
  border-radius: 10px;
  background: #fff;
  color: var(--base-text-color);
  text-align: center;
  cursor: pointer;
  flex-direction: column;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.review-photo-add:hover,
.review-photo-add:focus-within,
.review-photo-input:focus-visible + .review-photo-preview .review-photo-add,
.review-photo-preview.is-dragging .review-photo-add {
  border-color: var(--primary-color);
  background: #f3f8f0;
  color: #345328;
}
.review-photo-add[hidden] { display: none; }
.review-photo-add-icon {
  margin-bottom: 2px;
  color: var(--primary-color);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}
.review-photo-add span:last-child { margin-top: 2px; color: var(--sgrey-text-color); font-size: 11px; font-weight: normal; }
.review-photo-preview-item { cursor: default; }
.review-photo-preview-item.is-uploading img { opacity: .55; }
.review-photo-preview-item.is-image-error img { display: none; }
.review-photo-preview-item.is-image-error::before {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--sgrey-text-color);
  content: "Preview unavailable";
  font-size: 12px;
  text-align: center;
}
.review-photo-state {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(36, 50, 40, .68);
  color: #fff;
  font-size: 12px;
  text-align: center;
  flex-direction: column;
}
.review-photo-spinner {
  width: 22px;
  height: 22px;
  margin-bottom: 7px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: review-photo-spin .8s linear infinite;
}
.review-photo-preview-item.is-error .review-photo-state { background: rgba(92, 20, 20, .78); }
.review-photo-retry {
  margin-top: 7px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.review-photo-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 20px;
  line-height: 26px;
  cursor: pointer;
}
.review-upload-help { margin: 8px 0 0 !important; color: var(--sgrey-text-color); font-size: 12px; }
.review-upload-status:empty { display: none; }
.review-upload-status { margin: 5px 0 0 !important; color: var(--sgrey-text-color); font-size: 12px; }
.review-upload-status.is-error { color: var(--form-error-color); }
@keyframes review-photo-spin { to { transform: rotate(360deg); } }
.review-form-error { padding: 10px 12px; border-radius: 8px; background: #fff0f0; color: var(--form-error-color); }
.review-delete { color: var(--form-error-color); background: #fff0f0; }
.member-review-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 22px; }
.member-review-card .review-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--base-background-color);
  font-size: 12px;
  font-weight: 700;
}
.member-review-card .review-status.pending { background: #fff8e5; color: #6c4d00; }
.member-review-card .review-status.rejected { background: #fff0f0; color: var(--form-error-color); }
.member-review-card .review-status.approved { background: #eef8f1; color: #087f3e; }
.member-review-actions { display: flex; align-items: flex-start; gap: 8px; }
@media (max-width: 960px) {
  .reviews-section + .similar { margin-top: 48px; }
}
@media (max-width: 640px) {
  .reviews-section + .similar { margin-top: 40px; }
  .reviews-section { margin-inline: -5px; padding: 24px 16px; border-radius: 20px; }
  .reviews-heading { align-items: stretch; flex-direction: column; }
  .reviews-heading .oo-btn { width: 100%; text-align: center; }
  .reviews-overview { align-items: stretch; }
  .reviews-toolbar { align-items: stretch; flex-direction: column; }
  .reviews-toolbar .uk-select { width: 100%; }
  .review-photos, .review-photo-preview { grid-template-columns: repeat(3, 1fr); }
  .review-photo-add span:last-child { display: none; }
  .review-modal { padding: 0; }
  .review-modal .uk-modal-dialog {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
  .review-modal form { min-height: 100vh; max-height: none; padding: 24px 18px 100px; border-radius: 0; }
  .member-review-card { grid-template-columns: 1fr; }
  .member-review-actions { flex-wrap: wrap; }
}
