/*
 * ParentRoute
 * Trust Bar
 */

/* =========================================================
   Section
   ========================================================= */

.pr-trust {
	--pr-trust-accent: #6f8979;
	--pr-trust-text: #18201c;
	--pr-trust-muted: rgba(24, 32, 28, 0.63);
	--pr-trust-border: rgba(24, 32, 28, 0.1);
	--pr-trust-divider: rgba(24, 32, 28, 0.09);
	--pr-trust-background: #f7f8f7;
	--pr-trust-icon-background: rgba(111, 137, 121, 0.13);
	--pr-trust-radius: 24px;

	position: relative;
	padding: 40px 0;
	background: #ffffff;
	color: var(--pr-trust-text);
}

/* =========================================================
   Main grid
   ========================================================= */

.pr-trust__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	padding: 15px;
	border: 1px solid var(--pr-trust-border);
	border-radius: var(--pr-trust-radius);
	background: #fff;
	box-shadow:
		0 18px 40px rgba(24, 34, 29, 0.06);
}

/* =========================================================
   Trust item
   ========================================================= */

.pr-trust__item {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
	padding: 12px 16px;
}

.pr-trust__item + .pr-trust__item {
	border-left: 1px solid var(--pr-trust-divider);
}

/* =========================================================
   Icon
   ========================================================= */

.pr-trust__icon {
	display: grid;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: var(--pr-trust-icon-background);
	color: var(--pr-trust-accent);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}

.pr-trust__icon svg {
	display: block;
	width: 21px;
	height: 21px;
}

/* =========================================================
   Text
   ========================================================= */

.pr-trust__content {
	min-width: 0;
}

.pr-trust h2 {
	margin: 0;
	color: var(--pr-trust-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.pr-trust p {
	margin: 3px 0 0;
	color: var(--pr-trust-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

/* =========================================================
   Reveal animation
   Faithful to the original section
   ========================================================= */

.pr-trust__grid.pr-reveal {
	transition:
		opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
		transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   Tablet
   Original breakpoint: 989px
   ========================================================= */

@media screen and (max-width: 989px) {
	.pr-trust__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pr-trust__item + .pr-trust__item {
		border-left: 0;
	}

	.pr-trust__item:nth-child(2n) {
		border-left: 1px solid var(--pr-trust-divider);
	}

	.pr-trust__item:nth-child(n + 3) {
		border-top: 1px solid var(--pr-trust-divider);
	}
}

/* =========================================================
   Mobile
   Original breakpoint: 599px
   ========================================================= */

@media screen and (max-width: 599px) {
	.pr-trust {
		padding: 16px 0;
	}

	.pr-trust__grid {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 12px;
	}

	.pr-trust__item {
		padding: 14px 12px;
	}

	.pr-trust__item + .pr-trust__item,
	.pr-trust__item:nth-child(2n),
	.pr-trust__item:nth-child(n + 3) {
		border-left: 0;
		border-top: 1px solid rgba(24, 32, 28, 0.08);
	}
}

/* =========================================================
   Very small screens
   ========================================================= */

@media screen and (max-width: 380px) {
	.pr-trust__item {
		gap: 11px;
		padding-right: 8px;
		padding-left: 8px;
	}

	.pr-trust__icon {
		width: 40px;
		height: 40px;
	}

	.pr-trust h2 {
		font-size: 13px;
	}

	.pr-trust p {
		font-size: 11px;
	}
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.pr-trust .pr-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}