.mls-form {
	position: relative;	
	margin: 0 0 20px;
	padding: 0;
	width: 100%;
}

.mls-results-cont {
	position: absolute;
	top: 45px;
	left: 0;
	z-index: 99;
	background: #fff;
	width: 400px;
}

.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: 15px;
	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: 17px;
    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: 15px;
	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: 17px;
    bottom: -5px;
    position: absolute;
}

.mls-results {	
	display: block;
	max-height: 400px;
	overflow: auto;
	text-align: left;
}

.mls-tooltip {
	display: block;
	padding: 12px;	
	color: #777;
	overflow: hidden;
}

.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: 16px;	
	width: 24px;
	height: 35px;
	line-height: 34px !important;
	text-align: center;
	position: absolute;
	top: 0;
	right: 6px;
	cursor: pointer;
	transition: all 0.3s ease 0s;
	z-index: 100;
}

.close-results:hover {
}

.mls-loading {
	position: absolute;
	top: 0;
	right: 6px;
	vertical-align: top;
	padding: 0;
	text-align: center;
	z-index: 99;
	width: 24px;
	height: 35px;
	line-height: 34px;
}

.mls-module-spinner {
	position: relative;
	height: 18px;
	width: 18px;
	top: 8px;
	display: none;
	vertical-align: top;
}

.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;
}

.mod-mls-more-results {
	display: block;
	text-align: center;	
	padding: 0;
}
.mod-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;
}

.mod-mls-more-results a:hover,
.mod-mls-more-results a:focus,
.mod-mls-more-results li.selected a {
	background: #058ec4;
	color: #fff;
}

.mls-empty-results i {
	font-size: 14px;
	margin: 0 8px 0 0;	
}

.mod-mls-more-results i {
	font-size: 14px;
	margin: 0 8px 0 0;	
}

/* Lists */

.mls-results ul {
	padding: 0 !important;
	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: 40px !important;
	margin: 4px 0 4px 7px;
	float: left;
	border-radius: 3px;
	overflow: hidden;
}

.mls-ul li span {
	display: block;	
	overflow: hidden;
}

.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: 34px !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: 26px !important;
	height: 26px;
	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: 14px;
	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 ******/
/*********************/

/****************************/
/* Default theme  ***********/
/****************************/

.default-theme .mls-results-cont.expanded,
.default-theme .instance-selector-cont.expanded {
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

.default-theme .mls-tooltip-cont.expanded {
	box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.1);
}

.default-theme .mls-results,
.default-theme .mls-tooltip {
	border: 1px solid #ccc;
	border-radius: 4px;
}

.default-theme .mls-results h3 {
	color: #555;
}

