.vehicle-review-reputation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e3e8ef;
  border-radius: 11px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
}

.vehicle-review-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.vehicle-review-score {
  color: #161c3c;
  font-weight: 850;
}

.vehicle-review-empty {
  color: #667085;
}

.vehicle-review-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #347fc1;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.vehicle-review-link:hover { text-decoration: underline; }
.vehicle-review-link:focus-visible {
  outline: 3px solid rgba(52,127,193,.22);
  outline-offset: 3px;
  border-radius: 5px;
}

body.vehicle-review-modal-open { overflow: hidden; }

.vehicle-review-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.vehicle-review-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(15,23,42,.56);
  backdrop-filter: blur(2px);
}

.vehicle-review-modal {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15,23,42,.24);
}

.vehicle-review-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e3e8ef;
}

.vehicle-review-modal__head span {
  display: block;
  margin-bottom: 4px;
  color: #347fc1;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vehicle-review-modal__head h2 {
  margin: 0;
  color: #161c3c;
  font-size: 23px;
  line-height: 1.18;
}

.vehicle-review-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid #dce4ed;
  border-radius: 50%;
  background: #fff;
  color: #475467;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.vehicle-review-close:hover { background: #f8fafc; }
.vehicle-review-close:focus-visible { outline: 3px solid rgba(52,127,193,.24); }

.vehicle-review-modal__body {
  max-height: calc(min(86vh, 820px) - 86px);
  overflow-y: auto;
  padding: 22px 24px 26px;
  overscroll-behavior: contain;
}

.vehicle-review-overview {
  display: grid;
  grid-template-columns: 180px minmax(0,1fr);
  gap: 16px;
  align-items: stretch;
}

.vehicle-review-overview__score,
.vehicle-review-source {
  padding: 17px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #f8fafc;
}

.vehicle-review-overview__score {
  display: grid;
  align-content: center;
  gap: 4px;
}

.vehicle-review-overview__score strong {
  color: #161c3c;
  font-size: 27px;
  letter-spacing: -.03em;
}

.vehicle-review-overview__score span,
.vehicle-review-overview__score small,
.vehicle-review-source span {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.vehicle-review-source {
  display: grid;
  align-content: center;
  gap: 5px;
}
.vehicle-review-source strong { color: #161c3c; font-size: 14px; }

.vehicle-review-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 8px;
  margin-top: 14px;
}

.vehicle-review-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 9px;
  border: 1px solid #e7ecf2;
  border-radius: 11px;
  text-align: center;
}
.vehicle-review-metric span { color: #667085; font-size: 10px; }
.vehicle-review-metric strong { color: #161c3c; font-size: 13px; }

.vehicle-review-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.vehicle-review-item {
  padding: 16px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #fff;
}

.vehicle-review-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vehicle-review-item__head > div:first-child { display: grid; gap: 5px; }
.vehicle-review-item__head strong { color: #161c3c; font-size: 13px; }
.vehicle-review-item__score { color: #161c3c; font-weight: 850; font-size: 15px; }

.vehicle-review-origin {
  display: inline-flex;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vehicle-review-origin.verified { color: #05603a; background: #ecfdf3; }
.vehicle-review-origin.reference { color: #175cd3; background: #eff8ff; }

.vehicle-review-date {
  margin-top: 8px;
  color: #98a2b3;
  font-size: 10px;
}
.vehicle-review-item p {
  margin: 10px 0 8px;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
}
.vehicle-review-recommend { color: #347fc1; font-size: 11px; font-weight: 750; }

.vehicle-review-loading,
.vehicle-review-no-items {
  display: grid;
  gap: 6px;
  min-height: 130px;
  place-content: center;
  text-align: center;
  color: #667085;
}
.vehicle-review-no-items strong { color: #161c3c; }
.vehicle-review-no-items span { font-size: 12px; }

@media (max-width: 720px) {
  .vehicle-review-modal-layer { padding: 12px; align-items: end; }
  .vehicle-review-modal {
    width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 12px 12px;
  }
  .vehicle-review-modal__head { padding: 18px 18px 15px; }
  .vehicle-review-modal__head h2 { font-size: 20px; }
  .vehicle-review-modal__body {
    max-height: calc(90vh - 78px);
    padding: 18px;
  }
  .vehicle-review-overview { grid-template-columns: 1fr; }
  .vehicle-review-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vehicle-review-metric:last-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .vehicle-review-reputation { align-items: flex-start; }
  .vehicle-review-link { width: 100%; text-align: left; padding-top: 2px; }
  .vehicle-review-summary { gap: 6px; }
  .vehicle-review-modal-layer { padding: 0; align-items: end; }
  .vehicle-review-modal { border-radius: 18px 18px 0 0; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-review-modal-backdrop { backdrop-filter: none; }
}
