/* Hidden Inputs */
#custom-mobile-header-trigger,
#custom-mobile-search-trigger,
#custom-mobile-desktop-search-trigger,
.sub-menu-toggle,
#custom-mobile-menu input {
	display: none;
}

/* Desktop Search */
body > #custom-mobile-form-wrapper {
    background-color: #f6f6f6;
    text-align: center;
    padding: 50px 0 30px;
}
body > #custom-mobile-form-wrapper form {
    margin: 0 auto;   
}

/* The overall wrapper */
#custom-mobile-header {
	width: 100%;
	z-index: 299;
	position: absolute;
	top: 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
	pointer-events: none;
	max-height: 100px;
}
#custom-mobile-header.mh-sticky-true {
	position: fixed;
	z-index: 3999;
}
body.admin-bar #custom-mobile-header.mh-sticky-true {
	top: 32px;
}
#custom-mobile-header-trigger:checked + #custom-mobile-header {
	max-height: none;
}
#custom-mobile-header.text-light ul li a {
	color: #fff;
}

/* Top Bar: logo, hamburger, search */
#custom-mobile-top-bar {
	padding: 10px;
	pointer-events: auto;
	border-bottom:none;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
#custom-mobile-hamburger-trigger,
#custom-mobile-hamburger,
#custom-mobile-search {
	height: 100px; /* Modify this to change logo size */
}	
#custom-mobile-hamburger {
	margin-left: auto;
}
#custom-mobile-top-bar img {
	height: 80px;
	width: auto;
	position: relative;
	top: 0;
}
#custom-mobile-top-bar {
	height: 100px;
}
#custom-mobile-hamburger,
#custom-mobile-search {
	width: 35px;
	cursor: pointer;
}
#custom-mobile-search {
	margin-right: 10px;
	position: relative;
}
#custom-mobile-search svg {
	width: 28px;
	position: absolute;
	top: 0px;
	right: -5px;
	transition: opacity 0.2s ease;
}
#custom-mobile-search svg + svg {
    top: -4px;
    right: -5px;
    width: 24px;
}
#custom-mobile-search svg + svg,
#custom-mobile-search-trigger:checked ~ #custom-mobile-header #custom-mobile-search svg {
	opacity: 0;
}
#custom-mobile-search-trigger:checked ~ #custom-mobile-header #custom-mobile-search svg + svg {
	opacity: 1;
}
#custom-mobile-form-wrapper {
	position: absolute;
	top: 80px;
	left: 0;
	pointer-events: none;
	z-index: 99;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	width: 100%;
	background: inherit;
	transform: translateY(-30px);
	background-color: #dee9f0;
}
#custom-mobile-top-bar form {
	width: 94%;
	max-width: 100%;
	margin: 4%;
}
#custom-mobile-top-bar form.search-form .search-submit {
	text-align: right;
	padding-right: 12px;
	color: #101413 !important
}
#custom-mobile-top-bar form.search-form .search-input {
	font-size: 19px;
	color: #666666;
	background-color: #ffffff !important;
}
	#custom-mobile-top-bar form.search-form .search-input:focus {
		border: 2px solid #efbf49
	}
#custom-mobile-top-bar form.search-form .search-input,
#custom-mobile-top-bar form.search-form .search-submit {
	height: 50px;
	line-height: 50px;
	border: none;
	background: inherit;
}
#custom-mobile-top-bar form.search-form .search-submit i {
	font-size: 20px;
	font-weight: normal;
}
#custom-mobile-top-bar form.search-form .search-submit svg {
	width: 24px;
	height: 24px;
	top: -2px;
	right: 2px;
}
#custom-mobile-top-bar form.search-form .search-input::-webkit-input-placeholder {
	color: #6d706f;
}
#custom-mobile-top-bar form.search-form .search-input::-moz-placeholder {
	color: #6d706f;
}
#custom-mobile-top-bar form.search-form .search-input:-ms-input-placeholder {
	color: #6d706f;
}
#custom-mobile-top-bar form.search-form .search-input:-moz-placeholder {
	color: #6d706f;
}

