/*!
 * jQuery Custom Select Plugin - Master Source
 * 2014-02-06
 *
 * http://www.blissmedia.com.au/
 *
 * Copyright 2013 Bliss Media
 * Released under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 */

/* Standard
----------------------------------*/



.custom-select {

  position: relative;

    font-family: 'gfont';
	font-size:14px;
	color: #000;
	margin: 4px 0;
	padding: 0px 4px;
	line-height:22px;
	border:2px solid #efefef;
	/*max-width:300px;*/
	width:100%;
	max-width:400px;
	box-sizing: border-box;
   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   -ms-box-sizing: border-box;
	
	/*
	color: #555;
	margin: 4px 0;
	border-right:1px solid #555;
	border-bottom:1px solid #555;
	border-left:1px solid #e7e7e7;
	border-top:1px solid #e7e7e7;
	width:95%;
	max-width:398px;
  background: #fff;

  */


  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}
.custom-select a {
  display: inline-block;
  max-width: 400px;
  width:100%;
  padding: 0px 4px;
  color: #777;
  text-decoration: none;
  cursor: pointer;
}
.custom-select a span {
  display: inline-block;
  width: 100%;
  white-space: nowrap;
  padding: 2px 0;

  overflow: hidden;
}
.custom-select select {
  display: none !important;
}
.custom-select > div {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 1px 0 0 -1px;
  width: 100%;
	border-right:1px solid #555;
	border-bottom:1px solid #555;
	border-left:1px solid #e7e7e7;
  border-top: 0;
  background: #FFFFFF;
  z-index: 0; /* bylo z-index: 10 */
  overflow: hidden;
}
.custom-select input {
  width: 376px;
  border: 1px solid #888;
  margin: 5px 5px 0;
  padding: 5px;
  font-size: 12px;

}
.custom-select > div > div {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  margin: 5px;
  max-height: 200px;
}
.custom-select div ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.custom-select div ul li {
  display: none;
  padding: 5px;
}
.custom-select div ul li.active {
  display: block;
  cursor: pointer;
}
.custom-select div ul li:hover {
  background: #66bbff;
  color: #fff;
}
.custom-select div ul li.option-hover {
  background: #3399ff;
  color: #fff;
}
.custom-select div ul li.option-disabled {
  color: #999;
}
.custom-select div ul li.option-disabled:hover {
  background: #ff9999;
  color: #fff;
}
.custom-select div ul li.option-hover.option-disabled {
  background: #ff6666;
  color: #fff;
}
.custom-select div ul li.no-results {
  display: none;
  background: #f2f2f2;
  color: #000;
}

/* Custom Select - Open
----------------------------------*/
.custom-select-open {
  border-bottom: 1px solid #eee;
}
.custom-select-open div {
  display: block;
  z-index:99999;
}

/* Hide Input Box
----------------------------------*/
.custom-select input.custom-select-hidden-input {
  position: absolute !important;
  top: 0 !important;
  left: -1000px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  z-index: -1 !important;
}

/* Mobile Override
----------------------------------*/
.custom-select-mobile select {
  display: inline !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
