.mls-form {
	position: relative;	
	margin: 0;
	padding: 0;
	width: 100%;
}

.mls-results-cont {
	position: absolute;
	top: 45px;
	right: 0;
	z-index: 99;
	background: #fff;
	width: 360px;
}

.mls-results-cont:before,
.instance-selector-cont:before {
	content: "";
	display: none;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-bottom: 6px solid #ccc;
	left: 65px;
	top: -6px;
	position:absolute;
}

.mls-results-cont:after,
.instance-selector-cont:after {
	content: "";
	display: none;
	border-left: 5px solid rgba(0, 0, 0, 0);
    border-right: 5px solid rgba(0, 0, 0, 0);
    left: 67px;
    top: -5px;
    position: absolute;
}

.instance-selector-cont:after {
	border-bottom: 6px solid #f9f9f9;
}

.mls-tooltip-cont {
	position: absolute;
	bottom: 45px;
	left: 0;
	z-index: 99;
	background: #fff;
	max-width: 410px;
	min-width: 280px;
}
.mls-tooltip-cont:before {
	content: "";
	display: none;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 6px solid #ccc;
	left: 65px;
	bottom: -6px;
	position:absolute;
}
.mls-tooltip-cont:after {
	content: "";
	display: none;
	border-left: 5px solid rgba(0, 0, 0, 0);
    border-right: 5px solid rgba(0, 0, 0, 0);
    left: 67px;
    bottom: -5px;
    position: absolute;
}

.mls-results {	
	display: block;
}

.mls-tooltip {
	display: block;
	padding: 12px;	
	color: #777;
}

.mls-tooltip i.fa {
	margin: 0 10px 0 0;
	font-size: 16px;
}

.mls-tooltip .highlight {
	font-weight: 600;
	background: none;	
}

.mls-results h3 {
	padding: 4px 10px;
	font-size: 13px;
	line-height: 20px;
	text-transform: uppercase;	
	margin: 0;
	font-weight: normal;
	border-bottom: 1px solid #ccc;
	text-align: left;
}

.mls-results-cont.expanded {
}

.selector-button {
	font-size: 16px;	
	width: 24px;
	height: 35px;
	line-height: 35px !important;
	text-align: center;
	position: absolute;
	top: 0;
	left: 6px;
	cursor: pointer;
	transition: all 0.3s ease 0s;
}

.selector-button:hover {
}

.instance-selector-cont {
	position: absolute;
	top: 45px;
	left: 0;
	z-index: 99;
	//display: none;
	background: #fff;
	width: 100%;
	max-width: 260px;
}

.instance-selector-cont.expanded {
}

.instance-selector {	
}

.selector-tools {
	padding: 5px 15px;	
	background: #f9f9f9;
	border-bottom: 1px solid #ccc;
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	color: #656565;
}

.selector-tools i {
	margin-left: 10px;	
	cursor: pointer;
}
.selector-tools i:hover {
	color: #444;
}

.selector-tools span {
	font-size: 11px;
	padding-left: 5px;	
	color: #888;
}

.subinstance {
	padding: 5px 40px 5px 15px;	
	font-size: 11px;
	line-height: 16px;
	font-weight: 600;
	color: #656565;
	border-bottom: 1px solid #ccc;
	position: relative;
	cursor: pointer;
}

.subinstance:hover {
	background: #f5f5f5;	
}

.subinstance.not-selected {
	background: #f5f5f5;	
}

.subinstance.last {
	border: 0;	
}

.subinstance i {
	position: absolute;
	top: 7px;
	right: 14px;
	font-size: 13px;
}

.subinstance i.fa-square-o {
	right: 16px;	
}

.mls-parent {
	display: inline-block;
	position: relative;	
	max-width: 100%;
}

.close-results {
	display: none;
	font-size: 10px;	
	width: 24px;
	height: 28px;
	line-height: 28px !important;
	text-align: center;
	position: absolute;
	top: 0;
	right: 6px;
	cursor: pointer;
	transition: all 0.3s ease 0s;
}

.close-results:hover {
}

