.rm-marquee {
	--rm-card-width: 330px;
	--rm-gap: 16px;
	--rm-duration: 55s;
	display: grid;
	gap: var(--rm-gap);
	width: 100%;
	overflow: hidden;
	padding-block: 4px;
	color: #252525;
	font-family: inherit;
}

.rm-row {
	width: 100%;
	overflow: hidden;
}

.rm-track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation-duration: var(--rm-duration);
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.rm-row--left .rm-track {
	animation-name: rm-scroll-left;
}

.rm-row--right .rm-track {
	animation-name: rm-scroll-right;
}

.rm-marquee:hover .rm-track,
.rm-marquee:focus-within .rm-track {
	animation-play-state: paused;
}

.rm-group {
	display: flex;
	flex-shrink: 0;
	gap: var(--rm-gap);
	padding-right: var(--rm-gap);
}

.rm-card {
	box-sizing: border-box;
	display: flex;
	flex: 0 0 min(var(--rm-card-width), calc(100vw - 40px));
	flex-direction: column;
	justify-content: space-between;
	width: min(var(--rm-card-width), calc(100vw - 40px));
	min-height: 190px;
	margin: 0;
	padding: 24px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eceae6;
	border-radius: 18px;
	box-shadow: none;
	transform: none;
}

.rm-card__quote {
	margin-bottom: 28px;
	color: #343434;
	font-size: clamp(14px, 1.15vw, 16px);
	font-weight: 400;
	line-height: 1.55;
}

.rm-card__quote p {
	margin: 0 0 0.75em;
}

.rm-card__quote p:last-child {
	margin-bottom: 0;
}

.rm-card__footer {
	display: block;
	margin-top: auto;
}

.rm-card__name {
	color: #202020;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.rm-card__company {
	margin-top: 2px;
	color: #777;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
}

.rm-empty {
	padding: 16px;
	border: 1px solid #eceae6;
	border-radius: 12px;
	background: #fff;
	color: #555;
	font-size: 14px;
}

@keyframes rm-scroll-left {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@keyframes rm-scroll-right {
	from {
		transform: translate3d(-50%, 0, 0);
	}
	to {
		transform: translate3d(0, 0, 0);
	}
}

@media (max-width: 767px) {
	.rm-marquee {
		--rm-gap: 12px;
	}

	.rm-card {
		min-height: 170px;
		padding: 20px;
		border-radius: 15px;
	}

	.rm-card__quote {
		margin-bottom: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rm-row {
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.rm-track {
		animation: none;
	}

	.rm-group[aria-hidden="true"] {
		display: none;
	}
}

