/* Food review visitor comments */

.food-review-comments {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(20, 24, 28, 0.08);
}

.food-review-comments__inner {
  max-width: 46rem;
}

.food-review-comments__head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.food-review-comments__head p {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.food-review-comments__empty {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.food-review-comments__thread + .food-review-comments__thread {
  margin-top: 1rem;
}

.food-review-comment {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(20, 24, 28, 0.06);
}

.food-review-comment--admin {
  padding: 1rem 1rem 1rem 1.1rem;
  border: 1px solid rgba(63, 125, 255, 0.14);
  border-radius: 14px;
  background: rgba(63, 125, 255, 0.04);
  border-bottom: 1px solid rgba(63, 125, 255, 0.14);
}

.food-review-comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.45rem;
}

.food-review-comment__name {
  font-size: 0.98rem;
  font-weight: 600;
}

.food-review-comment__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(63, 125, 255, 0.12);
  color: #2f66db;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.food-review-comment__date {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.food-review-comment__body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 0.98rem;
}

.food-review-comment__reply {
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3f7dff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.food-review-comment__reply:hover,
.food-review-comment__reply:focus-visible {
  text-decoration: underline;
  outline: none;
}

.food-review-comment__replies {
  margin-top: 0.85rem;
  margin-left: clamp(0.75rem, 3vw, 1.25rem);
  padding-left: clamp(0.75rem, 3vw, 1rem);
  border-left: 1px solid rgba(20, 24, 28, 0.08);
}

.food-review-comments__form {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(20, 24, 28, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.food-review-comments__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.food-review-comments__replying {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.food-review-comments__cancel-reply {
  margin-left: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3f7dff;
  font-size: 0.88rem;
  cursor: pointer;
}

.food-review-comments__field {
  display: block;
  margin-bottom: 0.85rem;
}

.food-review-comments__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.food-review-comments__field input,
.food-review-comments__field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(20, 24, 28, 0.12);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.food-review-comments__field input:focus,
.food-review-comments__field textarea:focus {
  outline: 2px solid rgba(63, 125, 255, 0.22);
  border-color: rgba(63, 125, 255, 0.45);
}

.food-review-comments__turnstile {
  margin: 0.25rem 0 0.85rem;
}

.food-review-comments__actions {
  display: flex;
  justify-content: flex-start;
}

.food-review-comments__status {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.food-review-comments__status--ok {
  color: #2f6b4d;
}

.food-review-comments__status--error {
  color: #9b3b3b;
}

.food-review-comments__submit-notice {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.food-review-comments__submit-notice--ok {
  color: #2f6b4d;
}

.food-review-comments__submit-notice--error {
  color: #9b3b3b;
}

@media (max-width: 640px) {
  .food-review-comments__form {
    padding: 0.95rem;
  }

  .food-review-comment__replies {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
  }
}
