/**
 * Comment form layout & spacing.
 */

.rm-comment__pending {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.rm-comment-alert {
  margin: 2rem 0 0;
  border-radius: 1rem;
  border: 1px solid rgba(242, 65, 141, 0.2);
  background: #fdf2f8;
  padding: 1rem 1.25rem;
}

.rm-comment-alert-slot:empty {
  display: none;
}

.rm-comment-alert-slot:not(:empty) + .rm-comment-form,
.rm-comment-alert-slot:not(:empty) + #respond {
  margin-top: 1rem;
}

.rm-comment-alert__title {
  margin: 0;
  font-family: Raleway, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d62e78;
}

.rm-comment-alert__text {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4f4568;
}

/* Top-level comments */
.rm-comment-list > .rm-comment {
  border-bottom: 1px solid rgba(79, 41, 127, 0.06);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.rm-comment-list > .rm-comment:first-child {
  padding-top: 0;
}

.rm-comment-list > .rm-comment:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Nested replies under a parent comment */
.rm-comment-list .children {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid rgba(242, 65, 141, 0.18);
}

.rm-comment-list .children .rm-comment {
  margin: 0;
  padding: 1.25rem 0 0 1rem;
  border-bottom: 0;
}

.rm-comment-list .children .rm-comment + .rm-comment {
  margin-top: 0.25rem;
  border-top: 1px solid rgba(79, 41, 127, 0.05);
}

.rm-comment-list .children .children {
  margin-top: 1rem;
  padding-left: 0.85rem;
}

@media (min-width: 640px) {
  .rm-comment-list .children {
    padding-left: 1.5rem;
  }

  .rm-comment-list .children .rm-comment {
    padding-left: 1.25rem;
  }
}

.rm-comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rm-comment-form > p,
.rm-comment-form .comment-form-author,
.rm-comment-form .comment-form-email,
.rm-comment-form .comment-form-comment,
.rm-comment-form .comment-form-cookies-consent,
.rm-comment-form .comment-notes {
  margin: 0;
}

.rm-comment-form .rm-label {
  margin-bottom: 0.625rem;
}

.rm-comment-form .form-submit {
  margin: 0;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rm-comment-form .form-submit .rm-btn--primary {
  width: 100%;
}

@media (min-width: 640px) {
  .rm-comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
    row-gap: 1.5rem;
  }

  .rm-comment-form .comment-notes,
  .rm-comment-form .comment-form-comment,
  .rm-comment-form .comment-form-cookies-consent,
  .rm-comment-form .form-submit,
  .rm-comment-form .logged-in-as,
  .rm-comment-form .rm-comment-hp {
    grid-column: 1 / -1;
  }

  .rm-comment-form .form-submit {
    flex-direction: row;
    align-items: center;
  }

  .rm-comment-form .form-submit .rm-btn--primary {
    width: auto;
    min-width: 11rem;
  }
}
