#search {
	position: absolute;
	top: -70px;
	right: 0%;
	height: 38px;
	width: 150px;
	display: block;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	border: 1px solid #aaa;
	border-radius: 4px;
	
}

div#search input.textfield {
	padding: 0px 0 0px 10px;
	width: 100%;
    height: 36px;
	font-size: 100%;
	border: 0;
    font-family:inherit;
	color: #9b9b9b;
	background: #fff;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
    border-radius: 3px;
}

#search input.submit {
	position: absolute;
	cursor: pointer;
	width: 0px;
	height: 0px;
	z-index: 3;
	margin: 5px 0 0 0px;
	background-size: contain;
	border: 0;
    display: none;
}

#search span:after {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 20px !important;
    z-index: 3;
    content: '\f002';
    color: #9b9b9b;
    font-size: 20px;
    font-family: 'FontAweSome';
    cursor: pointer;
}




ol.cmsSearchResults {
	
}

li.cmsSearchResult {
}

ol.cmsSearchResults li.cmsSearchResult {
    margin-bottom: 20px;
}

img.cmsSearchIcon {
	vertical-align: text-bottom;
	padding-right: 5px;
	border: 0;
}

span.cmsSearchTitle {
	font-weight: bold;
	color: #777;
}

span.cmsSearchRating {
	font-size: 80%;
}

p.cmsSearchPreview {
	
}

p.cmsSearchLink {
	margin-bottom: 10px;
}

p.cmsSearchPreview em, span.cmsSearchTitle em {
	font-weight: bold;
	background-color: #efefef;
	color: #B01531;
}

#content div.results {
	padding-top: 20px;
}

#content div.results,
#content div.navigation {
	position: relative;
	margin: auto;
	clear: both !important;
    float: none !important;
    width: 100% !important;
}

@media only screen and (max-width: 870px){
    
    #search {
        top: 60px;
        left: 3%;
        right: auto;
        border-color: #fff;
        width: 94%;
        z-index: 3;
        height: 37px;
        border-radius: 3px;
    }
    
    div#search input.textfield {
        background-color: transparent;
        color: white;
        font-size: 110%;
        font-style:italic;
        transition: all 0.5s ease-in-out;
        
    }
    div#search input.textfield.focus {
        background-color: #ddd;
        color: #888 !important;
        margin-top: 0px;
        border-radius: 0;
        transition: all 0.5s ease-in-out;
    }
    
    #search form.focus span:after {
        color: #888;
    }
    
    input.textfield::-webkit-input-placeholder{ 
    	color:#777;
    	font-style:italic;
    	font-size: 95%;
    }
    input.textfield:-ms-input-placeholder{ 
    	color:#777;
    	font-style:italic;
    	font-size: 95%;
    } 
    input.textfield::-moz-placeholder{ 
    	color:#fff !important;
    	font-style:italic;
    	font-size: 95%;
        opacity: 1.0 !important;
    } 
    
    div#search span:after {
        position: absolute;
        font-family: 'FontAweSome';
        content: "\f002";
        height: 20px;
        font-size: 20px;
        width: 20px !important;
        top: 5px;
        right: 5px;
        color: #fff;
    	margin: 0px 0 0 0px;
        z-index: 3;
        cursor: pointer;
    }
    
    #search input.submit {
    	background: none;
    	border: 0;
    }
}


