
.open-search-overlay-toggle{
color: rgb(7, 60, 119);
margin-left: 10px;
border-radius: 12px;
text-align: center;
width: 108px;
padding: 3px 8px;
background-color: white;
text-decoration: none;
font-weight: bold;
font-size: 15px;
display: inline-block;
cursor: pointer;
} 
.open-search-overlay-toggle img{
height: 22px;
margin-right: 12px;
margin-bottom: -6px;
}

#mp-search-overlay-container{
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	z-index: 2000;
}
mp-search-overlay{
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #0000004d;	
}

mp-search-element{
	display: block;
	width: 1140px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

mp-search-bar,
mp-search-results-element{
	display: block;
	width: 525px;
	background: white;
	border-radius: 12px; 
	margin-bottom: 5px;
	min-height: 32px;
	margin-left: auto;
	position: relative;
}
mp-search-bar{
	margin-top: 15px !important; /* global first-child styling too dominating, refactoring suggested */ 
	display: flex;
	flex-direction: row;
	align-items: center;
	
	
}
mp-search-bar input{
flex-grow: 1;
margin-left: 30px;
border: none;
color: #5c5c5c;
font-size: 16px;
}
mp-search-bar img{
height: 22px;
margin-right: 8px;
}
mp-search-bar label{
font-weight: bold;
color: rgb(7, 60, 119);
margin-right: 38px;
/* font-size: 12px; */
}

mp-search-results-element{
	
}

mp-search-results-element mp-search-close{
	color: black;
	opacity: 0.5;
	border: 1px solid black;
	font-size: 12px;
	border-radius: 20px;
	display: block;
	position: absolute;
	top: 7px;
	right: 10px;
	width: 16px;
	height: 16px;
	line-height: 15px;
	text-align: center;
	cursor: pointer;
	transform: scale(0.75);
}

mp-search-results{
	display: flex;
	flex-direction: column;
	max-height: 500px; /* percent of screen height? */
max-height: 900px;
overflow-y: hidden;
	
	padding-left: 30px;
	padding-right: 30px;
}

mp-search-results .infosivu-search-result{
	padding-bottom: 12px;
	border-bottom: 1px solid #bcbcbc;
	margin-bottom: 13px;
}

mp-search-results .infosivu-search-result:first-child{
	padding-top: 40px;
}
mp-search-results .infosivu-search-result:last-child{
	border-bottom: 0px solid transparent;
}

mp-search-results .infosivu-search-result mini-esittely-search-result{
	display: flex;
	flex-direction: row;
}

mp-search-results .infosivu-search-result mini-esittely-search-result img{
	height: 130px;
	width: 200px;
	margin-right: 25px;
}

.infosivu-esittely-search-results-texts{
	height: 132px;
	overflow: hidden;
}
.infosivu-esittely-search-results-texts h4{
	line-height: 14px;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis; 
	margin: 0px 0px 0px 0px;
}
.infosivu-esittely-search-results-texts p{
	line-height: 14px;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
    margin-bottom: 4px;
    margin-top: 1px;
}
.infosivu-esittely-search-results-texts .infosivu-search-result-title{
	text-decoration: underline;
	font-size: 17px;
}

/* mobile */
search-icon-placeholder-mobile{
	/* background: #3ebfed; */
	width: 70px;
	height: 55px;
	position: absolute;
	top: 0;
	right: 118px;
	float: right;
	line-height: 120%;
	text-align: center;
	padding-top: 7px;
	margin: 0 auto;
	background-image: url('/templates/matkapojat2018/img/etsi_suurennuslasi_50x50.png');
	background-repeat: no-repeat;
	background-position: center center;
	
	display: none;
}

@media all and (max-width: 850px) {
	.open-search-overlay-toggle ttt{
		display: none;
	}
	.open-search-overlay-toggle{
		width: 24px;
	}
}



