/**
 * Velocity Google Reviews — frontend styles.
 *
 * Everything is scoped under .vgr and driven by custom properties so a theme,
 * the settings screen or the Elementor style tab can retune the whole block
 * by overriding a handful of variables.
 */

.vgr {
	--vgr-primary: #1a73e8;
	--vgr-star: #fbbc04;
	--vgr-card-bg: #ffffff;
	--vgr-text: #202124;
	--vgr-muted: #70757a;
	--vgr-border: rgba(32, 33, 36, .08);
	--vgr-radius: 18px;
	--vgr-shadow: 0 15px 45px rgba(0, 0, 0, .08);
	--vgr-shadow-hover: 0 24px 60px rgba(0, 0, 0, .12);
	--vgr-padding: 24px;
	--vgr-gap: 24px;
	--vgr-avatar: 56px;
	--vgr-columns: 3;
	--vgr-clamp: 4;
	--vgr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--vgr-surface: transparent;

	box-sizing: border-box;
	color: var(--vgr-text);
	font-family: var(--vgr-font);
	position: relative;
}

.vgr *,
.vgr *::before,
.vgr *::after {
	box-sizing: border-box;
}

.vgr-sr,
.vgr .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* -------------------------------------------------------------------------
 * Summary bar
 * ---------------------------------------------------------------------- */

.vgr__summary {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-bottom: var(--vgr-gap);
}

.vgr__summary-brand {
	align-items: center;
	display: flex;
	gap: 10px;
}

.vgr__summary-label {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -.01em;
}