/* The menu itself */
#custom-mobile-menu-container,
#custom-mobile-menu-container .sub-menu {
	pointer-events: none;
	opacity: 0;
	transform: translateY(-30px);
	transition: transform 0.2s ease, opacity 0.2s ease, height 0.2s ease;
	border-bottom: 1px solid #EFEFEE;
	height: 0;
}
#custom-mobile-header-trigger:checked + #custom-mobile-header #custom-mobile-menu-container,
#custom-mobile-menu-container input:checked ~ .sub-menu {
	pointer-events: auto;
	opacity: 1;
	transform: translateY(0);
	height: auto;
}
#custom-mobile-menu-container input:checked ~ .sub-menu {
	margin-bottom: 15px;
	border-bottom: none;
}
#custom-mobile-menu-container input:checked ~ .sub-menu ul {
	margin-bottom: 5px;
}
#custom-mobile-menu-container input:checked ~ .sub-menu .sub-menu {
	margin-top: 0;
}
#custom-mobile-menu-container li {
	display: block;
	font-weight: bold;
	border-top: 1px solid #EFEFEE;
	border-bottom: none !important;
	padding: 0;
	text-align: center;
	position: relative;
	font-family: "Futura", "Gill Sans", "Franklin Gothic Medium", "Calibri", "Optima", sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 16px;
}
.layout-left #custom-mobile-menu-container li {
	text-align: left;
}
#custom-mobile-menu-container li li,
.text-dark #custom-mobile-menu-container li li {
	padding: 0;
	font-size: 13px;
	border: none;
}
#custom-mobile-menu-container li a,
#custom-mobile-menu-container li label {
	text-decoration: none;
	padding: 12px 15px;
	display: inline-block;
	width: 100%;
	cursor: pointer;
}
#custom-mobile-menu-container li.menu-item-has-children a {
	width: auto;
}
#custom-mobile-menu-container li li a,
#custom-mobile-menu-container li li label {
	padding: 5px 15px;
}
#custom-mobile-menu-container li li li {
	font-size: 11px;
	display: inline-block
}
	#custom-mobile-menu-container li li li a {
		font-size: 11px;
		border: 1px solid #ededee;
		margin: 2px 0;
	}
#custom-mobile-menu svg,
#custom-mobile-menu input:checked + svg {
	position: absolute;
	right: 10px;
	top: 13px;
	display: none;
	pointer-events: none;
}
#custom-mobile-menu li li svg,
#custom-mobile-menu li li input:checked + svg {
    top: 3px;   
}
#custom-mobile-menu input + svg,
#custom-mobile-menu input:checked + svg + svg {
	display: block;
}

/* Widgets */
#custom-mobile-widgets-area > div {
	text-align: center;
	padding: 30px 0 10px;
}
#custom-mobile-widgets-area > div + div {
	padding-top: 15px;
}
#custom-mobile-widgets-area > div:last-child {
    padding-bottom: 30px;
}
.text-light #custom-mobile-widgets-area h5 {
	color: #fff;
}
#custom-mobile-widgets-area h5 {
	margin: 0 0 5px;
}
#custom-mobile-widgets-area center a {
    margin: 0 5px
}
#custom-mobile-widgets-area .social li,
.text-dark #custom-mobile-widgets-area .social li {
	display: inline-block;
	border: none;
}
#custom-mobile-widgets-area .social {
	margin-top: 0px
}
#custom-mobile-widgets-area .social a {
	font-size: 16px;
}
#custom-mobile-widgets-area .social a i.fa-inverse {
	color: #fff;
}
#custom-mobile-widgets-area .email-form {
    margin-left: 20px;
    margin-right: 20px;
}
#custom-mobile-widgets-area p {
	color: #ffffff;
	margin: 0 0 5px;
	font-size: 13px;
}

