/*!
 * reviews-page.css — TrueSight 전체 리뷰 페이지 (Phase 7)
 * 위젯(reviews-widget.css) 의 디자인 토큰 계승: 검정 CTA, #fafafa proof card,
 * 별점 #f5a623, 라운드 12~14px, 절제된 그림자. namespace: .rvp-
 */

:root {
  --rvp-ink: #141414;
  --rvp-muted: #6a6a6a;
  --rvp-line: #ececec;
  --rvp-card: #fafafa;
  --rvp-star: #f5a623;
  --rvp-accent: #111;
}

* { box-sizing: border-box; }

.rvp-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  color: var(--rvp-ink);
  line-height: 1.6;
}

/* header */
.rvp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--rvp-line);
}
.rvp-brand { text-decoration: none; color: var(--rvp-ink); display: flex; flex-direction: column; line-height: 1.2; }
.rvp-brand-mark { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.rvp-brand-sub { font-size: 11px; color: var(--rvp-muted); }
.rvp-back { font-size: 13px; color: var(--rvp-muted); text-decoration: none; }
.rvp-back:hover { color: var(--rvp-ink); }

/* hero */
.rvp-hero { padding: 32px 0 8px; }
.rvp-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 4px;
}
.rvp-hero-text { flex: 1 1 auto; min-width: 0; }
.rvp-title { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.rvp-subtitle { font-size: 15px; color: var(--rvp-muted); margin: 0 0 20px; }

/* Write a Review CTA — desktop: hero 우측 / mobile: full-width */
.rvp-write-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--rvp-accent);
  border: 1.5px solid var(--rvp-accent);
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}
.rvp-write-btn:hover { background: #000; box-shadow: 0 4px 12px rgba(17,17,17,0.16); }
.rvp-write-btn:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
/* 긴 문구 ("Find Your Vehicle to Write a Review") 대응 — 최대폭 제한 + 줄바꿈 허용 */
.rvp-write-btn { max-width: 280px; text-align: center; line-height: 1.3; }
.rvp-write-hint {
  font-size: 13px;
  color: var(--rvp-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

.rvp-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 22px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--rvp-line);
}
.rvp-avg { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.rvp-stars { color: var(--rvp-star); font-size: 18px; letter-spacing: 1px; }
.rvp-count { font-size: 14px; color: var(--rvp-muted); }

/* filters */
.rvp-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 24px;
}
.rvp-filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1d;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
/* HTML [hidden] 속성이 .class 보다 specificity 낮아 무시되는 버그 명시 차단 */
.rvp-filter-btn[hidden] { display: none; }
.rvp-filter-btn:hover { background: #f3f3f3; border-color: #9a9a9a; }
.rvp-filter-btn:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
.rvp-filter-active, .rvp-filter-active:hover {
  color: #fff; background: var(--rvp-accent); border-color: var(--rvp-accent);
}

/* Brand → Model 2단 selector (VEHICLE_DATA 47 brands × 328 models) */
.rvp-vehicle-filter {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.rvp-vf-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rvp-muted);
  margin-right: 2px;
}
.rvp-vf-sel {
  min-height: 44px;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1d;
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236a6a6a' d='M6 8L0 0h12z'/></svg>")
    no-repeat right 14px center;
  background-size: 10px 7px;
  border: 1.5px solid #d0d0d0;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  max-width: 260px;
}
.rvp-vf-sel:hover:not(:disabled) { border-color: #9a9a9a; }
.rvp-vf-sel:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
.rvp-vf-sel:disabled { background-color: #f5f5f5; color: #9a9a9a; cursor: not-allowed; opacity: 0.7; }

/* list */
.rvp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rvp-item {
  padding: 22px 24px;
  background: var(--rvp-card);
  border: 1px solid #eee;
  border-radius: 12px;
  scroll-margin-top: 24px;
}
.rvp-item.rvp-highlight {
  border-color: var(--rvp-accent);
  box-shadow: 0 0 0 2px rgba(17,17,17,0.12);
}
.rvp-rating { color: var(--rvp-star); font-size: 14px; letter-spacing: 2px; margin: 0 0 10px; line-height: 1; }
.rvp-item-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; line-height: 1.35; }
.rvp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; font-size: 13px; color: #8a8a8a; margin: 0 0 10px; }
.rvp-author { font-weight: 700; color: #2e2e2e; }
.rvp-date { color: #a4a4a4; }
.rvp-vehicle {
  display: inline-block;
  font-size: 12px;
  color: #5a5a5a;
  background: #f0f0f0;
  padding: 3px 10px;
  border-radius: 6px;
  margin: 0 0 12px;
}
/* reviews page = full body (clamp 없음) */
.rvp-body {
  font-size: 15px;
  color: #2c2c2c;
  line-height: 1.72;
  margin: 0;
  max-width: 68ch;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* images */
.rvp-images { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.rvp-image-thumb {
  /* Phase 9: <button> 으로 바뀜 — 브라우저 기본 스타일 제거 + 정사각 카드 유지 */
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background: #f2f2f2;
  flex: 0 0 auto;
  cursor: pointer;
  display: block;
}
.rvp-image-thumb:hover,
.rvp-image-thumb:focus-visible {
  border-color: #c8c8c8;
  outline: none;
}
.rvp-image-thumb:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
}
.rvp-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

/* Manage this review — 각 카드 우측 하단 진입 버튼 */
.rvp-manage-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #ececec;
}
.rvp-manage-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #5a5a5a;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.rvp-manage-btn:hover { background: #f5f5f5; border-color: #9a9a9a; color: #2e2e2e; }
.rvp-manage-btn:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }

/* Manage Review modal — email + purpose (edit/delete) → request_owner_token */
.rvp-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.rvp-modal[hidden] { display: none; }
.rvp-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}
.rvp-modal-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: #6a6a6a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rvp-modal-close:hover, .rvp-modal-close:focus-visible {
  background: #f0f0f0;
  color: #141414;
  outline: none;
}
.rvp-modal-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.rvp-modal-desc { font-size: 14px; color: var(--rvp-muted); margin: 0 0 20px; line-height: 1.55; }
.rvp-modal-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2e2e2e;
  margin: 0 0 6px;
}
.rvp-modal-input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  color: #141414;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  border-radius: 10px;
  box-sizing: border-box;
  font-family: inherit;
  margin: 0 0 18px;
}
.rvp-modal-input:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; border-color: #0066cc; }
.rvp-modal-fs {
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 12px 14px 14px;
  margin: 0 0 20px;
}
.rvp-modal-legend { font-size: 13px; font-weight: 600; color: #2e2e2e; padding: 0 6px; }
.rvp-modal-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #2e2e2e;
  cursor: pointer;
}
.rvp-modal-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rvp-accent);
  cursor: pointer;
}
.rvp-modal-submit {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--rvp-accent);
  border: 1.5px solid var(--rvp-accent);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.rvp-modal-submit:hover:not(:disabled) { background: #000; box-shadow: 0 4px 12px rgba(17,17,17,0.16); }
.rvp-modal-submit:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
.rvp-modal-submit:disabled { opacity: 0.6; cursor: default; }
.rvp-modal-status {
  margin: 14px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
  border-radius: 8px;
}
.rvp-modal-status[hidden] { display: none; }
.rvp-modal-status-success { color: #1a6a3d; background: #e7f5ec; border: 1px solid #c1e3cd; }
.rvp-modal-status-error { color: #8a2222; background: #fdecec; border: 1px solid #f3c8c8; }

/* form-group / success-group wrapper — 두 상태가 mutually exclusive */
.rvp-modal-form-group[hidden],
.rvp-modal-success-group[hidden] { display: none; }

/* success state — 토큰 발송 직후 표시되는 영역
   보안: token / reviewer_email 노출 0. 메시지는 고정 generic 문구만. */
.rvp-modal-success-group {
  text-align: center;
  padding: 8px 0 4px;
}
.rvp-modal-success-icon {
  width: 64px;
  height: 64px;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: #e7f5ec;
  color: #1a6a3d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  border: 1.5px solid #c1e3cd;
}
.rvp-modal-success-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: #141414;
}
.rvp-modal-success-msg {
  font-size: 14px;
  color: #2c2c2c;
  line-height: 1.6;
  margin: 0 0 8px;
}
.rvp-modal-success-note {
  font-size: 13px;
  color: var(--rvp-muted);
  line-height: 1.55;
  margin: 0 0 20px;
}
.rvp-modal-success-close {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  color: #2e2e2e;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.rvp-modal-success-close:hover { background: #f5f5f5; border-color: #9a9a9a; }
.rvp-modal-success-close:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }

/* Phase 9: lightbox (이미지 확대 모달) */
.rvp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.rvp-lightbox[hidden] { display: none; }
.rvp-lightbox-stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rvp-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.rvp-lightbox-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rvp-lightbox-close:hover,
.rvp-lightbox-close:focus-visible {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.7);
  outline: none;
}
@media (max-width: 600px) {
  .rvp-lightbox { padding: 12px; }
  .rvp-lightbox-close { width: 40px; height: 40px; font-size: 24px; top: 10px; right: 10px; }
}

/* states */
.rvp-empty, .rvp-error { font-size: 15px; color: var(--rvp-muted); text-align: center; padding: 40px 0; }

/* load more */
.rvp-more-wrap { text-align: center; padding: 28px 0 0; }
.rvp-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--rvp-accent);
  border: 1px solid var(--rvp-accent);
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.rvp-more-btn:hover { background: #000; box-shadow: 0 4px 12px rgba(17,17,17,0.16); }
.rvp-more-btn:focus-visible { outline: 2px solid #0066cc; outline-offset: 2px; }
.rvp-loading { font-size: 14px; color: var(--rvp-muted); }

/* footer */
.rvp-footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rvp-line); font-size: 13px; color: var(--rvp-muted); text-align: center; }
.rvp-footer a { color: var(--rvp-muted); }

