/* Home "Happy Laymouners" section, [laymoun_reviews] (client feedback 9 #4; app
   repo docs/plans/74 and 76). The section keeps the theme's testimonial slider
   (`ftc-sb-testimonial testimonial-h10`: the carousel, its arrows and dots) and
   draws each slide as a card. Logical properties, so Arabic mirrors. */

/* ── Cards of one height (owner, 2026-10-16: "same height and a nice style") ──
   One card per slide: a green outline, a quote mark, the text, then a footer
   with the name and, on reviews, the product and the stars. The theme's speech
   bubble (`.info` border, its bottom edge split around a photo) is not used: no
   slide has a photo. The carousel's track is a flex row, so every card is as
   tall as the tallest and the footers line up. */
.ftc-sb-testimonial.lm-reviews .owl-stage {
	display: flex;
}
.ftc-sb-testimonial.lm-reviews .owl-item {
	display: flex;
	float: none; /* the carousel floats its items; the flex row places them */
	height: auto; /* the theme folds every slide but the visible ones to 0 (style.css) */
}
.ftc-sb-testimonial.lm-reviews .testimonial-content {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 26px 28px 20px;
	border: 1px solid var(--secondary, #186034);
	border-radius: 18px;
	background: #fff;
	text-align: start;
}
.ftc-sb-testimonial.lm-reviews .testimonial-content .father-info {
	flex: 1 1 auto;
}
/* The quote mark, on the card rather than on the text (the text is clamped below). */
.ftc-sb-testimonial.lm-reviews .testimonial-content .father-info::before {
	content: "\f10d";
	display: block;
	margin-block-end: 12px;
	font-family: "FontAwesome";
	font-size: 22px;
	line-height: 1;
	color: #c8dcc0;
}
/* The theme's bubble and its quote mark: off. */
.ftc-sb-testimonial.lm-reviews .testimonial-content .info,
.ftc-sb-testimonial.lm-reviews .active .testimonial-content .info {
	/* 4px inside the clip and 4px back out: the text stays in line with the card
	   and a glyph's edge has room where `overflow: hidden` stays (see the
	   overflow-clip-margin rule below, which is the fix in Chrome). */
	padding: 0 4px !important;
	margin: 0 -4px !important;
	border: 0 !important;
	border-radius: 0;
	text-align: start !important;
	text-transform: none; /* sentences, not the Customizer's capitalised `body` */
	font-size: 15px;
	line-height: 1.7;
	color: #333;
	/* At most 8 lines, so one long review does not stretch every card; the whole
	   review is on the product page. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 8;
	overflow: hidden;
}
/* Chrome's `overflow: hidden` here still cut the edge of a line's first glyph
   ("I've", "arrive", "produce"; the 4px above did not help, app repo
   docs/plans/77). `overflow: clip` keeps the 8-line clamp and its margin lets the
   glyphs paint whole. Browsers without overflow-clip-margin keep `hidden`. */
@supports (overflow-clip-margin: 6px) {
	.ftc-sb-testimonial.lm-reviews .testimonial-content .info,
	.ftc-sb-testimonial.lm-reviews .active .testimonial-content .info {
		overflow: clip;
		overflow-clip-margin: 6px;
	}
}
.ftc-sb-testimonial.lm-reviews .testimonial-content .info::before,
.ftc-sb-testimonial.lm-reviews .active .testimonial-content .info::before {
	content: none !important;
	display: none !important;
}
/* The footer: the name, then the product under it; the stars at the other end. */
.ftc-sb-testimonial.lm-reviews .testimonial-content .content-info {
	display: block !important;
	width: 100%;
	margin: 18px 0 0 !important;
	padding-block-start: 14px;
	border-block-start: 1px solid #e3ece0;
}
.ftc-sb-testimonial.lm-reviews .content-info .testimonial-info {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "name rating" "byline rating";
	align-items: center;
	column-gap: 12px;
	margin: 0 !important;
	float: none !important;
	text-align: start !important;
}
.testimonial-h10.ftc-sb-testimonial.lm-reviews .testimonial-content .name {
	grid-area: name;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
}
.testimonial-h10.ftc-sb-testimonial.lm-reviews .testimonial-content .name span,
.testimonial-h10.ftc-sb-testimonial.lm-reviews .testimonial-content .name a {
	color: #333;
}
.ftc-sb-testimonial.lm-reviews .testimonial-content .byline {
	grid-area: byline;
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.4;
}
.ftc-sb-testimonial.lm-reviews .testimonial-content .byline a {
	color: #6b7a6d;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ftc-sb-testimonial.lm-reviews .testimonial-content .byline a:hover {
	color: var(--secondary, #186034);
}

/* Stars: five grey, the earned ones gold on top (width = rating × 20%). The
   theme has no style for the slider's `.rating`, since its testimonials carry
   none; the box's aria-label reads the rating to screen readers. */
.ftc-sb-testimonial.lm-reviews .testimonial-content .rating {
	grid-area: rating;
	position: relative;
	display: inline-block;
	margin: 0;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 2px;
	color: #d9ddd5;
	white-space: nowrap;
}
.ftc-sb-testimonial.lm-reviews .testimonial-content .rating::before {
	content: "★★★★★";
}
.ftc-sb-testimonial.lm-reviews .testimonial-content .rating span {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	overflow: hidden;
	color: #f2b01e;
}
.ftc-sb-testimonial.lm-reviews .testimonial-content .rating span::before {
	content: "★★★★★";
}

/* The arrows right beside the dots, « • • », as under Featuring Products (owner
   2026-10-16, app repo docs/plans/77; plan 76 had put them at the cards' two
   edges). The theme pins them 51px either side of the centre, which fits two dots
   only (the dots row grows 25px per page), so here the arrows and the dots are one
   centred flex row under the cards instead: the carousel wraps after the cards and
   `.owl-nav` steps aside (display: contents), so its two arrows sit on either side
   of the dots, however many there are. The row follows the page direction, so in
   Arabic "previous" is on the right, as under Featuring Products. */
.ftc-sb-testimonial.lm-reviews.owl-loaded {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	column-gap: 12px;
	row-gap: 22px; /* air between the cards and the dots (they touched) */
}
.ftc-sb-testimonial.lm-reviews .owl-stage-outer {
	flex: 0 0 100%;
	min-width: 0;
}
.ftc-sb-testimonial.lm-reviews .owl-nav:not(.disabled) {
	display: contents;
}
.ftc-sb-testimonial.lm-reviews .owl-nav .owl-prev,
.ftc-sb-testimonial.lm-reviews .owl-nav .owl-next {
	position: static;
	transform: none;
	margin: 0 !important;
	padding: 4px 8px;
	font-size: 18px;
}
.ftc-sb-testimonial.lm-reviews .owl-nav .owl-prev {
	order: 1;
}
.ftc-sb-testimonial.lm-reviews .owl-dots {
	order: 2;
	flex: 0 1 auto;
	min-width: 0; /* many pages on a phone: the dots wrap, the arrows stay beside them */
	/* the theme centres the dots itself (left/right 50% + translate); the row does now */
	left: auto;
	right: auto;
	top: 0;
	transform: none;
}
.ftc-sb-testimonial.lm-reviews .owl-nav .owl-next {
	order: 3;
}

/* Nothing to show: hide the whole section, heading included (the heading is a
   separate block of the same page row). */
.vc_row:has(.lm-reviews--empty) {
	display: none !important;
}
.vc_row:has(.lm-reviews--empty) + .vc_row-full-width {
	display: none;
}
