.norrsyn-comments {
  box-sizing: border-box;
  width: calc(100% - 4rem);
  max-width: 920px;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid #3b465b;
  border-radius: 22px;
  background: #151d2b;
  color: #d7ddea;
}

.norrsyn-comments *,
.norrsyn-comments *::before,
.norrsyn-comments *::after {
  box-sizing: border-box;
}

.norrsyn-comments__header {
  max-width: 680px;
  margin-bottom: 2rem;
}

.norrsyn-comments__eyebrow {
  margin: 0 0 .55rem;
  color: #a993ff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.norrsyn-comments h2,
.norrsyn-comments h3 {
  color: #fff;
}

.norrsyn-comments h2 {
  margin: 0 0 .7rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.norrsyn-comments h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.norrsyn-comments__header > p:last-child,
.norrsyn-comments__empty,
.norrsyn-comments__notice,
.norrsyn-comments .comment-notes,
.norrsyn-comments .logged-in-as {
  color: #aeb8c9;
  line-height: 1.65;
}

.norrsyn-comments a {
  color: #b7a8ff;
}

.norrsyn-comments__moderation {
  display: grid;
  gap: .3rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #6658ac;
  border-radius: 12px;
  background: #211f38;
  color: #d7ddea;
  line-height: 1.55;
}

.norrsyn-comments__moderation strong {
  color: #fff;
}

.norrsyn-comments__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid #465169;
  border-radius: 14px;
  background: #1b2434;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.norrsyn-comments__toggle:hover {
  border-color: #8d78ff;
  background: #202a3a;
}

.norrsyn-comments__toggle:focus-visible,
.norrsyn-comments__close:focus-visible {
  outline: 3px solid rgba(159, 140, 255, .45);
  outline-offset: 3px;
}

.norrsyn-comments__toggle strong,
.norrsyn-comments__toggle small {
  display: block;
}

.norrsyn-comments__toggle strong {
  margin-bottom: .2rem;
}

.norrsyn-comments__toggle small {
  color: #aeb8c9;
  font-size: .78rem;
}

.norrsyn-comments__toggle-icon {
  color: #a993ff;
  font-size: 1.35rem;
}

.norrsyn-comments__drawer {
  margin: 0 0 2rem;
  padding: 1.25rem;
  border: 1px solid #3b465b;
  border-radius: 16px;
  background: #0e1420;
}

.norrsyn-comments--enhanced .norrsyn-comments__drawer {
  position: fixed;
  z-index: 99990;
  top: 0;
  right: 0;
  width: min(480px, 100vw);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border-width: 0 0 0 1px;
  border-radius: 0;
  box-shadow: -24px 0 70px rgba(0, 0, 0, .42);
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .24s ease, visibility 0s linear .24s;
}

.norrsyn-comments--enhanced.norrsyn-comments--drawer-open .norrsyn-comments__drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.norrsyn-comments__drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid #303b50;
  background: #151d2b;
}

.norrsyn-comments__drawer-header h3 {
  margin: 0;
}

.norrsyn-comments__close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #465169;
  border-radius: 50%;
  background: #202a3a;
  color: #fff;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.norrsyn-comments__drawer-scroll {
  height: calc(100vh - 92px);
  height: calc(100dvh - 92px);
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.norrsyn-comments__items,
.norrsyn-comments__items .children {
  margin: 0;
  padding: 0;
  list-style: none;
}

.norrsyn-comments__items .children {
  margin: 1rem 0 0 2rem;
}

.norrsyn-comments__items .comment {
  display: list-item !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 0 1rem;
}

.norrsyn-comments__items .comment-body {
  padding: 1.15rem;
  border: 1px solid #303b50;
  border-radius: 14px;
  background: #1b2434;
}

.norrsyn-comments__form {
  padding-top: 2rem;
  border-top: 1px solid #303b50;
}

.norrsyn-comments__items .comment-author {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
}

.norrsyn-comments__items .avatar {
  border-radius: 50%;
}

.norrsyn-comments__items .comment-metadata {
  margin: .35rem 0 .8rem 3.4rem;
  color: #8f9aaf;
  font-size: .78rem;
}

.norrsyn-comments__items .comment-content {
  color: #d7ddea;
  line-height: 1.7;
}

.norrsyn-comments__items .reply {
  margin-top: .7rem;
  font-size: .82rem;
  font-weight: 700;
}

.norrsyn-comments__respond {
  margin: 0;
}

/* Some full-width theme templates hide the native reply container. */
.norrsyn-comments__form,
.norrsyn-comments #respond,
.norrsyn-comments .comment-respond,
.norrsyn-comments .norrsyn-comments__respond {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.norrsyn-comments #respond,
.norrsyn-comments .comment-respond,
.norrsyn-comments form.comment-form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #d7ddea !important;
}

.norrsyn-comments #respond::before,
.norrsyn-comments #respond::after,
.norrsyn-comments form.comment-form::before,
.norrsyn-comments form.comment-form::after {
  display: none !important;
  content: none !important;
}

.norrsyn-comments .comment-reply-title {
  display: block !important;
  margin: 0 0 1rem !important;
  color: #fff !important;
}

.norrsyn-comments__form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.norrsyn-comments__form-fields > p {
  margin: 0;
}

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

.norrsyn-comments label {
  display: block;
  margin-bottom: .4rem;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
}

.norrsyn-comments input[type="text"],
.norrsyn-comments input[type="email"],
.norrsyn-comments textarea {
  display: block;
  width: 100%;
  padding: .8rem .9rem;
  border: 1px solid #465169;
  border-radius: 10px;
  outline: 0;
  background: #0e1420;
  color: #fff;
  font: inherit;
}

.norrsyn-comments input[type="text"]:focus,
.norrsyn-comments input[type="email"]:focus,
.norrsyn-comments textarea:focus {
  border-color: #9f8cff;
  box-shadow: 0 0 0 3px rgba(159, 140, 255, .18);
}

.norrsyn-comments textarea {
  min-height: 160px;
  resize: vertical;
}

.norrsyn-comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: #aeb8c9;
  font-size: .82rem;
}

.norrsyn-comments .comment-form-cookies-consent label {
  margin: 0;
  color: #aeb8c9;
  font-weight: 400;
}

.norrsyn-comments__submit {
  padding: .82rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: #8d78ff;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.norrsyn-comments__submit:hover,
.norrsyn-comments__submit:focus {
  background: #a08eff;
}

.norrsyn-comments__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
  .norrsyn-comments--enhanced .norrsyn-comments__drawer {
    transition: none;
  }
}

@media (max-width: 640px) {
  .norrsyn-comments {
    width: calc(100% - 2rem);
    margin: 3rem auto;
    padding: 1.25rem;
    border-radius: 16px;
  }

  .norrsyn-comments__form-fields {
    grid-template-columns: 1fr;
  }

  .norrsyn-comments__form-fields > p {
    grid-column: 1;
  }

  .norrsyn-comments__items .children {
    margin-left: .8rem;
  }

  .norrsyn-comments--enhanced .norrsyn-comments__drawer {
    width: 100vw;
  }
}
