#central-search-form  {
  display: flex;
  padding-bottom: unset;
  font-size: 0.8em;
}

#central-search-form > * {
  margin: unset !important;
}

/* Make the central-search-form scaleable */
#central-search-form input,
#central-search-form select,
#central-search-form button,
#central-search-form .form-item-endpoint::before {
  font-size: 1em;
}

#central-search-form select[name="endpoint"] {
  min-width: unset;
  width: 3.3em;
  height: 100%;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: unset;
  background-position: right 0.2em center;
  color: transparent;
  text-shadow: unset;
}

#central-search-form select[name="endpoint"] option {
  color: black;
}

#central-search-form .form-item-endpoint {
  position: relative;
}

#central-search-form input[name="search_query"] {
  border-radius: 0;
}

#central-search-form .form-item-endpoint::before {
  display: inline-block;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1.8em;
  height: 100%;
  transform: scaleX(-1);
  background-image: url('data:image/svg+xml,<svg class="bi bi-search" width="1em" height="1em" viewBox="0 0 16 16" fill="black" xmlns="http://www.w3.org/2000/svg"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
  background-size: 1.2em;
  background-repeat: no-repeat;
  background-position: right 0.4em center;
}

#central-search-form button[type="submit"] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}


/* Hide captcha activation question in edit mode.
 * We won't use it anyway, since we redirect the search via JS.
 */
#central-search-form details {
  display: none;
}