/*!
 * AJAX Form Comments v0.1.0
 * https://artemsemkin.com
 * https://github.com/artkrsk/arts-ajax-form-comments
 * © 2026 Artem Semkin
 * License: GPL-3.0
 */
.arts-ajax-form-comments {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 2em;
}

.arts-ajax-form-comments_submitting {
  cursor: wait;
}
.arts-ajax-form-comments_submitting > * {
  pointer-events: none;
  opacity: 0.5;
}

.arts-ajax-form-comments_visible-response .arts-ajax-form-comments__response {
  display: block;
  height: auto;
  opacity: 1;
}

.arts-ajax-form-comments__response {
  display: none;
  overflow: hidden;
  height: 0;
  transition: height 200ms ease-out, opacity 200ms ease-out;
  opacity: 0;
  margin-top: 1em;
}

.arts-ajax-form-comments__response.arts-ajax-form-comments__response_animating {
  display: block;
}

.arts-ajax-form-comments__response-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  padding-bottom: 0.2em;
  margin-right: 0.2em;
}
.arts-ajax-form-comments__response-icon svg {
  max-width: 1.2em;
  max-height: 1.2em;
}

.comment_ajax-added {
  opacity: 0;
  transform: translateY(10px);
}
.comment_ajax-added.arts-ajax-form-comments__comment_reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}