/* Scoped additions preserve the live site's existing design. */
#reviews { padding: 64px 0; }
#reviews .review-invitation { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 72px); max-width: 960px; margin: 0 auto; }
#reviews .review-invitation-copy, #reviews .reviews-feed { min-width: 0; }
#reviews .review-desktop-copy, #reviews .review-mobile-copy { color: var(--muted); max-width: 360px; margin-top: 14px; }
#reviews .review-mobile-copy { display: none; }
#reviews .btn-review { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; cursor: pointer; min-height: 48px; margin: 22px 0 10px; }
#reviews .review-moderation-note { color: var(--muted); font-size: .8rem; }
#reviews .reviews-feed { border-left: 1px solid var(--line); padding: 24px 0 24px 28px; }
#reviews #reviews-state { margin: 0; overflow-wrap: anywhere; color: var(--muted); }
#reviews #reviews-state.is-empty .reviews-empty-title { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.3; color: var(--ink); margin-bottom: 14px; }
#reviews #reviews-state.is-empty .reviews-empty-copy { display: block; }
#reviews .review-grid { columns: 1; margin-top: 20px; }
#reviews .review-grid:empty { display: none; }
#reviews .review-card { break-inside: avoid; padding: 20px; margin-bottom: 16px; }
#reviews .review-card h3 { font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif; font-size: 1rem; overflow-wrap: anywhere; }
#reviews .review-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
#reviews .review-card .review-stars { color: #705400; font-size: 1rem; }
#reviews .review-card time { display: block; color: var(--muted); font-size: .85rem; margin: 8px 0; }
.review-form-panel { max-width: 700px; margin: 32px auto 0; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; scroll-margin-top: 100px; }
.review-form-panel h3 { font-size: 1.65rem; margin-bottom: 10px; }
.review-intro { color: #34404c; margin-bottom: 26px; }
.rating-field { border: 0; padding: 0; min-width: 0; margin: 0 0 22px; }
.rating-field legend, .review-field > label { font-weight: 700; font-size: 1rem; color: #0f1b24; }
.review-required { font-weight: 400; font-size: .9rem; }
.review-hint { color: #485863; font-size: .9rem; margin: 7px 0 10px; }
.review-hint a { color: #0a5f67; text-decoration: underline; }
.rating-options { display: flex; gap: 10px; }
.rating-options label { position: relative; cursor: pointer; }
.rating-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-options span { display: flex; justify-content: center; align-items: center; min-width: 50px; min-height: 48px; padding: 10px; border: 2px solid #7a8d95; border-radius: 8px; color: #34404c; font-size: 1.05rem; }
.rating-options input:checked + span { background: #0a5f67; border-color: #0a5f67; color: #fff; font-weight: 700; }
.rating-options input:focus-visible + span, .review-form-panel :focus-visible, #reviews button:focus-visible { outline: 3px solid #0a5f67; outline-offset: 4px; }
.review-field { margin: 22px 0; }
.review-field input, .review-field textarea { display: block; width: 100%; max-width: 100%; border: 1px solid #7a8d95; border-radius: 8px; background: #fff; padding: 12px; font: inherit; font-size: 16px; line-height: 1.5; color: #0f1b24; }
.review-field textarea { resize: vertical; min-height: 150px; }
.review-count { text-align: right; }
.review-error { color: #9c2222; font-size: .9rem; margin-top: 8px; }
.review-error:empty { display: none; }
[aria-invalid="true"] { border-color: #9c2222 !important; }
.review-consent { display: flex; align-items: flex-start; gap: 12px; }
.review-consent input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 12px; accent-color: #0a5f67; }
.review-consent label { flex: 1; padding: 10px 0; cursor: pointer; }
.review-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#review-message { margin: 18px 0; }
#review-message:empty { display: none; }
#review-message[data-kind="error"] { color: #9c2222; }
#review-message[data-kind="success"] { color: #0a5f67; font-weight: 600; }
.review-submit, .review-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 2px solid #0a5f67; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.review-submit { background: #0a5f67; color: #fff; }
.review-secondary { background: #fff; color: #0a5f67; margin-top: 12px; }
.review-submit:disabled { opacity: .6; cursor: wait; }
#review-retry { margin-left: 8px; }
#reviews [hidden] { display: none !important; }
@media (max-width: 760px) {
  #reviews { padding: 48px 0; }
  #reviews .review-invitation { display: block; max-width: 540px; text-align: center; }
  #reviews .kicker { justify-content: center; }
  #reviews .review-desktop-copy { display: none; }
  #reviews .review-mobile-copy { display: block; max-width: 440px; margin: 14px auto 0; }
  #reviews .reviews-feed { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; margin-top: 28px; }
  #reviews #reviews-state { font-size: .85rem; }
  #reviews #reviews-state.is-empty .reviews-empty-title, #reviews #reviews-state.is-empty .reviews-empty-copy { display: inline; font-family: inherit; font-size: inherit; font-weight: 400; line-height: inherit; color: var(--muted); margin: 0; }
}
@media (max-width: 540px) {
  .review-form-panel { padding: 22px 16px; }
  .rating-options { gap: 4px; justify-content: space-between; }
  .rating-options label { flex: 1; }
  .rating-options span { min-width: 44px; padding: 8px; }
  .review-submit, #review-retry { width: 100%; margin-left: 0; }
}
