/*
 * Category coverage ([bdn_category_coverage]) — category pages, next to the globe picture.
 * Same palette as the home sections: green #127A71, yellow underline #FFC400, slate #2B4448.
 * The title takes the theme's H2 size, like the other section titles.
 */

.bfi-cov {
	--bfi-cov-ink: #10282C;
	--bfi-cov-muted: #5C6B6D;
	--bfi-cov-green: #127A71;
	--bfi-cov-green-2: #28BDB1;
	--bfi-cov-line: #ECE8E2;
	--bfi-cov-track: #F1EEE9;
	font-family: Poppins, sans-serif;
	color: var(--bfi-cov-ink);
	text-align: left;
	max-width: 620px;
}

.bfi-cov .bfi-cov__eyebrow {
	margin: 0 0 14px;
	padding: 0;
	color: var(--bfi-cov-green);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.bfi-cov .bfi-cov__title {
	margin: 0;
	padding: 0;
	color: var(--bfi-cov-ink);
	text-align: left;
}
.bfi-cov__mark {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}
.bfi-cov__mark::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -.12em;
	height: .24em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 276 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9.5C46.1081 3.00787 164.955 -0.376652 274 5.06167' fill='none' stroke='%23FFC400' stroke-width='5.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
}
.bfi-cov .bfi-cov__intro {
	margin: 18px 0 0;
	padding: 0;
	color: var(--bfi-cov-muted);
	font-size: 18px;
	line-height: 1.6;
}

/* ── "Companies by region" card ──────────────────────────────────── */
.bfi-cov__card {
	margin-top: 32px;
	padding: 24px 28px 26px;
	background: #fff;
	border: 1px solid var(--bfi-cov-line);
	border-radius: 18px;
	box-shadow: 0 6px 18px rgba(16, 40, 44, .05), 0 1px 2px rgba(16, 40, 44, .04);
}
.bfi-cov__card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 18px;
}
.bfi-cov .bfi-cov__card-title {
	margin: 0;
	padding: 0;
	color: var(--bfi-cov-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}
.bfi-cov .bfi-cov__card-meta {
	margin: 0;
	padding: 0;
	color: var(--bfi-cov-muted);
	font-size: 13px;
	line-height: 1.4;
}
.bfi-cov .bfi-cov__rows {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfi-cov .bfi-cov__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 12px;
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.3;
}
.bfi-cov .bfi-cov__row::before {
	display: none; /* theme list bullets */
}
.bfi-cov__name {
	color: var(--bfi-cov-ink);
	font-weight: 500;
}
.bfi-cov__num {
	color: var(--bfi-cov-ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: right;
}
.bfi-cov__bar {
	grid-column: 1 / -1;
	height: 8px;
	overflow: hidden;
	background: var(--bfi-cov-track);
	border-radius: 8px;
}
.bfi-cov__bar > span {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--bfi-cov-green), var(--bfi-cov-green-2));
	border-radius: 8px;
	transform: scaleX(var(--bfi-cov-v, 0));
	transform-origin: left center;
	transition: transform .9s cubic-bezier(.2, .7, .2, 1);
	transition-delay: calc(var(--bfi-cov-i, 0) * 80ms);
}
/* The script grows the bars when the card scrolls into view (no script = bars shown). */
.bfi-cov--wait .bfi-cov__bar > span {
	transform: scaleX(0);
}
@media (prefers-reduced-motion: reduce) {
	.bfi-cov__bar > span {
		transition: none;
	}
}

/* ── The row: globe left, text right; the theme's "View Countries List" button under the card ── */
.l-section:has(.bfi-cov) .w-popup {
	margin-top: 28px;
}
.l-section:has(.bfi-cov) .g-cols {
	align-items: center;
}

