.ss {
  position: relative;
  width: 320px;
  font-size: 14px;
}

.ss-toggle {
  width: 100%;
  min-height: 38px;
  padding: 8px 36px 8px 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.ss-toggle::after {
  content: "▼";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #666;
}

.ss.open .ss-toggle::after {
  content: "▲";
}

.ss-label {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.ss.open .ss-dropdown {
  display: block;
}

.ss-search-wrap {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.ss-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.ss-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.ss-item,
.ss-empty {
  padding: 8px 10px;
}

.ss-item {
  cursor: pointer;
}

.ss-item:hover,
.ss-item.is-active,
.ss-item.is-selected {
  background: #f2f4f7;
}

.ss-item.is-selected::after {
  content: " ✓";
  color: #666;
}

.ss-empty {
  color: #888;
}
