/* RBM Testimonials: continuous scrolling testimonial rows. */
.rbmt-wall {
	--rbmt-gap: 24px;
	--rbmt-w: var(--rbmt-card-w, 360px);
	position: relative;
	width: 100%;
	overflow: hidden;
	color: var(--rbmt-text, #000);
	font-size: 18px;
	line-height: 1.5;
	text-align: left; /* themes (Avada columns) often center text */
}
.rbmt-wall *,
.rbmt-wall *::before,
.rbmt-wall *::after { box-sizing: border-box; }

.rbmt-layout { display: flex; flex-direction: column; gap: var(--rbmt-gap); }
.rbmt-layout--mobile { display: none; }

.rbmt-row { overflow: hidden; padding: 4px 0; }
.rbmt-fade .rbmt-row {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.rbmt-track {
	display: flex;
	width: max-content;
	animation: rbmt-scroll var(--rbmt-dur, 40s) linear infinite;
	will-change: transform;
}
.rbmt-row[data-dir="right"] .rbmt-track { animation-direction: reverse; }
.rbmt-pausable .rbmt-row:hover .rbmt-track,
.rbmt-pausable .rbmt-row:focus-within .rbmt-track,
.rbmt-paused .rbmt-track { animation-play-state: paused; }

.rbmt-wall .rbmt-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 12px 16px 0 auto;
	padding: 0;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: var(--rbmt-text, #000);
	cursor: pointer;
	opacity: 0.6;
}
.rbmt-wall .rbmt-toggle:hover,
.rbmt-wall .rbmt-toggle:focus-visible { opacity: 1; }
.rbmt-toggle svg { fill: currentColor; }
.rbmt-toggle .rbmt-i-play,
.rbmt-paused .rbmt-toggle .rbmt-i-pause { display: none; }
.rbmt-paused .rbmt-toggle .rbmt-i-play { display: block; }

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

/* Each set carries a trailing gap so the two halves line up exactly at -50%. */
.rbmt-wall .rbmt-set,
.rbmt-wall .rbmt-grid {
	display: flex;
	align-items: stretch;
	gap: var(--rbmt-gap);
	margin: 0;
	padding: 0 var(--rbmt-gap) 0 0;
	list-style: none;
}
.rbmt-wall .rbmt-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 4px 0;
}
.rbmt-wall .rbmt-grid .rbmt-card { width: auto; }
@media (max-width: 1023px) { .rbmt-wall .rbmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rbmt-wall .rbmt-card {
	display: flex;
	flex-direction: column;
	flex: 0 0 var(--rbmt-w);
	width: var(--rbmt-w);
	margin: 0;
	padding: 24px;
	background: var(--rbmt-card-bg, #fff);
	border: var(--rbmt-border-width, 2px) solid var(--rbmt-border, #ff8c33);
	border-radius: var(--rbmt-radius, 12px);
	list-style: none;
	text-align: left; /* beats site-wide ul/li alignment rules */
}
.rbmt-wall .rbmt-card::before { content: none; }

.rbmt-stars { display: flex; gap: 2px; margin: 0 0 12px; line-height: 0; }
.rbmt-star svg { display: block; width: 20px; height: 20px; fill: #d1d5db; }
.rbmt-star.is-on svg { fill: var(--rbmt-star, #fbbe24); }

.rbmt-wall .rbmt-quote {
	flex: 1 1 auto;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	quotes: none;
}
.rbmt-wall .rbmt-quote::before,
.rbmt-wall .rbmt-quote::after { content: none; }
.rbmt-wall .rbmt-quote p { margin: 0 0 0.75em; padding: 0; color: inherit; font: inherit; }
.rbmt-wall .rbmt-quote p:last-child { margin-bottom: 0; }
.rbmt-clamp .rbmt-quote {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--rbmt-lines, 6);
	line-clamp: var(--rbmt-lines, 6);
	overflow: hidden;
}

.rbmt-author { display: flex; align-items: center; gap: 12px; }
.rbmt-wall .rbmt-avatar {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	max-width: none;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	background: #f3f4f6;
}
.rbmt-shape-square .rbmt-avatar { border-radius: 8px; }
.rbmt-shape-logo .rbmt-avatar {
	flex-basis: 72px;
	width: 72px;
	border-radius: 0;
	object-fit: contain;
	background: none;
}
.rbmt-who { display: flex; flex-direction: column; min-width: 0; }
.rbmt-name { color: var(--rbmt-name, #000); font-weight: 700; line-height: 1.3; }
.rbmt-wall .rbmt-name a { color: inherit; text-decoration: none; }
.rbmt-wall .rbmt-name a:hover,
.rbmt-wall .rbmt-name a:focus-visible { text-decoration: underline; }
.rbmt-role { font-size: 15px; line-height: 1.35; opacity: 0.75; }

@media (max-width: 767px) {
	.rbmt-wall { --rbmt-w: var(--rbmt-card-w-m, 290px); --rbmt-gap: 16px; font-size: 17px; }
	.rbmt-wall .rbmt-grid { grid-template-columns: minmax(0, 1fr); }
	.rbmt-wall .rbmt-card { padding: 20px; }
	.rbmt-layout--desktop { display: none; }
	.rbmt-layout--mobile { display: flex; }
}

/* Reduced motion: no animation; rows become swipeable instead. */
@media (prefers-reduced-motion: reduce) {
	.rbmt-track { animation: none; transform: none; }
	.rbmt-wall .rbmt-row,
	.rbmt-fade .rbmt-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.rbmt-set.rbmt-clone,
	.rbmt-wall .rbmt-toggle { display: none; }
}