.default-theme .instance-selector {
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

.default-theme input.mls-query {
	border: 1px solid #ccc;
	color: #aaa;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}

.default-theme input.mls-query:focus {
}

.default-theme .mod-mls-btn {
	color: #fff;
}

.default-theme .mod-mls-btn:hover,
.default-theme .mod-mls-btn:focus,
.default-theme .mod-mls-btn:active {
	color: #fff;
}

.default-theme .selector-button {
}

.default-theme .selector-button:hover {
	color: #444 !important;
}

.default-theme .close-results {
}

.default-theme .close-results:hover {
	color: #444 !important;
}

/******************************/
/* Default theme - Blue skin **/
/******************************/

.default-theme.blue-skin input.mls-query:focus {
	border-color: rgba(82, 168, 236, 0.8);
	color: #058ec4;
}

.default-theme.blue-skin .mod-mls-btn {
	background: #058ec4;
}

.default-theme.blue-skin .mod-mls-btn:hover,
.default-theme.blue-skin .mod-mls-btn:focus,
.default-theme.blue-skin .mod-mls-btn:active {
	background: #0578C4;
}

.default-theme.blue-skin .selector-button {
	color: #058ec4;	
}

.default-theme.blue-skin .close-results {
	color: #058ec4;
}

.default-theme.blue-skin .mls-results h3 {
	background: #f0f6f8;
}

.default-theme.blue-skin .mls-results ul li a:hover,
.default-theme.blue-skin .mls-results ul li a:focus,
.default-theme.blue-skin .mls-results ul li.selected a {
	background: #058ec4;
	border-bottom: 1px solid #058ec4;
}

.default-theme.blue-skin .mls-results-cont:after, 
.default-theme.blue-skin .instance-selector-cont:after {
	border-bottom: 6px solid #f0f6f8;
}

.default-theme.blue-skin .mls-tooltip-cont:after {
	border-top: 6px solid #f0f6f8;
}
.default-theme.blue-skin .mls-tooltip {
	background: #f0f6f8;
}
.default-theme.blue-skin .mls-tooltip i.fa,
.default-theme.blue-skin .mls-tooltip .highlight {
	color: #058ec4;
}

.default-theme.blue-skin .mls-empty-results {
	background: #f0f6f8;
	color: #058ec4;
}

.default-theme.blue-skin .subinstance {
	background: #f0f6f8;
}

.default-theme.blue-skin .subinstance:hover,
.default-theme.blue-skin .subinstance.not-selected {
	background: #E2F2F7;
}

/******************************/
/* Default theme - Grey skin **/
/******************************/

.default-theme.grey-skin input.mls-query:focus {
	border-color: rgba(138, 157, 172, 0.8);
	color: #555;
}

.default-theme.grey-skin .mod-mls-btn {

	background: #7c8183;
}

.default-theme.grey-skin .mod-mls-btn:hover,
.default-theme.grey-skin .mod-mls-btn:focus,
.default-theme.grey-skin .mod-mls-btn:active {
	background: #686d6f;
}

.default-theme.grey-skin .selector-button {
	color: #777;	
}

.default-theme.grey-skin .close-results {
	color: #777;
}

.default-theme.grey-skin .mls-results h3 {
	background: #f5f5f5;
}

.default-theme.grey-skin .mls-results ul li a:hover,
.default-theme.grey-skin .mls-results ul li a:focus,
.default-theme.grey-skin .mls-results ul li.selected a {
	background: #7c8183;
	border-bottom: 1px solid #7c8183;
}


.default-theme.grey-skin .mls-results-cont:after, 
.default-theme.grey-skin .instance-selector-cont:after {
	border-bottom: 6px solid #f5f5f5;
}

.default-theme.grey-skin .mls-tooltip-cont:after {
	border-top: 6px solid #f5f5f5;
}
.default-theme.grey-skin .mls-tooltip {
	background: #f5f5f5;
}
.default-theme.grey-skin .mls-tooltip i.fa,
.default-theme.grey-skin .mls-tooltip .highlight {
	color: #777;
}

.default-theme.grey-skin .mls-empty-results {
	background: #f5f5f5;
	color: #777;	
}

.default-theme.grey-skin .subinstance {
	background: #f5f5f5;
}

.default-theme.grey-skin .subinstance:hover,
.default-theme.grey-skin .subinstance.not-selected {
	background: #E8ECED;
}

/******************************/
/* Default theme - Green skin **/
/******************************/

.default-theme.green-skin input.mls-query:focus {
	border-color: rgba(114, 137, 77, 0.8);
	color: #72894d;
}

.default-theme.green-skin .mod-mls-btn {
	//background: #72894d;
	background: #789E3A;
}

.default-theme.green-skin .mod-mls-btn:hover,
.default-theme.green-skin .mod-mls-btn:focus,
.default-theme.green-skin .mod-mls-btn:active {
	//background: #5e713f;
	background: #72894d;
}

.default-theme.green-skin .selector-button {
	color: #72894d;	
}

.default-theme.green-skin .close-results {
	color: #72894d;
}

.default-theme.green-skin .mls-results h3 {
	background: #F1FAE1;
}

.default-theme.green-skin .mls-results ul li a:hover,
.default-theme.green-skin .mls-results ul li a:focus,
.default-theme.green-skin .mls-results ul li.selected a {
	background: #789E3A;
	border-bottom: 1px solid #72894d;
}


.default-theme.green-skin .mls-results-cont:after, 
.default-theme.green-skin .instance-selector-cont:after {
	border-bottom: 6px solid #F1FAE1;
}

.default-theme.green-skin .mls-tooltip-cont:after {
	border-top: 6px solid #F1FAE1;
}
.default-theme.green-skin .mls-tooltip {
	background: #F1FAE1;
}
.default-theme.green-skin .mls-tooltip i.fa,
.default-theme.green-skin .mls-tooltip .highlight {
	color: #72894d;
}

.default-theme.green-skin .mls-empty-results {
	background: #F1FAE1;
	color: #72894d;	
}

.default-theme.green-skin .subinstance {
	background: #F1FAE1;
}

.default-theme.green-skin .subinstance:hover,
.default-theme.green-skin .subinstance.not-selected {
	background: #E4F8C3;
}

/******************************/
/* Default theme - Orange skin **/
/******************************/

.default-theme.orange-skin input.mls-query:focus {
	border-color: rgba(218, 127, 21, 0.8);
	color: #da7f15;
}

.default-theme.orange-skin .mod-mls-btn {
	background: #eb8430;
}

.default-theme.orange-skin .mod-mls-btn:hover,
.default-theme.orange-skin .mod-mls-btn:focus,
.default-theme.orange-skin .mod-mls-btn:active {
	background: #ca6d00;
}

.default-theme.orange-skin .selector-button {
	color: #da7f15;	
}

.default-theme.orange-skin .close-results {
	color: #da7f15;
}

.default-theme.orange-skin .mls-results h3 {
	background: #fbf7c8;
}

.default-theme.orange-skin .mls-results ul li a:hover,
.default-theme.orange-skin .mls-results ul li a:focus,
.default-theme.orange-skin .mls-results ul li.selected a {
	background: #eb8430;
	border-bottom: 1px solid #da7f15;
}


.default-theme.orange-skin .mls-results-cont:after, 
.default-theme.orange-skin .instance-selector-cont:after {
	border-bottom: 6px solid #fbf7c8;
}


.default-theme.orange-skin .mls-tooltip-cont:after {
	border-top: 6px solid #fbf7c8;
}
.default-theme.orange-skin .mls-tooltip {
	background: #fbf7c8;
}
.default-theme.orange-skin .mls-tooltip i.fa,
.default-theme.orange-skin .mls-tooltip .highlight {
	color: #da7f15;
}

.default-theme.orange-skin .mls-empty-results {
	background: #fbf7c8;
	color: #da7f15;	
}

.default-theme.orange-skin .subinstance {
	background: #fbf7c8;
}

.default-theme.orange-skin .subinstance:hover,
.default-theme.orange-skin .subinstance.not-selected {
	background: #FFECB4;
}

/******************************/
/* Default theme - Red skin **/
/******************************/

.default-theme.red-skin input.mls-query:focus {
	border-color: rgba(235, 76, 76, 0.8);
	color: #eb4c4c;
}

.default-theme.red-skin .mod-mls-btn {
	background: #eb4c4c;
}

.default-theme.red-skin .mod-mls-btn:hover,
.default-theme.red-skin .mod-mls-btn:focus,
.default-theme.red-skin .mod-mls-btn:active {
	background: #cc3f3f;
}

.default-theme.red-skin .selector-button {
	color: #eb4c4c;	
}

.default-theme.red-skin .close-results {
	color: #eb4c4c;
}

.default-theme.red-skin .mls-results h3 {
	background: #fff7f7;
}

.default-theme.red-skin .mls-results ul li a:hover,
.default-theme.red-skin .mls-results ul li a:focus,
.default-theme.red-skin .mls-results ul li.selected a {
	background: #eb4c4c;
	border-bottom: 1px solid #eb4c4c;
}


.default-theme.red-skin .mls-results-cont:after, 
.default-theme.red-skin .instance-selector-cont:after {
	border-bottom: 6px solid #fff7f7;
}

.default-theme.red-skin .mls-tooltip-cont:after {
	border-top: 6px solid #fff7f7;
}
.default-theme.red-skin .mls-tooltip {
	background: #fff7f7;
}
.default-theme.red-skin .mls-tooltip i.fa,
.default-theme.red-skin .mls-tooltip .highlight {
	color: #eb4c4c;
}

.default-theme.red-skin .mls-empty-results {
	background: #fff7f7;
	color: #eb4c4c;
}

.default-theme.red-skin .subinstance {
	background: #fff7f7;
}

.default-theme.red-skin .subinstance:hover,
.default-theme.red-skin .subinstance.not-selected {
	background: #FFEDED;
}

/****************************/
/* 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;
}

.modern-theme .instance-selector {
	border-radius: 0;
	overflow: hidden;
}

.modern-theme .subinstance {
	background: #fff;
}

.modern-theme .subinstance:hover {
	color: #fff;
}

.modern-theme .subinstance.not-selected {
}

.modern-theme .subinstance.last {
	border: 0 !important;	
}

.modern-theme input.mls-query {
	color: rgba(255,255,255,0.9);
	box-shadow: none;
}

.modern-theme input.mls-query::-webkit-input-placeholder { /* WebKit browsers */
    color:    #fff;
}
.modern-theme input.mls-query:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color:    #fff;
}
.modern-theme input.mls-query::-moz-placeholder { /* Mozilla Firefox 19+ */
    color:    #fff;
}
.modern-theme input.mls-query:-ms-input-placeholder { /* Internet Explorer 10+ */
    color:    #fff;
}

