.business-reviews-section {
  scroll-margin-top: 110px;
}

.business-reviews-card {
  display: grid;
  gap: 18px;
  border-color: color-mix(in srgb, var(--border) 80%, var(--client-accent) 20%);
  background: color-mix(in srgb, var(--surface) 94%, var(--client-accent-soft) 6%);
}

.business-reviews-head,
.business-review-meta,
.customer-review-card > header,
.customer-review-actions {
  display: flex;
  align-items: center;
}

.business-reviews-head {
  justify-content: space-between;
  gap: 16px;
}

.business-reviews-head h2,
.customer-review-card h2 {
  margin: 7px 0 0;
}

.business-review-score {
  display: grid;
  min-width: 112px;
  justify-items: center;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

.business-review-score strong {
  color: var(--brand-blue);
  font-size: 1.55rem;
  line-height: 1;
}

.business-review-score small,
.review-form-note,
.business-reviews-empty span,
.customer-review-card > p {
  color: var(--text-soft);
}

.business-review-score-stars,
.business-review-stars {
  color: #e9a400;
  letter-spacing: 0;
}

.business-review-compose {
  min-width: 0;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--border) 72%, var(--client-accent) 28%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-alt) 91%, var(--client-accent-soft) 9%);
}

.business-review-compose > summary {
  padding: 14px 16px;
  color: var(--brand-blue);
  font-weight: 800;
  cursor: pointer;
}

.business-review-compose > form {
  display: grid;
  min-width: 0;
  gap: 15px;
  padding: 0 16px 16px;
}

.review-star-picker {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.review-star-picker legend,
.review-comment-field > span {
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 800;
}

.review-star-picker-options {
  display: grid;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: repeat(5, clamp(38px, 11vw, 48px));
  direction: rtl;
  gap: 8px;
}

.review-star-picker-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.review-star-picker-options label {
  display: grid;
  min-width: 0;
  min-height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: color-mix(in srgb, var(--text-soft) 34%, transparent);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.review-star-picker-options input:checked ~ label,
.review-star-picker-options label:hover,
.review-star-picker-options label:hover ~ label {
  border-color: color-mix(in srgb, #e9a400 55%, var(--border) 45%);
  background: color-mix(in srgb, #e9a400 11%, var(--surface) 89%);
  color: #e9a400;
}

.review-star-picker-options input:focus-visible + label {
  outline: 3px solid var(--client-accent-glow);
  outline-offset: 2px;
}

.review-star-picker-options label:hover {
  transform: translateY(-2px);
}

.review-comment-field {
  display: grid;
}

.review-comment-field textarea {
  width: 100%;
  min-height: 112px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  background: var(--surface);
  color: var(--text-main);
  font: inherit;
  resize: vertical;
}

.review-comment-field textarea:focus {
  border-color: var(--client-accent);
  box-shadow: 0 0 0 3px var(--client-accent-glow);
}

.review-form-actions .btn,
.business-review-login,
.business-review-view-all {
  width: 100%;
  justify-content: center;
}

.business-review-list {
  display: grid;
  gap: 11px;
}

.business-review-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.business-review-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--client-accent-soft) 76%, var(--surface) 24%);
  color: var(--brand-blue);
  font-weight: 900;
}

.business-review-content {
  min-width: 0;
}

.business-review-meta {
  flex-wrap: wrap;
  gap: 7px;
}

.business-review-content p {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: var(--text-soft);
  line-height: 1.5;
}

.review-verified-badge,
.review-community-badge,
.review-status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.review-verified-badge {
  border: 1px solid rgba(0, 153, 133, 0.22);
  background: rgba(0, 191, 166, 0.11);
  color: #008f7d;
}

.review-community-badge {
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.review-status-pill {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-soft);
}

.review-status-pill.is-published {
  border-color: rgba(0, 153, 133, 0.25);
  background: rgba(0, 191, 166, 0.11);
  color: #008f7d;
}

.review-status-pill.is-pending {
  border-color: rgba(245, 124, 0, 0.28);
  background: rgba(245, 124, 0, 0.11);
  color: #a95800;
}

.review-status-pill.is-hidden {
  border-color: rgba(178, 43, 54, 0.24);
  background: rgba(178, 43, 54, 0.08);
  color: #a52c38;
}

.business-reviews-empty,
.customer-review-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 26px 18px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  text-align: center;
}

.business-reviews-empty i,
.customer-review-empty > i {
  color: var(--client-accent);
  font-size: 1.75rem;
}

.business-reviews-empty div {
  display: grid;
  gap: 3px;
}

.review-page-hero,
.customer-reviews-hero {
  min-height: 0;
  padding: 22px;
}

.review-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--brand-blue);
  font-weight: 800;
  text-decoration: none;
}

.review-page-business {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.review-page-business img,
.customer-review-card header img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 14px;
  object-fit: cover;
}

.review-page-business h1,
.customer-reviews-hero h1 {
  margin: 0;
}

.review-page-business p {
  margin: 5px 0 0;
}

.review-account-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--client-accent-border);
  border-radius: 16px;
  background: var(--client-accent-soft);
}

.review-account-status.is-blocked {
  border-color: rgba(178, 43, 54, 0.25);
  background: rgba(178, 43, 54, 0.08);
}

.review-account-status > div {
  display: grid;
  gap: 3px;
}

.review-account-status span {
  color: var(--text-soft);
}

.customer-review-list {
  display: grid;
  gap: 13px;
}

.customer-review-card {
  display: grid;
  gap: 13px;
}

.customer-review-card.is-inactive {
  opacity: 0.72;
}

.customer-review-card > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
}

.customer-review-card h2 {
  font-size: 1.05rem;
}

.customer-review-actions {
  gap: 9px;
}

.customer-review-actions > a {
  flex: 1;
}

.review-delete-btn {
  width: 46px;
  min-width: 46px;
  color: #b22b36;
}

body.theme-dark .business-review-score,
body.theme-dark .business-review-compose,
body.theme-dark .business-review-item,
body.theme-dark .review-star-picker-options label {
  background: rgba(10, 28, 57, 0.82);
}

body.theme-dark .review-star-picker-options input:checked ~ label,
body.theme-dark .review-star-picker-options label:hover,
body.theme-dark .review-star-picker-options label:hover ~ label {
  background: rgba(233, 164, 0, 0.12);
}

body.theme-dark .review-verified-badge {
  color: #78ead8;
}

@media (max-width: 640px) {
  .business-reviews-card {
    gap: 14px;
  }

  .business-reviews-head {
    align-items: flex-start;
  }

  .business-review-score {
    min-width: 96px;
  }

  .business-review-score strong {
    font-size: 1.35rem;
  }

  .review-star-picker-options label {
    min-height: 44px;
    font-size: 1.5rem;
  }

  .review-star-picker-options {
    gap: 6px;
  }

  .customer-review-card > header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .customer-review-card > header .review-status-pill {
    grid-column: 2;
  }
}
