/**
 * Opt-in Loop Item layout for fixed-height Project testimonial cards.
 *
 * Elementor classes:
 * - outer card container: fibreglaze-testimonial-card
 * - inner content container: testimonial-card-content
 * - quote Text Editor: testimonial-quote
 */

.fibreglaze-testimonial-card {
	--fibreglaze-testimonial-card-height: 440px;

	box-sizing: border-box;
	display: flex !important;
	flex-direction: column !important;
	height: var(--fibreglaze-testimonial-card-height) !important;
	min-height: var(--fibreglaze-testimonial-card-height) !important;
	max-height: var(--fibreglaze-testimonial-card-height) !important;
	overflow: hidden !important;
}

.fibreglaze-testimonial-card .testimonial-card-content {
	display: flex !important;
	flex: 1 1 auto;
	flex-direction: column !important;
	min-height: 0 !important;
}

.fibreglaze-testimonial-card .testimonial-quote {
	-webkit-overflow-scrolling: touch;
	flex: 1 1 0;
	min-height: 0;
	width: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	padding-inline-end: 10px;
	scrollbar-color: rgba(15, 48, 94, 0.45) transparent;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	touch-action: pan-y;
}

.fibreglaze-testimonial-card .testimonial-quote::-webkit-scrollbar {
	width: 6px;
}

.fibreglaze-testimonial-card .testimonial-quote::-webkit-scrollbar-track {
	background: transparent;
}

.fibreglaze-testimonial-card .testimonial-quote::-webkit-scrollbar-thumb {
	background: rgba(15, 48, 94, 0.45);
	border-radius: 999px;
}

.fibreglaze-testimonial-card .testimonial-quote::-webkit-scrollbar-thumb:hover {
	background: #0f305e;
}

.fibreglaze-testimonial-card .testimonial-quote:focus-visible {
	outline: 2px solid #0f305e;
	outline-offset: -2px;
}

@supports selector(:has(*)) {
	body:not(.elementor-editor-active):not(.elementor-editor-preview)
		.fibreglaze-testimonials-section:not(:has(.e-loop-item)) {
		display: none;
	}
}