.modern-theme input.mls-query:focus {
	color: #fff;
	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: rgba(255,255,255,0.85);
}

.modern-theme .close-results:hover,
.modern-theme .close-results:focus {
	color: #fff;
}

.modern-theme .mls-results h3 {
	border: 0;
	color: #fff;
	font-weight: 600;
}

.modern-theme .mls-results-cont:before {
}
.modern-theme .instance-selector-cont:before {
}

.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 {
}

.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-results ul {
	border-width: 0 2px !important;	
}

.modern-theme .mls-item-title {
}

.modern-theme .mod-mls-more-results li a {
}

.modern-theme .mod-mls-more-results li a:hover,
.modern-theme .mod-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 #59c2e6;
	background: #59c2e6;
}

.modern-theme.blue-skin input.mls-query:focus {
	border: 1px solid #59c2e6;
	background: #59c2e6;
}

.modern-theme.blue-skin .mod-mls-btn {
	background: #4f5f6f;
}

.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: #3d4e5f;
}

.modern-theme.blue-skin .mls-results h3 {
	background: #59C2E6;
}

.modern-theme.blue-skin .mls-results-cont:before {
	border-bottom: 6px solid #59C2E6;
}
.modern-theme.blue-skin .instance-selector-cont:before {
	border-bottom: 6px solid #59C2E6;
}