/* mobile */
@media (max-width: 600px) {
  .rvp-page { padding: 0 16px 48px; }
  .rvp-title { font-size: 24px; }
  .rvp-avg { font-size: 32px; }
  .rvp-item { padding: 18px 16px; }
  .rvp-item-title { font-size: 16px; }
  .rvp-body { font-size: 14px; }
  .rvp-image-thumb { width: 96px; height: 96px; }
  .rvp-filter-btn { flex: 1 1 auto; justify-content: center; }
  /* Write 버튼 full-width */
  .rvp-hero-top { flex-direction: column; align-items: stretch; gap: 14px; }
  .rvp-write-btn { width: 100%; }
  /* vehicle filter — wrap + 각 select full-width */
  .rvp-vehicle-filter { width: 100%; gap: 8px; }
  .rvp-vf-label { width: 100%; margin-bottom: 2px; }
  .rvp-vf-sel { flex: 1 1 calc(50% - 4px); max-width: none; }
  /* Manage button */
  .rvp-manage-btn { width: 100%; min-height: 44px; }
  /* Modal 모바일 */
  .rvp-modal { padding: 12px; align-items: flex-end; }
  .rvp-modal-card { max-height: calc(100vh - 24px); padding: 24px 20px 20px; border-radius: 14px 14px 0 0; }
}
@media (max-width: 380px) {
  .rvp-image-thumb { width: 84px; height: 84px; }
}

