.ct-input-box {
  position: relative;
  display: inline-block;
  border: 1px #ddd solid;
}

.ct-input-box:hover .ct-auto-close {
  display: block !important;
}

.ct-auto-input-box {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1;
  height: 100%;
  overflow: hidden;
}

.ct-auto-input {
  padding: 0 5px;
  width: 100%;
  border: none;
  box-sizing: border-box;
  transition-duration: .2s;
  outline: none;
  height: 100%;
}

.ct-auto-close {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  background: #ccc;
  color: #fff3f3;
  text-align: center;
  border-radius: 999px;
  user-select: none;
  transition-duration: .3s;
}

.ct-auto-close:hover {
  background: #ddd;
}

.ct-auto-close:active {
  background: #aaa;
}

.ct-auto-list {
  position: absolute;
  display: block;
  padding: 8px 0;
  width: auto;
  min-width: 100%;
  max-height: 450px;
  overflow-y: auto;
  top: 120%;
  left: 0;
  background: #fff;
  border: 1px #ddd solid;
  box-shadow: 0 0 25px #aaa;
}

.ct-auto-item {
  height: 28px;
  line-height: 28px;
  padding: 0 5px;
  width: auto;
  min-width: 100%;
  white-space: nowrap;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.ct-auto-item:hover {
  background: #f2f2f2;
  cursor: pointer;
}

.ct-auto-item-hover {
  background: #f2f2f2;
}