.review-modal-open { overflow: hidden; }
.review-dialog, .review-dialog * { box-sizing: border-box; }
.review-dialog svg { fill: currentColor; }
.review-dialog {
  width: min(580px, calc(100% - 32px)); max-width: calc(100% - 24px); max-height: calc(100dvh - 40px);
  margin: auto; padding: 26px 30px 24px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #b5d3ff; border-radius: 18px; background: #eaf3ff;
  color: #052b66; box-shadow: 0 20px 80px #052b6633;
  font: 400 18px/1.4 "Roboto Condensed", sans-serif;
}
.review-dialog::backdrop { background: #052b6673; }
.review-dialog h2 { margin: 0 40px 4px 0; color: #0757b9; font: 600 40px/1.3 "Oswald", sans-serif; }
.review-dialog > p { margin: 0 0 24px; color: #60708a; font-size: 18px; }
.review-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; background: white; border: 1px solid #afcfff; border-radius: 50%; color: #052b66; cursor: pointer; }
.review-close svg { width: 22px; height: 22px; }
.review-form { display: grid; gap: 22px; }
.review-dialog [hidden] { display: none !important; }
.review-field { margin: 0; padding: 0; min-width: 0; border: 0; }
.review-field > label, .review-field > legend { display: block; padding: 0; margin: 0 0 7px; color: #052b66; font-size: 20px; font-weight: 650; }
.review-field > label > span { color: #60708a; font-size: 16px; font-weight: 400; }
.review-field > input, .review-field > textarea { display: block; width: 100%; border: 1px solid #b8cbe4; border-radius: 8px; padding: 11px 14px; background: white; color: #052b66; font: inherit; }
.review-field > textarea { min-height: 100px; resize: vertical; }
.review-field input::placeholder, .review-field textarea::placeholder { color: #7183a0; opacity: 1; }
.review-field small { display: block; margin-top: 6px; color: #60708a; font-size: 16px; }
.review-dialog :focus-visible, .review-trigger:focus-visible { outline: 3px solid #0757b9; outline-offset: 3px; }
.review-rating-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.review-stars { display: flex; gap: 6px; }
.review-star { position: relative; width: 44px; height: 44px; color: #0b6edb; cursor: pointer; }
.review-star input, .review-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.review-star svg { width: 100%; height: 100%; pointer-events: none; }
.review-star .star-filled { display: none; }
.review-star.is-selected .star-filled { display: block; }
.review-star.is-selected .star-outline { display: none; }
.review-star:has(:focus-visible), .review-upload:has(:focus-visible) { outline: 3px solid #0757b9; outline-offset: 3px; border-radius: 6px; }
.review-rating-label { color: #0757b9; font-size: 18px; }
.review-upload-row { display: flex; gap: 10px; }
.review-upload { position: relative; flex: 0 0 34%; min-height: 122px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 12px 6px; border: 1px dashed #8ebcff; border-radius: 10px; background: #f7fbff; color: #0757b9; cursor: pointer; text-align: center; }
.review-upload svg { width: 34px; height: 34px; }
.review-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1; gap: 10px; }
.review-previews figure { position: relative; width: 100%; height: 122px; margin: 0; }
.review-previews img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.review-previews button { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; border: 0; background: white; color: #052b66; border-radius: 50%; cursor: pointer; }
.review-previews button svg { width: 18px; height: 18px; }
.review-submit, .review-trigger { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 0; background: #0757b9; color: white; cursor: pointer; font: 600 18px/1.3 "Roboto Condensed", sans-serif; }
.review-submit { width: 100%; min-height: 52px; padding: 12px 20px; border-radius: 13px; }
.review-submit svg, .review-trigger svg { width: 24px; height: 24px; }
.review-submit:hover, .review-trigger:hover { background: #052b66; }
.review-submit:disabled { opacity: .65; cursor: wait; }
.review-trigger { margin-top: 24px; min-height: 46px; padding: 11px 23px; border-radius: 999px; font-size: 16px; }
.review-error { margin: 0; color: #052b66; padding: 10px 12px; border-left: 3px solid #0757b9; background: white; }
.review-success { padding: 18px 0 0; }
.review-success h3 { font: 500 26px/1.3 "Oswald", sans-serif; margin: 0 0 12px; }
.review-success p { color: #60708a; margin: 0 0 24px; }
.review-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.testimonial-rating { display: flex; gap: 3px; margin-left: auto; color: #0757b9; }
.testimonial-rating svg { width: 18px; height: 18px; }
.testimonial-controls { margin-top: 12px; }
.testimonial-thumbs { max-height: 260px; overflow-y: auto; padding: 6px; margin: 9px -6px 0; }
.testimonial-photo-gallery { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.testimonial-photo-gallery a { display: block; }
.testimonial-photo-gallery img { width: 76px; height: 70px; object-fit: cover; border-radius: 8px; }
.testimonial-main-photo.is-brand-avatar, .testimonial-thumbs img.is-brand-avatar { object-fit: contain; background: #eaf3ff; padding: 12px; }
.testimonial blockquote > p { white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .review-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 24px 20px 20px; border-radius: 16px; font-size: 16px; }
  .review-dialog h2 { font-size: 30px; }
  .review-dialog > p { font-size: 16px; margin-bottom: 20px; padding-right: 10px; }
  .review-form { gap: 19px; }
  .review-field > label, .review-field > legend { font-size: 17px; }
  .review-field > label > span { font-size: 14px; }
  .review-rating-row { gap: 8px; }
  .review-rating-label { width: 100%; }
  .review-upload { flex-basis: 112px; min-height: 94px; font-size: 14px; }
  .review-field small { font-size: 14px; }
  .review-previews figure { width: 100%; height: 94px; }
  .review-previews { gap: 6px; }
  .testimonial-thumbs { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
  .testimonial-thumbs button { flex-shrink: 0; }
}
