/*
 * First-paint layout for elements that legacy JavaScript also enhances later.
 * Keeping this in the document head prevents the unstyled footer from flashing.
 */
#footerwrap {
	height: auto;
	min-height: 91px;
}

#footer .main-col.first,
#footer .footer-right-wrap {
	box-sizing: border-box;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

#footer .footer-left-wrap.first {
	display: none !important;
}

#footer .footer-nav-wrap {
	width: 80%;
	height: max-content;
	margin: 0 auto;
}

#footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 20px;
	width: 60%;
	min-width: 300px;
	margin: 0 auto;
	padding: 0;
}

#footer-nav,
#footer-nav ul,
#footer-nav li {
	list-style: none;
}

#footer-nav li {
	margin: 0;
	padding: 0;
}

#footer-nav > li > a {
	color: #222;
	border-bottom: 0;
}

#footer-nav > li > ul.sub-menu {
	display: block;
	max-height: none;
	padding: 0;
	border: 0;
	visibility: visible;
	opacity: 1;
}

#footerwrap .footer-nav ul a {
	width: 200px;
	padding: 0 0 0 5px;
	color: #666;
}

#footer .footer-text-inner .one {
	float: none !important;
	box-sizing: border-box;
	width: 100% !important;
	text-align: center;
}

@media (min-width: 769px) {
	#search-4 {
		position: absolute !important;
		top: 5px;
		right: 50px;
		z-index: 999999;
		transform: scale(0.9);
	}
}

@media (max-width: 768px) {
	#search-4 {
		display: none !important;
	}

	#footer {
		font-size: 75%;
	}

	#footer .footer-nav-wrap {
		transform: scale(0.88, 1);
	}

	#footer-nav,
	#footer-nav li,
	#footer-nav ul {
		display: block;
		margin-top: 10px;
	}
}
