html.noscroll {
	overflow-y: hidden;	
}

.wpml-ls ul li:not(.wpml-ls-current-language) {
	display: none;
}
	
#language-switcher-overlay {
	position: fixed;
	background: rgba(0,0,0,0.5);
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	overflow-y: scroll;
	overflow-x: hidden;
	display: none;
}

#language-switcher-modal {
	position: absolute;
	background: #fafafa;
}

#language-switcher-modal table {
	margin: 0;
	border-collapse: collapse!important;
	width: 100%;
	background: white;
}
	
#language-switcher-modal tr.header {
	display: table-row;
}

#language-switcher-modal tr.header td {
	margin: 0!important;
	padding: 0!important;
	vertical-align: middle;
	background: #033f87;
	text-transform: uppercase;
}

#language-switcher-modal tr.header td:last-child {
	text-align: right;
	position: relative;
}

#language-switcher-modal tr.header h2#language-switcher-modal-title {
	font-size: 2em;
	line-height: 2em;
	padding: 0.7em 0.8em 0.3em 0.8em;
	color: white!important;
}

#language-switcher-modal tr.header #language-switcher-modal-close {
	display: block;
	position: relative;
	width: 32px;
	height: 32px;
	opacity: 0.5;
	float: right;
	cursor: pointer;
	margin-right: 2em;
}

#language-switcher-modal tr.header #language-switcher-modal-close:hover {
	opacity: 1;
}

tr.header::after {
    content: none;
}

#language-switcher-modal tr.header #language-switcher-modal-close:before, 
#language-switcher-modal tr.header #language-switcher-modal-close:after {
	position: absolute;
	left: 15px;
	content: '';
	height: 33px;
	width: 2px;
	background-color: #fff;
}

#language-switcher-modal tr.header #language-switcher-modal-close:before {
	transform: rotate(45deg);
}

#language-switcher-modal tr.header #language-switcher-modal-close:after {
	transform: rotate(-45deg);
}

/* Container for flexboxes */
#language-switcher-modal tr.regions > td > div.columns {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

/* Create four equal columns */
#language-switcher-modal tr.regions > td > div.columns > div {
	flex: 20%;
	padding: 0 20px 20px 20px;
	box-sizing: border-box;
}

#language-switcher-modal tr.regions > td > div.columns > div > ul {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	min-width: 100px;
	list-style: none;
	overflow: hidden;
	transition: all .5s;
}

#language-switcher-modal tr.regions > td > div.columns > div > label.region-title::after {
	content: "\276F";
	width: 1em;
	height: 1em;
	text-align: center;
	transition: all .1s;
	-ms-transform-origin: 50% 80%; /* IE 9 */
	transform-origin: 50% 80%;
	float: right;
	display: none;
}

#language-switcher-modal tr.regions > td > div.columns > div > label.region-title,
#language-switcher-modal tr.regions > td > div.columns > div > label.region-title a {
	text-transform: uppercase;
	color: #033f87;
	font-weight: bold;
	width: 100%;
	display: block;
	margin: 0;	
}

#language-switcher-modal tr.regions > td > div.columns > div > label.region-title a:hover {
	color: #05325b;
}

#language-switcher-modal tr.regions > td > div.columns > div > label.region-title {
	font-size: 1.2em;
}


#language-switcher-modal tr.regions > td > div.columns > div > input {
	position: absolute;
	opacity: 0;
	z-index: -1;
}

#language-switcher-modal tr.regions > td > div.columns > div > ul li,
#language-switcher-modal tr.regions > td > div.columns > div > label.region-title {
	border-bottom: 1px solid #1ea9d0;
	padding: 0.3em 0;
}

#language-switcher-modal tr.regions > td > div.columns > div > input:checked ~ ul {
    max-height: 100vh;
}

#language-switcher-modal tr.regions > td > div.columns > div > input:checked ~ label::after {
	transform: rotate(90deg);
}

#language-switcher-modal tr.regions > td > div.columns > div > ul li a {
	color: black;
	width: 100%;
	display: block;
}

#language-switcher-modal tr.regions > td > div.columns > div > ul li a > span {
	float: right;
	margin-right: 4px;
	font-size: 0.8em;
	padding-top: 0.2em;
}

#language-switcher-modal tr.regions > td > div.columns > div > ul li a:hover {
	color: #666;
}

#language-switcher-modal tr.intro td {
	padding: 2em 2.6em 0 1.6em;
}

#language-switcher-modal tr.footer td {
	background: white;
	padding: 1.6em 2.6em 1.6em 1.6em;
}

#language-switcher-modal tr.footer td a {
	color: #1ea9d0;
}

/* On screens that are more than 1200px */
@media screen and (min-width : 1200px) {
	#language-switcher-modal {
		top: 20%;
		left: 50%;
    	transform: translate(-50%, 0);
		width: 75%;
		max-width: 900px;
	}
}

/* On screens that are 1200px wide or less, go from four columns to two columns */
@media screen and (min-width: 921px) and (max-width: 1200px) {
	#language-switcher-modal {
		top: 10%;
		left: 50%;
		transform: translate(-50%, 0);
		width: 92%;
		max-width: 850px;
	}
	
	#language-switcher-modal tr.regions > td > div.columns {
		flex: 50%;
	}
}

/* On screens that are 920px wide or less, make the columns stack on top of each other instead of next to each other */
@media screen and (max-width: 920px) {
	#language-switcher-modal {
		top: 5%;
		left: 5%;
		width: 90%;
	}
	
	#language-switcher-modal tr.regions > td > div.columns {
		flex-direction: column;
		flex: 100%;
	}

	#language-switcher-modal tr.footer td {
		padding-bottom: 7em;
	}

	#language-switcher-modal tr.regions > td > div.columns > div > label.region-title {
		cursor: pointer;
	}

	#language-switcher-modal tr.regions > td > div.columns > div > label.region-title::after {
		display: block;
	}

	#language-switcher-modal tr.regions > td > div.columns > div > ul {
		max-height: 0;
	}
}

