/*
 * Google reviews module (homepage). Approved option A of the "מודול ביקורות גוגל" artifact:
 * fixed summary beside a looping carousel. Breakpoints follow the site: mobile <= 767, tablet 768-1024,
 * desktop >= 1025; gutters mirror the footer container (24px mobile, 48px tablet and desktop, 1140px box).
 * Interactive selectors are nested under .ta-gr to beat hello-elementor's reset.css button rules.
 */

.ta-gr {
	--ta-gr-ink: #292566;
	--ta-gr-text: #202124;
	--ta-gr-muted: #5f6368;
	--ta-gr-line: #dadce0;
	--ta-gr-soft: #f3f6ff;
	--ta-gr-accent: #0062fe;
	--ta-gr-accent-hover: #0054d9;
	--ta-gr-star: #fbbc04;
	--ta-gr-gap: 16px;
	--ta-gr-pv: 1;

	box-sizing: border-box;
	width: 100%;
	padding: 56px 24px;
	background: #fff;
	color: var(--ta-gr-text);
	font-family: Heebo, sans-serif;
	direction: rtl;
	text-align: right;
}

.ta-gr *,
.ta-gr *::before,
.ta-gr *::after {
	box-sizing: border-box;
}

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

.ta-gr__inner {
	max-width: 1140px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ta-gr__title {
	margin: 0;
	font-family: Alef, sans-serif;
	font-weight: 700;
	font-size: 28px;
	line-height: 34px;
	color: var(--ta-gr-ink);
	text-wrap: balance;
}

.ta-gr__layout {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 20px;
	border: 1px solid var(--ta-gr-line);
	border-radius: 24px;
	background: #fff;
}

.ta-gr__layout > * {
	min-width: 0;
}

.ta-gr__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Summary */
.ta-gr__sum {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.ta-gr__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	line-height: 20px;
	color: var(--ta-gr-muted);
}

.ta-gr__g {
	width: 22px;
	height: 22px;
	flex: none;
	display: block;
}

.ta-gr__g--sm {
	width: 16px;
	height: 16px;
}

.ta-gr__num {
	font-size: 56px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--ta-gr-text);
	unicode-bidi: isolate;
}

.ta-gr__meta {
	font-size: 13px;
	line-height: 20px;
	color: var(--ta-gr-muted);
}

.ta-gr__stars {
	display: inline-flex;
	gap: 1px;
	direction: ltr;
}

.ta-gr__stars svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: var(--ta-gr-star);
}

.ta-gr__stars--lg svg {
	width: 26px;
	height: 26px;
}

.ta-gr__stars--sm svg {
	width: 15px;
	height: 15px;
}

.ta-gr a.ta-gr__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 24px;
	margin-top: 6px;
	border: 1px solid var(--ta-gr-accent);
	border-radius: 25px;
	background: var(--ta-gr-accent);
	color: #fff;
	font-family: Alef, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 20px;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.ta-gr a.ta-gr__btn:hover,
.ta-gr a.ta-gr__btn:focus {
	background-color: var(--ta-gr-accent-hover);
	border-color: var(--ta-gr-accent-hover);
	color: #fff;
}

/* Carousel */
.ta-gr__loop {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ta-gr__view {
	overflow: hidden;
	padding-block: 2px;
}

.ta-gr__track {
	display: flex;
	align-items: flex-start;
	gap: var(--ta-gr-gap);
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.ta-gr__track.is-static {
	transition: none;
}

.ta-gr__card {
	flex: 0 0 calc((100% - var(--ta-gr-gap) * (var(--ta-gr-pv) - 1)) / var(--ta-gr-pv));
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border: 1px solid var(--ta-gr-line);
	border-radius: 16px;
	background: #fff;
	min-width: 0;
}

.ta-gr__card.is-clone {
	pointer-events: none;
}

.ta-gr__who {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ta-gr__avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	font-weight: 500;
	font-size: 17px;
	line-height: 1;
}

.ta-gr__id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ta-gr__name {
	font-weight: 500;
	font-size: 15px;
	line-height: 22px;
	color: var(--ta-gr-text);
	overflow-wrap: anywhere;
}

.ta-gr__date {
	font-size: 13px;
	line-height: 19px;
	color: var(--ta-gr-muted);
}

.ta-gr__g--corner {
	width: 18px;
	height: 18px;
	margin-inline-start: auto;
}

.ta-gr__text {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	color: var(--ta-gr-text);
	overflow-wrap: anywhere;
	white-space: pre-line;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ta-gr__card.is-open .ta-gr__text {
	display: block;
	overflow: visible;
}

.ta-gr button.ta-gr__more {
	align-self: flex-start;
	min-height: 44px;
	margin: -8px 0 -8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ta-gr-muted);
	font: 400 14px/20px Heebo, sans-serif;
	text-decoration: underline;
	cursor: pointer;
}

.ta-gr button.ta-gr__more:hover,
.ta-gr button.ta-gr__more:focus {
	background: none;
	color: var(--ta-gr-ink);
}

.ta-gr__ctl {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ta-gr__loop.is-static .ta-gr__ctl button {
	display: none;
}

.ta-gr button.ta-gr__nav {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ta-gr-line);
	border-radius: 50%;
	background: #fff;
	color: var(--ta-gr-ink);
	cursor: pointer;
}

.ta-gr button.ta-gr__nav:hover,
.ta-gr button.ta-gr__nav:focus {
	background: var(--ta-gr-soft);
	color: var(--ta-gr-ink);
}

.ta-gr__nav svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.ta-gr__nav svg[data-ico-play] {
	fill: currentColor;
	stroke: none;
}

.ta-gr button.ta-gr__nav:focus-visible,
.ta-gr a.ta-gr__btn:focus-visible,
.ta-gr button.ta-gr__more:focus-visible {
	outline: 2px solid var(--ta-gr-ink);
	outline-offset: 3px;
}

.ta-gr__count {
	margin-inline-start: 8px;
	font-size: 13px;
	line-height: 20px;
	color: var(--ta-gr-muted);
}

.ta-gr__example {
	margin: 0;
	padding: 10px 14px;
	border: 1px dashed #c9a400;
	border-radius: 12px;
	background: #fff8e1;
	color: #5c4a00;
	font-size: 13px;
	line-height: 20px;
}

@media (min-width: 560px) {
	.ta-gr {
		--ta-gr-pv: 2;
	}
}

@media (min-width: 768px) {
	.ta-gr {
		padding: 72px 48px;
	}

	.ta-gr__title {
		font-size: 34px;
		line-height: 42px;
	}

	.ta-gr__layout {
		padding: 28px;
	}
}

@media (min-width: 1025px) {
	.ta-gr {
		--ta-gr-pv: 3;
	}

	.ta-gr__layout {
		flex-direction: row;
		align-items: center;
		gap: 32px;
		padding: 32px;
	}

	.ta-gr__sum {
		flex: 0 0 260px;
	}

	.ta-gr__loop {
		flex: 1 1 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ta-gr__track,
	.ta-gr a.ta-gr__btn {
		transition: none;
	}
}
