#modal-menu {
	overflow: hidden !important;
	transform-style: preserve-3d;
	clip-path: unset;
	
	isolation: isolate;
}

@media (min-width: 700px) {
	@media (min-width: 1050px)	  { body { --panel-width: 350px; } }
	@media (max-width: 1049.99px) { body { --panel-width: 50%; } }
}
@media (max-width: 699.99px) { body { --panel-width: 100%; } }

/*-------------------------------------------------------------------------------------------*/

#modal-menu > .menu-group {
	position: fixed; top: 0;
	width: var(--panel-width); height: 100%; overflow: auto;
	
	background-color: #FFF;
	box-shadow: inset -1px 0px 0px rgba(0,0,0,.1);
}
@media (min-width: 700px) {
	#modal-menu > .menu-group.level-0 { left: 0; z-index: 1; }
	#modal-menu > .menu-group.level-1 { left: calc(var(--panel-width) * 1); z-index: 0; }
	#modal-menu > .menu-group.level-2 { left: calc(var(--panel-width) * 2); z-index: -1; }
	#modal-menu > .menu-group.level-3 { left: calc(var(--panel-width) * 3); z-index: -2; }
}
@media (max-width: 699.99px) {
	#modal-menu > .menu-group { left: 0; }
	#modal-menu > .menu-group.level-0 { z-index: 1; }
	#modal-menu > .menu-group.level-1 { z-index: 2; }
	#modal-menu > .menu-group.level-2 { z-index: 3; }
	#modal-menu > .menu-group.level-3 { z-index: 4; }
}

/*-------------------------------------------------------------------------------------------*/

#modal-menu > .menu-group.has-links {
	clip-path: inset(0 100% 0 0);
	
	transition: clip-path .2s linear;
}
#modal-menu > .menu-group.has-links:before {
	position: sticky; top: 0; z-index: 1;
	display: block; height: 80px;
	
	background-color: #FFF;
	box-shadow: inset -1px 0px 0px rgba(0,0,0,.1);
}
#modal-menu > .menu-group.has-links > .cta-wrapper {
	position: sticky; top: 81px; z-index: 1;
	height: 80px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 0 inherit;
	
	background-color: #FFF;
	border-bottom: solid 1px rgba(0,0,0,.1);
}
#modal-menu > .menu-group.has-links > .cta-wrapper > .return-btn {
	line-height: 20px;
	font-size: 14px;
}
@media (min-width: 700px) {
	#modal-menu > .menu-group.has-links { padding: 0 50px 50px; }
	#modal-menu > .menu-group.has-links:not(.has-extras):not(.level-0) { padding-top: 80px; }
	#modal-menu > .menu-group.has-links.level-0:before {
		content: '';
		margin: 0 -50px;
	}
	#modal-menu > .menu-group.has-links > .cta-wrapper {
		display: none;
	}
}
@media (max-width: 699.99px) {
	#modal-menu > .menu-group.has-links { padding: 0 50px 50px; }
	#modal-menu > .menu-group.has-links:before {
		content: '';
		margin: 0 -50px;
		
		border-bottom: solid 1px rgba(0,0,0,.1);
	}
	#modal-menu > .menu-group.has-links > .cta-wrapper {
		display: flex;
		padding: 0 25px;
    	margin: 0 -50px;
	}
}
#modal-menu > .menu-group.has-links.open {
	clip-path: inset(0 0 0 0);
	pointer-events: auto;
	
	transition: clip-path .4s cubic-bezier(0.38, 0.005, 0.215, 1);
}

/*-------------------------------------------------------------------------------------------*/

#modal-menu > .menu-group.has-extras:not(.has-links) {
	z-index: 5;
	opacity: 0;
}
#modal-menu > .menu-group.has-extras:not(.has-links) > .menu-wrapper > .extras {
	position: absolute; top: 0; left: 0;
	height: 100%; width: 100%;
}
@media (min-width: 1050px) {
	#modal-menu > .menu-group.has-extras:not(.has-links) {
		transition: opacity .2s linear;
	}
	#modal-menu > .menu-group.has-extras:not(.has-links).open {
		opacity: 1;
		transition: opacity .4s cubic-bezier(0.38, 0.005, 0.215, 1);
	}
}

