/* Sector tabs. Class agribex-tabs on the Divi Tabs module.
   Icon: in the tab Title, put an image before the label:
   <img src="https://agribex.be/wp-content/uploads/....svg" alt=""> Akkerbouw
   Use a single-color icon on a transparent background. */

.agribex-tabs.et_pb_tabs,
.agribex-tabs .et_pb_tabs_controls,
.agribex-tabs .et_pb_all_tabs,
.agribex-tabs .et_pb_tab {
	border: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.agribex-tabs .et_pb_tabs_controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 0 !important;
	margin: 0;
	list-style: none;
}

.agribex-tabs .et_pb_tabs_controls::before,
.agribex-tabs .et_pb_tabs_controls::after {
	display: none !important;
	content: none !important;
}

.agribex-tabs .et_pb_tab_nav_item {
	float: none !important;
	display: flex;
	align-items: center;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #fff !important;
	border-radius: 999px !important;
	background: transparent !important;
	overflow: hidden;
}

.agribex-tabs .et_pb_tab_nav_item_link {
	display: inline-flex !important;
	align-items: center;
	gap: 0.75rem;
	width: auto;
	margin: 0;
	padding: 0.85rem 1.5rem !important;
	border: 0 !important;
	background: transparent !important;
	color: #fff !important;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none !important;
	white-space: nowrap;
}

.agribex-tabs .et_pb_tab_nav_item:not(.et_pb_tab_active):hover {
	background: rgba(255, 255, 255, 0.12) !important;
}

.agribex-tabs .et_pb_tab_nav_item.et_pb_tab_active {
	border-color: var(--agribex-green-darker) !important;
	background: var(--agribex-green-darker) !important;
}

.agribex-tabs .et_pb_tab_nav_item_link img {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	flex: 0 0 auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.agribex-tabs .et_pb_tab_active .et_pb_tab_nav_item_link img {
	filter: brightness(0) saturate(100%) invert(70%) sepia(15%) saturate(1200%) hue-rotate(40deg) brightness(99%);
}

.agribex-tabs .et_pb_all_tabs {
	padding: 0 !important;
}

.agribex-tabs .et_pb_tab {
	padding: 2rem 0 0 !important;
}

.agribex-tabs .et_pb_tab_content,
.agribex-tabs .et_pb_tab_content p {
	color: inherit;
}

/* Custom sector tabs. [agribex_sectors] in the first row. Following rows are the panels. */
.agribex-sectors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.agribex-sectors__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0.85rem 1.5rem;
	border: 1px solid #fff;
	border-radius: 0.9375rem;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
}

.agribex-sectors__tab:hover {
	background: rgba(255, 255, 255, 0.12);
}

.agribex-sectors__tab.is-active {
	border-color: var(--agribex-green-darker);
	background: var(--agribex-green-darker);
}

.agribex-sectors__tab img {
	display: block;
	width: auto;
	height: auto;
	max-height: 1.5625rem;
	flex: 0 0 auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.agribex-sectors__tab.is-active img {
	filter: brightness(0) saturate(100%) invert(70%) sepia(15%) saturate(1200%) hue-rotate(40deg) brightness(99%);
}

.agribex-sector-block:not(.is-ready) > .et_pb_row:nth-child(n + 3) {
	display: none !important;
}

.agribex-sector-block.is-ready > .et_pb_row.is-sector-panel:not(.is-active) {
	display: none !important;
}

@media (max-width: 40rem) {
	.agribex-tabs .et_pb_tabs_controls {
		gap: 0.75rem;
	}

	.agribex-tabs .et_pb_tab_nav_item_link {
		padding: 0.7rem 1.1rem !important;
		font-size: 1rem;
		white-space: normal;
	}

	.agribex-sectors {
		gap: 0.375rem;
	}

	.agribex-sectors__tab {
		padding: 0.7rem 1.1rem;
		font-size: 1rem;
		white-space: normal;
	}
}
