.hhfb-custom-header,
.hhfb-custom-footer {
	width: 100%;
	position: relative;
	z-index: 10;
}

.hhfb-template-preview {
	width: 100%;
	min-height: 120px;
}

.hhfb-menu {
	width: 100%;
	position: relative;
}

.hhfb-menu__toggle {
	display: none;
	align-items: center;
	gap: 10px;
	border: 0;
	background: transparent;
	padding: 10px 12px;
	font: inherit;
	cursor: pointer;
}

.hhfb-menu__burger {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	width: 24px;
}

.hhfb-menu__burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.hhfb-menu__nav > ul,
.hhfb-menu__nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hhfb-menu__nav > ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.hhfb-menu__nav li {
	position: relative;
	margin: 0;
	padding: 0;
}

.hhfb-menu__nav a {
	display: block;
	padding: 10px 8px;
	text-decoration: none;
	transition: color .2s ease, opacity .2s ease;
}

.hhfb-menu__nav .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 220px;
	z-index: 999;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.hhfb-menu__nav li:hover > .sub-menu,
.hhfb-menu__nav li:focus-within > .sub-menu {
	display: block;
}

.hhfb-menu__nav .sub-menu .sub-menu {
	left: 100%;
	top: 0;
}

@media (max-width: 767px) {
	.hhfb-breakpoint-mobile .hhfb-menu__toggle {
		display: inline-flex;
	}
	.hhfb-breakpoint-mobile .hhfb-menu__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 9999;
		box-shadow: 0 8px 24px rgba(0,0,0,.12);
	}
	.hhfb-breakpoint-mobile .hhfb-menu__nav.is-open {
		display: block;
	}
	.hhfb-breakpoint-mobile .hhfb-menu__nav > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0 !important;
	}
	.hhfb-breakpoint-mobile .hhfb-menu__nav .sub-menu {
		display: block;
		position: static;
		box-shadow: none;
		padding-left: 16px;
	}
}

@media (max-width: 1024px) {
	.hhfb-breakpoint-tablet .hhfb-menu__toggle {
		display: inline-flex;
	}
	.hhfb-breakpoint-tablet .hhfb-menu__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 9999;
		box-shadow: 0 8px 24px rgba(0,0,0,.12);
	}
	.hhfb-breakpoint-tablet .hhfb-menu__nav.is-open {
		display: block;
	}
	.hhfb-breakpoint-tablet .hhfb-menu__nav > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0 !important;
	}
	.hhfb-breakpoint-tablet .hhfb-menu__nav .sub-menu {
		display: block;
		position: static;
		box-shadow: none;
		padding-left: 16px;
	}
}