@media (max-width: 1024px) {
	.bfi-cov {
		max-width: none;
	}
}
@media (max-width: 767px) {
	.bfi-cov .bfi-cov__eyebrow {
		margin-bottom: 12px;
		font-size: 11px;
	}
	.bfi-cov__mark {
		white-space: normal;
	}
	.bfi-cov .bfi-cov__title {
		-webkit-hyphens: auto;
		hyphens: auto;
		overflow-wrap: break-word;
	}
	.bfi-cov .bfi-cov__intro {
		margin-top: 14px;
		font-size: 16px;
	}
	.bfi-cov__card {
		margin-top: 24px;
		padding: 20px 18px 22px;
	}
	.bfi-cov .bfi-cov__row {
		font-size: 14px;
	}
	/* Globe picture: smaller and centred above the text. */
	.l-section:has(.bfi-cov) .w-image {
		max-width: 300px;
		margin: 0 auto 8px;
	}
	.l-section:has(.bfi-cov) .w-popup .w-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ── "View Countries List" button: same pill as the home hero buttons, with an arrow ── */
.w-popup.bfi-cnt-popup > .w-popup-trigger.w-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 22px !important;
	border: 1px solid #F8C83E !important;
	border-radius: 100px !important;
	background: #F8C83E !important;
	color: #242820 !important;
	font-family: Poppins, sans-serif;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: none !important;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.w-popup.bfi-cnt-popup > .w-popup-trigger.w-btn::after {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .18s ease;
}
.w-popup.bfi-cnt-popup > .w-popup-trigger.w-btn:hover {
	background: #F0BC28 !important;
	border-color: #F0BC28 !important;
	transform: translateY(-1px);
}
.w-popup.bfi-cnt-popup > .w-popup-trigger.w-btn:hover::after {
	transform: translateX(2px);
}
.w-popup.bfi-cnt-popup > .w-popup-trigger.w-btn:focus-visible {
	outline: 2px solid #2B4448;
	outline-offset: 3px;
}
.w-popup.bfi-cnt-popup > .w-popup-trigger.w-btn::before {
	display: none; /* theme hover layer */
}

/* ── The popup box ──────────────────────────────────────────────────── */
.w-popup-wrap.bfi-cnt-popup .w-popup-box {
	overflow: hidden;
	border-radius: 24px !important;
	box-shadow: 0 30px 80px rgba(16, 40, 44, .28), 0 4px 12px rgba(16, 40, 44, .08);
}
.w-popup-wrap.bfi-cnt-popup .w-popup-box-content,
.w-popup-wrap.bfi-cnt-popup .w-popup-box-content > p {
	margin: 0;
	padding: 0 !important;
}
.w-popup-wrap.bfi-cnt-popup .w-popup-closer {
	top: 14px !important;
	right: 14px !important;
	z-index: 3;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 40px !important;
	min-width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	border-radius: 50%;
	background: #F5F3F0;
	color: #2B4448 !important;
	font-size: 18px;
	line-height: 1 !important;
	opacity: 1;
	transition: background .18s ease;
}
.w-popup-wrap.bfi-cnt-popup .w-popup-closer::before {
	line-height: 1;
}
.w-popup-wrap.bfi-cnt-popup .w-popup-closer:hover {
	background: #ECE8E2;
}

.bfi-cnt {
	display: flex;
	flex-direction: column;
	max-height: min(680px, calc(100vh - 64px));
	font-family: Poppins, sans-serif;
	color: #10282C;
	text-align: left;
}
.bfi-cnt__head {
	flex: 0 0 auto;
	padding: 28px 32px 16px;
	border-bottom: 1px solid #ECE8E2;
	background: #FAF9F7;
}
.bfi-cnt .bfi-cnt__title {
	margin: 0 56px 4px 0;
	padding: 0;
	color: #10282C;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}
.bfi-cnt .bfi-cnt__summary {
	margin: 0;
	padding: 0;
	color: #5C6B6D;
	font-size: 14px;
	line-height: 1.5;
}
.bfi-cnt__search {
	position: relative;
	display: block;
	margin: 18px 0 14px;
}
.bfi-cnt__search svg {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	fill: none;
	stroke: #5C6B6D;
	stroke-width: 2;
	stroke-linecap: round;
	pointer-events: none;
}
.bfi-cnt .bfi-cnt__search input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 16px 0 44px;
	border: 1px solid #D9D3C9;
	border-radius: 100px;
	background: #fff;
	color: #10282C;
	font-family: inherit;
	font-size: 15px;
	box-shadow: none;
}
.bfi-cnt .bfi-cnt__search input:focus {
	border-color: #127A71;
	outline: none;
	box-shadow: 0 0 0 3px rgba(18, 122, 113, .15);
}
.bfi-cnt__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.bfi-cnt__tabs::-webkit-scrollbar {
	display: none;
}
.bfi-cnt .bfi-cnt__tab {
	flex: 0 0 auto;
	margin: 0;
	padding: 7px 14px;
	border: 1px solid #E2DDD5;
	border-radius: 100px;
	background: #fff;
	color: #2B4448;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.bfi-cnt .bfi-cnt__tab span {
	color: #8A9597;
	font-weight: 400;
}
.bfi-cnt .bfi-cnt__tab:hover {
	border-color: #BFE5E1;
	background: #EEF8F7;
}
.bfi-cnt .bfi-cnt__tab.is-active {
	border-color: #127A71;
	background: #127A71;
	color: #fff;
}
.bfi-cnt .bfi-cnt__tab.is-active span {
	color: rgba(255, 255, 255, .75);
}
.bfi-cnt .bfi-cnt__tab:focus-visible {
	outline: 2px solid #2B4448;
	outline-offset: 2px;
}

.bfi-cnt__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 32px 24px; /* no top padding: the sticky continent headings stop at the padding edge */
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
}
.bfi-cnt__land[hidden],
.bfi-cnt__row[hidden],
.bfi-cnt__empty[hidden] {
	display: none !important;
}
.bfi-cnt .bfi-cnt__land-title {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 18px 0 10px;
	background: #fff;
	color: #10282C;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
}
.bfi-cnt .bfi-cnt__land-title span {
	color: #5C6B6D;
	font-size: 13px;
	font-weight: 400;
}
.bfi-cnt .bfi-cnt__rows {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bfi-cnt .bfi-cnt__row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 8px 12px;
	border-radius: 12px;
	background: #FAF9F7;
	font-size: 14px;
	line-height: 1.3;
}
.bfi-cnt .bfi-cnt__row::before {
	display: none;
}
/* Theme flags are 32 px squares: shown as 24 px circles. */
.bfi-cnt__flag {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	overflow: hidden;
	border-radius: 50%;
	background: #ECE8E2;
	box-shadow: inset 0 0 0 1px rgba(16, 40, 44, .08);
}
.bfi-cnt__flag .flag {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px !important;
	height: 32px !important;
	margin: -16px 0 0 -16px !important;
	transform: scale(1.05);
}
.bfi-cnt__flag.is-empty .flag {
	display: none;
}
.bfi-cnt__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: #10282C;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.bfi-cnt__num {
	flex: 0 0 auto;
	color: #5C6B6D;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}
.bfi-cnt .bfi-cnt__empty {
	margin: 0;
	padding: 32px 0 8px;
	color: #5C6B6D;
	font-size: 15px;
	text-align: center;
}

@media (max-width: 600px) {
	.w-popup-wrap.bfi-cnt-popup .w-popup-box {
		width: calc(100vw - 24px) !important;
		max-width: none !important;
		border-radius: 20px !important;
	}
	.bfi-cnt {
		max-height: calc(100vh - 48px);
	}
	.bfi-cnt__head {
		padding: 22px 18px 14px;
	}
	.bfi-cnt .bfi-cnt__title {
		font-size: 19px;
	}
	/* Phones: one line of tabs that scrolls sideways. */
	.bfi-cnt__tabs {
		flex-wrap: nowrap;
		margin: 0 -18px;
		padding: 0 18px 2px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.bfi-cnt__body {
		padding: 0 18px 20px;
	}
	.bfi-cnt .bfi-cnt__rows {
		grid-template-columns: minmax(0, 1fr);
	}
}