/* =========================================================================
 * P39 — premium review introduction · official channels · purchase path
 * Additive: earlier rules are left as they were and overridden here.
 * Type and colour follow the site (index.html / pdp.css): Barlow Condensed
 * display, Barlow headings, navy #0A1C4F, blue #0071E3.
 * CSP (reviews.html): no data: images, no external images, no inline JS.
 * ========================================================================= */
:root {
  --rvp-navy: #0A1C4F;
  --rvp-blue: #0071E3;
  --rvp-border: #E8E8EA;
  --rvp-display: 'Barlow Condensed', 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rvp-head: 'Barlow', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rvp-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The JS toggles [hidden]; the class display rules used to win (same bug as .rvp-filter-btn[hidden]). */
.rvp-summary[hidden] { visibility: hidden; } /* keeps its height: no layout shift, no "—" placeholder */
.rvp-more-btn[hidden] { display: none; }

/* Select arrow without a data: URI (blocked by this page's img-src). */
.rvp-vf-sel {
  background-image:
    linear-gradient(45deg, transparent 50%, #6a6a6a 50%),
    linear-gradient(135deg, #6a6a6a 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* hero */
.rvp-hero { padding: 32px 0 26px; border-bottom: 1px solid var(--rvp-line); }
.rvp-eyebrow {
  font-family: var(--rvp-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rvp-blue);
  line-height: 1.3;
  margin: 0 0 12px;
}
.rvp-hero .rvp-title {
  font-family: var(--rvp-display);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--rvp-navy);
  margin: 0 0 14px;
}
.rvp-title-line { white-space: nowrap; } /* the headline wraps only between its three sentences */
.rvp-hero .rvp-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: #4a4a4a;
  max-width: 62ch;
  margin: 0 0 16px;
}
/* desktop: subtitle + rating on the left, review-writing CTA on the right (aligned with the rating) */
.rvp-hero-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
}
.rvp-hero-main { flex: 1 1 auto; min-width: 0; }
.rvp-hero-bar .rvp-summary { min-height: 48px; padding: 0; margin: 0; border: 0; }
.rvp-hero .rvp-avg { font-family: var(--rvp-display); font-size: 46px; font-weight: 700; color: var(--rvp-navy); }
.rvp-hero .rvp-stars { font-size: 20px; }
.rvp-hero-action { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 300px; }
.rvp-hero-action .rvp-write-btn { max-width: none; white-space: nowrap; padding: 12px 26px; }
.rvp-hero-action .rvp-write-hint { margin: 0; font-size: 12.5px; text-align: right; }

/* official channels (company content — not customer reviews) */
.rvp-social { padding: 24px 0 2px; }
.rvp-social-head { margin: 0 0 12px; }
.rvp-social-title {
  font-family: var(--rvp-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--rvp-navy);
  margin: 0 0 8px;
}
.rvp-social-desc { font-size: 15px; line-height: 1.6; color: #4a4a4a; max-width: 64ch; margin: 0; }
.rvp-social-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.rvp-social-cards > li { display: flex; }
.rvp-social-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--rvp-border);
  border-radius: 14px;
  color: var(--rvp-ink);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.rvp-social-card:hover {
  border-color: #c7c7cc;
  box-shadow: 0 6px 18px rgba(10, 28, 79, 0.08);
  transform: translateY(-1px);
}
.rvp-social-card:focus-visible { outline: 2px solid #0066cc; outline-offset: 3px; }
.rvp-social-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rvp-social-icon svg { display: block; }
.rvp-social-yt .rvp-social-icon { color: #FF0000; background: #FFF0F0; }
.rvp-social-ig .rvp-social-icon { color: #C13584; background: #FCEFF6; }
.rvp-social-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rvp-social-card-title { font-family: var(--rvp-head); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--rvp-ink); }
.rvp-social-card-desc { font-size: 13.5px; line-height: 1.5; color: #5a5a5a; }
.rvp-social-cta { margin-top: 6px; font-family: var(--rvp-head); font-size: 14.5px; font-weight: 600; color: var(--rvp-blue); }
.rvp-social-card:hover .rvp-social-cta,
.rvp-social-card:focus-visible .rvp-social-cta { text-decoration: underline; text-underline-offset: 3px; }
.rvp-social-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--rvp-muted); }

/* customer reviews */
.rvp-reviews { padding-top: 28px; }
.rvp-reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.rvp-reviews-title {
  font-family: var(--rvp-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--rvp-navy);
  margin: 0;
}
.rvp-scope-note { margin: 0; font-size: 13.5px; color: var(--rvp-muted); }
.rvp-reviews .rvp-filters { margin: 12px 0 20px; }

/* purchase path */
.rvp-cta {
  margin-top: 48px;
  padding: 32px 36px;
  border-radius: 20px;
  background: var(--rvp-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
}
.rvp-cta-text { min-width: 0; flex: 1 1 320px; }
.rvp-cta-title {
  font-family: var(--rvp-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 6px;
}
.rvp-cta-desc { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); }
.rvp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 12px;
  background: #fff;
  color: var(--rvp-navy);
  font-family: var(--rvp-head);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.rvp-cta-btn:hover { background: #EEF3FF; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.rvp-cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .rvp-social-card, .rvp-social-card:hover { transition: none; transform: none; }
}

@media (max-width: 800px) {
  .rvp-hero-bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .rvp-hero-action { align-items: flex-start; max-width: none; }
  .rvp-hero-action .rvp-write-hint { text-align: left; }
}

@media (max-width: 600px) {
  /* Mobile: review cards first. reviews-page.js moves .rvp-social after .rvp-reviews (so keyboard and
     screen-reader order match what is seen); these order rules only cover the first paint before that
     script runs. Only the two P39 sections get an order, so an older reviews.html is unaffected. */
  .rvp-main { display: flex; flex-direction: column; }
  .rvp-social { order: 1; padding-top: 36px; }
  .rvp-cta { order: 2; }
  .rvp-hero { padding: 20px 0 18px; }
  .rvp-eyebrow { font-size: 11px; margin-bottom: 8px; }
  .rvp-hero .rvp-title { font-size: 32px; margin-bottom: 10px; }
  .rvp-hero .rvp-subtitle { font-size: 14.5px; line-height: 1.55; margin-bottom: 14px; }
  .rvp-hero-action .rvp-write-hint { font-size: 12px; }
  .rvp-hero-bar { gap: 12px; }
  .rvp-hero-bar .rvp-summary { min-height: 40px; }
  /* a vehicle-scoped count ('2 reviews for Land Rover Range Rover Evoque') takes its own line */
  .rvp-hero-bar .rvp-summary { flex-wrap: wrap; row-gap: 4px; }
  .rvp-hero-bar .rvp-count-scoped { flex: 1 1 100%; }
  .rvp-hero .rvp-avg { font-size: 38px; }
  .rvp-hero-action { align-items: stretch; }
  .rvp-hero-action .rvp-write-btn { width: 100%; white-space: normal; }
  .rvp-social-head { margin-bottom: 14px; }
  .rvp-social-title { font-size: 26px; }
  .rvp-social-desc { font-size: 14px; }
  .rvp-social-cards { grid-template-columns: 1fr; gap: 10px; }
  .rvp-social-card { padding: 14px 16px; gap: 12px; }
  .rvp-social-icon { width: 40px; height: 40px; }
  .rvp-social-card-title { font-size: 16px; }
  .rvp-social-card-desc { font-size: 13px; }
  .rvp-reviews { padding-top: 22px; }
  .rvp-reviews-title { font-size: 24px; }
  /* slimmer select padding: brand + model fit side by side when their option text allows (the original
     50% rule); a long selected model still wraps to its own full-width row instead of being clipped */
  .rvp-vf-sel { padding: 10px 28px 10px 12px; }
  .rvp-vf-sel { background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; }
  .rvp-cta { margin-top: 36px; padding: 24px 20px; border-radius: 16px; }
  .rvp-cta-title { font-size: 24px; }
  .rvp-cta-btn { width: 100%; white-space: normal; }
}

/* P52: the load error offers a working retry (same vehicle filter) instead of asking for a refresh */
.rvp-error[hidden] { display: none; }
.rvp-error-text { margin: 0 0 16px; }
