/*------------------------------------*\
    LAYOUT
\*------------------------------------*/

.hdr-search {
	-webkit-flex-grow: 1;
    -ms-flex-positive: 1;
   flex-grow: 1;
	position: absolute;
    top: 12px;
    left: 50%;
    margin-left: -200px;
		width:400px;
}
.hdr-search .search-cancel {
	display:none;
}
.hdr-search .sbar {
	width:100%;
}
.typeahead-container {
    position: relative;
}

.typeahead-container * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.typeahead-query {
    width: 100%;
	margin:0 auto;
		display:block;
}
body.search-focused .body-darken {
		background-color:rgba(0,0,0,0);
	}
	body.search-focused .body-darken {
		position:fixed;
		background-color:rgba(0,0,0,.2);
		top:0;
		left:0;
		display:block;
		width:100%;
		height:100%;
		transition: all 320ms;
	}

/*------------------------------------*\
    INPUT, BUTTON, A & DROPDOWN
\*------------------------------------*/

.typeahead-container input {
	padding: 10px 15px 10px 55px;
	box-sizing: border-box;
    line-height: 20px;
    display: block;
    border: none;
    background-color: #f5f5f5;
    border-radius: 5px;
	width:100%;
	font-size: 1.1rem;
	font-family: Roboto;
	outline: 0;
	transition: all 320ms;
	color: rgba(0,0,0,.87);
	-webkit-appearance: none;
}
input[type="search"]::-webkit-search-cancel-button {
    display: none;
}
.typeahead-container input:active, 
.typeahead-container input:focus,
.typeahead-container input:hover,
.typeahead-container.result input {
	-webkit-box-shadow: 0 1px 1px 0 rgba(65,69,73,0.3), 0 1px 3px 1px rgba(65,69,73,0.15);
    box-shadow: 0 1px 1px 0 rgba(65,69,73,0.3), 0 1px 3px 1px rgba(65,69,73,0.15);
	background-color:white;
}
.typeahead-container.result input {
	border-bottom-left-radius:0;
	border-bottom-right-radius:0;
}


.typeahead-container button {
    display: block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
	border:0;
	background-color:transparent;
    touch-action: manipulation;
    cursor: pointer;
    white-space: nowrap;
	position:absolute;
	top:0;
	left:0;
	padding:0;
	box-shadow:none;
}
.typeahead-container button i {
	line-height:40px;
	width:40px;
	text-align: center;
	vertical-align: middle;
	font-size:16px;
	color: #767777;
}


.typeahead-container button:hover,
.typeahead-container button:focus {
    color: #333333;
    background-color: transparent;
    border:0;
}

.typeahead-container button:active,
.typeahead-container button.active {
    outline: 0;
    background-image: none;
    -webkit-box-shadow: 0;
    box-shadow: 0;
}

.typeahead-container button.disabled,
.typeahead-container button[disabled] {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.65;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: #ffffff;
    border-color: #cccccc;
}

.typeahead-query {
    position: relative;
    z-index: 2;
}

.typeahead-result .typeahead-list {
position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    min-width: 160px;
    margin: -2px 0 0 0;
    padding: 5px 0;
    list-style: none;
    font-size: 1.1rem;
    text-align: left;
    background-color: #fff;
    border: 0;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
    background-clip: padding-box;
    -webkit-box-shadow: 0 1px 1px 0 rgba(65,69,73,0.3), 0 1px 3px 1px rgba(65,69,73,0.15);
    box-shadow: 0 1px 1px 0 rgba(65,69,73,0.3), 0 1px 3px 1px rgba(65,69,73,0.15);
}

.typeahead-result.detached .typeahead-list {
    position: relative;
    z-index: 1041;
    top: auto;
    left: auto;
}

.typeahead-list > li:first-child {
    border-top: none;
}

.typeahead-list > li {
    position: relative;
    padding-left: 0;
    list-style: none;
	border: 0 !important;
}

.typeahead-list > li > a,
.typeahead-dropdown > li > a {
display: block;
    padding: 0 15px 0 55px;
    clear: both;
    font-weight: normal;
    line-height: 30px;
    color: #333333;
    white-space: nowrap;
    text-decoration: none;
    height: 30px;
}

