.hzm-mega-menu {
	--hzm-green: #0a6b45;
	--hzm-green-dark: #075437;
	--hzm-green-soft: #eef7f2;
	--hzm-ink: #1d2a24;
	--hzm-border: #dbe7e0;
	--hzm-panel-top: 0px;
}

.hzm-mega-menu > .hzm-mega-trigger { position: relative; }

.hzm-mega-menu > .hzm-mega-toggle {
	appearance: none;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	display: inline-grid;
	height: 34px;
	margin: 0 -5px 0 0;
	padding: 0;
	place-items: center;
	vertical-align: middle;
	width: 24px;
}

.hzm-mega-menu > .hzm-mega-toggle:focus-visible,
.hzm-mega-menu .hzm-mega-section-toggle:focus-visible,
.hzm-mega-menu .hzm-mega-link:focus-visible,
.hzm-mega-menu .hzm-mega-all-link:focus-visible {
	outline: 2px solid var(--hzm-green);
	outline-offset: 3px;
}

.hzm-mega-toggle-icon,
.hzm-mega-section-icon {
	border-bottom: 2px solid currentColor;
	border-inline-end: 2px solid currentColor;
	display: block;
	height: 7px;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 160ms ease;
	width: 7px;
}

.hzm-mega-menu.is-open > .hzm-mega-toggle .hzm-mega-toggle-icon { transform: rotate(225deg) translate(-2px, -2px); }

.hzm-mega-menu > .hzm-mega {
	background: #fff;
	border: 1px solid var(--hzm-border);
	box-shadow: 0 18px 45px rgba(7, 84, 55, .14);
	box-sizing: border-box;
	direction: rtl;
	left: 50%;
	max-height: calc(100vh - var(--hzm-panel-top) - 14px);
	max-width: calc(100vw - 32px);
	opacity: 0;
	overflow-x: hidden;
	overflow-y: auto;
	pointer-events: none;
	position: fixed;
	top: var(--hzm-panel-top);
	transform: translate(-50%, -6px);
	transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
	visibility: hidden;
	width: 1200px;
	z-index: 100000;
}

.hzm-mega-menu.is-open > .hzm-mega {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
	visibility: visible;
}

.hzm-mega-inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 28px 30px 30px;
}

.hzm-mega[data-columns="2"] .hzm-mega-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hzm-mega-column {
	box-sizing: border-box;
	min-width: 0;
	padding: 0 26px;
}

.hzm-mega-column:first-child { padding-inline-start: 0; }
.hzm-mega-column:last-child { padding-inline-end: 0; }
.hzm-mega-column + .hzm-mega-column { border-inline-start: 1px solid var(--hzm-border); }

.hzm-mega-section + .hzm-mega-section {
	border-top: 1px solid var(--hzm-border);
	margin-top: 22px;
	padding-top: 22px;
}

.hzm-mega-section-toggle {
	align-items: center;
	appearance: none;
	background: #f3f7f5 !important;
	border: 0;
	border-bottom: 2px solid #dbe8e1;
	box-shadow: none;
	box-sizing: border-box;
	color: #0f7a4f;
	display: flex;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	justify-content: space-between;
	line-height: 18px;
	margin: 0;
	min-height: 36px;
	padding: 8px 10px;
	pointer-events: none;
	text-align: start;
	width: 100%;
}

.hzm-mega-section-icon { display: none; }
.hzm-mega-section-links { display: block; }

.hzm-mega-link-list {
	display: grid;
	gap: 3px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hzm-mega-link-item { border: 0; list-style: none; margin: 0; padding: 0; }

.hzm-mega-link {
	align-items: baseline;
	border-radius: 3px;
	color: var(--hzm-green);
	display: flex;
	font-size: 14px;
	font-weight: 500;
	gap: 8px;
	line-height: 1.55;
	padding: 5px 9px;
	text-decoration: none;
	transition: background-color 130ms ease, color 130ms ease;
}

.hzm-mega-link::before {
	color: #76a990;
	content: "‹";
	flex: 0 0 auto;
	font-size: 17px;
	line-height: 1.2;
}

.hzm-mega-link:hover,
.hzm-mega-link:focus-visible { background: var(--hzm-green-soft); color: var(--hzm-green-dark); }

.hzm-mega-all-link {
	border-top: 1px solid var(--hzm-border);
	color: var(--hzm-green-dark);
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	margin-top: 12px;
	padding: 11px 8px 2px;
	text-decoration: none;
}

.hzm-mega-all-link:hover,
.hzm-mega-all-link:focus-visible { color: var(--hzm-green); text-decoration: underline; text-underline-offset: 3px; }

.hzm-mega-sr-only {
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

@media (max-width: 1199px) and (min-width: 992px) {
	.hzm-mega-menu > .hzm-mega { max-width: calc(100vw - 24px); }
	.hzm-mega-inner { padding: 22px 20px 24px; }
	.hzm-mega-column { padding: 0 18px; }
	.hzm-mega-link { font-size: 13px; }
}

@media (max-width: 991px) {
	.menu li.hzm-mega-menu,
	.resp-menu li.hzm-mega-menu,
	.off-canvas-menu li.hzm-mega-menu { display: flex !important; flex-wrap: wrap; }
	.hzm-mega-menu > .hzm-mega-trigger { box-sizing: border-box; flex: 1 1 auto; min-width: 0; }
	.hzm-mega-menu > .hzm-mega-toggle { flex: 0 0 48px; height: 46px; margin: 0; width: 48px; }
	.hzm-mega-menu > .hzm-mega {
		border: 0;
		border-top: 1px solid var(--hzm-border);
		box-shadow: none;
		flex: 0 0 100%;
		left: auto;
		max-height: none;
		max-width: 100%;
		opacity: 1;
		overflow: visible;
		pointer-events: auto;
		position: static;
		top: auto;
		transform: none;
		transition: none;
		visibility: visible;
		width: 100%;
	}
	.hzm-mega-menu:not(.is-open) > .hzm-mega { display: none; }
	.hzm-mega-inner,
	.hzm-mega[data-columns="2"] .hzm-mega-inner { display: block; padding: 0; }
	.hzm-mega-column,
	.hzm-mega-column:first-child,
	.hzm-mega-column:last-child { border: 0; padding: 0; }
	.hzm-mega-section,
	.hzm-mega-section + .hzm-mega-section { border: 0; border-bottom: 1px solid var(--hzm-border); margin: 0; padding: 0; }
	.hzm-mega-section-toggle {
		background: #f3f7f5 !important;
		border-bottom: 2px solid #dbe8e1;
		color: #0f7a4f;
		cursor: pointer;
		font-size: 15px;
		margin: 0;
		min-height: 44px;
		padding: 8px 10px;
		pointer-events: auto;
	}
	.hzm-mega-section-icon { display: block; }
	.hzm-mega-section-toggle[aria-expanded="true"] .hzm-mega-section-icon { transform: rotate(225deg); }
	.hzm-mega-section-toggle[aria-expanded="false"] + .hzm-mega-section-links { display: none; }
	.hzm-mega-section-links { background: #fbfdfc; padding: 7px 10px 14px; }
	.hzm-mega-link { font-size: 14px; min-height: 42px; padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.hzm-mega-menu > .hzm-mega,
	.hzm-mega-toggle-icon,
	.hzm-mega-section-icon,
	.hzm-mega-link { transition: none; }
}
