/* assets/css/components/_comment-form.css
 * WordPress comment form (#commentform) — validation errors + status line
 * (assets/js/components/comment-form.js, inc/hooks/comments.php).
 * Global: a comment form can appear on any page, and components/_forms.css
 * (where .field-error normally lives) isn't loaded everywhere.
 */
.comment-form .field-error,
#commentform .field-error {
  display: none;
  margin-top: 6px;
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 18px;
  color: #C0392B;
  text-align: right;
}

.comment-form .field-error:not(:empty),
#commentform .field-error:not(:empty) {
  display: block;
}

#commentform input[aria-invalid="true"],
#commentform textarea[aria-invalid="true"],
#commentform fieldset[aria-invalid="true"] {
  outline: 2px solid #C0392B;
  outline-offset: 1px;
}

#commentform fieldset[aria-invalid="true"] {
  border-radius: 8px;
}

.comment-form-status {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 22px;
  color: #183B51;
  background: #E0EBE2;
  text-align: right;
}

.comment-form-status[hidden] { display: none; }
.comment-form-status.is-error { background: #FBE3E6; color: #8A1C2B; }

#commentform[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