.mls-loading {
	position: absolute;
	top: 0;
	right: 6px;
	display: none;
	vertical-align: top;
	padding: 0;
	text-align: center;
	z-index: 99;
}
.mls-loading-cont {
	padding: 4px;
	line-height: 18px;
	display: block;
}

.mls-empty-results {
	text-transform: uppercase;	
	line-height: 40px;
	font-size: 12px;
	font-weight: bold;
	vertical-align: baseline;
	display: block;
	text-align: center;	
	padding: 10px;
}

.mls-more-results {
	display: block;
	text-align: center;	
	padding: 0;
}
.mls-more-results a {
	padding: 2px 10px;
	display: block;
	text-decoration: none;	
	text-transform: uppercase;	
	color: #888;
	line-height: 40px;
	font-size: 12px;
	font-weight: bold;
	vertical-align: baseline;
}

.mls-more-results a:hover,
.mls-more-results a:focus,
.mls-more-results li.selected a {
	background: #058ec4;
	color: #fff;
}

.mls-empty-results i {
	margin: 0 8px 0 0;	
}

.mls-more-results i {
	margin: 0 8px 0 0;

}

.mls-loading img {
	//margin-left: 15px;	
	vertical-align: middle;
}

/* Lists */

.mls-results ul {
	padding: 0;
	margin: 0;	
}

.mls-results ul li {
	list-style: none;
	margin: 0;
	padding: 0;	
}

.mls-results ul li a {
	padding: 0;
	display: block;
	border-bottom: 1px solid #ccc;
	text-decoration: none;	
	//white-space: nowrap;
	position: relative;
	color: #999;
	outline: none;
	background: #fff;
}

.mls-results ul li a:hover,
.mls-results ul li a:focus,
.mls-results ul li.selected a {
}

.mls-results ul li a:hover span,
.mls-results ul li a:focus span,
.mls-results ul li.selected a span {
	color: #fff !important;
}

.mls-ul li img {
	max-width: 80px !important;
}

.mls-ul li a span {
	display: block;	
	overflow: hidden;
}
.mls-imgbox {	
	max-width: 80px !important;
	max-height: 53px !important;
	margin: 4px 0 4px 7px;
	float: left;
	border-radius: 3px;
	overflow: hidden;
}

.mls-ul li .firstWord {display: inline;}

.mls-item-info {
	overflow: hidden;
}

.mls-item-info-margin {
	margin-left: 50px;		
}

.mls-item-info-inner {
	line-height: 16px;
	margin: 9px;	
	font-size: 11px;
}

.mls-item-title {
	font-weight: 700;
	font-size: 14px;
	color: #333;	
}

/* Search input */

input.mls-query {
	height: 28px !important;
	border: 0;
	padding: 4px 35px !important;	
	margin: 0 !important;
	width: 100% !important;
	border-radius: 0;
	display: inline-block !important;
	vertical-align: top;
	font-size: 13px !important;
	font-weight: normal;
	transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	box-shadow: none !important;
	box-sizing: border-box;
}
input.mls-query:focus {
	box-shadow: none;	
	border-color: transparent;
	outline: none;
}
input.no-selector {
	padding: 4px 35px 4px 14px !important;	
}

.mod-mls-btn {
	line-height: 20px !important;
	height: 20px;
	box-sizing: content-box;
	padding: 4px 12px !important;
	border-radius: 0;	
	margin: 0 !important;
	display: inline-block !important;
	font-size: 13px !important;
	text-align: center;
	vertical-align: top;
	outline: none;
	border: 0 !important;
	text-shadow: none;
	background: none;
	transition: all 0.3s ease 0s;
}

.mod-mls-btn:hover,
.mod-mls-btn:focus,
.mod-mls-btn:active {
	outline: none;
	text-decoration: none;
	background: none;
	transition: all 0.3s ease 0s;
}

