/* Customer reviews page — [gn_reviews_page] in functions.php (2026-11-07).
   Uses the tokens from Additional CSS (--gg-teal-deep, --gg-ink, --line-card…).
   Layout: hero, summary band, highlighted reviews, filter toolbar, full-width list. */

.gn-rp { max-width: 1200px; margin: 0 auto; color: var(--gg-ink, #073a40); }
.gn-rp ul { list-style: none; margin: 0; padding: 0; }
/* html prefix: Flatsome's .col-inner ul li adds a 1.3em indent */
html .gn-rp ul li { margin: 0; }
.gn-rp a:focus-visible { outline: 2px solid var(--gg-teal-deep, #187280); outline-offset: 2px; border-radius: 4px; }
.gn-rp-results__count:focus { outline: none; }

/* Hero */
.gn-rp-hero { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.gn-rp-hero h1 { margin: 0 0 12px; font-size: 2.1em; line-height: 1.15; color: var(--gg-ink, #073a40); }
.gn-rp-hero p { margin: 0; font-size: 1.05em; line-height: 1.6; }

.gn-rp-label {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gg-ink, #073a40);
}

/* Summary band */
.gn-rp-summary {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) minmax(220px, 300px);
	gap: 32px;
	align-items: center;
	margin-bottom: 40px;
	padding: 26px 30px;
	background: #fff;
	border: 1px solid var(--line-card, rgba(7, 58, 64, .14));
	border-radius: var(--card-radius, 12px);
	box-shadow: var(--shadow-card, none);
}
.gn-rp-score { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gn-rp-score__avg { font-size: 56px; font-weight: 700; line-height: 1; }
.gn-rp-score .gn-rp-stars { font-size: 20px; letter-spacing: 2px; }
.gn-rp-score__count { font-size: 14px; color: var(--muted-text, #6b6b6b); }

/* One shared grid: the label column fits the longest label in each language
   ("5 žvaigždutės", "2 tähteä") and all five bars stay aligned. */
.gn-rp-bars { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 12px; row-gap: 2px; }
.gn-rp-bars li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.gn-rp-bars__label { white-space: nowrap; }
.gn-rp-bars a {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: subgrid;
	align-items: center;
	padding: 4px 8px;
	margin: 0 -8px;
	border-radius: 6px;
	color: var(--gg-ink, #073a40);
	font-size: 14px;
	text-decoration: none;
}
.gn-rp-bars a:hover { background: #f4f9fa; }
.gn-rp-bars a:hover .gn-rp-bars__label { text-decoration: underline; }
.gn-rp-bars a.is-active { background: #eef8f9; font-weight: 700; }
.gn-rp-bars__track { height: 8px; border-radius: 4px; background: #e3ebeb; overflow: hidden; }
.gn-rp-bars__track span { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: var(--gg-teal, #1eadbd); }
.gn-rp-bars__n { min-width: 2.5em; text-align: right; color: var(--muted-text, #6b6b6b); font-variant-numeric: tabular-nums; }
/* Older browsers without subgrid: a fixed label column wide enough for every language */
@supports not (grid-template-columns: subgrid) {
	.gn-rp-bars li, .gn-rp-bars a { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 2.5em; column-gap: 12px; }
}
.gn-rp-note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted-text, #6b6b6b); }

/* Stars */
.gn-rp-stars { color: #f5a400; letter-spacing: 1px; white-space: nowrap; }
.gn-rp-stars__off { color: #d3dcdc; }

/* Highlighted */
.gn-rp-featured { margin-bottom: 40px; }
.gn-rp-featured h2 { margin: 0 0 14px; font-size: 1.25em; }
.gn-rp-card--featured article { background: #eef8f9; border-color: transparent; border-left: 4px solid var(--gg-teal, #1eadbd); }

/* Filter toolbar */
.gn-rp-results { scroll-margin-top: 110px; }
.gn-rp-toolbar { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft, #ececec); }
.gn-rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gn-rp-chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--line-card, rgba(7, 58, 64, .14));
	border-radius: 999px;
	background: #fff;
	color: var(--gg-ink, #073a40);
	font-size: 14px;
	line-height: 1.25;
	text-decoration: none;
}
.gn-rp-chips a:hover { border-color: var(--gg-teal-deep, #187280); }
.gn-rp-chips__n { color: var(--muted-text, #6b6b6b); font-size: 13px; }
.gn-rp-chips a.is-active { background: var(--gg-teal-deep, #187280); border-color: var(--gg-teal-deep, #187280); color: #fff; }
.gn-rp-chips a.is-active .gn-rp-chips__n { color: #fff; }
.gn-rp-chips__photos { margin-left: 8px !important; padding-left: 16px; border-left: 1px solid var(--line-soft, #ececec); }

.gn-rp-toolbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; }
.gn-rp-toolbar__row p { margin: 0; }
.gn-rp-results__count { font-size: 14px; color: var(--muted-text, #6b6b6b); }
.gn-rp-clear { font-size: 14px; }
.gn-rp-clear a { color: var(--gg-teal-deep, #187280); text-decoration: underline; }
.gn-rp-sort { display: flex; align-items: center; gap: 4px; margin-left: auto !important; font-size: 14px; }
.gn-rp-sort span { margin-right: 4px; color: var(--muted-text, #6b6b6b); }
.gn-rp-sort a { padding: 5px 12px; border-radius: 999px; color: var(--gg-teal-deep, #187280); text-decoration: none; }
.gn-rp-sort a:hover { text-decoration: underline; }
.gn-rp-sort a.is-active { background: #eef8f9; color: var(--gg-ink, #073a40); font-weight: 700; }

/* Cards */
.gn-rp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.gn-rp-list > li { display: flex; }
.gn-rp-list > li:focus { outline: 2px solid var(--gg-teal-deep, #187280); outline-offset: 3px; border-radius: var(--card-radius, 12px); }
.gn-rp-card article {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--line-card, rgba(7, 58, 64, .14));
	border-radius: var(--card-radius, 12px);
	box-shadow: var(--shadow-card, none);
}
.gn-rp-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
.gn-rp-card__top time { font-size: 13px; color: var(--muted-text, #6b6b6b); }
.gn-rp-card__text { margin: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.gn-rp-card__photos { display: flex; flex-wrap: wrap; gap: 8px; }
.gn-rp-card__photos img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.gn-rp-card__who { margin: 0; font-size: 14px; }
.gn-rp-card__name { font-weight: 600; }
.gn-rp-card__verified { margin-left: 6px; font-size: 12px; color: var(--gg-teal-deep, #187280); white-space: nowrap; }
.gn-rp-card__verified::before { content: "✓ "; }
.gn-rp-card__product {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--line-soft, #ececec);
	color: var(--gg-teal-deep, #187280);
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
}
.gn-rp-card__product:hover span { text-decoration: underline; }
.gn-rp-card__product img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-card, rgba(7, 58, 64, .14)); }
.gn-rp-card__lang { margin: -4px 0 0; font-size: 12px; color: var(--muted-text, #6b6b6b); }

.gn-rp-empty { padding: 24px; border-radius: var(--card-radius, 12px); background: #eef8f9; }
.gn-rp-more { margin: 28px 0 0; text-align: center; }
.gn-rp-more .button { margin: 0; }

/* Tablet: score and bars side by side, note below */
@media (max-width: 1023px) {
	.gn-rp-summary { grid-template-columns: 180px minmax(0, 1fr); }
	.gn-rp-note { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 649px) {
	.gn-rp-hero { margin-bottom: 22px; }
	.gn-rp-hero h1 { font-size: 1.6em; }
	.gn-rp-summary { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px; margin-bottom: 28px; }
	.gn-rp-score { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
	.gn-rp-score__avg { font-size: 44px; }
	.gn-rp-list { grid-template-columns: minmax(0, 1fr); }
	/* Filter buttons and highlighted reviews scroll sideways */
	/* Same as the category page chips: fade on the right edge says "swipe for more" */
	.gn-rp-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		margin: 0 -15px;
		padding: 0 15px 4px;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
		mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
	}
	.gn-rp-chips::-webkit-scrollbar { display: none; }
	/* End spacer (scrolling flex rows ignore right padding): the last button can leave the fade */
	.gn-rp-chips::after { content: ""; flex: 0 0 32px; }
	.gn-rp-chips a { white-space: nowrap; flex: 0 0 auto; }
	.gn-rp-chips__photos { margin-left: 0 !important; padding-left: 0; border-left: 0; }
	.gn-rp-sort { margin-left: 0 !important; }
	/* No scrollbar: the next card peeking in from the right shows there is more */
	.gn-rp-list--featured { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 15px; margin: 0 -15px; padding: 0 15px 4px; scrollbar-width: none; }
	.gn-rp-list--featured::-webkit-scrollbar { display: none; }
	.gn-rp-list--featured::after { content: ""; flex: 0 0 1px; }
	.gn-rp-list--featured > li { flex: 0 0 85%; scroll-snap-align: start; }
}