.modern-theme.blue-skin .mls-results-cont:after {
	border-bottom: 6px solid #59C2E6;
}
.modern-theme.blue-skin .instance-selector-cont:after {
	border-bottom: 6px solid #59C2E6;
}

.modern-theme.blue-skin .mls-tooltip-cont:before,
.modern-theme.blue-skin .mls-tooltip-cont:after {
	border-top: 6px solid #59C2E6;
}
.modern-theme.blue-skin .mls-tooltip i.fa,
.modern-theme.blue-skin .mls-tooltip .highlight {
	color: #3190b0;
}

.modern-theme.blue-skin .mls-empty-results {
	border: 2px solid #59C2E6;
	color: #3190b0;
}

.modern-theme.blue-skin .mls-results ul li a {
	border-bottom: 1px solid #A4D9EB;
}

.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: #4f5f6f;
	border-bottom: 1px solid #A4D9EB;
}

.modern-theme.blue-skin .mls-results ul {
	border: 1px solid #59C2E6;
}

.modern-theme.blue-skin .mls-item-title {
	color: #4f5f6f; 
}

.modern-theme.blue-skin .mod-mls-more-results li a {
	color: #3190B0;
	border-bottom: 2px solid #59C2E6 !important;
}

/****************************/
/* Modern theme - Grey skin */
/****************************/

.modern-theme.grey-skin .instance-selector,
.modern-theme.grey-skin .mls-tooltip {
	border: 2px solid #979D9F;
}

.modern-theme.grey-skin .subinstance {
	color: #7c888c; 
	border-bottom: 1px solid #c2ced2;
}

.modern-theme.grey-skin .subinstance:hover {
	background: #979D9F;
	color: #fff;
}

.modern-theme.grey-skin .subinstance.not-selected {
	background: #e8eced;
	color: #7c888c;
}

.modern-theme.grey-skin input.mls-query {
	border: 1px solid #979D9F;
	background: #979D9F;
}

.modern-theme.grey-skin input.mls-query:focus {
	border: 1px solid #979D9F;
	background: #979D9F;
}

