/**
 * @package ProMart
 */

.promart-home-reviews {
	--hr-title-size: 1.125rem;
	--hr-title-weight: 800;
	--hr-brand-name-size: 0.875rem;
	--hr-brand-name-weight: 700;
	--hr-brand-desc-size: 0.75rem;
	--hr-brand-desc-weight: 400;
	--hr-badge-size: 0.6875rem;
	--hr-badge-weight: 700;
	--hr-quote-size: 0.875rem;
	--hr-quote-weight: 400;
	--hr-quote-line-height: 2;
	--hr-author-name-size: 0.8125rem;
	--hr-author-name-weight: 500;
	--hr-author-role-size: 0.75rem;
	--hr-author-role-weight: 500;
	--hr-star-size: 0.9375rem;
	--hr-quote-mark-size: 3.75rem;
	--hr-mobile-gap: 0.75rem;
	--hr-mobile-card-width: min(18.5rem, calc(100vw - 4.25rem));

	padding-block: 1.75rem 2rem;
	background: #f5f6f7;
}

.promart-home-reviews__header {
	margin-bottom: 0.875rem;
}

.promart-home-reviews__title {
	margin: 0;
	font-size: var(--hr-title-size);
	font-weight: var(--hr-title-weight);
	color: #0d3155;
	line-height: 1.45;
	display: inline-flex;
	align-items: center;
}

.promart-home-reviews__title-text--desktop {
	display: none;
}

.promart-home-reviews__title.section-title::before {
	width: 4px;
	height: 1.25rem;
	margin-left: 0.5rem;
	flex-shrink: 0;
}

.promart-home-reviews__panel {
	display: none;
	background: #fff;
	border: 1px solid #e8eaed;
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(13, 49, 85, 0.06);
	overflow: hidden;
}

.promart-home-reviews__mobile {
	margin-inline: -1rem;
}

.promart-home-reviews__mobile-wrap {
	position: relative;
}

.promart-home-reviews__mobile-scroller {
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-block: 0.25rem 0.5rem;
	padding-inline: 1rem;
	scroll-padding-inline: 1rem;
	touch-action: pan-x;
	cursor: grab;
}

.promart-home-reviews__mobile-scroller.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.promart-home-reviews__mobile-scroller::-webkit-scrollbar {
	display: none;
}

.promart-home-reviews__mobile-scroller:focus-visible {
	outline: 2px solid rgba(211, 157, 43, 0.65);
	outline-offset: 4px;
	border-radius: 0.75rem;
}

.promart-home-reviews__mobile-track {
	display: flex;
	align-items: stretch;
	gap: var(--hr-mobile-gap);
	width: max-content;
	min-width: 100%;
}

.promart-home-reviews__mobile-card {
	flex: 0 0 var(--hr-mobile-card-width);
	width: var(--hr-mobile-card-width);
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-height: 11.25rem;
	padding: 1.15rem 1.2rem 1rem;
	background: #fff;
	border: 1px solid #eceff3;
	border-radius: 1.15rem;
	box-shadow: 0 8px 24px rgba(13, 49, 85, 0.06);
	scroll-snap-align: start;
}

.promart-home-reviews__mobile-head {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	text-align: right;
}

.promart-home-reviews__mobile-name {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 500;
	color: #6b7280;
	line-height: 1.6;
}

.promart-home-reviews__mobile-role {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 800;
	color: #0d3155;
	line-height: 1.45;
}

.promart-home-reviews__mobile-quote {
	margin: 0;
	flex: 1 1 auto;
}

.promart-home-reviews__mobile-quote p {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.9;
	color: #4b5563;
	text-align: right;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.promart-home-reviews__mobile-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.35rem;
}

.promart-home-reviews__mobile-rating {
	flex-shrink: 0;
}

.promart-home-reviews__mobile-card .promart-home-reviews__stars {
	gap: 0.12rem;
}

.promart-home-reviews__mobile-card .promart-home-reviews__star {
	font-size: 1.05rem;
	color: #e5e7eb;
}

.promart-home-reviews__mobile-card .promart-home-reviews__star.is-filled {
	color: #e6b325;
}

.promart-home-reviews__mobile-logo {
	flex-shrink: 0;
	max-width: 8.775rem;
	height: 2.6rem;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.promart-home-reviews__mobile-logo-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.promart-home-reviews__mobile-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid #e2e5ea;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	color: #0d3155;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(13, 49, 85, 0.12);
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, opacity 0.25s, visibility 0.25s;
}

.promart-home-reviews__mobile-nav--next {
	left: 0.5rem;
	right: auto;
}

.promart-home-reviews__mobile-nav--prev {
	right: 0.5rem;
	left: auto;
}

.promart-home-reviews__mobile-nav:hover,
.promart-home-reviews__mobile-nav:focus-visible {
	border-color: #0d3155;
	background: #0d3155;
	color: #fff;
}

