.at-comments-section {
  padding: 78px 0 82px;
  border-top: 1px solid #e7e1da;
  background: #f5f3ef;
  color: #1c1916;
}

.at-reviews-shell {
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid #e1dcd5;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(47, 39, 30, .05);
}

.at-comments-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}

.at-comments-heading .panel-label {
  color: #a54c00;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.at-comments-heading h2 {
  margin: 8px 0 0;
  color: #17130f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.6vw, 53px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
}

.at-review-toggle {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 10px 19px;
  border: 0;
  border-radius: 12px;
  background: #191511;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.at-review-toggle:hover,
.at-review-toggle:focus-visible { background: #a54c00; }

.at-rating-summary {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(320px, 1.35fr);
  gap: 36px;
  padding: 30px;
  border: 1px solid #e4ded7;
  border-radius: 20px;
  background: #fbfaf8;
}

.at-rating-score {
  display: grid;
  align-content: center;
  min-height: 155px;
  padding-right: 34px;
  border-right: 1px solid #ded8d1;
}

.at-rating-score > strong {
  color: #17130f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 8vw, 86px);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.05em;
}

.at-rating-stars {
  margin-top: 14px;
  color: #efa400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 2px;
}

.at-rating-score p {
  margin: 10px 0 0;
  color: #625b54;
  font-size: 14px;
}

.at-rating-breakdown {
  display: grid;
  gap: 11px;
  align-content: center;
}

.at-rating-row {
  display: grid;
  grid-template-columns: 34px minmax(100px, 1fr) 46px;
  gap: 12px;
  align-items: center;
  color: #37312c;
  font-size: 14px;
}

.at-rating-row > strong { text-align: right; font-weight: 700; }
.at-rating-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e7e4e1; }
.at-rating-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: #ed9700; transition: width .25s ease; }

.at-review-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 30px 0;
}

.at-review-filters > span { margin-right: 5px; color: #5d554e; font-size: 14px; }
.at-review-filters button {
  min-height: 39px;
  padding: 8px 17px;
  border: 0;
  border-radius: 999px;
  background: #f3f1ee;
  color: #1c1916;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.at-review-filters button:hover,
.at-review-filters button:focus-visible,
.at-review-filters button.is-active { background: #ed6b00; color: #fff; }

.at-comment-form {
  position: relative;
  display: grid;
  gap: 20px;
  margin-bottom: 34px;
  padding: 30px;
  border: 1px solid #eda400;
  border-radius: 20px;
  background: #fff;
}

.at-comment-form[hidden] { display: none; }
.at-comment-form h3 { margin: 0; color: #17130f; font-size: 20px; line-height: 1.3; }
.at-comment-form-note { margin: -10px 0 0; color: #6f675f; font-size: 13px; line-height: 1.5; }
.at-comment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }

.at-comment-form label:not(.at-comment-consent),
.at-rating-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #29241f;
  font-size: 14px;
  font-weight: 800;
}

.at-comment-form input[type="text"],
.at-comment-form input[type="email"],
.at-comment-form select,
.at-comment-form textarea {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d6d0ca;
  border-radius: 12px;
  background: #fff;
  color: #211d19;
  font: inherit;
  font-size: 15px;
}

.at-comment-form textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.at-comment-form input:focus,
.at-comment-form select:focus,
.at-comment-form textarea:focus { outline: 3px solid rgba(237, 107, 0, .16); border-color: #ed6b00; }

.at-rating-field legend { margin-bottom: 9px; padding: 0; }
.at-star-picker { display: flex; gap: 9px; }
.at-star-picker button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8d2cb;
  cursor: pointer;
  font-size: 37px;
  line-height: 1;
  text-shadow: 0 0 0 #d8d2cb;
}
.at-star-picker button.is-selected { color: #ffae00; text-shadow: 0 1px 0 #d47a00; }
.at-star-picker button:focus-visible { outline: 3px solid rgba(237, 107, 0, .25); outline-offset: 2px; border-radius: 6px; }

.at-comment-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #5d5650;
  font-size: 13px;
  line-height: 1.5;
}
.at-comment-consent input { width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto; }

.at-comment-submit { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: flex-end; }
.at-comment-submit > button {
  min-height: 48px;
  padding: 11px 21px;
  border: 0;
  border-radius: 12px;
  background: #ed6b00;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}
.at-comment-submit > button:hover { background: #bd5100; }
.at-comment-submit > button:disabled { cursor: wait; opacity: .62; }
.at-comment-status { min-height: 22px; margin: 0; color: #5d5650; font-size: 14px; line-height: 1.5; }
.at-comment-status.is-success { color: #287047; }
.at-comment-status.is-error { color: #a12d2d; }

.at-comments-thread { margin-top: 10px; }
.at-comments-thread-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.at-comments-thread-head h3 { margin: 0; color: #17130f; font-size: 23px; }
.at-comments-summary,
.at-comments-empty { margin: 0; color: #6a625b; font-size: 14px; }
.at-comments-list { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }

.at-comment {
  padding: 25px 28px;
  border: 1px solid #e3ded8;
  border-radius: 18px;
  background: #fbfaf8;
}

.at-comment-head { display: flex; gap: 15px; align-items: center; }
.at-comment-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff0b9;
  color: #8f4300;
  font-size: 16px;
  font-weight: 900;
}
.at-comment-author { display: grid; gap: 3px; min-width: 0; }
.at-comment-author strong { color: #17130f; font-size: 16px; }
.at-comment-author small { color: #71685f; font-size: 13px; }
.at-comment-badge { margin-left: auto; padding: 7px 12px; border: 1px solid #eda400; border-radius: 999px; background: #fff8dd; color: #1b1713; font-size: 14px; font-weight: 900; }
.at-comment-body { margin: 18px 0 0; color: #3f3933; font-size: 16px; font-style: italic; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }

.at-comment-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 800px) {
  .at-rating-summary { grid-template-columns: 1fr; }
  .at-rating-score { min-height: 0; padding: 0 0 25px; border-right: 0; border-bottom: 1px solid #ded8d1; }
}

@media (max-width: 620px) {
  .at-comments-section { padding: 54px 0 62px; }
  .at-reviews-shell { padding: 24px 18px; border-radius: 20px; }
  .at-comments-heading { display: grid; }
  .at-review-toggle { width: fit-content; }
  .at-rating-summary { padding: 22px 18px; }
  .at-comment-fields { grid-template-columns: 1fr; }
  .at-comment-form { padding: 22px 18px; }
  .at-comment-submit { justify-content: flex-start; }
  .at-comment { padding: 21px 18px; }
}
