/**
 * IORoot Google Reviews — base styles.
 * Override in your theme: copy rules here or dequeue and enqueue your own stylesheet.
 */

.ioroot-gr {
	--ioroot-gr-gap: 1rem;
	--ioroot-gr-card-bg: #ffffff00;
	--ioroot-gr-card-border: 0px solid rgba(0, 0, 0, 0.08);
	--ioroot-gr-card-radius: 0px;
	--ioroot-gr-star: #f5b301;
	/* Two-column layout (600–1024px): width dials — override in your theme */
	--ioroot-gr-slide-basis-tablet: calc(50% - var(--ioroot-gr-gap) / 2);
	--ioroot-gr-grid-min-col-tablet: 260px;
	--ioroot-gr-card-max-width-tablet: none;
	box-sizing: border-box;
}

.ioroot-gr *,
.ioroot-gr *::before,
.ioroot-gr *::after {
	box-sizing: inherit;
}

.ioroot-gr--slider {
	margin-left: 32px;
	margin-right: 32px;
}

/* Header — summary + CTA centered as one group */
.ioroot-gr-header {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 1.25rem;
}

.ioroot-gr-header__cluster {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	max-width: 100%;
}

.ioroot-gr-header__text {
	flex: 0 1 auto;
	min-width: 0;
	text-align: center;
}

.ioroot-gr-header__actions {
	flex-shrink: 0;
}

.ioroot-gr-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.1rem;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(0, 0, 0, 0.28);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.1);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.ioroot-gr-header__cta:hover {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.45);
}

.ioroot-gr-header__cta:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.ioroot-gr-header__avatar {
	border-radius: 50%;
	object-fit: cover;
}

.ioroot-gr-header__name {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.ioroot-gr-header__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.5rem;
	margin: 0.25rem 0 0;
	font-size: 0.9rem;
}

.ioroot-gr-header__score {
	font-weight: 600;
}

.ioroot-gr-header__count {
	opacity: 0.75;
}

/* Stars — inline SVG (5-point) */
.ioroot-gr-stars {
	display: inline-flex;
	align-items: center;
	gap: 0.15em;
	vertical-align: middle;
	line-height: 1;
}

.ioroot-gr-star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	position: relative;
	vertical-align: middle;
}

.ioroot-gr-star__svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ioroot-gr-star__svg path {
	vector-effect: non-scaling-stroke;
}

.ioroot-gr-star--full .ioroot-gr-star__svg path {
	fill: var(--ioroot-gr-star);
}

.ioroot-gr-star--empty .ioroot-gr-star__svg--empty path,
.ioroot-gr-star--half .ioroot-gr-star__svg--empty path {
	fill: rgba(0, 0, 0, 0.14);
}

.ioroot-gr-star--half .ioroot-gr-star__svg--full path {
	fill: var(--ioroot-gr-star);
}

.ioroot-gr-star--half .ioroot-gr-star__svg--empty {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ioroot-gr-star__half-clip {
	position: absolute;
	left: 0;
	top: 0;
	width: 50%;
	height: 100%;
	overflow: hidden;
	pointer-events: none;
}

.ioroot-gr-star__half-clip .ioroot-gr-star__svg {
	position: absolute;
	left: 0;
	top: 0;
	width: 1em;
	height: 1em;
	max-width: none;
}

/* Review card — equal height in row; body grows, footer at bottom */
.ioroot-gr-card {
	background: var(--ioroot-gr-card-bg);
	border-left: 0px solid #ffffff;
	border-radius: var(--ioroot-gr-card-radius);
	padding: 2rem 4rem;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	width: 100%;
	min-width: 0;
}

@media (max-width: 599px) {
	.ioroot-gr-card {
		margin: 0;
		padding: 1.25rem 1rem;
		max-height: 100vh;
		max-height: 100dvh;
		min-height: 0;
		overflow: hidden;
	}

	.ioroot-gr-card__body {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.ioroot-gr-card__body {
	flex: 1 1 auto;
	min-height: 0;
}

.ioroot-gr-card__footer {
	display: flex;
	align-items: center;
	gap: 0.65rem 1rem;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.ioroot-gr-card__photo {
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.ioroot-gr-card__meta {
	flex: 1 1 auto;
	min-width: 0;
}

.ioroot-gr-card__name {
	margin: 0;
	font-weight: 600;
	font-size: 0.95rem;
}

.ioroot-gr-card__date {
	display: block;
	font-size: 0.8rem;
	opacity: 0.65;
	margin-top: 0.15rem;
}

.ioroot-gr-card__stars {
	flex-shrink: 0;
	margin-left: auto;
}

.ioroot-gr-card__stars .ioroot-gr-stars {
	font-size: 0.95rem;
}

.ioroot-gr-card__text {
	font-size: 1.2rem;
	line-height: 1.5;
	margin: 0;
	margin-bottom: 4rem;
}

.ioroot-gr-card__reply {
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.75rem;
	font-size: 0.85rem;
	border-left: 3px solid rgba(0, 0, 0, 0.12);
	background: rgba(0, 0, 0, 0.03);
}

/* Slider */
.ioroot-gr-slider {
	display: flex;
	align-items: stretch;
	gap: var(--ioroot-gr-gap);
}

.ioroot-gr-viewport {
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.ioroot-gr-track {
	display: flex;
	align-items: stretch;
	gap: var(--ioroot-gr-gap);
	padding-bottom: 0.25rem;
}

.ioroot-gr-slide {
	display: flex;
	flex-direction: column;
	flex: 0 0 min(100%, 320px);
	scroll-snap-align: start;
	min-width: 0;
}

@media (min-width: 600px) and (max-width: 1024px) {
	.ioroot-gr-slide {
		flex: 0 0 var(--ioroot-gr-slide-basis-tablet);
	}

	.ioroot-gr-grid {
		grid-template-columns: repeat(auto-fill, minmax(var(--ioroot-gr-grid-min-col-tablet), 1fr));
	}

	.ioroot-gr-card {
		max-width: var(--ioroot-gr-card-max-width-tablet);
		margin-inline: auto;
		width: 100%;
		padding-left: 1rem;
	}
}

@media (min-width: 1025px) {
	.ioroot-gr-slide {
		flex-basis: calc(33.333% - var(--ioroot-gr-gap) * 2 / 3);
	}
}

.ioroot-gr-nav {
	flex: 0 0 auto;
	align-self: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	border: var(--ioroot-gr-card-border);
	background: var(--ioroot-gr-card-bg);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ioroot-gr-nav:hover {
	opacity: 0.85;
}

.ioroot-gr-nav:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.ioroot-gr-nav {
		display: none;
	}
}

/* Grid */
.ioroot-gr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--ioroot-gr-gap);
	align-items: stretch;
}

.ioroot-gr-grid__cell {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
