/* Google Reviews stars widget */
.gr-stars {
	--gr-star-size: 14px;
	--gr-star-gap: 3px;
	position: relative;
	display: inline-block;
	width: calc(5 * var(--gr-star-size) + 4 * var(--gr-star-gap));
	height: var(--gr-star-size);
	line-height: 1;
	vertical-align: middle;
}

.gr-stars__track,
.gr-stars__fill {
	display: flex;
	gap: var(--gr-star-gap);
	height: 100%;
}

.gr-stars__track {
	color: #e0e0e0;
}

.gr-stars__fill {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	overflow: hidden;
	width: calc(var(--gr-rating, 0) / 5 * 100%);
	color: #f4b400;
	white-space: nowrap;
}

.gr-stars__star {
	flex: 0 0 var(--gr-star-size);
	width: var(--gr-star-size);
	height: var(--gr-star-size);
	position: relative;
}

.gr-stars__star::before {
	content: "★";
	display: block;
	font-size: var(--gr-star-size);
	line-height: var(--gr-star-size);
}

/* Footer summary widget — two cards */
.zvezda-div {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	max-width: 160px;
	margin-top: 14px;
	cursor: pointer;
	font-family: inherit;
}

.zvezda-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
	box-sizing: border-box;
}

.zvezda-card--rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px 12px 14px;
	min-height: 118px;
}

.zvezda-reit {
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	color: #1a1a1a;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
}

.zvezda-google {
	margin: 0 0 10px;
	line-height: 1;
}

.zvezda-google img {
	display: block;
	height: 20px;
	width: auto;
	margin: 0 auto;
}

.zvezda-google-word {
	display: inline-flex;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.zvezda-google-word span:nth-child(1) { color: #4285f4; }
.zvezda-google-word span:nth-child(2) { color: #ea4335; }
.zvezda-google-word span:nth-child(3) { color: #fbbc04; }
.zvezda-google-word span:nth-child(4) { color: #4285f4; }
.zvezda-google-word span:nth-child(5) { color: #34a853; }
.zvezda-google-word span:nth-child(6) { color: #ea4335; }

.zvezda-stars {
	display: flex;
	justify-content: center;
}

.zvezda-stars .gr-stars {
	--gr-star-size: 13px;
	--gr-star-gap: 2px;
}

.zvezda-card--count {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	min-height: 48px;
	direction: ltr;
}

.zvezda-count-text {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-size: 15px;
	line-height: 1.2;
	color: #333;
}

.zvezda-count-text .col-otz {
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
	color: #333;
}

.zvezda-count-label {
	font-weight: 500;
	color: #333;
}

.zvezda-count-star {
	color: #f4b400;
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.zvezda-div:hover .zvezda-card {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.zvezda-div:focus {
	outline: none;
}

.zvezda-div:focus-visible .zvezda-card {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4285f4;
}

/* Side panel — above offside menu (100009999991) */
.gr-panel-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 100010000050;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gr-panel-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.gr-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: min(380px, 92vw);
	height: 100%;
	max-height: 100dvh;
	background: #fff;
	z-index: 100010000100;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
	transform: translateX(105%);
	transition: transform 0.28s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.gr-panel.is-open {
	transform: translateX(0);
}

.gr-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 16px 14px;
	border-bottom: 1px solid #ececec;
	flex-shrink: 0;
}

.gr-panel__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.gr-panel__summary {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.gr-panel__rating-num {
	font-size: 22px;
	font-weight: 700;
	color: #222;
	line-height: 1;
}

.gr-panel__close {
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 0 4px;
	flex-shrink: 0;
}

.gr-panel__close:hover {
	color: #111;
}

.gr-panel__body {
	overflow-y: auto;
	overflow-x: hidden;
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 0 20px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.gr-panel__empty {
	padding: 24px 16px;
	color: #777;
	text-align: center;
}

.gr-review {
	padding: 16px;
	border-bottom: 1px solid #ececec;
}

.gr-review.is-hidden {
	display: none;
}

.gr-review__top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.gr-review__meta {
	min-width: 0;
	flex: 1;
}

.gr-review__name {
	font-weight: 600;
	font-size: 14px;
	color: #222;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gr-review__time {
	font-size: 12px;
	color: #888;
	margin: 2px 0 0;
}

.gr-review__stars {
	margin: 6px 0 8px;
}

.gr-review__stars .gr-stars {
	--gr-star-size: 14px;
}

.gr-review__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #333;
	white-space: pre-wrap;
}

.gr-panel__footer {
	padding: 12px 16px;
	border-top: 1px solid #ececec;
	flex-shrink: 0;
	text-align: center;
}

.gr-panel__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #dadce0;
	background: #fff;
	color: #1a73e8;
	font-weight: 600;
	font-size: 14px;
	padding: 10px 18px;
	border-radius: 24px;
	cursor: pointer;
	width: 100%;
}

.gr-panel__more:hover {
	background: #f8f9fa;
}

.gr-panel__more[hidden] {
	display: none !important;
}

body.gr-panel-open {
	overflow: hidden;
}

body.gr-panel-open #offside-menu.offside {
	overflow: hidden;
	pointer-events: none;
}

body.gr-panel-open #gr-reviews-overlay,
body.gr-panel-open #gr-reviews-panel {
	pointer-events: auto;
}

@media (max-width: 480px) {
	.gr-panel {
		width: 100%;
	}
}

/* Fixed bottom Google badge */
.gr-float-badge {
	--gr-float-bottom: 24px;
	position: fixed;
	left: 16px;
	right: auto;
	bottom: var(--gr-float-bottom);
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	min-width: 132px;
	padding: 10px 12px 8px;
	margin: 0;
	border: none;
	border-top: 3px solid #34a853;
	border-radius: 10px;
	background: #fff !important;
	background-color: #fff !important;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
	cursor: pointer;
	font-family: inherit;
	text-align: start;
	appearance: none;
	-webkit-appearance: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gr-float-badge:hover {
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.2);
	transform: translateY(-1px);
}

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

.gr-float-badge:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4285f4;
}

.gr-float-badge__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.gr-float-badge__brand {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
	color: #3c4043;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.gr-float-badge__logo {
	display: block;
	width: 26px;
	height: 26px;
	object-fit: contain;
	flex-shrink: 0;
}

.gr-float-badge__bottom {
	display: flex;
	align-items: center;
	gap: 6px;
}

.gr-float-badge .gr-stars {
	--gr-star-size: 13px;
	--gr-star-gap: 2px;
}

.gr-float-badge__rating {
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: #202124;
}

body.gr-panel-open .gr-float-badge:not(.gr-float-badge--menu) {
	visibility: hidden;
	pointer-events: none;
}

/* Same badge inside offside menu — no green stripe, no shadow, flush right */
.gr-float-badge--menu {
	position: static;
	left: auto;
	right: auto;
	bottom: auto;
	z-index: auto;
	width: fit-content;
	max-width: calc(100% - 2rem);
	margin: 6px 2rem 2px auto;
	border-top: none;
	box-shadow: none;
	transform: none;
}

.gr-float-badge--menu:hover {
	box-shadow: none;
	transform: none;
}

@media (max-width: 767px) {
	.gr-float-badge:not(.gr-float-badge--menu) {
		--gr-float-bottom: 78px;
		left: 12px;
		min-width: 120px;
		padding: 8px 10px 7px;
	}
}