.modern-theme.grey-skin .mod-mls-btn {
	background: #64686a;
}

.modern-theme.grey-skin .mod-mls-btn:hover,
.modern-theme.grey-skin .mod-mls-btn:focus,
.modern-theme.grey-skin .mod-mls-btn:active {
	background: #515558;
}

.modern-theme.grey-skin .mls-results h3 {
	background: #979D9F;
}

.modern-theme.grey-skin .mls-results-cont:before {
	border-bottom: 6px solid #979D9F;
}
.modern-theme.grey-skin .instance-selector-cont:before {
	border-bottom: 6px solid #979D9F;
}

.modern-theme.grey-skin .mls-results-cont:after {
	border-bottom: 6px solid #979D9F;
}
.modern-theme.grey-skin .instance-selector-cont:after {
	border-bottom: 6px solid #979D9F;
}

.modern-theme.grey-skin .mls-tooltip-cont:before,
.modern-theme.grey-skin .mls-tooltip-cont:after {
	border-top: 6px solid #979D9F;
}
.modern-theme.grey-skin .mls-tooltip i.fa,
.modern-theme.grey-skin .mls-tooltip .highlight {
	color: #7c888c;
}

.modern-theme.grey-skin .mls-empty-results {
	border: 2px solid #979D9F;
	color: #7c888c;
}

.modern-theme.grey-skin .mls-results ul li a {
	border-bottom: 1px solid #c2ced2;
}

.modern-theme.grey-skin .mls-results ul li a:hover,
.modern-theme.grey-skin .mls-results ul li a:focus,
.modern-theme.grey-skin .mls-results ul li.selected a {
	background: #64686a;
	border-bottom: 1px solid #c2ced2;
}

.modern-theme.grey-skin .mls-results ul {
	border: 1px solid #979D9F;
}

.modern-theme.grey-skin .mls-item-title {
	color: #64686a; 
}

.modern-theme.grey-skin .mod-mls-more-results li a {
	color: #7c888c;
	border-bottom: 2px solid #979D9F !important;
}

/*****************************/
/* Modern theme - Green skin */
/*****************************/

.modern-theme.green-skin .instance-selector,
.modern-theme.green-skin .mls-tooltip {
	border: 2px solid #a8c17f;
}

.modern-theme.green-skin .subinstance {
	color: #79944d; 
	border-bottom: 1px solid #c2d5a5;
}

.modern-theme.green-skin .subinstance:hover {
	background: #a8c17f;
	color: #fff;
}

.modern-theme.green-skin .subinstance.not-selected {
	background: #e4f8c3;
	color: #79944d;
}

.modern-theme.green-skin input.mls-query {
	border: 1px solid #a8c17f;
	background: #a8c17f;
}

.modern-theme.green-skin input.mls-query:focus {
	border: 1px solid #a8c17f;
	background: #a8c17f;
}

.modern-theme.green-skin .mod-mls-btn {
	background: #536339;
}

.modern-theme.green-skin .mod-mls-btn:hover,
.modern-theme.green-skin .mod-mls-btn:focus,
.modern-theme.green-skin .mod-mls-btn:active {
	background: #44512e;
}

.modern-theme.green-skin .mls-results h3 {
	background: #a8c17f;
}

.modern-theme.green-skin .mls-results-cont:before {
	border-bottom: 6px solid #a8c17f;
}
.modern-theme.green-skin .instance-selector-cont:before {
	border-bottom: 6px solid #a8c17f;
}

.modern-theme.green-skin .mls-results-cont:after {
	border-bottom: 6px solid #a8c17f;
}
.modern-theme.green-skin .instance-selector-cont:after {
	border-bottom: 6px solid #a8c17f;
}

.modern-theme.green-skin .mls-tooltip-cont:before,
.modern-theme.green-skin .mls-tooltip-cont:after {
	border-top: 6px solid #a8c17f;
}
.modern-theme.green-skin .mls-tooltip i.fa,
.modern-theme.green-skin .mls-tooltip .highlight {
	color: #79944d;
}

.modern-theme.green-skin .mls-empty-results {
	border: 2px solid #a8c17f;
	color: #79944d;
}

.modern-theme.green-skin .mls-results ul li a {
	border-bottom: 1px solid #c2d5a5;
}