.vgr__summary-score {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.vgr__summary-number {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.vgr__summary-count {
	color: var(--vgr-muted);
	font-size: 14px;
}

.vgr__summary .vgr-button {
	margin-inline-start: auto;
}

/* -------------------------------------------------------------------------
 * Toolbar
 * ---------------------------------------------------------------------- */

.vgr__toolbar {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-bottom: var(--vgr-gap);
}

.vgr__search {
	align-items: center;
	background: var(--vgr-card-bg);
	border: 1px solid var(--vgr-border);
	border-radius: 999px;
	display: flex;
	flex: 1 1 240px;
	gap: 8px;
	max-width: 360px;
	padding: 10px 16px;
}

.vgr__search .vgr-icon--search {
	color: var(--vgr-muted);
	flex: none;
}

.vgr__search-input {
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	outline: none;
	width: 100%;
}

.vgr__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.vgr__field {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
}

.vgr__field-label {
	color: var(--vgr-muted);
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.vgr__select {
	background: var(--vgr-card-bg);
	border: 1px solid var(--vgr-border);
	border-radius: 10px;
	color: inherit;
	font: inherit;
	font-size: 14px;
	padding: 8px 12px;
}

/* -------------------------------------------------------------------------
 * Layouts
 * ---------------------------------------------------------------------- */

.vgr__items {
	display: grid;
	gap: var(--vgr-gap);
	grid-template-columns: repeat(var(--vgr-columns), minmax(0, 1fr));
}

.vgr__list {
	grid-template-columns: minmax(0, 1fr);
}

.vgr__masonry {
	column-gap: var(--vgr-gap);
	columns: var(--vgr-columns);
	display: block;
}

.vgr__masonry-item {
	break-inside: avoid;
	margin-bottom: var(--vgr-gap);
}

.vgr__slider {
	overflow: hidden;
	padding: 6px 4px 44px;
}

.vgr__slider .vgr__items {
	display: flex;
	gap: 0;
	grid-template-columns: none;
}

.vgr__slide {
	display: flex;
	height: auto;
	padding: 0;
}

.vgr__slide > .vgr-card {
	width: 100%;
}

.vgr__slider--carousel .vgr__slide {
	transition: opacity 300ms ease, transform 300ms ease;
}

.vgr__slider--carousel .swiper-slide-active .vgr-card {
	box-shadow: var(--vgr-shadow-hover);
}

/* -------------------------------------------------------------------------
 * Card
 * ---------------------------------------------------------------------- */

.vgr-card {
	background: var(--vgr-card-bg);
	border: 1px solid var(--vgr-border);
	border-radius: var(--vgr-radius);
	box-shadow: var(--vgr-shadow);
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	padding: var(--vgr-padding);
	position: relative;
	transition: transform 300ms cubic-bezier(.2, .7, .3, 1), box-shadow 300ms ease;
}

.vgr--animated .vgr-card:hover,
.vgr--animated .vgr-card:focus-within {
	box-shadow: var(--vgr-shadow-hover);
	transform: translateY(-6px);
}

.vgr-card__head {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.vgr-card__author {
	align-items: center;
	display: flex;
	gap: 14px;
	min-width: 0;
}

.vgr-card__avatar {
	align-items: center;
	background: #e8f0fe;
	background: color-mix(in srgb, var(--vgr-primary) 12%, transparent);
	border-radius: 50%;
	display: flex;
	flex: none;
	height: var(--vgr-avatar);
	justify-content: center;
	overflow: hidden;
	width: var(--vgr-avatar);
}

.vgr-card__avatar img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.vgr-card__initials {
	color: var(--vgr-primary);
	font-size: calc(var(--vgr-avatar) * .36);
	font-weight: 600;
	letter-spacing: .02em;
}

.vgr-card__identity {
	min-width: 0;
}

.vgr-card__name-row {
	align-items: center;
	display: flex;
	gap: 6px;
	min-width: 0;
}

.vgr-card__name {
	color: inherit;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -.01em;
	line-height: 1.3;
	overflow: hidden;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.vgr-card__name:hover,
a.vgr-card__name:focus-visible {
	text-decoration: underline;
}

.vgr-card__verified {
	color: var(--vgr-primary);
	display: inline-flex;
	flex: none;
}

.vgr-card__date {
	color: var(--vgr-muted);
	display: block;
	font-size: 14px;
	margin-top: 2px;
}

.vgr-card__source {
	color: inherit;
	flex: none;
	line-height: 0;
	opacity: .95;
}

.vgr-card__rating {
	line-height: 0;
}

.vgr-stars {
	color: var(--vgr-star);
	display: inline-flex;
	gap: 2px;
	line-height: 0;
}

.vgr-star {
	fill: currentColor;
}

.vgr-star--empty {
	color: #fbe7ab;
	color: color-mix(in srgb, var(--vgr-star) 26%, transparent);
}

.vgr-star__track {
	fill: #fbe7ab;
	fill: color-mix(in srgb, var(--vgr-star) 26%, transparent);
}

.vgr-star__fill {
	fill: var(--vgr-star);
}

.vgr-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
}

.vgr-card__text {
	color: var(--vgr-text);
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
	overflow-wrap: anywhere;
}

.vgr-card__text.is-clamped {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--vgr-clamp);
	display: -webkit-box;
	line-clamp: var(--vgr-clamp);
	overflow: hidden;
}

.vgr-card__more {
	align-self: flex-start;
	background: none;
	border: 0;
	color: var(--vgr-primary);
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	margin-top: auto;
	padding: 4px 0;
}

.vgr-card__more:hover,
.vgr-card__more:focus-visible {
	text-decoration: underline;
}

.vgr-card__rest {
	display: inline;
}

.vgr-card.is-expanded .vgr-card__ellipsis {
	display: none;
}

.vgr-card__reply {
	background: rgba(32, 33, 36, .04);
	background: color-mix(in srgb, var(--vgr-text) 4%, transparent);
	border-radius: 12px;
	padding: 12px 14px;
}

.vgr-card__reply-label {
	color: var(--vgr-muted);
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}

.vgr-card__reply-text {
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

.vgr-card[hidden],
.vgr-card.is-filtered {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Buttons, navigation, pagination
 * ---------------------------------------------------------------------- */

.vgr-button {
	align-items: center;
	background: var(--vgr-primary);
	border: 1px solid transparent;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	gap: 8px;
	justify-content: center;
	padding: 11px 22px;
	text-decoration: none;
	transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.vgr-button:hover {
	box-shadow: 0 10px 24px rgba(26, 115, 232, .3);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--vgr-primary) 30%, transparent);
	color: #fff;
	transform: translateY(-1px);
}

.vgr-button--ghost {
	background: transparent;
	border-color: rgba(26, 115, 232, .35);
	border-color: color-mix(in srgb, var(--vgr-primary) 35%, transparent);
	color: var(--vgr-primary);
}

.vgr-button--ghost:hover {
	background: rgba(26, 115, 232, .08);
	background: color-mix(in srgb, var(--vgr-primary) 8%, transparent);
	color: var(--vgr-primary);
}

.vgr__more {
	display: flex;
	justify-content: center;
	margin-top: var(--vgr-gap);
}

.vgr__nav {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 4px;
}

.vgr__arrow {
	align-items: center;
	background: var(--vgr-card-bg);
	border: 1px solid var(--vgr-border);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
	color: var(--vgr-text);
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	transition: transform 200ms ease, background-color 200ms ease, color 200ms ease;
	width: 44px;
}

.vgr__arrow:hover:not(:disabled) {
	background: var(--vgr-primary);
	color: #fff;
	transform: translateY(-2px);
}

.vgr__arrow:disabled,
.vgr__arrow.swiper-button-disabled {
	cursor: default;
	opacity: .4;
}

.vgr__dots.swiper-pagination {
	bottom: 8px;
}

.vgr .swiper-pagination-bullet {
	background: var(--vgr-muted);
	height: 8px;
	opacity: .35;
	transition: width 200ms ease, opacity 200ms ease;
	width: 8px;
}

.vgr .swiper-pagination-bullet-active {
	background: var(--vgr-primary);
	border-radius: 4px;
	opacity: 1;
	width: 22px;
}

.vgr__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: var(--vgr-gap);
}

.vgr__page {
	background: var(--vgr-card-bg);
	border: 1px solid var(--vgr-border);
	border-radius: 10px;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	min-width: 40px;
	padding: 8px 12px;
}

.vgr__page[aria-current="true"] {
	background: var(--vgr-primary);
	border-color: var(--vgr-primary);
	color: #fff;
	font-weight: 600;
}

.vgr__live {
	color: var(--vgr-muted);
	font-size: 14px;
	margin: 12px 0 0;
	min-height: 0;
}

.vgr__live:empty {
	display: none;
}

.vgr__empty {
	background: var(--vgr-card-bg);
	border: 1px dashed var(--vgr-border);
	border-radius: var(--vgr-radius);
	padding: 32px;
	text-align: center;
}

.vgr__empty-title {
	font-size: 17px;
	font-weight: 600;
	margin: 0;
}

.vgr__empty-detail {
	color: var(--vgr-muted);
	font-size: 14px;
	margin: 8px 0 0;
}

/* -------------------------------------------------------------------------
 * Focus states — WCAG AA
 * ---------------------------------------------------------------------- */

.vgr a:focus-visible,
.vgr button:focus-visible,
.vgr input:focus-visible,
.vgr select:focus-visible {
	border-radius: 6px;
	outline: 3px solid var(--vgr-primary);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Themes
 * ---------------------------------------------------------------------- */

.vgr.vgr--theme-dark {
	--vgr-card-bg: #1f2023;
	--vgr-text: #e8eaed;
	--vgr-muted: #9aa0a6;
	--vgr-border: rgba(255, 255, 255, .1);
	--vgr-shadow: 0 15px 45px rgba(0, 0, 0, .45);
	--vgr-shadow-hover: 0 24px 60px rgba(0, 0, 0, .55);
	--vgr-primary: #8ab4f8;
}

.vgr--theme-dark .vgr-button {
	color: #16171a;
}

.vgr--theme-dark .vgr-button:hover {
	color: #16171a;
}

.vgr.vgr--theme-glass {
	--vgr-card-bg: rgba(255, 255, 255, .12);
	--vgr-border: rgba(255, 255, 255, .28);
	--vgr-shadow: 0 15px 45px rgba(15, 23, 42, .18);
	--vgr-shadow-hover: 0 26px 64px rgba(15, 23, 42, .26);
}

.vgr--theme-glass .vgr-card {
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	backdrop-filter: blur(18px) saturate(150%);
}

.vgr.vgr--theme-minimal {
	--vgr-card-bg: transparent;
	--vgr-shadow: none;
	--vgr-shadow-hover: none;
	--vgr-radius: 0;
	--vgr-padding: 0;
	--vgr-border: transparent;
}

.vgr--theme-minimal .vgr-card {
	border-bottom: 1px solid rgba(32, 33, 36, .1);
	border-radius: 0;
	padding-bottom: 24px;
}

.vgr--theme-minimal .vgr__slide .vgr-card {
	border-bottom: 0;
}

@media (prefers-color-scheme: dark) {
	.vgr.vgr--theme-auto {
		--vgr-card-bg: #1f2023;
		--vgr-text: #e8eaed;
		--vgr-muted: #9aa0a6;
		--vgr-border: rgba(255, 255, 255, .1);
		--vgr-shadow: 0 15px 45px rgba(0, 0, 0, .45);
		--vgr-shadow-hover: 0 24px 60px rgba(0, 0, 0, .55);
		--vgr-primary: #8ab4f8;
	}

	.vgr--theme-auto .vgr-button {
		color: #16171a;
	}
}

/* -------------------------------------------------------------------------
 * Entrance animation
 * ---------------------------------------------------------------------- */

.vgr--animated .vgr-card {
	opacity: 0;
	transform: translateY(14px);
}

.vgr--animated .vgr-card.is-visible,
.vgr--animated.is-ready .vgr-card {
	animation: vgr-rise 480ms cubic-bezier(.2, .7, .3, 1) both;
	animation-delay: calc(var(--vgr-index, 0) * 70ms);
}

@keyframes vgr-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.vgr__items {
		grid-template-columns: repeat(min(var(--vgr-columns), 2), minmax(0, 1fr));
	}

	.vgr__masonry {
		columns: min(var(--vgr-columns), 2);
	}
}

@media (max-width: 680px) {
	.vgr.vgr {
		--vgr-gap: 16px;
		--vgr-padding: 20px;
	}

	.vgr__items,
	.vgr__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.vgr__masonry {
		columns: 1;
	}

	.vgr__summary .vgr-button {
		margin-inline-start: 0;
		width: 100%;
	}

	.vgr__search {
		max-width: none;
	}
}

/* -------------------------------------------------------------------------
 * Reduced motion
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.vgr *,
	.vgr *::before,
	.vgr *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	.vgr--animated .vgr-card {
		opacity: 1;
		transform: none;
	}

	.vgr--animated .vgr-card:hover,
	.vgr--animated .vgr-card:focus-within {
		transform: none;
	}
}

/* -------------------------------------------------------------------------
 * Print
 * ---------------------------------------------------------------------- */

@media print {
	.vgr__toolbar,
	.vgr__nav,
	.vgr__more,
	.vgr__pagination,
	.vgr-card__more {
		display: none !important;
	}

	.vgr-card {
		box-shadow: none;
		break-inside: avoid;
	}

	.vgr-card__text.is-clamped {
		-webkit-line-clamp: unset;
		display: block;
		line-clamp: unset;
	}
}
