.review-toolbar {
  position: relative;
  z-index: 4;
  width: min(1040px, 72.5vw);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px auto -19px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 101, 0, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 24px rgba(30, 30, 30, .035);
  backdrop-filter: blur(12px);
}
.review-toolbar > strong {
  flex: 0 0 auto;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.review-toolbar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.review-toolbar a {
  padding: 6px 9px;
  border-radius: 8px;
  color: #666;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}
.review-toolbar a:hover,
.review-toolbar a:focus-visible,
.review-toolbar a[aria-current="page"] { color: #1f1f1f; background: #f0f0ed; }

.conversation {
  margin-bottom: clamp(54px, 6vw, 86px);
  scroll-margin-top: 120px;
}
.conversation-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}
.conversation-heading h2 { margin: 0; font-size: clamp(25px, 2vw, 29px); line-height: 1.5; letter-spacing: -.035em; }
.conversation-heading p { margin: 0; color: #777; font-size: 12px; }
.comment-list, .comment-children { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.comment-item { min-width: 0; }
.comment { position: relative; }
.comment + .comment-children {
  gap: 10px;
  margin: 10px 0 0 clamp(36px, 5vw, 74px);
  padding-left: clamp(11px, 1.4vw, 20px);
  border-left: 2px solid #dededa;
}
.comment-children .comment { background: rgba(255, 255, 255, .58); box-shadow: 0 9px 28px rgba(30,30,30,.025); }
.comment-avatar.avatar-orange { background: #d95600; }
.comment-avatar.avatar-warm { background: #8d6e59; }
.comment-avatar.avatar-slate { background: #56606a; }
.comment-avatar.avatar-olive { background: #66704c; }
.comment-avatar.avatar-blue { background: #416478; }
.comment-body { min-width: 0; }
.comment-body header { justify-content: space-between; }
.comment-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.comment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #6f522d;
  background: #f4eadb;
  font-size: 10px;
  font-weight: 750;
}
.comment-actions { display: flex; align-items: center; gap: 13px; }
.comment-actions button { min-height: 30px; padding-inline: 3px; }
.comment.is-pending { border: 1px dashed #d0b795; background: rgba(250, 244, 234, .72); box-shadow: none; }
.comment.is-pending::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: #bc7b2c;
}

.comment-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
}
.comment-pagination a,
.comment-pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 13px;
  border: 1px solid #dededb;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: #555;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.comment-pagination a:hover,
.comment-pagination a:focus-visible { border-color: #ffb17d; color: var(--orange-dark); background: #fff; }
.comment-pagination [aria-current="page"] { color: #fff; border-color: var(--orange); background: var(--orange); }
.comment-pagination .pagination-label { min-width: auto; }

.comment-form-card { margin-top: clamp(24px, 2.8vw, 40px); padding: clamp(22px, 2.5vw, 36px); }
.comment-form-card h3 { margin: 0; font-size: clamp(23px, 2vw, 29px); letter-spacing: -.035em; }
.comment-form-card > p { margin: 8px 0 0; color: #666; font-size: 14px; line-height: 1.55; }
.reply-context {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #efefeb;
  color: #555;
  font-size: 12px;
}
.reply-context.is-visible { display: flex; }
.reply-context button { border: 0; background: transparent; color: #555; font-weight: 750; cursor: pointer; }
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.comment-form label { display: grid; gap: 7px; color: #404040; font-size: 12px; font-weight: 720; }
.comment-form label span { color: #777; font-weight: 500; }
.comment-form .field-wide { grid-column: 1 / -1; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #d7d7d3;
  border-radius: 9px;
  background: rgba(255, 255, 255, .82);
  color: #242424;
  font: inherit;
  font-size: 14px;
}
.comment-form input { min-height: 46px; padding: 0 13px; }
.comment-form textarea { min-height: 150px; resize: vertical; padding: 13px; line-height: 1.55; }
.comment-form input:hover, .comment-form textarea:hover { border-color: #bebeba; }
.comment-consent { grid-column: 1 / -1; display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 9px !important; font-weight: 500 !important; line-height: 1.45; }
.comment-consent input { width: 18px; min-height: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.comment-form button[type="submit"] {
  justify-self: start;
  min-height: 45px;
  padding: 0 19px;
  border: 0;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.comment-form button[type="submit"]:hover { background: var(--orange-dark); }
.comment-form-status { grid-column: 1 / -1; min-height: 18px; margin: 0; color: #4f6c49; font-size: 12px; font-weight: 650; }

.conversation-state {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 17px;
  align-items: start;
  padding: clamp(24px, 2.7vw, 39px);
}
.conversation-state .state-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #d8d8d4;
  border-radius: 50%;
  color: var(--orange-dark);
  background: rgba(255,255,255,.55);
}
.conversation-state .state-icon .icon { width: 23px; height: 23px; }
.conversation-state h2 { margin: 0; font-size: clamp(23px, 2vw, 29px); line-height: 1.5; letter-spacing: -.035em; }
.conversation-state p { margin: 9px 0 0; color: #5d5d5d; font-size: 15px; line-height: 1.6; }
.conversation-state.moderation-state { margin-bottom: 13px; border: 1px solid #dfceb6; background: rgba(249, 243, 234, .68); }
.post-comments:has(.conversation-state--empty) .conversation-heading { display: none; }

@media (max-width: 700px) {
  .conversation-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .review-toolbar { width: calc(100% - 20px); align-items: stretch; flex-direction: column; gap: 5px; margin-bottom: -21px; }
  .review-toolbar nav { width: 100%; gap: 2px; }
  .review-toolbar a { padding: 6px 7px; font-size: 10px; }
  .conversation-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .conversation { scroll-margin-top: 86px; }
  .comment + .comment-children { margin-left: 17px; padding-left: 9px; }
  .comment-body header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-form .field-wide, .comment-consent, .comment-form-status { grid-column: 1; }
  .conversation-state { grid-template-columns: 42px 1fr; gap: 13px; }
  .conversation-state .state-icon { width: 42px; height: 42px; }
  .comment-pagination { flex-wrap: nowrap; gap: 4px; }
  .post-comments .comment-pagination :is(.wp-block-comments-pagination-previous, .wp-block-comments-pagination-next) { padding-inline: 8px; }
  .post-comments .comment-pagination .wp-block-comments-pagination-numbers { flex-wrap: nowrap; gap: 4px; }
  .post-comments .comment-pagination .page-numbers { min-width: 24px; padding-inline: 0; }
}

@media print { .review-toolbar { display: none; } }

/* WordPress Core Comments adapters. */
.post-comments {
  position: relative;
  left: auto;
  width: min(1040px, 72.5vw);
  margin: clamp(33px, 3.7vw, 53px) auto clamp(54px, 6vw, 86px);
}
.post-comments .wp-block-comments-title { margin: 0; font-size: clamp(25px, 2vw, 29px); letter-spacing: -.035em; }
.post-comments .wp-block-comment-template { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.post-comments .wp-block-comment-template > li { min-width: 0; }
.post-comments .wp-block-comment-template .wp-block-comment-template,
.post-comments .wp-block-comment-template > li > ol {
  display: grid;
  gap: 13px;
  margin: 20px 0 0 clamp(36px, 5vw, 74px);
  padding-left: clamp(11px, 1.4vw, 20px);
  border-left: 2px solid #dededa;
}
.post-comments .comment-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 17px; padding: clamp(17px, 1.8vw, 26px); }
.post-comments .wp-block-avatar { width: 52px; height: 52px; margin: 0; }
.post-comments .wp-block-avatar img { width: 52px; height: 52px; object-fit: cover; }
.post-comments .jm-comment-avatar { display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.post-comments .jm-comment-avatar__initials { display: block; }
.post-comments .jm-comment-avatar.is-hydrated .jm-comment-avatar__initials { display: none; }
.post-comments .jm-comment-avatar__image { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.post-comments .comment-byline { justify-content: flex-start; gap: 7px; }
.post-comments .wp-block-comment-author-name,
.post-comments .wp-block-comment-date,
.post-comments .wp-block-comment-content,
.post-comments .wp-block-comment-reply-link { margin: 0; }
.post-comments .wp-block-comment-author-name { font-size: 14px; font-weight: 700; }
.post-comments .wp-block-comment-date { color: #7d7d7d; font-size: 12px; }
.post-comments .wp-block-comment-author-name a,
.post-comments .wp-block-comment-date a,
.post-comments .wp-block-comment-reply-link a { color: inherit; text-decoration: none; }
.post-comments .wp-block-comment-date::before { content: "·"; margin-right: 7px; }
.post-comments .wp-block-comment-content { margin: 7px 0; color: #494949; font-size: 14px; line-height: 1.55; }
.post-comments .wp-block-comment-content p { margin: 0 0 .8em; }
.post-comments .wp-block-comment-reply-link { color: #666; font-size: 12px; font-weight: 700; }
.post-comments .comment-pagination { margin-top: 26px; }
.post-comments .comment-form-card .comment-respond { margin: 0; }
.post-comments .comment-form-card .comment-reply-title { margin: 0; font-size: clamp(23px, 2vw, 29px); letter-spacing: -.035em; }
.post-comments .comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.post-comments .comment-form-comment,
.post-comments .comment-form-cookies-consent,
.post-comments .form-submit { grid-column: 1 / -1; }
.post-comments .comment-form p { margin: 0; }
.post-comments .comment-form label { display: block; margin-bottom: 7px; color: #404040; font-size: 12px; font-weight: 720; }
.post-comments .comment-form input:not([type="checkbox"]),
.post-comments .comment-form textarea { width: 100%; border: 1px solid #d7d7d3; border-radius: 9px; background: rgba(255,255,255,.82); }
.post-comments .comment-form input:not([type="checkbox"]) { min-height: 46px; padding: 0 13px; }
.post-comments .comment-form textarea { min-height: 150px; padding: 13px; }
.post-comments .comment-form .submit { min-height: 45px; padding: 0 19px; border: 0; border-radius: 9px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; }

@media (max-width: 700px) {
  .post-comments { width: 100%; }
  .post-comments .wp-block-comment-template .wp-block-comment-template,
  .post-comments .wp-block-comment-template > li > ol { margin-top: 18px; margin-left: 17px; padding-left: 9px; }
  .post-comments .comment-card { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .post-comments .wp-block-avatar,
  .post-comments .wp-block-avatar img { width: 42px; height: 42px; }
  .post-comments .jm-comment-avatar { font-size: 12px; }
  .post-comments .comment-byline { align-items: flex-start; flex-direction: column; gap: 5px; }
  .post-comments .wp-block-comment-date::before { display: none; }
  .post-comments .comment-form { grid-template-columns: 1fr; }
}