.modern-theme.green-skin .mls-results ul li a:hover,
.modern-theme.green-skin .mls-results ul li a:focus,
.modern-theme.green-skin .mls-results ul li.selected a {
	background: #536339;
	border-bottom: 1px solid #c2d5a5;
}

.modern-theme.green-skin .mls-results ul {
	border: 1px solid #a8c17f;
}

.modern-theme.green-skin .mls-item-title {
	color: #536339; 
}

.modern-theme.green-skin .mod-mls-more-results li a {
	color: #79944d;
	border-bottom: 2px solid #a8c17f !important;
}

/******************************/
/* Modern theme - Orange skin */
/******************************/

.modern-theme.orange-skin .instance-selector,
.modern-theme.orange-skin .mls-tooltip {
	border: 2px solid #f3a663;
}

.modern-theme.orange-skin .subinstance {
	color: #e46b01; 
	border-bottom: 1px solid #f2c299;
}

.modern-theme.orange-skin .subinstance:hover {
	background: #f3a663;
	color: #fff;
}

.modern-theme.orange-skin .subinstance.not-selected {
	background: #ffecb4;
	color: #e46b01;
}

.modern-theme.orange-skin input.mls-query {
	border: 1px solid #f3a663;
	background: #f3a663;
}

.modern-theme.orange-skin input.mls-query:focus {
	border: 1px solid #f3a663;
	background: #f3a663;
}

.modern-theme.orange-skin .mod-mls-btn {
	background: #ba5b09;
}

.modern-theme.orange-skin .mod-mls-btn:hover,
.modern-theme.orange-skin .mod-mls-btn:focus,
.modern-theme.orange-skin .mod-mls-btn:active {
	background: #a24d04;
}

.modern-theme.orange-skin .mls-results h3 {
	background: #f3a663;
}

.modern-theme.orange-skin .mls-results-cont:before {
	border-bottom: 6px solid #f3a663;
}
.modern-theme.orange-skin .instance-selector-cont:before {
	border-bottom: 6px solid #f3a663;
}

.modern-theme.orange-skin .mls-results-cont:after {
	border-bottom: 6px solid #f3a663;
}
.modern-theme.orange-skin .instance-selector-cont:after {
	border-bottom: 6px solid #f3a663;
}

.modern-theme.orange-skin .mls-tooltip-cont:before,
.modern-theme.orange-skin .mls-tooltip-cont:after {
	border-top: 6px solid #f3a663;
}
.modern-theme.orange-skin .mls-tooltip i.fa,
.modern-theme.orange-skin .mls-tooltip .highlight {
	color: #e46b01;
}

.modern-theme.orange-skin .mls-empty-results {
	border: 2px solid #f3a663;
	color: #e46b01;
}

.modern-theme.orange-skin .mls-results ul li a {
	border-bottom: 1px solid #f2c299;
}

.modern-theme.orange-skin .mls-results ul li a:hover,
.modern-theme.orange-skin .mls-results ul li a:focus,
.modern-theme.orange-skin .mls-results ul li.selected a {
	background: #ba5b09;
	border-bottom: 1px solid #f2c299;
}

.modern-theme.orange-skin .mls-results ul {
	border: 1px solid #f3a663;
}

.modern-theme.orange-skin .mls-item-title {
	color: #ba5b09; 
}

.modern-theme.orange-skin .mod-mls-more-results li a {
	color: #e46b01;
	border-bottom: 2px solid #f3a663 !important;
}

/*******************************/
/* Modern theme - Red skin *****/
/*******************************/

.modern-theme.red-skin .instance-selector,
.modern-theme.red-skin .mls-tooltip {
	border: 2px solid #FF9999;
}

.modern-theme.red-skin .subinstance {
	color: #f85d5d; 
	border-bottom: 1px solid #ffbaba;
}

.modern-theme.red-skin .subinstance:hover {
	background: #FF9999;
	color: #fff;
}

.modern-theme.red-skin .subinstance.not-selected {
	background: #ffeded;
	color: #f85d5d;
}

.modern-theme.red-skin input.mls-query {
	border: 1px solid #FF9999;
	background: #FF9999;
}

.modern-theme.red-skin input.mls-query:focus {
	border: 1px solid #FF9999;
	background: #FF9999;
}

