/**
 * Styles for the My Google Reviews slider.
 */

.my-google-reviews-slider {
	display: flex;
	overflow-x: auto;
	padding: 1.5rem;
	gap: 1.5rem;
	
	/* Add overscroll-behavior to prevent page scroll when at the end of the slider */
	overscroll-behavior-x: contain;
	
	/* Add snapping for a better UX */
	scroll-snap-type: x mandatory;

	/* Styled Scrollbar */
	scrollbar-width: thin;
	scrollbar-color: #ccc #f1f1f1;
}

/* For Webkit browsers (Chrome, Safari) */
.my-google-reviews-slider::-webkit-scrollbar {
	height: 8px;
}

.my-google-reviews-slider::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.my-google-reviews-slider::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

.my-google-reviews-slider::-webkit-scrollbar-thumb:hover {
	background: #aaa;
}

.my-google-review {
	flex: 0 0 320px; /* Give each card a fixed width so it doesn't shrink */
	scroll-snap-align: start;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	padding: 1.5rem;
	border-radius: 8px;
	background-color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	line-height: 1.6;
	display: flex;
	flex-direction: column;
}

.review-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.review-author-info {
	display: flex;
	align-items: center;
}

.review-author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	margin-right: 1rem;
}

.review-author span {
	font-weight: bold;
	font-size: 1rem;
}

.review-stars {
	color: #fbbc05; /* Google's gold color */
	margin-bottom: 0.75rem;
	font-size: 1.25rem;
}

.review-text {
	font-size: 0.95rem;
	color: #333;
	margin: 0 0 1rem 0;
	flex-grow: 1; /* Allows text to fill available space */
}

.review-footer {
	font-size: 0.85rem;
	color: #777;
	margin-top: auto; /* Pushes footer to the bottom */
}

/* Fallback message styles */
.my-google-reviews-fallback {
	padding: 2rem;
	text-align: center;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	color: #6c757d;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.my-google-reviews-fallback p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

/* Backwards compatibility - keep old class names working */
.odeon-google-reviews-slider {
	display: flex;
	overflow-x: auto;
	padding: 1.5rem;
	gap: 1.5rem;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: #ccc #f1f1f1;
}

.odeon-google-reviews-slider::-webkit-scrollbar {
	height: 8px;
}

.odeon-google-reviews-slider::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.odeon-google-reviews-slider::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 10px;
}

.odeon-google-reviews-slider::-webkit-scrollbar-thumb:hover {
	background: #aaa;
}

.odeon-google-review {
	flex: 0 0 320px;
	scroll-snap-align: start;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	padding: 1.5rem;
	border-radius: 8px;
	background-color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	line-height: 1.6;
	display: flex;
	flex-direction: column;
}
