.gnist-gr-widget {
	--gnist-gr-border: #e8eaed;
	--gnist-gr-text: #202124;
	--gnist-gr-muted: #5f6368;
	--gnist-gr-bg: #ffffff;
	--gnist-gr-accent: #1a73e8;
	--gnist-gr-star-size-sm: 22px;
	--gnist-gr-star-size-lg: 28px;
	box-sizing: border-box;
	max-width: 100%;
	padding: 1.5rem;
	border: 1px solid var( --gnist-gr-border );
	border-radius: 12px;
	background: var( --gnist-gr-bg );
	color: var( --gnist-gr-text );
	font-family: inherit;
	font-size: 1.0625rem;
	line-height: 1.5;
}

.gnist-gr-widget *,
.gnist-gr-widget *::before,
.gnist-gr-widget *::after {
	box-sizing: border-box;
}

.gnist-gr-header {
	margin-bottom: 1.25rem;
}

.gnist-gr-header__brand {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 0.875rem;
}

.gnist-gr-header__label {
	font-size: 1.5rem;
	font-weight: 600;
	color: var( --gnist-gr-muted );
}

.gnist-gr-google-logo {
	display: block;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	overflow: visible;
}

.gnist-gr-header__rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-bottom: 0.375rem;
}

.gnist-gr-header__score {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
}

.gnist-gr-header__rating-label {
	margin: 0 0 0.375rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var( --gnist-gr-text );
}

.gnist-gr-header__count {
	margin: 0;
	font-size: 1rem;
	color: var( --gnist-gr-muted );
}

.gnist-gr-stars {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: var( --gnist-gr-star-size-sm, 22px );
}

.gnist-gr-stars--sm {
	min-height: var( --gnist-gr-star-size-sm, 22px );
}

.gnist-gr-stars--lg {
	min-height: var( --gnist-gr-star-size-lg, 28px );
}

.gnist-gr-stars--sm .gnist-gr-star {
	width: var( --gnist-gr-star-size-sm, 22px );
	height: var( --gnist-gr-star-size-sm, 22px );
}

.gnist-gr-stars--lg .gnist-gr-star {
	width: var( --gnist-gr-star-size-lg, 28px );
	height: var( --gnist-gr-star-size-lg, 28px );
}

.gnist-gr-star {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	line-height: 0;
}

.gnist-gr-star__svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.gnist-gr-slider {
	position: relative;
	overflow: hidden;
}

.gnist-gr-review {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	min-height: 100%;
	padding: 0.25rem 0.125rem;
}

.gnist-gr-review__header {
	display: flex;
	align-items: center;
	gap: 0.875rem;
}

.gnist-gr-review__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center 20%;
	flex-shrink: 0;
	background-color: #f1f3f4;
}

.gnist-gr-review__avatar--fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e8f0fe;
	color: var( --gnist-gr-accent );
	font-size: 1rem;
	font-weight: 700;
}

.gnist-gr-review__meta {
	min-width: 0;
}

.gnist-gr-review__author {
	margin: 0 0 0.375rem;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
}

.gnist-gr-review__text {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var( --gnist-gr-text );
}

.gnist-gr-review--truncated .gnist-gr-review__text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.gnist-gr-review--expanded .gnist-gr-review__text {
	display: block;
	overflow: visible;
	-webkit-line-clamp: unset;
}

.gnist-gr-review__toggle {
	padding: 0;
	border: 0;
	background: none;
	color: var( --gnist-gr-accent );
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

.gnist-gr-review__toggle:hover,
.gnist-gr-review__toggle:focus {
	text-decoration: none;
}

.gnist-gr-slider__nav {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1rem;
}

.gnist-gr-slider__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid var( --gnist-gr-border );
	border-radius: 50%;
	background: #fff;
	color: var( --gnist-gr-text );
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.gnist-gr-slider__icon {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
	pointer-events: none;
}

.gnist-gr-slider__button:hover,
.gnist-gr-slider__button:focus {
	border-color: var( --gnist-gr-accent );
	color: var( --gnist-gr-accent );
	background: #f8fbff;
}

.gnist-gr-slider__button:focus {
	outline: none;
}

.gnist-gr-slider__button:focus-visible {
	outline: 2px solid var( --gnist-gr-accent );
	outline-offset: 2px;
}

.gnist-gr-slider__button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.gnist-gr-footer {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var( --gnist-gr-border );
	text-align: center;
}

.gnist-gr-footer__link {
	color: var( --gnist-gr-accent );
	font-size: 1rem;
	font-weight: 600;
	text-decoration: underline;
}

.gnist-gr-footer__link:hover,
.gnist-gr-footer__link:focus {
	text-decoration: none;
}

.gnist-gr-footer__link:focus {
	outline: none;
}

.gnist-gr-footer__link:focus-visible {
	outline: 2px solid var( --gnist-gr-accent );
	outline-offset: 2px;
}

@media ( max-width: 480px ) {
	.gnist-gr-widget {
		padding: 1.125rem;
		font-size: 1rem;
	}

	.gnist-gr-header__score {
		font-size: 2rem;
	}

	.gnist-gr-stars--lg {
		--gnist-gr-star-size-lg: 24px;
	}

	.gnist-gr-slider__button {
		width: 2.75rem;
		height: 2.75rem;
	}

	.gnist-gr-slider__icon {
		width: 1.375rem;
		height: 1.375rem;
	}
}

/* Badge & Modal — added 2026-06-16 */

.gnist-gr-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	font-family: inherit;
	text-align: center;
	cursor: pointer;
}

