/*
 * Footer "Our Offices": four offices as compact soft cards in a 2 x 2 grid (flag on the
 * left, country + address stacked beside it). Loaded on every page, after the
 * homepage/finance bundles, so these higher-specificity rules win everywhere.
 */
body.bpo-innovature-theme .bpo-footer .bpo-footer__offices-panel {
	gap: 14px !important;
}

body.bpo-innovature-theme .bpo-footer .bpo-footer__office-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 8px !important;
	align-items: stretch !important;
}

body.bpo-innovature-theme .bpo-footer .bpo-footer__office-grid > .bpo-footer__office-card {
	display: block !important;
	grid-column: auto !important;
	min-height: 0 !important;
	padding: 10px 14px !important;
	border: 1px solid rgba(0, 53, 162, 0.07) !important;
	border-radius: 14px !important;
	background: rgba(255, 255, 255, 0.7) !important;
	box-shadow: none !important;
	align-self: stretch !important;
	transition: border-color 0.25s ease, background-color 0.25s ease !important;
}

/* Offices with a map link: the card lights up and the address turns blue on hover. */
body.bpo-innovature-theme .bpo-footer .bpo-footer__office-grid > a.bpo-footer__office-card:hover,
body.bpo-innovature-theme .bpo-footer .bpo-footer__office-grid > a.bpo-footer__office-card:focus-visible {
	border-color: rgba(0, 53, 162, 0.22) !important;
	background: #ffffff !important;
	transform: none !important;
}

body.bpo-innovature-theme .bpo-footer a.bpo-footer__office-card .bpo-footer__office-address {
	transition: color 0.25s ease !important;
}

body.bpo-innovature-theme .bpo-footer a.bpo-footer__office-card:hover .bpo-footer__office-address,
body.bpo-innovature-theme .bpo-footer a.bpo-footer__office-card:focus-visible .bpo-footer__office-address {
	color: var(--bpo-color-secondary) !important;
}

/* Flag (unchanged size) on the left; country and address stacked on the right. */
body.bpo-innovature-theme .bpo-footer .bpo-footer__office-copy {
	display: grid !important;
	grid-template-columns: 34px minmax(0, 1fr) !important;
	gap: 2px 12px !important;
}

body.bpo-innovature-theme .bpo-footer .bpo-footer__office-title {
	display: contents !important;
}

body.bpo-innovature-theme .bpo-footer .bpo-footer__office-title > .bpo-footer__flag {
	grid-row: 1 / span 2;
	align-self: start;
	margin-top: 0;
}

body.bpo-innovature-theme .bpo-footer .bpo-footer__office-title > span:last-child {
	grid-column: 2;
	color: var(--bpo-color-secondary);
	font-weight: 600;
	line-height: 1.5;
}

body.bpo-innovature-theme .bpo-footer .bpo-footer__office-address {
	grid-column: 2;
	margin: 0 !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
}

@media (max-width: 767px) {
	body.bpo-innovature-theme .bpo-footer .bpo-footer__office-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.bpo-innovature-theme .bpo-footer .bpo-footer__office-grid > .bpo-footer__office-card {
		text-align: left !important;
	}
}
