:root {
	--crhf-bg: #ffffff;
	--crhf-color: #111111;
	--crhf-pad-y: 8px;
	--crhf-pad-x: 16px;
	--crhf-z: 99999;
	--crhf-maxw: 0px;
	--crhf-logo-h: 52px;
	--crhf-banner-h: 38px;
}

#crhf-bar {
	position: fixed !important;
	left: 0;
	right: 0;
	top: 0 !important;
	z-index: var(--crhf-z);
	background: var(--crhf-bg);
	color: var(--crhf-color);
	display: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transform: none !important;
}

body.crhf-active #crhf-bar,
html.crhf-active #crhf-bar {
	display: block;
}

body.crhf-active [data-crhf-hidden="1"],
html.crhf-active [data-crhf-hidden="1"] {
	display: none !important;
}

#crhf-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: var(--crhf-pad-y) var(--crhf-pad-x);
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
	max-width: var(--crhf-maxw);
}

.crhf-slot {
	display: flex;
	align-items: center;
	min-width: 0;
}

.crhf-left {
	justify-content: flex-start;
	flex: 0 0 auto;
}

.crhf-center {
	justify-content: center;
	flex: 1 1 auto;
}

.crhf-right {
	justify-content: flex-end;
	flex: 0 0 auto;
	gap: 12px;
}

.crhf-center > * {
	max-width: 100%;
}

body.crhf-active .crhf-slot form {
	margin: 0;
}

#crhf-bar .logo,
#crhf-bar .site-logo {
	display: inline-flex;
	align-items: center;
	max-width: 240px;
}

#crhf-bar .logo img + img,
#crhf-bar .custom-logo-link img + img,
#crhf-bar .site-logo img + img {
	display: none !important;
}

#crhf-bar .logo img,
#crhf-bar img.custom-logo,
#crhf-bar .logo svg {
	max-height: var(--crhf-logo-h);
	width: auto;
	height: auto;
}

#crhf-bar .crhf-center .searchform,
#crhf-bar .crhf-center form.searchform {
	width: 100%;
	max-width: 520px;
}

#crhf-bar a {
	color: inherit;
}

.crhf-banner {
	display: inline-flex;
	align-items: center;
}

.crhf-banner-img {
	max-height: var(--crhf-banner-h);
	width: auto;
	height: auto;
	display: block;
}

.crhf-account-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 10px;
	border: 1px solid currentColor;
	border-radius: 4px;
	line-height: 1;
	font-size: 14px;
	white-space: nowrap;
	text-decoration: none;
}

.crhf-account-btn:hover,
.crhf-account-btn:focus {
	opacity: 0.9;
}

@media (max-width: 767px) {
	#crhf-inner {
		flex-wrap: wrap;
		gap: 8px;
		padding: 6px 10px;
	}

	.crhf-left {
		flex: 0 0 auto;
	}

	.crhf-right {
		flex: 0 0 auto;
		margin-left: auto;
		gap: 8px;
	}

	.crhf-center {
		order: 3;
		flex: 1 1 100%;
	}

	#crhf-bar .crhf-center .searchform,
	#crhf-bar .crhf-center form.searchform {
		max-width: 100%;
	}

	.crhf-account-btn {
		font-size: 12px;
		padding: 6px 8px;
	}

	#crhf-bar .logo,
	#crhf-bar .site-logo {
		max-width: 160px;
	}
}
