.comment-box__inner {
  max-width: 50rem;
  margin: 0 auto;
  border: 1px solid #d3c8b5;
  background: transparent;
  font-family: "Crimson Pro", "Segoe UI Emoji", "Apple Color Emoji", "Segoe UI Symbol", "Noto Color Emoji", serif;
  padding: clamp(2.5rem, 5vw, 3.35rem) clamp(1.8rem, 5vw, 3.15rem) clamp(2.8rem, 5vw, 3.55rem);
}

.comment-box__header {
  max-width: 37rem;
  margin: 0 auto;
  text-align: center;
}

.comment-box__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #7a6348;
}

.comment-box__title {
  margin-top: 1.35rem;
  font-family: "Playfair Display", "Segoe UI Emoji", "Apple Color Emoji", "Segoe UI Symbol", "Noto Color Emoji", serif;
  font-size: clamp(3.35rem, 6vw, 4.95rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.01em;
  color: #14241e;
}

.comment-box__description {
  max-width: 28rem;
  margin: 1.45rem auto 0;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.45;
  color: rgba(20, 36, 30, 0.68);
}

.comment-box__accent-line {
  width: 5.75rem;
  height: 1px;
  margin: 2.25rem auto 0;
  background: rgba(122, 99, 72, 0.14);
}

.comment-box__list {
  max-width: 36.25rem;
  margin: 2rem auto 0;
}

.comment-box__list.has-comments {
  text-align: left;
}

.comment-box__empty {
  max-width: 24rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
  color: rgba(20, 36, 30, 0.68);
}

.comment-box__divider {
  max-width: 36.25rem;
  margin: 2.45rem auto 0;
  border-top: 1px solid rgba(122, 99, 72, 0.26);
}

.comment-box__thread {
  padding: 1.5rem 0;
}

.comment-box__thread + .comment-box__thread {
  border-top: 1px solid rgba(122, 99, 72, 0.18);
}

.comment-box__thread--reply {
  margin-left: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid rgba(122, 99, 72, 0.2);
}

.comment-box__thread-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
}

.comment-box__author {
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  line-height: 1.05;
  color: #14241e;
}

.comment-box__reply-label {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(122, 99, 72, 0.82);
}

.comment-box__date {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(20, 36, 30, 0.42);
}

.comment-box__body-text {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(20, 36, 30, 0.82);
}

.comment-box__thread-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.1rem;
}

.comment-box__like-action,
.comment-box__reply-action,
.comment-box__reply-cancel {
  border: none;
  background: none;
  padding: 0;
}

.comment-box__like-action {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(20, 36, 30, 0.54);
  transition: color 180ms ease, opacity 180ms ease;
}

.comment-box__like-action[disabled] {
  cursor: default;
  opacity: 1;
}

.comment-box__like-action:hover,
.comment-box__like-action[data-liked="true"] {
  color: #7a6348;
}

.comment-box__like-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
}

.comment-box__like-count {
  letter-spacing: 0.08em;
}

.comment-box__reply-action {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7a6348;
  transition: color 180ms ease;
}

.comment-box__reply-action:hover,
.comment-box__reply-action.is-active,
.comment-box__reply-cancel:hover {
  color: #5f4b34;
}

.comment-box__form-block {
  max-width: 36.25rem;
  margin: 1.6rem auto 0;
}

.comment-box__form {
  display: flex;
  flex-direction: column;
}

.comment-box__reply-state {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(122, 99, 72, 0.2);
  background: rgba(255, 255, 255, 0.35);
}

.comment-box__reply-state-text {
  font-size: 0.95rem;
  color: rgba(20, 36, 30, 0.76);
}

.comment-box__reply-cancel {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #7a6348;
}

input.comment-box__input,
textarea.comment-box__textarea,
.comment-box__preview-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d6cec2;
  border-radius: 0;
  background: rgba(255, 252, 246, 0.52);
  background-color: rgba(255, 252, 246, 0.52);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 1.04rem;
  line-height: 1.6;
  color: #14241e;
  padding: 1rem 0.95rem;
}

input.comment-box__input,
.comment-box__preview-field {
  min-height: 3.95rem;
}

textarea.comment-box__textarea,
.comment-box__preview-field--textarea {
  min-height: 7.15rem;
  margin-top: 1.5rem;
}

.comment-box__preview-field {
  display: flex;
  align-items: center;
  color: rgba(20, 36, 30, 0.35);
}

.comment-box__preview-field--textarea {
  align-items: flex-start;
  min-height: 7.15rem;
}

input.comment-box__input::placeholder,
textarea.comment-box__textarea::placeholder {
  color: rgba(20, 36, 30, 0.35);
}

input.comment-box__input:focus,
textarea.comment-box__textarea:focus {
  outline: none;
  border-color: #d6cec2;
  background-color: rgba(255, 252, 246, 0.52);
  box-shadow: none;
}

textarea.comment-box__textarea {
  resize: vertical;
}

input.comment-box__input:-webkit-autofill,
input.comment-box__input:-webkit-autofill:hover,
input.comment-box__input:-webkit-autofill:focus,
textarea.comment-box__textarea:-webkit-autofill,
textarea.comment-box__textarea:-webkit-autofill:hover,
textarea.comment-box__textarea:-webkit-autofill:focus {
  border: 1px solid #d6cec2;
  -webkit-text-fill-color: #14241e;
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 252, 246, 0.52) inset;
  box-shadow: 0 0 0 1000px rgba(255, 252, 246, 0.52) inset;
}

.comment-box__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.15rem;
}

.comment-box__status {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: rgba(20, 36, 30, 0.68);
}

.comment-box__status.is-error {
  color: #9f2d20;
}

.comment-box__submit-wrap {
  display: flex;
  justify-content: flex-end;
}

.comment-box__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 9.5rem;
  border: 1px solid #7a6348;
  background: #7a6348;
  padding: 0.95rem 1.35rem;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f4f1e6;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

button.comment-box__button:hover {
  background: transparent;
  color: #7a6348;
}

button.comment-box__button:disabled {
  cursor: default;
  opacity: 0.6;
}

@media (max-width: 640px) {
  .comment-box__title {
    font-size: 2.15rem;
  }

  .comment-box__description {
    font-size: 1rem;
  }

  .comment-box__divider {
    margin-top: 1.6rem;
  }

  .comment-box__thread--reply {
    margin-left: 1rem;
    padding-left: 1rem;
  }

  .comment-box__footer {
    align-items: stretch;
  }

  .comment-box__submit-wrap {
    justify-content: flex-start;
  }

  .comment-box__button {
    width: auto;
  }
}

@media (min-width: 768px) {
  .comment-box__footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .comment-box__status {
    flex: 1;
  }
}
