/* PaperStreet custom styling */

.header-mobile-inner {
	display: flex;
	min-height: 70px;
}

.header-mobile-buttons {
	display: flex;
	margin-left: 4%;
	flex: 1;
	justify-content: flex-end;
	align-items: center;
}

.header-mobile-buttons a,
.header-mobile-buttons button {
	display: flex;
	font-size: 1.3rem;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	flex: 1;
	max-width: 50px;
	width: 50px;
	height: 50px;
}

.mobile-menu-toggle {
	background: none;
}

body .stewart-home-header>.et_pb_row--with-menu {
	/* display: none !important; */
}

#header-mobile {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 3;
	background: #fff;
	padding: 10px 25px;
}

/* MENUS > Mobile Menu */
#mobile-menu:not(.active) {
	display: none;
}

#mobile-navigation {
	z-index: 100;
	position: fixed;
	background-color: #fff;
	opacity: 0;
}


#mobile-navigation,
#mobile-navigation .sub-menu {
	display: block;
	height: 100vh;
	transform: translateY(-100%);
	width: 100%;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	transition: all 500ms cubic-bezier(0.87, 0, 0.13, 1);
}

.mobile-navigation-top-inner {
	align-items: center;
	padding: 8px 0 8px 20px;
	padding-right: 0;
	background: #fff;
	display: none;
}

#mobile-navigation.active .mobile-navigation-top-inner {
	display: flex !important;
}

#mobile-navigation a {
	padding-left: 20px;
}

#mobile-navigation.active {
	transform: translateY(0);
	opacity: 1;
}

#mobile-navigation a {
	display: block;
	text-decoration: none;
	font-size: 16px;
	color: #222222;
	padding-top: 8px;
	padding-bottom: 8px;
}

#mobile-navigation .sub-menu a {
	/* color: #fff; */
}

#mobile-navigation a:hover,
#mobile-navigation a:active,
#mobile-navigation a:focus {
	color: #ffd503;
	background: #fff;
}

#mobile-navigation ul {
	margin: 0;
}

#mobile-navigation ul li {
	padding: 0;
	position: relative;
	display: block;
	width: 100%;
	border-bottom: 1px solid #E9F5F7;
}

#mobile-navigation ul li:last-of-type {
	border: none;
}

#mobile-navigation ul li:before {
	display: none;
}

#mobile-navigation ul li.sub-menu-open>.sub-menu {
	top: 0;
	transform: translateY(0);
	display: block;
	-webkit-animation: fadeInRight 300ms ease-out;
	animation: fadeInRight 300ms ease-out;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
}

#mobile-navigation .sub-menu {
	margin: 0;
	position: fixed;
	background-color: #fff;
	z-index: 1;
	overflow: auto;
	display: none;
}

.mobile-navigation-previous:after,
#mobile-navigation .menu-item-has-children>a:after {
	background-image: url(../images/icon-angle-right.svg);
	background-size: cover;
	background-repeat: no-repeat;
	height: 22px;
	width: 12px;
	position: absolute;
	right: 25px;
	content: '';
}

.mobile-navigation-previous:after {
	background-image: url(../images/icon-angle-left.svg);
	right: 100%;
}

.mobile-navigation-previous {
	display: flex !important;
	align-items: center;
}

.mobile-navigation-previous button {
	cursor: pointer;
	border: none;
	padding: 10px;
	position: relative;
	font-weight: 700;
	background: none;
}

.mobile-navigation-close {
	padding: 0;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: center;
	-ms-align-items: center;
	align-items: center;
	width: 60px;
	height: 100%;
	background: none;
	margin-left: auto;
	color: #222222;
	font-size: 1.6rem;
	height: 60px;
	border: none;
	cursor: pointer;
}

.mobile-navigation-close:focus,
.mobile-navigation-close:hover {
	color: #ffd503;
}

.mobile-navigation-previous {
	margin-bottom: 10px;
	margin-left: 20px;
	border: none !important;
}

@media screen and (min-width: 1025px) {
	#mobile-navigation {
		display: none;
	}

	.mobile-navigation-top-inner {
		display: none;
	}
}

@media screen and (min-width: 500px) {

	.header-mobile-buttons a,
	.header-mobile-buttons button {
		width: 60px;
		max-width: 60px;
		height: 60px;
		font-size: 1.6rem;
	}
}

@media screen and (min-width: 1025px) {
	#header-mobile {
		display: none !important;
	}

	body .stewart-home-header>.et_pb_row--with-menu {
		display: flex !important;
	}
}

#mobile-navigation.active {
	transform: translateY(0);
	opacity: 1;
}

.fadeInRight {
	-webkit-animation-name: fadeInRight;
	animation-name: fadeInRight;
}


@-webkit-keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translate3d(100%, 0, 0)
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0)
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translate3d(100%, 0, 0)
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0)
	}
}

/* NEW MOBILE HEADER UPDATES  */



#header-mobile{
	background: #fff;
	transition: background 0.3s ease;
}

body.scrolled #header-mobile{
	background: #fff;
}

.header-mobile-buttons .button{
	border: 2px solid #ffd504;
	margin-right: 15px;
}

body.scrolled .header-mobile-buttons .button{
	border-color: #000;
}

body.scrolled .header-mobile-buttons .button img{
	filter: brightness(0);
}

.mobile-menu-toggle.mobile_menu_bar{
	border-color: #ffd504;
}

body.scrolled .mobile-menu-toggle.mobile_menu_bar{
	border-color: #000;
}

.mobile-menu-toggle.mobile_menu_bar::before{
	color: #ffd504;
}

body.scrolled .mobile-menu-toggle.mobile_menu_bar::before{
	color: #000;
}



@media screen and (max-width:900px){
	body.home .et_pb_fullwidth_code_0{
		padding-top: 0;
	}

	/* #et-boc .et-l.et-l--header{
		display: none;
	} */

	.et_pb_section_0.et_pb_section{
		margin-top: 0 !important;
	}
}
