/* !
 * jQuery LinkySelect Plugin 1.0 (13.08.2014)
 * Copyright (c) 2014, Vadym Danyliuk < vdlinky@gmail.com >
 * Released under the MIT license
 */

.linky-select__container,
.linky-select__header,
.linky-select__dropdown,
.linky-select__dropdown--filter,
.linky-select__body,
.linky-select__body--header,
.linky-select__body--item {
  box-sizing: border-box;
  /* box-sizing: content-box; Для даного режиму розкоментуйте рядок-fix у .linky-select__dropdown */
}
.linky-select__container {
  display: inline-block;
  position: relative;
  width: 300px;
  margin: 0;
  padding: 0;
  border: 1px solid #dddddd;
  border-radius: 4px;
}
.linky-select__container:hover {
  box-shadow: 0 0 1px #dddddd;
}
.linky-select__container.linky-select__active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 0 1px #dddddd;
}
.linky-select__header {
  height: 30px;
  line-height: 30px;
  padding-left: 10px;
  border-radius: 4px;
  background: #ffffff;
  color: #333333;
  cursor: pointer;
}
.linky-select__header::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 7px;
  width: 0;
  height: 0;
  border-width: 5px;
  border-style: solid;
  border-color: #999999 transparent transparent transparent;
}
.linky-select__header.linky-select__active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.linky-select__header.linky-select__active::after,
.linky-select__header.linky-select__active:hover::after {
  top: 7px;
  border-color: transparent transparent #666666 transparent;
}
.linky-select__header:hover::after {
  top: 13px;
  border-color: #666666 transparent transparent transparent;
}
.linky-select__dropdown {
  display: none;
  position: absolute;
  width: 100%;
  margin-top: 0;
  /* margin-left: -1px; Border-box:disabled fix! */
  overflow: hidden;
  z-index: 9999;
  border: 1px solid #dddddd;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  background: #ffffff;
  box-shadow: 0 0 1px #dddddd;
}
.linky-select__dropdown:hover {
  box-shadow: 0 0 1px #dddddd;
}
.linky-select__dropdown--filter {
  width: 100%;
  margin: 0;
  padding: 4px;
  outline: none;
  border: none;
  border-bottom: 1px solid #dddddd;
  background: #ffffff;
}
.linky-select__body {
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
}
.linky-select__body--header {
  padding: 5px;
  background: #eeeeee;
  color: #333333;
  cursor: default;
}
.linky-select__body--header.linky-select__hidden {
  display: none;
}
.linky-select__body--item,
.linky-select__body--nofind {
  padding: 0 5px;
  height: 30px;
  line-height: 30px;
  background: #ffffff;
  color: #333333;
  cursor: pointer;
}
.linky-select__body--item:hover,
.linky-select__body--nofind:hover,
.linky-select__body--item.linky-select__selected,
.linky-select__body--nofind.linky-select__selected {
  background: #f7f7f7;
  color: #333333;
}
.linky-select__body--item.linky-select__active,
.linky-select__body--nofind.linky-select__active {
  background: #cccccc;
  color: #333333;
}
.linky-select__body--item.linky-select__hidden,
.linky-select__body--nofind.linky-select__hidden {
  display: none;
}
select:disabled + .linky-select__container .linky-select__header {
  opacity: 0.5;
  background: #ffffff;
  cursor: default;
}
select:disabled + .linky-select__container:hover {
  box-shadow: none;
}