.mod-mls-btn:focus {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mod-mls-btn i {
	font-size: 12px;
	margin: 0 3px;
}
.mod-mls-btn span {
	margin: 0 3px;	
}

/*********************/
/****** Effects ******/
/*********************/

/* No effect */

.no-effect .mls-results-cont,
.no-effect .instance-selector-cont,
.no-effect .mls-tooltip-cont {
	display: none;
}
.no-effect .mls-results-cont.expanded,
.no-effect .instance-selector-cont.expanded,
.no-effect .mls-tooltip-cont.expanded {
	display: block;
}
.no-effect .mls-results-cont.expanded:before,
.no-effect .mls-results-cont.expanded:after,
.no-effect .instance-selector-cont.expanded:before,
.no-effect .instance-selector-cont.expanded:after,
.no-effect .mls-tooltip-cont.expanded:before,
.no-effect .mls-tooltip-cont.expanded:after {
	display: inline-block;
}

/* Fade effect */

.fade-effect .mls-results-cont,
.fade-effect .instance-selector-cont {
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease-in-out 0s;
	top: 35px;
}
.fade-effect .mls-results-cont.expanded,
.fade-effect .instance-selector-cont.expanded {
	opacity: 1;
	visibility: visible;
	transition: all 0.25s ease-in-out 0s;
	top: 45px;
}
.fade-effect .mls-results-cont:before,
.fade-effect .mls-results-cont:after,
.fade-effect .instance-selector-cont:before,
.fade-effect .instance-selector-cont:after,
.fade-effect .mls-tooltip-cont:before,
.fade-effect .mls-tooltip-cont:after {
	display: inline-block;
}
.fade-effect .mls-results-cont.expanded:before,
.fade-effect .mls-results-cont.expanded:after,
.fade-effect .instance-selector-cont.expanded:before,
.fade-effect .instance-selector-cont.expanded:after,
.fade-effect .mls-tooltip-cont.expanded:before,
.fade-effect .mls-tooltip-cont.expanded:after {
	display: inline-block;
}
.fade-effect .mls-tooltip-cont {
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease-in-out 0s;
	bottom: 35px;
}
.fade-effect .mls-tooltip-cont.expanded {
	opacity: 1;
	visibility: visible;
	transition: all 0.25s ease-in-out 0s;
	bottom: 45px;	
}

/*********************/
/****** Themes ******/
/*********************/

/****************************/
/* Modern theme  ************/
/****************************/

.modern-theme .mls-results-cont.expanded {
	box-shadow: none;
}

.modern-theme .instance-selector-cont.expanded {
	box-shadow: none;
}

.modern-theme .mls-results {
	border: 0;
	border-radius: 0;
	overflow: hidden;
-webkit-box-shadow: 0px 5px 25px -10px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 5px 25px -10px rgba(0,0,0,0.75);
box-shadow: 0px 5px 25px -10px rgba(0,0,0,0.75);
}

.modern-theme .instance-selector {
	border-radius: 0;
	overflow: hidden;
}

.modern-theme .subinstance {
	background: #fff;
}

.modern-theme .subinstance:hover {
	color: #fff;
}

.modern-theme .subinstance.last {
	border: 0 !important;	
}

.modern-theme input.mls-query {
	color: #5E6779;
	box-shadow: none;
}

.modern-theme input.mls-query::-webkit-input-placeholder { /* WebKit browsers */
    color:    #5E6779;
}
.modern-theme input.mls-query:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color:    #5E6779;
}
.modern-theme input.mls-query::-moz-placeholder { /* Mozilla Firefox 19+ */
    color:    #5E6779;
}
.modern-theme input.mls-query:-ms-input-placeholder { /* Internet Explorer 10+ */
    color:    #5E6779;
}

.modern-theme input.mls-query:focus {
	color: #5E6779;
	box-shadow: none;
}

.modern-theme .mod-mls-btn {
	color: #fff;
}

.modern-theme .mod-mls-btn:hover,
.modern-theme .mod-mls-btn:focus,
.modern-theme .mod-mls-btn:active {
	color: #fff;
}

.modern-theme .selector-button {
	color: rgba(255,255,255,0.85);	
}

.modern-theme .selector-button:hover,
.modern-theme .selector-button:focus {
	color: #fff;	
}

.modern-theme .close-results {
	color: #ccc;
	opacity:0.7;
}

.modern-theme .close-results:hover,
.modern-theme .close-results:focus {
	color: #ccc;
	opacity:1;
}

.modern-theme .mls-results h3 {
	border: 0;
	color: #fff;
	font-weight: 600;
}

