/**
 * Google Reviews Connector — scoped theme isolation reset.
 * Keeps plugin UI visually consistent and Google-native regardless of theme CSS.
 */

:root {
	--gr-font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
	--gr-font-size-base: 16px;
	--gr-line-height: 1.5;
	--gr-primary: #1a73e8;
}

/* Root scopes */
.gr-rating-widget,
.gr-clients-say,
.gr-review-button {
	font-family: var(--gr-font-family) !important;
	font-size: var(--gr-font-size-base);
	line-height: var(--gr-line-height);
	font-weight: 400;
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-align: left;
	color: inherit;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Descendant reset — component CSS re-applies intentional spacing and colors */
.gr-rating-widget :is(*, *::before, *::after),
.gr-clients-say :is(*, *::before, *::after) {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	font-family: inherit !important;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	text-align: inherit;
	text-decoration: inherit;
	vertical-align: baseline;
	background: transparent;
	list-style: none;
	box-shadow: none;
	text-shadow: none;
	outline: none;
}

.gr-rating-widget :is(button, input, select, textarea, a),
.gr-clients-say :is(button, input, select, textarea, a),
.gr-review-button {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
}

.gr-rating-widget a,
.gr-clients-say a,
.gr-review-button {
	text-decoration: none !important;
}

.gr-rating-widget :is(h1, h2, h3, h4, h5, h6, p, blockquote, figure, figcaption),
.gr-clients-say :is(h1, h2, h3, h4, h5, h6, p, blockquote, figure, figcaption) {
	margin: 0;
	padding: 0;
	font: inherit;
	font-family: inherit !important;
}

.gr-rating-widget :is(ul, ol, li),
.gr-clients-say :is(ul, ol, li) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gr-rating-widget img,
.gr-clients-say img {
	max-width: 100%;
	height: auto;
	border: 0;
	display: block;
}

.gr-rating-widget svg,
.gr-clients-say svg {
	display: block;
	overflow: visible;
}

.gr-rating-widget strong,
.gr-rating-widget b,
.gr-clients-say strong,
.gr-clients-say b {
	font-weight: 700;
}

.gr-rating-widget em,
.gr-rating-widget i,
.gr-clients-say em,
.gr-clients-say i {
	font-style: italic;
}

/* Block theme / global link pseudo-state overrides */
.gr-rating-widget a:hover,
.gr-rating-widget a:focus,
.gr-rating-widget a:active,
.gr-rating-widget a:visited,
.gr-clients-say a:hover,
.gr-clients-say a:focus,
.gr-clients-say a:active,
.gr-clients-say a:visited,
.gr-review-button:hover,
.gr-review-button:focus,
.gr-review-button:active,
.gr-review-button:visited {
	text-decoration: none !important;
}

.gr-rating-widget button:hover,
.gr-rating-widget button:focus,
.gr-rating-widget button:active,
.gr-clients-say button:hover,
.gr-clients-say button:focus,
.gr-clients-say button:active {
	background: transparent;
	color: inherit;
	border: 0;
	box-shadow: none;
}
