/*--------------------------------------------------------------
# Trust Cards — self-contained reusable social proof component
# Variables can be overridden by any parent scope.
--------------------------------------------------------------*/

.trust-cards-wrap {
	--tc-white: #fff;
	--tc-muted: #b3afa9;
	--tc-border: rgba(255, 255, 255, 0.12);
	--tc-accent: rgba(243, 152, 31, 0.38);
	--tc-max-width: 798px;

	width: 100%;
	max-width: var(--tc-max-width);
}

.trust-cards-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 13px;

	@media (min-width: 768px) {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		gap: 16px;
	}

	p {
		margin-bottom: 0;
	}
}

.trust-card {
	border-radius: 16px;
	border: 1px solid var(--tc-border);
	background: rgba(25, 24, 23, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* Combined card (mobile) */
.trust-card-combined {
	.trust-stats-row {
		display: flex;
		border-bottom: 1px solid var(--tc-border);

		.trust-stat {
			flex: 1;
			position: relative;
			padding: 15px 10px;
			text-align: center;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			gap: 4px;

			&::after {
				content: "";
				position: absolute;
				right: 0;
				top: 50%;
				transform: translateY(-50%);
				height: 90%;
				width: 1px;
				background: linear-gradient(
					180deg,
					rgba(255, 255, 255, 0) 0%,
					rgba(255, 255, 255, 0.2) 50%,
					rgba(255, 255, 255, 0) 100%
				);
			}

			&:last-child::after {
				display: none;
			}

			p {
				font-size: 11px;
				line-height: 1.2;
				color: var(--tc-muted);

				span {
					display: block;
					font-size: 16px;
					font-weight: 600;
					color: var(--tc-white);
					margin-bottom: 2px;
				}
			}

			.trust-stat-icon {
				width: 20px;
				height: 20px;
				margin-bottom: 2px;
			}
		}

		.trust-stat-trustpilot {
			flex: 1.2;
			padding: 10px;

			.trustpilot-widget {
				height: 100px;
				transform: scale(0.85);
				transform-origin: center;
			}
		}
	}
}

.trust-partnership-mobile {
	padding: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 21px;
	text-decoration: none;
	text-align: center;
	color: inherit;

	&:hover,
	&:focus-visible {
		color: inherit;
		text-decoration: none;
	}

	.trust-partnership-mobile-logo {
		width: 120px;
		height: 64px;
		object-fit: cover;
	}

	.trust-partnership-content {
		display: flex;
		flex-direction: column;
		gap: 3px;
	}

	h3 {
		font-size: 18px;
		line-height: normal;
		font-weight: 500;
		color: var(--tc-white);
		margin: 0;
	}

	p {
		font-size: 12px;
		line-height: 1.4;
		color: var(--tc-muted);
		margin: 0;

		strong {
			color: #e3e0e0;
			font-weight: 600;
		}
	}
}

/* Stats card (desktop) */
.trust-card-stats {
	height: 124px;
	grid-template-columns: 1.1fr 1fr 1fr;

	.trust-stat {
		position: relative;
		padding: 10px 15px;
		text-align: center;

		&::after {
			content: "";
			position: absolute;
			right: 0;
			top: 50%;
			transform: translateY(-50%);
			height: 75%;
			width: 1px;
			background: linear-gradient(
				269.86deg,
				rgba(116, 116, 116, 0.2) 0.01%,
				rgba(255, 255, 255, 0.2) 99.99%
			);
		}

		&:last-child::after {
			display: none;
		}

		p {
			font-size: 13px;
			line-height: 1;
			font-weight: 500;
			color: var(--tc-white);
		}

		span {
			display: block;
			font-size: 20px;
			font-weight: 600;
			line-height: 1;
			color: var(--tc-white);
		}
	}

	.trust-stat-trustpilot {
		.trustpilot-widget {
			max-height: 85px;
		}
	}

	.trust-stat-icon {
		width: 20px;
		height: 20px;
		margin-bottom: 5px;
	}

	.trust-stat-customers,
	.trust-stat-rewards {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 6px;
	}

	.trust-stat-customers p span,
	.trust-stat-rewards p span {
		margin-bottom: 4px;
	}

	.trust-stat-rewards p {
		max-width: 145px;
	}

	.trust-stat-customers p {
		max-width: 140px;
	}

	@media (min-width: 992px) {
		.trust-stat {
			p {
				font-size: 16px;
			}

			span {
				font-size: 24px;
			}
		}

		.trust-stat-icon {
			width: 30px;
			height: 30px;
		}
	}
}

/* Partnership card (desktop) */
.trust-card-partnership {
	padding: 17px 20px;
	flex-direction: column;
	gap: 11px;
	transition: border-color 0.2s ease;
	height: 124px;
	text-decoration: none;
	text-align: left;
	color: inherit;

	&:hover,
	&:focus-visible {
		border-color: var(--tc-accent);
		text-decoration: none;
		color: inherit;
	}

	.trust-partnership-logo {
		width: 85px;
		height: auto;
	}

	h3 {
		font-size: 12px;
		line-height: 1.2;
		font-weight: 600;
		color: #e3e0e0;
		margin-bottom: 6px;
	}

	p {
		font-size: 7px;
		line-height: 1.4;
		color: var(--tc-muted);
		max-width: 290px;
	}

	@media (min-width: 992px) {
		h3 {
			font-size: 15px;
		}

		p {
			font-size: 8px;
		}
	}
}
