.dynamic-search-box {
  position: relative;
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 3px;
  height: 40px;
  padding: 0;
  box-sizing: content-box;
  vertical-align: middle;
  line-height: 36px;
  width: 320px;
  margin-left: 32px;
}
.dynamic-search-box input[type="text"] {
  border: none;
  /*outline: none;*/
  line-height: 40px;
  font-size: 1.0rem;
  padding: 0 8px;
  box-sizing: border-box;
  width: 100%;
}
.dynamic-search-box .loader {
  position: absolute;
  right: 0px;
  top: 0px;
  transform: scale(0.8);
  display: none;
}
.dynamic-search-box .candidates {
  position: absolute;
  display: none;
  left: -1px;
  top: 40px;
  background-color: #fff;
  box-shadow: 0 4px 24px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0;
  min-width: 100%;
  max-width: 150%;
  max-height: 240px;
  overflow: auto;
  z-index: 200;
}
.dynamic-search-box .candidates li {
  list-style: none;
  text-align: left;
  padding: 0 16px;
  line-height: 40px;
  white-space: nowrap;
}
.dynamic-search-box .candidates li:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.dynamic-search-box .candidates li:last-child {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.dynamic-search-box .candidates li.selected {
  background-color: #2980b9;
  color: #fff;
}
.dynamic-search-box .candidates li.candidate:hover {
  background-color: #3498db;
  color: #fff;
}
.dynamic-search-box .candidates li * {
  color: #000;
  vertical-align: middle;
}
.dynamic-search-box .candidates li.candidate:hover *,
.dynamic-search-box .candidates li.selected * {
  color: #fff;
}
.dynamic-search-box .current {
  position: relative;
  display: none;
  line-height: 32px;
  padding: 0 36px 0 8px;
  border: 1px solid #85C1E9;
  background-color: #C2E0F4;
  border-radius: 3px;
  margin: 2px 2px;
  box-sizing: border-box;
  width: calc(100% - 4px);
}
.dynamic-search-box .current .value {
  width: 100%;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
  height: 33px;
  line-height: 27px;
}
.dynamic-search-box .current .value * {
  vertical-align: middle;
  color: #000;
}
.dynamic-search-box .current .delete {
  position: absolute;
  right: 4px;
  top: 5px;
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #aaa;
  border-radius: 12px;
}
.dynamic-search-box .current .delete::before {
  content: '';
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  left: 0;
  top: 0;
  transform-origin: 10px 2px;
  transform: translate(1.5px, 10.5px) rotate(45deg);
}
.dynamic-search-box .current .delete::after {
  content: '';
  position: absolute;
  display: block;
  width: 20px;
  height: 2px;
  background-color: #fff;
  left: 0;
  top: 0;
  transform-origin: 10px 2px;
  transform: translate(2.5px, 10.5px) rotate(-45deg);
}
.dynamic-search-box .current .delete:hover {
  background-color: #d0d0d0;

}
