/*--------------------------------------------------------------
# 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;
		}
	}
}

/*--------------------------------------------------------------
# Variant: media-partnership
# Used on the Birthday LP. Replaces the partnership info card
# with two circle logos + title and adds an "As Seen On" media
# mentions card on desktop.
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Variant: partnership-inline
# Stats card on the left + a single partnership card on the right
# (title above, two-circle logo below). No second row, no "As Seen On".
--------------------------------------------------------------*/
.trust-cards-wrap.is-partnership-inline {
	max-width: 1200px;

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

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

		p {
			margin-bottom: 0;
		}
	}

	.trust-mp-circles-img {
		display: block;
		height: 66px;
		width: auto;
		max-width: 100%;
	}

	.trust-mp-title {
		font-size: 18px;
		line-height: 1.2;
		font-weight: 500;
		color: var(--tc-white);
		margin: 0;
		max-width: 360px;
	}

	/* Mobile partnership block — circles above, title below */
	.trust-pi-partnership-mobile {
		padding: 28px 24px 24px;
		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;
		}
	}

	/* Desktop inline partnership card — title above, circles below, centered */
	@media (min-width: 768px) {
		.trust-pi-partnership {
			height: 124px;
			padding: 18px 24px;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			gap: 12px;
			text-decoration: none;
			text-align: center;
			color: inherit;
			transition: border-color 0.2s ease;

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

		.trust-pi-partnership .trust-mp-circles-img {
			height: 40px;
		}

		.trust-pi-partnership .trust-mp-title {
			font-size: 20px;
			line-height: 1.2;
			max-width: none;
		}
	}

	@media (min-width: 992px) {
		.trust-pi-partnership .trust-mp-title {
			font-size: 22px;
		}

		.trust-pi-partnership .trust-mp-circles-img {
			height: 44px;
		}
	}
}

.trust-cards-wrap.is-media-partnership {
	max-width: 1200px;

	/* Mobile: combined card uses default `.trust-card-combined` stats-row;
	   only the partnership block below is overridden. */

	.trust-mp-partnership {
		padding: 28px 24px 24px;
		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-mp-circles-img {
		display: block;
		height: 66px;
		width: auto;
		max-width: 100%;
	}

	.trust-mp-title {
		font-size: 18px;
		line-height: 1.2;
		font-weight: 500;
		color: var(--tc-white);
		margin: 0;
		max-width: 360px;
	}

	/* Desktop: stats + as-seen row, partnership card below */
	@media (min-width: 768px) {
		.trust-mp-desktop {
			flex-direction: column;
			align-items: center;
			gap: 18px;
			width: 100%;
		}

		.trust-mp-row {
			display: grid;
			grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
			gap: 16px;
			width: 100%;
		}

		.trust-mp-partnership-card {
			width: 100%;
			max-width: 548px;
			padding: 25px 42px 19px 40px;
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 15px;
			text-decoration: none;
			text-align: center;
			color: inherit;
			transition: border-color 0.2s ease;

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

		.trust-mp-circles-img {
			height: 68px;
		}

		.trust-mp-title {
			font-size: 24px;
			line-height: 1;
			max-width: none;
			white-space: nowrap;
		}
	}

	/* As Seen On card — vertical: label / divider / logos row */
	.trust-as-seen {
		min-height: 124px;
		display: flex;
		flex-direction: column;
		gap: 14px;
		padding: 18px 22px 22px 24px;

		.trust-as-seen__label {
			font-size: 14px;
			font-weight: 500;
			line-height: 1;
			color: #e3e0e0;
			padding-bottom: 14px;
			border-bottom: 1px solid var(--tc-border);
		}

		.trust-as-seen__logos {
			list-style: none;
			margin: 0;
			padding: 0;
			display: grid;
			grid-template-columns: repeat(5, minmax(0, 1fr));
			align-items: center;
			gap: 14px;
			flex: 1;

			li {
				display: flex;
				align-items: center;
				justify-content: center;
				min-width: 0;
			}

			img {
				max-height: 22px;
				max-width: 100%;
				width: auto;
				height: auto;
				display: block;
				opacity: 0.89;
				filter: brightness(0) invert(1);
			}
		}

		@media (min-width: 992px) {
			min-height: 124px;
			padding: 20px 22px 25px 27px;

			.trust-as-seen__label {
				font-size: 16px;
				padding-bottom: 15px;
			}

			.trust-as-seen__logos {
				gap: 21px;

				img {
					max-height: 28px;
				}
			}
		}
	}
}