.typeahead-list > li > a:hover,
.typeahead-list > li > a:focus,
.typeahead-list > li.active > a,
.typeahead-dropdown > li > a:hover,
.typeahead-dropdown > li > a:focus,
.typeahead-dropdown > li.active > a {
    background-color: #ebebeb;
    color: #333;
}

.typeahead-list.empty > li > a:hover,
.typeahead-list.empty > li > a:focus,
.typeahead-list.empty > li.active > a {
    background-color: transparent;
}

.typeahead-list.empty > li > a {
    cursor: default;
}

.typeahead-list > li.typeahead-group {
	display:none !important;
	visibility: hidden !important;
}

.typeahead-list > li.typeahead-group > a,
.typeahead-list > li.typeahead-group > a:hover,
.typeahead-list > li.typeahead-group > a:focus,
.typeahead-list > li.typeahead-group.active > a {
    background-color: #f1f1f1;
    cursor: default;
}

.typeahead-container.result .typeahead-list,
.typeahead-container.filter .typeahead-dropdown,
.typeahead-container.hint .typeahead-hint,
.typeahead-container.backdrop + .typeahead-backdrop {
    display: block !important;
}

.typeahead-container .typeahead-list,
.typeahead-container .typeahead-dropdown,
.typeahead-container .typeahead-hint,
.typeahead-container + .typeahead-backdrop {
    display: none !important;
}

/*------------------------------------*\
    MOSETS TREE
\*------------------------------------*/
.typeahead-container .row {
    display: flex;
    margin: 0;
    overflow: hidden;
}
.typeahead-container .row .catname {
    color: #090;
}

.typeahead-container .row .typeahead-result-thumbnail {
    display: inline-table;
    position: relative;
    top: -0.1em;
    width: 30px;
    height: 30px;
    float: left;
    border-radius: 6px;
    margin-right: 0.5em;
}

.typeahead-container .row .catname,
.typeahead-container .row .name {
    margin: 0;
    line-height: 30px;
}

.typeahead-result-thumbnail img {
    width: inherit;
    height: inherit;
}

.mt-serp .mt-pagination {
		margin-left:-13px;
	}
	body.com_mtree.task-search .allo-title a.logo-lang {
		display:none;
	}
	body.com_mtree.task-search .hdr-search {
			left: 150px;
			margin-left:0;
		width:545px !important;
		}
	body.com_mtree.task-search .typeahead-container input {
    padding: 10px 55px 10px 15px;
	}
	body.com_mtree.task-search .typeahead-container button {
		right:0;
		left:auto;
		height:40px;
	}
	body.com_mtree.task-search .typeahead-list > li > a, body.com_mtree.task-search .typeahead-dropdown > li > a {
		padding: 0 15px;
	}






/**** Mobile layout ****/
@media (max-width: 900px) {
	.hdr-search {
			margin-left: -200px;
			width: 400px;
	}
	body.com_mtree.task-search .hdr-search {
		left:145px;
		max-width: calc(100% - 295px);
	}
		.mt-serp .wrap-serp {
    margin-left: 145px;
    width: 100%;
			padding-left:15px;
	}
		.mt-serp .serp-sub-menu .wrap-serp {
		margin-left: 145px;
	}
	.mt-serp .wrap-serp .main {
    width: calc(100% - 295px);
    max-width: calc(100% - 295px);
		flex-basis: calc(100% - 295px);
	}
		.mt-serp .wrap-serp .side {
			display:none;
		}
}


@media (max-width: 767px) {
	.hdr-search {
			margin-left: calc(-50% + 150px);
			width: calc(100% - 300px);
	}
	
}