/* Animated Hamburger Toggle */
#custom-mobile-hamburger-trigger {
	position: relative;
	top: 5px;
	cursor: pointer;
	width: 30px;
	height: 20px;
}
#custom-mobile-hamburger-trigger span,
#custom-mobile-hamburger-trigger span:before,
#custom-mobile-hamburger-trigger span:after {
	cursor: pointer;
	border-radius: 1px;
	height: 2px;
	width: 30px;
	background: #fff;
	position: absolute;
	top: 8px;
	display: block;
	content: '';
	-webkit-transition: all 200ms ease-in-out;
	-moz-transition: all 200ms ease-in-out;
	-ms-transition: all 200ms ease-in-out;
	-o-transition: all 200ms ease-in-out;
	transition: all 200ms ease-in-out;
}
#custom-mobile-hamburger-trigger span:before {
	top: -8px;
}
#custom-mobile-header-trigger:checked + #custom-mobile-header #custom-mobile-hamburger-trigger span {
	background: rgba(0, 0, 0, 0);
}
#custom-mobile-header-trigger:checked + #custom-mobile-header #custom-mobile-hamburger-trigger span:after,
#custom-mobile-header-trigger:checked + #custom-mobile-header #custom-mobile-hamburger-trigger span:before {
	top: 0;
}
#custom-mobile-header-trigger:checked + #custom-mobile-header #custom-mobile-hamburger-trigger span:before {
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
#custom-mobile-header-trigger:checked + #custom-mobile-header #custom-mobile-hamburger-trigger span:after {
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

/* Middle Layout */
.layout-middle {
	text-align: center;
}
.layout-middle #custom-mobile-hamburger {
	margin-left: inherit;
	order: 0;
}
.layout-middle #custom-mobile-logo-link {
	order: 1;
}
.layout-middle #custom-mobile-search {
	order: 2;
}

/* Text Dark */
#custom-mobile-header.text-dark ul li a {
	color: #101413;
}
.text-dark #custom-mobile-hamburger-trigger span,
.text-dark #custom-mobile-hamburger-trigger span:before,
.text-dark #custom-mobile-hamburger-trigger span:after {
	background: #101413;
}
.text-dark #custom-mobile-search i,
.text-dark #custom-mobile-menu-container .menu-item-has-children:before,
.text-dark #custom-mobile-search i,
.text-dark #custom-mobile-top-bar form.search-form .search-input,
.text-dark #custom-mobile-top-bar form.search-form .search-submit {
	color: #6d706f;
}
.text-dark.active #custom-mobile-hamburger-trigger span {
	background: rgba(0, 0, 0, 0);
}
.text-dark #custom-mobile-form-wrapper {
	border-top: none;
	border-bottom: 1px solid #EFEFEE;
}
.text-dark #custom-mobile-menu-container li {
	border-bottom: 1px solid #EFEFEE;
}
.text-dark #custom-mobile-top-bar form.search-form .search-input::-webkit-input-placeholder {
	color: #101413;
}
.text-dark #custom-mobile-top-bar form.search-form .search-input::-moz-placeholder {
	color: #101413;
}
.text-dark #custom-mobile-top-bar form.search-form .search-input:-ms-input-placeholder {
	color: #101413;
}
.text-dark #custom-mobile-top-bar form.search-form .search-input:-moz-placeholder {
	color: #101413;
}

/* Media Queries */
@media all and ( min-width: 800px ) {
	#custom-mobile-header {
		display: none;
	}
	#custom-mobile-desktop-search-trigger:checked ~ #custom-mobile-form-wrapper {
    	opacity: 1;
    	pointer-events: auto;
    	transform: translateY(0);
    	position: fixed;
		z-index: 1000;
		top: 60px;
		padding: 50px;
    }
    
	#custom-mobile-form-wrapper .search-form .search-field {
		height: 70px;
		line-height: 70px;
		font-size: 20px;
		padding-left: 20px;
	}
	#custom-mobile-form-wrapper .search-form .search-submit {
		height: 70px;
		line-height: 70px;
		font-size: 30px;
		z-index: 2002;
	}
}
@media all and ( max-width: 799px ){
    #custom-mobile-search-trigger:checked ~ #custom-mobile-header #custom-mobile-form-wrapper {
    	opacity: 1;
    	pointer-events: auto;
    	transform: translateY(0);
    }
	body.admin-bar #custom-mobile-header[data-sticky="true"] {
		top: 46px;
	}
}
@media screen and (max-width: 600px){
	#wpadminbar {
		display: none;
	}
	html[lang] {
		margin-top: 0 !important;
	}
}