.modern-theme .mls-results-cont:after {
	top: -5px;
}
.modern-theme .instance-selector-cont:after {
	top: -5px;
}

.modern-theme .mls-empty-results {
	background: #fff;
}

.modern-theme .mls-results ul li a:hover,
.modern-theme .mls-results ul li a:focus,
.modern-theme .mls-results ul li.selected a {
}

.modern-theme .mls-more-results li a:hover,
.modern-theme .mls-more-results li a:focus {
	color: #fff !important;
}

/****************************/
/* Modern theme - Blue skin */
/****************************/

.modern-theme.blue-skin .instance-selector,
.modern-theme.blue-skin .mls-tooltip {
	border: 2px solid #59C2E6;
}

.modern-theme.blue-skin .subinstance {
	color: #3190b0; 
	border-bottom: 1px solid #a4d9eb;
}

.modern-theme.blue-skin .subinstance:hover {
	background: #59C2E6;
	color: #fff;
}

.modern-theme.blue-skin .subinstance.not-selected {
	background: #e2f2f7;
	color: #3190b0;
}

.modern-theme.blue-skin input.mls-query {
	border: 1px solid #EDEFF2;
	background: #FFF;
	border-radius: 4px 0px 0px 4px;
	-moz-border-radius: 4px 0px 0px 4px;
	-webkit-border-radius: 4px 0px 0px 4px;
}

.modern-theme.blue-skin input.mls-query:focus {
	border: 1px solid #EDEFF2;
	background: #FFF;
}

.modern-theme.blue-skin .mod-mls-btn {
	background: #5e6779;
	border-radius: 0px 4px 4px 0px;
	-moz-border-radius: 0px 4px 4px 0px;
	-webkit-border-radius: 0px 4px 4px 0px;
}

.modern-theme.blue-skin .mod-mls-btn:hover,
.modern-theme.blue-skin .mod-mls-btn:focus,
.modern-theme.blue-skin .mod-mls-btn:active {
	background: #404853;
}

.modern-theme.blue-skin .mls-results h3 {
	background: #5e6779;
}

.modern-theme.blue-skin .mls-results-cont:before {
	border-bottom: 6px solid #5e6779;
}
.modern-theme.blue-skin .instance-selector-cont:before {
	border-bottom: 6px solid #5e6779;
}

.modern-theme.blue-skin .mls-results-cont:after {
	border-bottom: 6px solid #5e6779;
}
.modern-theme.blue-skin .instance-selector-cont:after {
	border-bottom: 6px solid #5e6779;
}

.modern-theme.blue-skin .mls-tooltip-cont:before,
.modern-theme.blue-skin .mls-tooltip-cont:after {
	border-top: 6px solid #5e6779;
}
.modern-theme.blue-skin .mls-tooltip i.fa,
.modern-theme.blue-skin .mls-tooltip .highlight {
	color: #5e6779;
}

.modern-theme.blue-skin .mls-empty-results {
	border-top: 3px solid #5e6779;
	border-bottom: 1px solid #e4e4e4;
	color: #5e6779;
}

.modern-theme.blue-skin .mls-results ul li a {
	border-bottom: 1px solid #e4e4e4;
}

.modern-theme.blue-skin .mls-results ul li a:hover,
.modern-theme.blue-skin .mls-results ul li a:focus,
.modern-theme.blue-skin .mls-results ul li.selected a {
	background: #7E8AA2;
	border-bottom: 1px solid #7b828e;
}

.modern-theme.blue-skin .mls-item-title {
	color: #5e6779; 
}

.modern-theme.blue-skin .mls-more-results li a {
	color: #5e6779;
}

/*****************************/
/***** Responsive levels *****/
/*****************************/

@media (max-width: 450px) {
	input.mls-query {
		width: 100px !important;	
	}
}

/* 

To configure the search input width
and the search results width in the module,
you must write your own media queries (like the one above) for these 2 classes:

1. Search input: input.mls-query
2. Search results: .mls-results-cont

For example:
@media (max-width: 768px) {
	input.mls-query {
		width: 300px !important;	
	}
	.mls-results-cont {
		width: 500px !important;	
	}
}

*/
