#search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  vertical-align: middle;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border-bottom: 1px solid #ccc;
  z-index: 10;
}

.search-input {
  width: 100%;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  caret-color: var(--colorPrimary);
  outline: none;
  border: none;
  background: transparent;
}

#btn-x,
#btn-search {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

#btn-x {
  visibility: hidden; /* Hidden but takes up space */
}

#btn-x:hover svg {
  stroke: var(--colorPrimary);
}

/* When the placeholder is hidden, show the clear button, more elegant than via js */
.search-input:not(:placeholder-shown) ~ #btn-x {
  visibility: visible;
  cursor: pointer;
}