.promart-home-reviews__mobile-nav:focus-visible {
	outline: 2px solid rgba(211, 157, 43, 0.65);
	outline-offset: 2px;
}

.promart-home-reviews__mobile-nav.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.promart-home-reviews__mobile-nav .material-symbols-outlined {
	font-size: 1.25rem;
}

.promart-home-reviews__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.promart-home-reviews__brands-card,
.promart-home-reviews__quote-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.promart-home-reviews__brands-card {
	padding: 1.25rem 1.25rem 1rem;
	display: flex;
	flex-direction: column;
	order: 2;
}

.promart-home-reviews__quote-card {
	position: relative;
	padding: 1.5rem 1.25rem 1.25rem;
	min-height: 18rem;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	order: 1;
	border-bottom: 1px solid #eef0f2;
}

.promart-home-reviews__brand-list {
	flex: 1 0 auto;
	overflow: hidden;
}

.promart-home-reviews__brand-track {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-block: 4px;
	will-change: transform;
	transition: transform 0.35s ease;
}

.promart-home-reviews__brand-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	flex-shrink: 0;
	padding: 0.75rem 0.875rem;
	border: 1px solid transparent;
	border-radius: 12px;
	background: #fff;
	text-align: right;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.promart-home-reviews__brand-item:hover {
	border-color: rgba(211, 157, 43, 0.45);
}

.promart-home-reviews__brand-item.is-active {
	border-color: #d39d2b;
	background: #fdf8eb;
	box-shadow: inset 0 0 0 1px rgba(211, 157, 43, 0.15);
}

.promart-home-reviews__brand-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.promart-home-reviews__brand-name {
	font-size: var(--hr-brand-name-size);
	font-weight: var(--hr-brand-name-weight);
	color: #0d3155;
	line-height: 1.5;
}

.promart-home-reviews__brand-desc {
	font-size: var(--hr-brand-desc-size);
	font-weight: var(--hr-brand-desc-weight);
	color: #717171;
	line-height: 1.65;
}

.promart-home-reviews__brand-logo {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: #0d3155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.promart-home-reviews__brand-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.promart-home-reviews__brand-logo .material-symbols-outlined {
	font-size: 1.25rem;
	color: #d39d2b;
}

.promart-home-reviews__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-shrink: 0;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid #eef0f2;
}

.promart-home-reviews__nav-btn {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 8px;
	border: 1px solid #e8eaed;
	background: #f8f9fa;
	color: #9ca3af;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.promart-home-reviews__nav-btn .material-symbols-outlined {
	font-size: 1.25rem;
}

.promart-home-reviews__nav-btn.is-active,
.promart-home-reviews__nav-btn:hover {
	background: #d39d2b;
	border-color: #d39d2b;
	color: #0d3155;
}

.promart-home-reviews__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	/* Widened from 0.35rem to keep >=8px breathing room now that each dot's
	   tap target is 24x24px instead of the old 0.45rem visual-only box. */
	gap: 0.5rem;
	flex: 1 1 auto;
}

.promart-home-reviews__dot {
	/* Button hit area kept at the 24px tap-target minimum; the visible dot
	   stays small via the ::before circle so the design is unaffected. */
	position: relative;
	width: 1.5rem;
	height: 1.5rem;
	min-width: 1.5rem;
	min-height: 1.5rem;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.promart-home-reviews__dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: #d1d5db;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.promart-home-reviews__dot.is-active::before {
	background: #d39d2b;
	transform: translate(-50%, -50%) scale(1.15);
}

.promart-home-reviews__quote-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	align-self: flex-start;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: #fdf8eb;
	/* Was #c9a00d (gold); darkened to navy for a ~12:1 contrast ratio
	   against the light background (gold-on-light-gold only reached ~2.3:1). */
	color: #0d3155;
	font-size: var(--hr-badge-size);
	font-weight: var(--hr-badge-weight);
	margin-bottom: 1rem;
}

.promart-home-reviews__quote-badge .material-symbols-outlined {
	font-size: 0.9375rem;
}

.promart-home-reviews__quote-mark {
	position: absolute;
	top: 1rem;
	left: 1rem;
	font-size: var(--hr-quote-mark-size);
	line-height: 1;
	color: rgba(211, 157, 43, 0.18);
	pointer-events: none;
	user-select: none;
}

.promart-home-reviews__quote-text {
	margin: 0;
	flex: 1 1 auto;
	position: relative;
	z-index: 1;
}

.promart-home-reviews__quote-text p {
	margin: 0;
	font-size: var(--hr-quote-size);
	font-weight: var(--hr-quote-weight);
	line-height: var(--hr-quote-line-height);
	color: #0d3155;
	text-align: right;
}

.promart-home-reviews__quote-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	position: relative;
	z-index: 1;
}

