.ns-comment-overlay-open,
.ns-comment-overlay-open body {
  overflow: hidden;
}

.ns-comment-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.ns-comment-submit-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ns-comment-submit-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 36%, rgba(121, 31, 36, .18), transparent 42%),
    rgba(13, 12, 10, .88);
  backdrop-filter: blur(7px);
}

.ns-comment-submit-panel {
  position: relative;
  width: min(560px, 100%);
  box-sizing: border-box;
  padding: 42px 42px 38px;
  text-align: center;
  color: #eadfcb;
  background:
    linear-gradient(180deg, rgba(43, 38, 32, .98), rgba(27, 24, 21, .99));
  border: 1px solid rgba(199, 169, 112, .52);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .52),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

.ns-comment-submit-panel::before,
.ns-comment-submit-panel::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 43, 48, .9), transparent);
}

.ns-comment-submit-panel::before { top: 14px; }
.ns-comment-submit-panel::after { bottom: 14px; }

.ns-comment-submit-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 169, 112, .5);
  background: rgba(110, 29, 34, .16);
  transform: rotate(45deg);
}

.ns-comment-submit-rune,
.ns-comment-submit-check {
  grid-area: 1 / 1;
  transform: rotate(-45deg);
  font-size: 33px;
  line-height: 1;
  color: #c6a66d;
  transition: opacity .2s ease, transform .2s ease;
}

.ns-comment-submit-check {
  opacity: 0;
  color: #d5b777;
  font-family: Georgia, "Times New Roman", serif;
}

.ns-comment-submit-overlay.is-success .ns-comment-submit-rune {
  opacity: 0;
  transform: rotate(-45deg) scale(.7);
}

.ns-comment-submit-overlay.is-success .ns-comment-submit-check {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.ns-comment-submit-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #b79c6e;
}

.ns-comment-submit-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  font-weight: 400;
  color: #f0e4cf;
}

.ns-comment-submit-copy {
  max-width: 430px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.65;
  color: #c9bcaa;
}

.ns-comment-submit-progress {
  width: min(310px, 82%);
  height: 2px;
  margin: 28px auto 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .09);
}

.ns-comment-submit-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, #6f1f24, #c39d61, #6f1f24);
  animation: nsCommentWriting 1.15s ease-in-out infinite;
}

.ns-comment-submit-close {
  display: none;
  margin: 28px auto 0;
  padding: 12px 22px;
  border: 1px solid rgba(199, 169, 112, .58);
  background: transparent;
  color: #e6d8c0;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.ns-comment-submit-close:hover {
  background: rgba(199, 169, 112, .09);
  border-color: rgba(222, 190, 126, .86);
}

.ns-comment-submit-overlay.is-success .ns-comment-submit-progress,
.ns-comment-submit-overlay.is-error .ns-comment-submit-progress {
  display: none;
}

.ns-comment-submit-overlay.is-success .ns-comment-submit-close,
.ns-comment-submit-overlay.is-error .ns-comment-submit-close {
  display: inline-flex;
}

.ns-comment-submit-overlay.is-error .ns-comment-submit-mark {
  border-color: rgba(164, 72, 76, .7);
}

.ns-comment-submit-overlay.is-error .ns-comment-submit-rune {
  color: #b85c61;
}

@keyframes nsCommentWriting {
  0% { transform: translateX(-110%); opacity: .55; }
  50% { opacity: 1; }
  100% { transform: translateX(260%); opacity: .55; }
}

@media (max-width: 640px) {
  .ns-comment-submit-overlay {
    padding: 16px;
  }

  .ns-comment-submit-panel {
    padding: 34px 22px 30px;
  }

  .ns-comment-submit-mark {
    width: 62px;
    height: 62px;
  }

  .ns-comment-submit-copy {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ns-comment-submit-progress span {
    animation: none;
    width: 100%;
  }

  .ns-comment-submit-overlay {
    transition: none;
  }
}
