/* VP Google Reviews Widget */

.vpgr-badge {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #ffffff;
	border-radius: 12px;
	padding: 10px 16px 10px 12px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

.vpgr-google-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vpgr-badge-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.vpgr-badge-text strong {
	font-size: 13px;
	color: #202124;
	font-weight: 600;
}

.vpgr-badge-text small {
	font-size: 12px;
	color: #5f6368;
}

.vpgr-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.vpgr-overlay.vpgr-open {
	opacity: 1;
	visibility: visible;
}

.vpgr-panel {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 420px;
	max-width: 92vw;
	background: #ffffff;
	z-index: 100000;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

.vpgr-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.vpgr-panel-header h3 {
	margin: 0;
	font-size: 18px;
	color: #202124;
}

.vpgr-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #5f6368;
	padding: 4px 8px;
}

.vpgr-close:hover {
	color: #202124;
}

.vpgr-business-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.vpgr-business-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f1f3f4;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vpgr-business-name {
	font-weight: 700;
	font-size: 15px;
	color: #202124;
}

.vpgr-business-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}

.vpgr-overall-number {
	font-weight: 700;
	color: #202124;
	font-size: 14px;
}

.vpgr-powered-by {
	font-size: 12px;
	color: #5f6368;
	margin-top: 2px;
}

.vpgr-google-text {
	color: #4285F4;
	font-weight: 600;
}

.vpgr-reviews-list {
	overflow-y: auto;
	flex: 1;
	padding: 8px 20px;
}

.vpgr-review-item {
	padding: 16px 0;
	border-bottom: 1px solid #f1f1f1;
}

.vpgr-review-item:last-child {
	border-bottom: none;
}

.vpgr-review-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
}

.vpgr-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vpgr-reviewer-name {
	font-weight: 600;
	font-size: 14px;
	color: #1a73e8;
	text-decoration: none;
	display: inline-block;
}

.vpgr-reviewer-name:hover {
	text-decoration: underline;
}

.vpgr-avatar-link {
	display: inline-block;
	text-decoration: none;
}

.vpgr-review-date {
	font-size: 12px;
	color: #5f6368;
}

.vpgr-review-stars {
	margin: 4px 0 6px;
}

.vpgr-star {
	font-size: 15px;
	margin-right: 1px;
}

.vpgr-star-full {
	color: #fbbc04;
}

.vpgr-star-empty {
	color: #dadce0;
}

.vpgr-review-text {
	font-size: 14px;
	line-height: 1.5;
	color: #3c4043;
}

.vpgr-review-text p {
	margin: 0 0 8px;
}

.vpgr-panel-footer {
	padding: 14px 20px;
	border-top: 1px solid #eee;
	text-align: center;
	flex-shrink: 0;
}

.vpgr-panel-footer a {
	color: #1a73e8;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.vpgr-panel-footer a:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.vpgr-badge-text strong {
		font-size: 12px;
	}
	.vpgr-badge {
		padding: 8px 12px;
	}
}
