/* WP Feint reviews zone (inc/reviews.php). Tokens from site.css. Source badges are text, no third-party logo. */

.wpm-reviews { container-type: inline-size; }
.wpm-reviews .rv-head { max-width: 760px; margin: 0 0 22px; }
.wpm-reviews.section .rv-head { margin-inline: auto; text-align: center; }
.wpm-reviews .rv-head h2 { margin: 10px 0 0; }

/* ---------------------------------------------------------------- band: one summary per source */
.rv-band { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.wpm-reviews.section .rv-band { justify-content: center; }
.rv-sum { display: grid; grid-template-columns: auto auto; grid-template-areas: "label label" "score stars" "count count" "link link"; column-gap: 12px; row-gap: 4px; align-items: center; min-width: 220px; padding: 16px 20px; border: 1px solid var(--edge); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm, 0 1px 2px rgba(16, 36, 73, .06)); }
.rv-sum-label { grid-area: label; font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--muted); }
.rv-sum-score { grid-area: score; color: var(--ink); }
.rv-sum-score strong { font-size: 1.9rem; line-height: 1; }
.rv-sum-max { color: var(--muted); font-weight: 600; margin-left: 2px; }
.rv-sum .rv-stars { grid-area: stars; }
.rv-sum-count { grid-area: count; font-size: 14px; color: var(--muted); }
.rv-sum-link { grid-area: link; font-size: 14px; font-weight: 600; }
.rv-src-google .rv-sum-label, .rv-badge[translate="no"], .rv-gmaps { font-family: Roboto, Arial, sans-serif; font-weight: 400; letter-spacing: 0; color: #5e5e5e; }

/* ---------------------------------------------------------------- stars */
.rv-stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; vertical-align: middle; }
.rv-stars svg { display: inline-block; margin-right: 2px; }
.rv-stars-bg svg { fill: #d9e0ec; }
.rv-stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; }
.rv-stars-fg svg { fill: #f2a516; }

/* ---------------------------------------------------------------- cards row */
.rv-carousel { position: relative; }
.rv-track { position: relative; list-style: none; margin: 0; padding: 4px 2px 14px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 18px) / 3); column-gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.rv-carousel.is-static .rv-track { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: visible; }
.rv-track:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }
.rv-card { scroll-snap-align: start; display: flex; }
.rv-card article { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 20px; border: 1px solid var(--edge); border-radius: var(--radius); background: #fff; }
.rv-card-head { display: flex; align-items: center; gap: 10px; }
.rv-rating { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rv-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.rv-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--light); color: var(--blue); font-weight: 700; font-size: 15px; border: 1px solid var(--edge); }
.rv-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rv-author { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.rv-company { font-size: 13px; color: var(--muted); }
.rv-badge { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--light); color: var(--ink); border: 1px solid var(--edge); }
.wpm-reviews .rv-text { margin: 0; padding: 0; border: 0; color: var(--ink); font-style: normal; }
.rv-text p { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.rv-text .rv-title { font-weight: 700; margin-bottom: 4px; }
.rv-meta { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.rv-lang { display: inline-flex; align-items: center; gap: 6px; }
.rv-verified { color: var(--green-text, #0b7a52); font-weight: 600; }
.rv-verified::before { content: "\2713\00a0"; }

.rv-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.rv-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; }
.rv-nav button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.rv-nav button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.rv-nav button:disabled { opacity: .4; cursor: default; }
.rv-carousel:not(.has-js) .rv-nav { display: none; }

/* ---------------------------------------------------------------- attribution and consumer note */
.rv-foot { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rv-google-attr { margin: 0; font-size: 13px; color: var(--muted); }
.rv-gmaps { font-size: 14px; white-space: nowrap; }
.rv-note { font-size: 14px; color: var(--muted); max-width: 760px; }
.rv-note summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.rv-note summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.rv-note p { margin: 8px 0 0; line-height: 1.6; }

@container (max-width: 900px) {
	.rv-track { grid-auto-columns: calc((100% - 18px) / 2); }
}
@container (max-width: 560px) {
	.rv-track { grid-auto-columns: 86%; }
	.rv-sum { min-width: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.rv-track { scroll-behavior: auto; }
}

/* Spacing when printed inside a content column or next to another component. */
.wpm-reviews:not(.section) { margin-block: 8px 56px; }
