/**
 * @package ProMart
 */

.promart-home-brand-strip {
	--promart-brand-strip-card-size: 7.7rem;
	--promart-brand-strip-card-width: var(--promart-brand-strip-card-size);
	--promart-brand-strip-card-height: var(--promart-brand-strip-card-size);
	--promart-brand-strip-card-radius: 0.5rem;
	--promart-brand-strip-card-gap: 0.5rem;
	padding: 0.75rem 0 1.5rem;
	background: #ffffff;
	overflow-anchor: none;
}

.promart-home-brand-strip__box {
	display: grid;
	grid-template-columns: minmax(12.5rem, 15rem) minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem 1.25rem;
	padding: 1.125rem 1.25rem;
	background: #f5f6f7;
	border-radius: 0.875rem;
}

.promart-home-brand-strip__intro {
	flex-shrink: 0;
	min-width: 12.5rem;
	max-width: 15rem;
}

.promart-home-brand-strip__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 800;
	color: #0d3155;
	line-height: 1.45;
	text-wrap: pretty;
}

.promart-home-brand-strip__subtitle {
	margin: 0.25rem 0 0;
	font-size: 0.6875rem;
	font-weight: 500;
	color: #717171;
	line-height: 1.5;
	text-wrap: pretty;
}

.promart-home-brand-strip__logos-wrap {
	min-width: 0;
	overflow: hidden;
}

.promart-home-brand-strip__marquee {
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	direction: ltr;
}

.promart-home-brand-strip__track {
	display: flex;
	align-items: center;
	width: max-content;
	direction: ltr;
	flex-wrap: nowrap;
	will-change: transform;
	animation: promart-brand-strip-marquee var(--promart-brand-strip-duration, 180s) linear infinite;
}

@keyframes promart-brand-strip-marquee {
	from {
		transform: translate3d(-50%, 0, 0);
	}

	to {
		transform: translate3d(0, 0, 0);
	}
}

.promart-home-brand-strip__set {
	display: flex;
	align-items: center;
	gap: var(--promart-brand-strip-card-gap);
	flex-shrink: 0;
	padding-right: var(--promart-brand-strip-card-gap);
}

.promart-home-brand-strip__card {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--promart-brand-strip-card-width);
	height: var(--promart-brand-strip-card-height);
	padding: 0.3rem;
	background: #ffffff;
	border-radius: var(--promart-brand-strip-card-radius);
	box-shadow: 0 2px 8px rgba(13, 49, 85, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	overflow: hidden;
}

.promart-home-brand-strip__card:hover {
	box-shadow: 0 6px 16px rgba(13, 49, 85, 0.1);
	transform: translateY(-1px);
}

.promart-home-brand-strip__logo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.promart-home-brand-strip__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	flex-shrink: 0;
	padding: 0.5rem 0.875rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #0d3155;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #e8eaed;
	border-radius: 0.5rem;
	box-shadow: 0 4px 14px rgba(13, 49, 85, 0.04);
	white-space: nowrap;
	transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.promart-home-brand-strip__cta .material-symbols-outlined {
	font-size: 1rem;
}

.promart-home-brand-strip__cta:hover {
	color: #b8860b;
	border-color: rgba(211, 157, 43, 0.55);
	background: #fffdf5;
	box-shadow: 0 8px 20px rgba(13, 49, 85, 0.08);
}

.promart-home-brand-strip__marquee.is-static .promart-home-brand-strip__track {
	animation: none !important;
	transform: none !important;
}

.promart-home-brand-strip__marquee.is-static .promart-home-brand-strip__set[aria-hidden='true'] {
	display: none;
}

@media (min-width: 1024px) {
	.promart-home-brand-strip__marquee.is-static .promart-home-brand-strip__track {
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}

	.promart-home-brand-strip__marquee.is-static .promart-home-brand-strip__set {
		flex-wrap: wrap;
		justify-content: center;
		padding-right: 0;
	}
}