.modern-theme.red-skin .mod-mls-btn {
	background: #bb3c3c;
}

.modern-theme.red-skin .mod-mls-btn:hover,
.modern-theme.red-skin .mod-mls-btn:focus,
.modern-theme.red-skin .mod-mls-btn:active {
	background: #ab2f2f;
}

.modern-theme.red-skin .mls-results h3 {
	background: #FF9999;
}

.modern-theme.red-skin .mls-results-cont:before {
	border-bottom: 6px solid #FF9999;
}
.modern-theme.red-skin .instance-selector-cont:before {
	border-bottom: 6px solid #FF9999;
}

.modern-theme.red-skin .mls-results-cont:after {
	border-bottom: 6px solid #FF9999;
}
.modern-theme.red-skin .instance-selector-cont:after {
	border-bottom: 6px solid #FF9999;
}

.modern-theme.red-skin .mls-tooltip-cont:before,
.modern-theme.red-skin .mls-tooltip-cont:after {
	border-top: 6px solid #FF9999;
}
.modern-theme.red-skin .mls-tooltip i.fa,
.modern-theme.red-skin .mls-tooltip .highlight {
	color: #f85d5d;
}

.modern-theme.red-skin .mls-empty-results {
	border: 2px solid #FF9999;
	color: #f85d5d;
}

.modern-theme.red-skin .mls-results ul li a {
	border-bottom: 1px solid #ffbaba;
}

.modern-theme.red-skin .mls-results ul li a:hover,
.modern-theme.red-skin .mls-results ul li a:focus,
.modern-theme.red-skin .mls-results ul li.selected a {
	background: #bb3c3c;
	border-bottom: 1px solid #ffbaba;
}

.modern-theme.red-skin .mls-results ul {
	border: 1px solid #FF9999;
}

.modern-theme.red-skin .mls-item-title {
	color: #bb3c3c; 
}

.modern-theme.red-skin .mod-mls-more-results li a {
	color: #f85d5d;
	border-bottom: 2px solid #FF9999 !important;
}

/*****************************/
/***** 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;	
	}
}

*/

/* Wide layout */

.mls-wide.mls-form {
	text-align: center;	
}

.mls-wide.mls-form .mls-form-inner {
	display: inline-block;
	position: relative;
	text-align: left;
}

.mls-wide.mls-form .mls-form-inner .mls-results-cont,
.mls-wide.mls-form .mls-form-inner .instance-selector-cont {
	width: 100%;	
	top: 60px;
	max-width: inherit;
}

.mls-wide.mls-form .mls-form-inner input.mls-query {
	width: 500px !important;
	height: 50px !important;
    padding: 8px 35px !important;	
}

@media (max-width: 650px) {
	.mls-wide.mls-form .mls-form-inner input.mls-query {
		width: 400px !important;
	}		
}

@media (max-width: 530px) {
	.mls-wide.mls-form .mls-form-inner input.mls-query {
		width: 300px !important;
	}		
}

@media (max-width: 440px) {
	.mls-wide.mls-form .mls-form-inner input.mls-query {
		width: 210px !important;
	}		
}

.mls-wide.mls-form.default-theme .mls-form-inner .mls-parent {
	box-shadow: 1px 1px 2px 0 rgba(0, 0, 0, 0.2) inset;	
}

.mls-wide.mls-form .mls-form-inner .mls-parent .selector-button,
.mls-wide.mls-form .mls-form-inner .mls-parent .selector-button i,
.mls-wide.mls-form .mls-form-inner .mls-parent .close-results,
.mls-wide.mls-form .mls-form-inner .mls-parent .close-results i {
	height: 50px;
	line-height: 50px;	
}

.mls-wide.mls-form .mls-form-inner .mls-parent .mls-loading {
	height: 50px;	
}

.mls-wide.mls-form .mls-form-inner .mls-parent .mls-module-spinner {
	line-height: 42px;	
	top: 17px;
}

.mls-wide.mls-form.default-theme .mls-form-inner input.mls-query {
	background: none;	
	font-size: 15px !important;
}

.mls-wide.mls-form .mls-form-inner .mod-mls-btn {
	height: 34px !important;
	padding: 8px 20px !important;
}