.promart-home-reviews__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.promart-home-reviews__avatar {
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: #0d3155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.promart-home-reviews__avatar .material-symbols-outlined {
	font-size: 1.5rem;
	color: #d39d2b;
}

.promart-home-reviews__author-name {
	margin: 0 0 0.15rem;
	font-size: var(--hr-author-name-size);
	font-weight: var(--hr-author-name-weight);
	color: #0d3155;
	line-height: 1.45;
}

.promart-home-reviews__author-role {
	margin: 0;
	font-size: var(--hr-author-role-size);
	font-weight: var(--hr-author-role-weight);
	color: #717171;
	line-height: 1.65;
}

.promart-home-reviews__author-name.is-hidden,
.promart-home-reviews__author-role.is-hidden {
	display: none;
}

.promart-home-reviews__stars {
	display: flex;
	align-items: center;
	gap: 0.1rem;
	flex-shrink: 0;
}

.promart-home-reviews__star {
	font-size: var(--hr-star-size);
	color: #e5e7eb;
	line-height: 1;
	font-family: inherit;
}

.promart-home-reviews__star.is-filled {
	color: #d39d2b;
}

.promart-home-reviews__quote-card.is-transitioning {
	opacity: 0.72;
	transition: opacity 0.18s ease;
}

@media (min-width: 768px) {
	.promart-home-reviews {
		--hr-title-size: 1.1875rem;
		--hr-brand-name-size: 0.9375rem;
		--hr-brand-desc-size: 0.8125rem;
		--hr-badge-size: 0.75rem;
		--hr-quote-size: 1rem;
		--hr-quote-weight: 400;
		--hr-author-name-size: 0.875rem;
		--hr-author-role-size: 0.8125rem;
		--hr-star-size: 1rem;
		--hr-quote-mark-size: 4.25rem;
		--hr-mobile-card-width: min(22rem, calc(100vw - 6rem));
		--hr-mobile-gap: 1rem;
	}
}

@media (min-width: 1024px) {
	.promart-home-reviews {
		--hr-title-size: 1.25rem;
		--hr-brand-name-size: 0.9375rem;
		--hr-brand-desc-size: 0.8125rem;
		--hr-badge-size: 0.8125rem;
		--hr-quote-size: 1.125rem;
		--hr-quote-weight: 400;
		--hr-quote-line-height: 2.05;
		--hr-author-name-size: 0.9375rem;
		--hr-author-name-weight: 500;
		--hr-author-role-size: 0.8125rem;
		--hr-star-size: 1.125rem;
		--hr-quote-mark-size: 5rem;

		padding-block: 3rem;
		background: #fff;
	}

	.promart-home-reviews__header {
		margin-bottom: 1.25rem;
	}

	.promart-home-reviews__title-text--mobile {
		display: none;
	}

	.promart-home-reviews__title-text--desktop {
		display: inline;
	}

	.promart-home-reviews__mobile {
		display: none;
	}

	.promart-home-reviews__panel {
		display: block;
	}

	.promart-home-reviews__title.section-title::before {
		height: 1.375rem;
	}

	.promart-home-reviews__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: 0;
		align-items: stretch;
	}

	.promart-home-reviews__brands-card {
		padding: 1.5rem 1.375rem 1.25rem;
		order: 0;
		border-inline-end: 1px solid #eef0f2;
	}

	.promart-home-reviews__quote-card {
		padding: 2rem 2rem 1.5rem;
		min-height: 22rem;
		order: 0;
		border-bottom: 0;
	}

	.promart-home-reviews__quote-mark {
		top: 1.25rem;
		left: 1.5rem;
	}

	.promart-home-reviews__brand-list {
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: #c8cdd5 transparent;
		direction: ltr;
		padding-inline-end: 0.375rem;
	}

	.promart-home-reviews__brand-track {
		direction: rtl;
		transform: none !important;
		transition: none;
	}

	.promart-home-reviews__brand-list::-webkit-scrollbar {
		width: 6px;
	}

	.promart-home-reviews__brand-list::-webkit-scrollbar-track {
		background: transparent;
	}

	.promart-home-reviews__brand-list::-webkit-scrollbar-thumb {
		background-color: #c8cdd5;
		border-radius: 999px;
	}

	.promart-home-reviews__brand-list::-webkit-scrollbar-thumb:hover {
		background-color: #aeb4bd;
	}
}

@media (max-width: 767px) {
	.promart-home-reviews {
		background: #ffffff;
	}
}

@media (max-width: 479px) {
	.promart-home-reviews__quote-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.promart-home-reviews__stars {
		align-self: flex-end;
	}

	.promart-home-reviews__mobile-card .promart-home-reviews__stars {
		align-self: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.promart-home-reviews__mobile-scroller {
		scroll-behavior: auto;
	}
}
