.ov-container {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  font-family: inherit;
}

.ov-display {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 10px 6px 8px;
  background: #fff;
  cursor: pointer;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.ov-display:hover { outline: none; }

.ov-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-placeholder {
  color: #aaa;
}

.ov-clear {
  margin: -4px 2px;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  display: none;
}

.ov-arrow {
  margin: -4px 2px;
  font-size: 18px;
}

.ov-clear,
.ov-arrow {
  flex-shrink: 0;
}

.ov-drop {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 2px 5px #00000026;
  z-index: 3200;
  display: none;
}

.ov-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ov-option {
  padding: 6px 8px;
  cursor: pointer;
}

.ov-option:hover {
  background: #f5f5f5;
}

.ov-option.ov-selected {
  background: #e6f2ff;
  font-weight: bold;
}

.ov-container.ov-open .ov-display {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ov-search { 
  padding: 4px 6px;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}

.ov-search-input {
  width: 100%;
  padding: 4px 6px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.ov-group-label {
  padding: 6px 8px;
  font-weight: bold;
  font-size: 12px;
  color: #555;
  background: #f7f7f7;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.ov-group-label + .ov-option,
.ov-group-label ~ .ov-option {
  padding-left: 20px; 
}

.ov-group-label:not(:first-child) {
  margin-top: 4px;
}

.ov-option:hover {
  background: #f0f8ff;
}

.ov-drop.ov-multi .ov-option {
  position: relative;
  padding-left: 32px;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.ov-drop.ov-multi .ov-group-label + .ov-option,
.ov-drop.ov-multi .ov-group-label ~ .ov-option {
  padding-left: 44px;
}

.ov-drop.ov-multi .ov-option.ov-selected::before {
  content: "✓";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  color: #1064b5;
}

.ov-drop.ov-multi .ov-option::before {
  opacity: 0;
  transition: opacity .12s ease;
}
.ov-drop.ov-multi .ov-option.ov-selected::before {
  opacity: 1;
}