.gnist-gr-badge:hover,
.gnist-gr-badge:focus {
	color: #ffffff;
}

.gnist-gr-badge:focus {
	outline: none;
}

.gnist-gr-badge:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
}

.gnist-gr-badge__logo-img {
	display: block;
	width: 100px;
	height: auto;
	margin-bottom: 0.375rem;
}

.gnist-gr-badge__rating {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.gnist-gr-badge__score {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
}

.gnist-gr-badge .gnist-gr-stars--lg {
	--gnist-gr-star-size-lg: 20px;
}

.gnist-gr-badge .gnist-gr-star__svg path[fill="#dadce0"] {
	fill: rgba( 255, 255, 255, 0.45 );
}

.gnist-gr-badge .gnist-gr-star__svg path[fill="#fbbc04"] {
	fill: #ffffff;
}

.gnist-gr-badge__count {
	font-family: Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: rgb( 97, 255, 205 );
	display: block;
	cursor: pointer;
	opacity: 1;
	margin-top: 0.5rem;
}

dialog#gnist-gr-modal.gnist-gr-modal {
	width: min( 100% - 2rem, 640px );
	max-height: 90vh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #ffffff;
	color: #202124;
	overflow: hidden;
}

dialog#gnist-gr-modal.gnist-gr-modal::backdrop {
	background: rgba( 0, 0, 0, 0.55 );
}

.gnist-gr-modal__inner {
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.gnist-gr-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #5f6368;
	cursor: pointer;
}

.gnist-gr-modal__close svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

.gnist-gr-modal__close:hover,
.gnist-gr-modal__close:focus {
	background: #f1f3f4;
	color: #202124;
}

.gnist-gr-modal__header {
	padding: 1.5rem 3.5rem 1.25rem 1.5rem;
	border-bottom: 1px solid #e8eaed;
	text-align: center;
}

.gnist-gr-modal__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.gnist-gr-modal__title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
}

.gnist-gr-modal__summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.gnist-gr-modal__score {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
}

.gnist-gr-modal__count {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	color: #111111;
}

a.gnist-gr-modal__cta,
a.gnist-gr-modal__cta:link,
a.gnist-gr-modal__cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	border-radius: 999px;
	background-color: rgb( 25, 123, 255 );
	color: #ffffff;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

a.gnist-gr-modal__cta:hover,
a.gnist-gr-modal__cta:focus,
a.gnist-gr-modal__cta:active {
	background-color: rgb( 15, 100, 220 );
	color: #ffffff;
	text-decoration: none;
}

.gnist-gr-modal__reviews {
	padding: 0 1.5rem 1.5rem;
}

.gnist-gr-modal__review {
	padding: 1.25rem 0;
	border-bottom: 1px solid #e8eaed;
}

.gnist-gr-modal__review:last-child {
	border-bottom: 0;
}

.gnist-gr-modal__review-header {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-bottom: 0.75rem;
}

.gnist-gr-modal__review-meta {
	min-width: 0;
}

.gnist-gr-modal__review-author {
	margin: 0 0 0.25rem;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.gnist-gr-modal__review-date {
	margin: 0;
	font-size: 10px;
	color: #5f6368;
}

.gnist-gr-modal__review-text {
	margin: 0.75rem 0 0;
	font-size: var( --wp--preset--font-size--small, 13px );
	line-height: 1.55;
	color: #202124;
}

.gnist-gr-modal__review.gnist-gr-review--truncated .gnist-gr-modal__review-text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.gnist-gr-modal__review.gnist-gr-review--expanded .gnist-gr-modal__review-text {
	display: block;
	overflow: visible;
	-webkit-line-clamp: unset;
}

@media ( max-width: 640px ) {
	dialog#gnist-gr-modal.gnist-gr-modal {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}

	.gnist-gr-modal__inner {
		max-height: 100dvh;
	}
}
