/* === Fincher Law: Trustindex grid widget (layout 16) styled like the site's review cards (.fl-review-con) === */

/* Oxygen shortcode wrapper around the widget must span the container */
.ct-shortcode:has(> .ti-widget[data-layout-id='16']) {
	width: 100%;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] {
	width: 100%;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container,
html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container * {
	font-family: "Open Sans", sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container {
	width: 100%;
	margin-bottom: 0 !important;
	padding-top: 24px;
}

/* Same grid as the review cards: 2 columns (1 on phones), equal-height rows */
html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-reviews-container .ti-reviews-container-wrapper {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(200px, 1fr));
	column-gap: 20px !important;
	row-gap: 24px !important;
	align-items: stretch;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container .ti-review-item {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	flex: none !important;
	padding: 0 !important;
	margin: 0 !important;
	transform: none !important;
}

/* Card */
html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item > .ti-inner {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px !important;
	height: 100% !important;
	padding: 47px 28px 47px 30px !important;
	border-style: none !important;
	border-width: 0 !important;
	border-radius: 0 !important;
	background-color: #fff !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Star row: the site's own star graphic for 5-star reviews, Trustindex's real stars otherwise */
html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item[data-rating='5.0'] > .ti-inner::before {
	content: "";
	display: block;
	flex: 0 0 auto;
	order: 0;
	width: 160px;
	max-width: 100%;
	aspect-ratio: 160 / 32;
	margin-bottom: 20px;
	background: url(/wp-content/uploads/2023/09/Frame-763.svg) no-repeat left center / contain;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item[data-rating='5.0'] .ti-stars {
	display: none !important;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item .ti-stars {
	order: 0;
	height: auto !important;
	margin: 0 0 20px !important;
	line-height: 1 !important;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item .ti-stars .ti-star {
	width: 30px !important;
	height: 30px !important;
}

/* Review text: full text, like .fl-review-content */
html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item .ti-review-content {
	order: 1;
	display: block !important;
	width: 100%;
	height: auto !important;
	max-height: none !important;
	margin-bottom: 16px;
	overflow: visible !important;
	-webkit-line-clamp: unset !important;
	color: #000;
	font-size: 16px !important;
	font-weight: 400;
	line-height: 28px !important;
	text-align: left;
	white-space: pre-line;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item .ti-read-more {
	display: none !important;
}

/* Reviewer line "- Name", like .fl-review-name */
html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item .ti-review-header {
	order: 2;
	width: 100%;
	align-items: center;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-header .ti-profile-img {
	display: none !important;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container .ti-name {
	color: #000;
	font-size: 16px !important;
	font-weight: 600;
	line-height: 28px !important;
	padding-right: 30px;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container .ti-name::before {
	content: "- ";
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container .ti-date {
	color: #000;
	font-size: 12px !important;
	line-height: 18px !important;
	opacity: 0.65;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-header .ti-platform-icon {
	top: 50%;
	transform: translateY(-50%);
}

/* Load more = site button (.att-button) */
html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-load-more-reviews-container {
	padding-top: 40px;
	text-align: center;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-load-more-reviews-container .ti-load-more-reviews-button {
	width: 100%;
	max-width: 281px;
	margin-top: 0;
	padding: 24px 40px;
	border: 1px solid #fff !important;
	border-radius: 60px !important;
	background: #7c1f2d !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700;
	line-height: 28px !important;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease !important;
}

html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-load-more-reviews-container .ti-load-more-reviews-button:hover,
html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-load-more-reviews-container .ti-load-more-reviews-button:focus-visible {
	border-color: #a7293b !important;
	background: #a7293b !important;
	background-color: #a7293b !important;
}

@media (max-width: 1568px) {
	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-load-more-reviews-container .ti-load-more-reviews-button {
		padding: 16px 24px;
	}
}

@media (max-width: 1179px) {
	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container {
		padding-top: 16px;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-reviews-container .ti-reviews-container-wrapper {
		column-gap: 16px !important;
		row-gap: 16px !important;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item > .ti-inner {
		padding: 23px 11px !important;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item[data-rating='5.0'] > .ti-inner::before,
	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item .ti-stars {
		margin-bottom: 10.2px !important;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item .ti-review-content {
		font-size: 13.33px !important;
		line-height: 20px !important;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container .ti-name {
		font-size: 13.33px !important;
		line-height: 20px !important;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-load-more-reviews-container .ti-load-more-reviews-button {
		max-width: 199px;
		font-size: 11.11px !important;
		line-height: 16px !important;
	}
}

@media (max-width: 767px) {
	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-load-more-reviews-container .ti-load-more-reviews-button {
		max-width: 85%;
		padding: 18px 32px;
		font-size: 16px !important;
	}
}

@media (max-width: 479px) {
	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-widget-container {
		padding-top: 32px;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-reviews-container .ti-reviews-container-wrapper {
		grid-template-columns: repeat(1, minmax(200px, 1fr));
		row-gap: 32px !important;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item > .ti-inner {
		padding: 24px 20px !important;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item[data-rating='5.0'] > .ti-inner::before,
	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item .ti-stars {
		margin-bottom: 0 !important;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-review-item .ti-review-content {
		margin-bottom: 0;
	}

	html body .ti-widget[data-layout-id='16'][data-set-id='ligth-border'] .ti-load-more-reviews-container .ti-load-more-reviews-button {
		max-width: 92%;
	}
}
