/* Testimonials: quotes on the shared slider (com_pxbuilder slider.css), one to three in view.
   plain = text only, card = surface + border, glass = frosted panel (as the glass card). */
.px-page .px-testimonials { --px-testimonials-fs: 1.375rem; }
.px-page .px-testimonials--per-2 { --px-slider-per: 2; }
.px-page .px-testimonials--per-3 { --px-slider-per: 3; }
.px-page .px-testimonials--size-m { --px-testimonials-fs: 1.125rem; }
.px-page .px-testimonials--size-xl { --px-testimonials-fs: var(--px-text-h3); }
.px-page .px-testimonials__slide { display: flex; }
.px-page .px-testimonials__card { display: flex; flex-direction: column; gap: var(--px-space-m); width: 100%; box-sizing: border-box; margin: 0; min-width: 0; }
.px-page .px-testimonials__stars { display: flex; gap: .15em; color: var(--px-star, #f5b301); font-size: 1.125rem; }
.px-page .px-testimonials__stars svg { width: 1em; height: 1em; }
.px-page .px-testimonials__quote { flex: 1; margin: 0; }
.px-page .px-testimonials__text {
	margin: 0;
	color: var(--px-color-heading);
	font-family: var(--px-font-heading);
	font-size: var(--px-testimonials-fs);
	font-weight: var(--px-weight-body);
	line-height: 1.45;
	letter-spacing: -.005em;
	white-space: pre-line;
	overflow-wrap: anywhere;
}
.px-page .px-testimonials--size-xl .px-testimonials__text { line-height: var(--px-leading-tight); }
.px-page .px-testimonials__who { display: flex; align-items: center; gap: var(--px-space-s); min-width: 0; }
.px-page .px-testimonials__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.px-page .px-testimonials__id { display: grid; min-width: 0; text-align: start; }
.px-page .px-testimonials__name { color: var(--px-color-heading); font-size: var(--px-text-body); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.px-page .px-testimonials__role { color: var(--px-color-muted); font-size: var(--px-text-small); line-height: 1.4; overflow-wrap: anywhere; }

/* plain: an opening mark in the brand colour; one quote in view keeps a readable measure. */
.px-page .px-testimonials--plain .px-testimonials__quote::before {
	content: "\201C";
	display: block;
	height: .5em;
	margin-bottom: var(--px-space-xs);
	color: var(--px-color-primary-text);
	font-family: var(--px-font-heading);
	font-size: 3.5rem;
	line-height: 1;
}
.px-page .px-testimonials--plain.px-testimonials--per-1 .px-testimonials__card { max-width: 48rem; }

/* card: surface, border, panel radius. */
.px-page .px-testimonials--card .px-testimonials__card {
	padding: var(--px-space-l);
	background: var(--px-color-surface);
	border: 1px solid var(--px-color-border);
	border-radius: var(--px-radius-panel, var(--px-radius));
}

/* glass: a frosted panel; on dark / primary / image sections a light see-through panel with a white rim. */
.px-page .px-testimonials--glass .px-testimonials__card {
	padding: var(--px-space-l);
	border: 1px solid rgb(255 255 255 / .7);
	border-radius: var(--px-radius-panel, var(--px-radius));
	background: linear-gradient(135deg, color-mix(in oklab, var(--px-color-surface) 72%, transparent), color-mix(in oklab, var(--px-color-surface) 42%, transparent));
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .9);
	-webkit-backdrop-filter: blur(24px) saturate(1.6);
	backdrop-filter: blur(24px) saturate(1.6);
}
.px-page :is(.px-inv-dark, .px-inv-primary, .px-inv-image, .px-col--tone-dark, .px-col--tone-primary) .px-testimonials--glass .px-testimonials__card {
	border-color: rgb(255 255 255 / .28);
	background: rgb(255 255 255 / .1);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / .2);
}
@media (prefers-contrast: more) { .px-page .px-testimonials--glass .px-testimonials__card { background: var(--px-color-surface); } }

/* Alignment: center, or the section's (align inherit); start overrides a centred section. */
.px-page .px-testimonials--al-center .px-testimonials__card,
.px-page .px-section--al-center .px-testimonials__card { align-items: center; margin-inline: auto; text-align: center; }
.px-page .px-testimonials--al-start .px-testimonials__card { align-items: stretch; margin-inline: 0; text-align: start; }

@container (max-width: 900px) {
	.px-page .px-testimonials--per-3 { --px-slider-per: 2; }
}
@container (max-width: 600px) {
	.px-page :is(.px-testimonials--per-2, .px-testimonials--per-3) { --px-slider-per: 1; }
	.px-page :is(.px-testimonials--card, .px-testimonials--glass) .px-testimonials__card { padding: var(--px-space-m); }
	.px-page .px-testimonials--size-xl { --px-testimonials-fs: var(--px-text-h4); }
}
