
/* Hide the native blue WebKit "x" and provide our own */
input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance: none;
  appearance: none;
  height: 0; width: 0; margin: 0; padding: 0; /* effectively hide it */
}

/* Our custom clear button */
.cv-search-clear{
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #000;
  opacity: 0.6;
}
.cv-search-clear:hover{ opacity: 1; }

/* Make sure the surrounding input has padding-right so text doesn't overlap the button */
.cv-search-clear + input,
input[type="search"].has-cv-clear{
  padding-right: 2rem !important;
}
