.search-select {
  position: relative;
  display: block;
}

.search-select__label {
  margin-bottom: 5px;
}

/* trigger is a .form-control button; display/width guard against .form-inline's width:auto */
.search-select__trigger.form-control {
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

.search-select__body {
  display: none;
  position: absolute;
  z-index: 1050;
  top: calc(100% + 2px);
  left: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}

.search-select.is-open .search-select__body {
  display: block;
}

.search-select__search.form-control {
  display: block;
  width: calc(100% - 20px);
  margin: 8px 10px;
  height: 34px;
  box-sizing: border-box;
}

.search-select__list {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 0 4px;
  border-top: 1px solid #eee;
}

.search-select__group-label {
  padding: 6px 10px 2px;
  font-size: 12px;
  font-weight: bold;
  color: #888;
}

.search-select__item {
  display: block;
  padding: 5px 10px 5px 20px;
  margin: 0;
  font-weight: normal;
  white-space: nowrap;
  cursor: pointer;
}

.search-select__item.is-checked {
  background: #fff5e6;
}

/* keyboard/mouse highlight, set by search-select.js */
.search-select__item.is-active {
  background: #ffe3b3;
}

.search-select__item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-select__item.is-hidden,
.search-select__group.is-hidden {
  display: none;
}

.search-select__empty,
.search-select__no-match {
  padding: 8px 10px;
  font-style: italic;
  color: #888;
}
