/**
 * Reusable Action Gateway pattern.
 *
 * These values are intentionally self-contained so the pattern has the same
 * appearance on ordinary pages, in the editor and on modern homepages.
 */
.sfl-action-gateway {
	--sfl-deep-blue: #003982;
	--sfl-grey: #f1f1f1;
	--sfl-yellow: #ffe627;
	background: #fff;
	box-sizing: border-box;
	padding: 54px 0;
}

.sfl-action-gateway *,
.sfl-action-gateway *::before,
.sfl-action-gateway *::after {
	box-sizing: border-box;
}

.sfl-action-gateway__grid,
.sfl-action-gateway .wp-block-columns.sfl-action-gateway__grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 0;
	margin-top: 0;
}

.sfl-action-gateway__inner,
.wp-block-group.sfl-action-gateway > .sfl-action-gateway__grid,
.wp-block-group.sfl-action-gateway > .wp-block-group__inner-container {
	margin-left: auto;
	margin-right: auto;
	max-width: 1440px;
	padding-left: 16px;
	padding-right: 16px;
}

.sfl-action-gateway__grid > .wp-block-column {
	margin: 0;
}

.wp-block-group.sfl-action-gateway > .wp-block-group__inner-container > .sfl-action-gateway__grid {
	margin-left: 0;
	margin-right: 0;
}

.sfl-action-gateway__tile {
	align-items: center;
	background: var(--sfl-grey, #f1f1f1);
	color: var(--sfl-deep-blue, #003982);
	display: flex;
	gap: 18px;
	height: 100%;
	min-height: 120px;
	padding: 24px;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}

.sfl-action-gateway__tile:hover,
.sfl-action-gateway__tile:focus-visible {
	background: var(--sfl-yellow, #ffe627);
	color: var(--sfl-deep-blue, #003982);
	text-decoration: none;
	transform: translateY(-3px);
}

.sfl-action-gateway__tile:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.sfl-action-gateway__tile .fa {
	flex: 0 0 auto;
	font-size: 38px;
}

.sfl-action-gateway__tile > span {
	display: flex;
	flex-direction: column;
}

.sfl-action-gateway__tile strong {
	font-size: 22px;
}

@media screen and (max-width: 991px) {
	.sfl-action-gateway__grid,
	.sfl-action-gateway .wp-block-columns.sfl-action-gateway__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 767px) {
	.sfl-action-gateway__grid,
	.sfl-action-gateway .wp-block-columns.sfl-action-gateway__grid {
		grid-template-columns: 1fr;
	}
}