/*-------------------------------------------------------------------------------------------*/

#modal-menu > .menu-group > .menu-wrapper {
    display: flex; min-height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}
#modal-menu > .menu-group.has-links > .menu-wrapper {
	transform: translateY(50px);
	opacity: 0;
	transition:
		transform .2s linear .2s,
		opacity	  .2s linear;
}
#modal-menu > .menu-group.has-links.open > .menu-wrapper {
	transform: translateY(0);
	opacity: 1;
	transition:
		transform .4s cubic-bezier(0.38, 0.005, 0.215, 1) .2s,
		opacity	  .4s cubic-bezier(0.38, 0.005, 0.215, 1) .2s;
}
#modal-menu > .menu-group.has-links > .menu-wrapper { min-height: calc(100% - 80px); }
@media (min-width: 700px)	 { #modal-menu > .menu-group.has-links:not(.level-0) > .menu-wrapper { min-height: calc(100% - 81px); } }
@media (max-width: 699.99px) { #modal-menu > .menu-group.has-links:not(.level-0) > .menu-wrapper { min-height: calc(100% - 161px); } }


/*-------------------------------------------------------------------------------------------*/

#modal-menu > .menu-group > .menu-wrapper > .extras {
	position: relative;
	display: flex; 
	flex-direction: column;
	justify-content: flex-end;
	padding: 40px;
	
	font-size: 15px;
	color: #FFF;
	
	isolation: isolate;
}
@media (min-width: 700px) {
	#modal-menu > .menu-group.has-extras.has-links > .menu-wrapper > .extras {
		height: 300px;
		margin: 0 -50px;
	}
}
@media (max-width: 699.99px) {
	#modal-menu > .menu-group.has-extras.has-links > .menu-wrapper > .extras {
		height: 200px;
		margin: 0 -50px;
	}
}

	
#modal-menu > .menu-group > .menu-wrapper > .extras > .background {
	position: absolute; top: 0; left: 0; z-index: -1;
	display: block; height: 100%; width: 100%;
}
#modal-menu > .menu-group > .menu-wrapper > .extras > .background > img,
#modal-menu > .menu-group > .menu-wrapper > .extras > .background > video {
	height: 100%; width: 100%;

	object-fit: cover;
	object-position: center;

	filter: brightness(.7);
}
#modal-menu > .menu-group > .menu-wrapper > .extras > .overlay { text-align: center; }
#modal-menu > .menu-group > .menu-wrapper > .extras > .overlay > .title {
	font-weight: 500;
}
#modal-menu > .menu-group > .menu-wrapper > .extras > .overlay > .title:not(:last-child) { margin-bottom: 25px; }

#modal-menu > .menu-group > .menu-wrapper > .links {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin: 0 0 auto;
}
@media (min-width: 700px) {
	#modal-menu > .menu-group > .menu-wrapper > .links {
		row-gap: 15px;
		padding-top: 50px;
		
		font-size: 18px;
		font-weight: 300;
	}
}
@media (max-width: 699.99px) {
	#modal-menu > .menu-group > .menu-wrapper > .links {
		row-gap: 25px;
		padding-top: 50px;
		
		font-size: 18px;
		font-weight: 400;
	}
	#modal-menu > .menu-group:not(.level-0) > .menu-wrapper > .links {
		align-items: center;
	}
}

#modal-menu > .menu-group > .menu-wrapper > address {
	margin-top: 50px;
	
	font-size: 12px;
	font-style: normal;
}
#modal-menu > .menu-group > .menu-wrapper > address > a {
	margin-top: 10px;
	font-size: 10px;
}