.fgr-widget,
.fgr-widget * {
	box-sizing: border-box;
}

.fgr-badge {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	min-width: 204px;
	min-height: 66px;
	padding: 11px 16px;
	border: 1px solid rgba(28, 28, 28, .11);
	border-radius: 10px;
	background: linear-gradient(145deg, #fff 0%, #fdfdfc 100%);
	box-shadow:
		0 1px 2px rgba(20, 20, 20, .04),
		0 7px 20px rgba(20, 20, 20, .08);
	color: #353535;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	-webkit-font-smoothing: antialiased;
	transition:
		border-color .3s ease,
		box-shadow .3s ease,
		transform .3s cubic-bezier(.22, 1, .36, 1);
}

.fgr-badge:hover {
	border-color: rgba(28, 28, 28, .18);
	box-shadow:
		0 2px 4px rgba(20, 20, 20, .05),
		0 12px 28px rgba(20, 20, 20, .11);
	transform: translateY(-2px);
}

.fgr-badge:focus-visible {
	outline: 2px solid rgba(66, 133, 244, .45);
	outline-offset: 3px;
}

.fgr-badge:active {
	box-shadow:
		0 1px 2px rgba(20, 20, 20, .04),
		0 5px 14px rgba(20, 20, 20, .08);
	transform: translateY(0);
}

.fgr-google-g {
	display: inline-grid;
	width: 31px;
	height: 31px;
	place-items: center;
	background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 45%, #fbbc05 0 68%, #ea4335 0 82%, #4285f4 0);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	font: 700 32px/1 Arial, sans-serif;
}

.fgr-google-g-large {
	width: 42px;
	height: 42px;
	font-size: 42px;
}

.fgr-badge-copy {
	display: grid;
	gap: 6px;
}

.fgr-badge-title {
	color: #454545;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .01em;
}

.fgr-badge-score,
.fgr-summary,
.fgr-review-meta {
	display: flex;
	align-items: center;
	gap: 7px;
}

.fgr-badge-score strong {
	color: #b66a28;
	font-size: 17px;
	font-weight: 500;
}

.fgr-stars {
	position: relative;
	display: inline-block;
	width: 86px;
	overflow: hidden;
	font: 18px/1 Arial, sans-serif;
	letter-spacing: 0;
	white-space: nowrap;
}

.fgr-stars-base {
	color: #d8d8d8;
}

.fgr-stars-fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	color: #fbbc04;
	white-space: nowrap;
}

.fgr-overlay {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(25, 25, 25, .58);
	backdrop-filter: blur(2px);
}

.fgr-overlay[hidden] {
	display: none;
}

.fgr-dialog {
	position: relative;
	width: min(680px, 100%);
	max-height: min(780px, calc(100vh - 48px));
	overflow: hidden;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
	color: #202124;
	font: 400 15px/1.55 Arial, sans-serif;
}

.fgr-close {
	position: absolute;
	z-index: 2;
	top: 13px;
	right: 16px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #5f6368;
	font: 300 31px/1 Arial, sans-serif;
	cursor: pointer;
}

.fgr-dialog-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 64px 18px 24px;
	border-bottom: 1px solid #ececec;
}

.fgr-dialog h2,
.fgr-dialog h3,
.fgr-dialog p {
	margin: 0;
}

.fgr-dialog h2 {
	margin-bottom: 5px;
	font-size: 22px;
	line-height: 1.25;
}

.fgr-summary {
	flex-wrap: wrap;
	color: #5f6368;
}

.fgr-summary strong {
	color: #202124;
	font-size: 17px;
}

.fgr-write-review {
	display: block;
	margin: 18px 24px;
	padding: 12px 18px;
	border-radius: 6px;
	background: #1a73e8;
	color: #fff !important;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
}

.fgr-write-review:hover {
	background: #155fc0;
}

.fgr-review-list {
	max-height: 570px;
	overflow-y: auto;
	padding: 0 24px 24px;
}

.fgr-review {
	padding: 20px 0;
	border-top: 1px solid #ececec;
}

.fgr-review:first-child {
	border-top: 0;
}

.fgr-review-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 13px;
}

.fgr-avatar {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: #eef3fb;
	color: #3367d6;
	font-size: 18px;
	font-weight: 700;
	object-fit: cover;
}

img.fgr-avatar {
	display: block;
	border: 1px solid rgba(32, 33, 36, .08);
}

.fgr-review h3 {
	font-size: 15px;
	line-height: 1.3;
}

.fgr-review-meta {
	margin-top: 4px;
	color: #777;
	font-size: 12px;
}

.fgr-review-meta .fgr-stars {
	width: 76px;
	font-size: 16px;
}

.fgr-review p {
	color: #3c4043;
}

.fgr-source {
	display: inline-block;
	margin-top: 10px;
	color: #1a73e8 !important;
	font-size: 12px;
	text-decoration: none !important;
}

.fgr-empty {
	padding: 25px 0;
	color: #777;
	text-align: center;
}

body.fgr-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.fgr-overlay {
		align-items: end;
		padding: 0;
	}

	.fgr-dialog {
		width: 100%;
		max-height: 88vh;
		border-radius: 14px 14px 0 0;
	}

	.fgr-dialog-head {
		padding-left: 18px;
	}

	.fgr-write-review {
		margin-inline: 18px;
	}

	.fgr-review-list {
		padding-inline: 18px;
	}
}