@media (max-width: 1023px) {
	.promart-home-brand-strip {
		--promart-brand-strip-card-width: 8.125rem;
		--promart-brand-strip-card-height: 9.125rem;
		--promart-brand-strip-card-radius: 1rem;
		--promart-brand-strip-card-gap: 0.75rem;
	}

	.promart-home-brand-strip__box {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"intro cta"
			"logos logos";
		align-items: center;
		gap: 1rem 0.75rem;
		padding: 1.125rem 1.25rem 1.25rem;
		background: #ffffff;
	}

	.promart-home-brand-strip__intro {
		grid-area: intro;
		min-width: 0;
		max-width: none;
	}

	.promart-home-brand-strip__logos-wrap {
		grid-area: logos;
		overflow: hidden;
		background: #ffffff;
	}

	.promart-home-brand-strip__cta {
		grid-area: cta;
		align-self: center;
		justify-self: start;
		padding: 0.5625rem 0.95rem;
		border-radius: 999px;
		box-shadow: 0 6px 16px rgba(13, 49, 85, 0.06);
	}

	.promart-home-brand-strip__marquee {
		overflow: hidden;
		direction: ltr;
	}

	.promart-home-brand-strip__track {
		width: max-content;
		direction: ltr;
		will-change: transform;
	}

	.promart-home-brand-strip__card {
		padding: 0.75rem;
		box-shadow: 0 4px 14px rgba(13, 49, 85, 0.07);
	}

	.promart-home-brand-strip__marquee:focus {
		outline: none;
	}

	.promart-home-brand-strip__marquee:focus-visible {
		outline: 2px solid #0d3155;
		outline-offset: 2px;
	}
}

@media (max-width: 767px) {
	.promart-home-brand-strip,
	.promart-home-brand-strip .promart-home__container,
	.promart-home-brand-strip__box,
	.promart-home-brand-strip__logos-wrap,
	.promart-home-brand-strip__marquee,
	.promart-home-brand-strip__track,
	.promart-home-brand-strip__set,
	.promart-home-brand-strip__card,
	.promart-home-brand-strip__logo {
		background: #ffffff;
		background-color: #ffffff;
	}

	.promart-home-brand-strip {
		--promart-brand-strip-card-width: 5.5rem;
		--promart-brand-strip-card-height: 5.5rem;
		--promart-brand-strip-card-radius: 0.625rem;
		--promart-brand-strip-card-gap: 0.5rem;
		padding: 0.5rem 0 1.25rem;
	}

	.promart-home-brand-strip__box {
		gap: 0.875rem 0.625rem;
		padding: 1rem 0.875rem 1.125rem;
		border-radius: 0.75rem;
	}

	.promart-home-brand-strip__title {
		font-size: 0.9375rem;
		line-height: 1.4;
	}

	.promart-home-brand-strip__subtitle {
		margin-top: 0.2rem;
		font-size: 0.6875rem;
		line-height: 1.45;
	}

	.promart-home-brand-strip__cta {
		padding: 0.5rem 0.7rem;
		font-size: 0.6875rem;
		border-radius: 0.5rem;
	}

	.promart-home-brand-strip__cta .material-symbols-outlined {
		font-size: 0.9375rem;
	}

	.promart-home-brand-strip__logos-wrap,
	.promart-home-brand-strip__marquee,
	.promart-home-brand-strip__track,
	.promart-home-brand-strip__set {
		background: #ffffff;
	}

	.promart-home-brand-strip__marquee {
		overflow: hidden;
		direction: ltr;
	}

	.promart-home-brand-strip__track {
		direction: ltr;
		animation: none;
		will-change: transform;
	}

	.promart-home-brand-strip__set[aria-hidden='true'] {
		display: flex;
	}

	.promart-home-brand-strip__set {
		padding-right: var(--promart-brand-strip-card-gap);
	}

	.promart-home-brand-strip__card {
		box-sizing: border-box;
		aspect-ratio: 1 / 1;
		padding: 0.125rem;
		background: #ffffff;
	}

	.promart-home-brand-strip__logo {
		width: 100%;
		height: 100%;
		max-width: 100%;
		max-height: 100%;
		min-width: 0;
		min-height: 0;
		object-fit: contain;
		object-position: center;
		background: #ffffff;
	}
}

@media (max-width: 379px) {
	.promart-home-brand-strip {
		--promart-brand-strip-card-width: 5.25rem;
		--promart-brand-strip-card-height: 5.25rem;
	}

	.promart-home-brand-strip__title {
		font-size: 0.875rem;
	}

	.promart-home-brand-strip__subtitle {
		font-size: 0.625rem;
	}

	.promart-home-brand-strip__cta {
		padding: 0.4375rem 0.5625rem;
		font-size: 0.625rem;
	}
}

@media (hover: none) {
	.promart-home-brand-strip__card:hover {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.promart-home-brand-strip__track {
		animation: none !important;
		transform: none !important;
	}

	.promart-home-brand-strip__set[aria-hidden='true'] {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
	.promart-home-brand-strip__track {
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}

	.promart-home-brand-strip__set {
		flex-wrap: wrap;
		justify-content: center;
		padding-right: 0;
	}
}