@media (max-width: 593px) {
		.hdr-search {
    margin-left: calc(-50% + 50px);
    width: calc(100% - 120px);
			top:10px;
		}
	body.com_mtree.task-search .hdr-search {
    margin-left: calc(-50% + 50px);
    width: calc(100% - 120px);
		max-width: calc(100% - 120px);
		left: 50%;
		top:10px;
}
	.mt-serp .wrap-serp {
			margin-left:50px;
		}
	.mt-serp .serp-sub-menu .wrap-serp {
		margin-left: 50px;
	}
	.mt-serp .wrap-serp .main {
    width: calc(100% - 50px);
    max-width: calc(100% - 50px);
    flex-basis: calc(100% - 50px);
    padding-right: 15px;
}
	.mt-serp .result a {
    display: inline-block;
    font-size: 1.1rem;
    margin-bottom: 3px;
	}
	.mt-serp .result .def {
    font-size: 0.9rem;
}
	.mt-serp .result .pron-wrap.size-40 {
    top: -9px;
    left: -55px;
	}
	.mt-serp .result .pron-wrap.size-40 .play svg.eq-active {
    margin: 10px 0 0 10px;
	}
	.mt-serp .result .pron-wrap.size-40 .play {
		margin-right:0;
	}
	.mt-serp .result .pron-wrap.size-40 .play::before {
    line-height: 40px;
    width: 40px;
    height: 40px;
	}
	.mt-serp .result .pron-wrap.size-40 .play.paused::before {
		width: 43px;
	}
	body.search-focused .mdl-layout__header-row::after {
    content:"";
		display:block;
		width:100%;
		height:1px;
		background-color:#ccc;
		position:absolute;
		top:55px;
		left:0;
	}
	body.search-focused .body-darken {
    background-color: white;
    top: 33px;
	}
	body.search-focused .search-cancel {
		position:absolute;
		top:-10px;
		background-color: white;
		left:-50px;
		width:50px;
		height:55px;
		color: #0cce7e;
		display:block;
		z-index:4;
	}
	body.search-focused .search-cancel i {
		width:50px;
		height:55px;
		text-align:center;
		line-height:55px;
		font-size: 1.4rem;
	}
	body.search-focused .mdl-layout__drawer-button {
		z-index:0;
	}
	.typeahead-container input,
	body.com_mtree.task-search .typeahead-container input {
		padding: 7px 50px 8px 15px;
		font-size:1.0rem;
		transition: all 0ms;
	}
	body.search-focused .typeahead-result .typeahead-list {
		top:43px;
	}
	.typeahead-list > li > a, 
	.typeahead-list > li > a:hover,
	.typeahead-list > li > a:focus,
	.typeahead-list > li > a:active,
	.typeahead-dropdown > li > a {
		padding: 0 15px 0 15px;
		font-size:1.0rem;
line-height: 40px;
    height: 40px;
		background-color:transparent;
	}
	.typeahead-container .row .catname, .typeahead-container .row .name {
		line-height:45px;
	}
	.typeahead-result .typeahead-list {
		padding:0;
		margin:0;
		box-shadow: none;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
		border-radius:0;
		background-color:transparent;
	}
	body.search-focused .hdr-search,
	body.search-focused.com_mtree.task-search .hdr-search {
    left: 50px;
    margin-left: 0;
    width: calc(100% - 50px) !important;
    max-width: 100%;
		top:10px;
	}
	body.search-focused..mdl-layout__header-row {
		border-bottom: 1px solid #ccc;
	}
	body.search-focused .typeahead-container input {
    display: block;
		padding: 7px 50px 8px 15px;
    border: none;
    background-color: white;
    border-radius: 0;
    width: 100%;
    font-size: 1.0rem;
		transition: all 0ms;
		box-shadow: none;
		-webkit-box-shadow: none;
		-moz-box-shadow: none;
	}
	.typeahead-container input:hover,
	.typeahead-container input:focus,
	.typeahead-container input:active {
		box-shadow: none;
		-moz-box-shadow: none;
		-webkit-box-shadow: none;
		border:0;
		background-color: #f5f5f5;
	}
	.typeahead-container button,
	body.com_mtree.task-search .typeahead-container button{
		left: auto;
		right:0;
		height:35px;
	}
	.typeahead-container button i {
		line-height:35px;
	}
	body.search-focused .typeahead-container .btn-in {
		display: block;
		position: absolute;
		top:-10px;
		right:0;
	}
	body.search-focused .typeahead-container button,
	body.search-focused.com_mtree.task-search .typeahead-container button{
		height:55px;
	}
	body.search-focused .typeahead-container button i {
		height:55px;
		line-height:55px;
		width:50px;
		font-size: 22px;
		font-weight:400;
		color: #0cce7e !important;
	}
	.mt-serp .serp-sub-menu ul li {
		padding: 0 15px 6px 15px;
    font-size: 0.9rem;
		line-height: 1.1rem;
	}
}






