/* Shared list-filter field. Used by the jobs page and photograph galleries. */

.site-filter-wrapper,
.job-filter-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.site-filter-wrapper .form-control,
.site-filter-input,
#job-filter-input {
  border-radius: 2em;
  width: 20em;
  max-width: 100%;
  padding-right: 2.5em;
  box-sizing: border-box;
}

.site-filter-clear,
#clearFilterBtn {
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  background: #e5e7eb;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  color: #374151;
  cursor: pointer;
  padding: 0;
  width: 1.5em;
  height: 1.5em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-filter-clear:hover,
#clearFilterBtn:hover {
  background: #d1d5db;
  color: #111827;
}

.site-filter-clear:focus-visible,
#clearFilterBtn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(82, 168, 236, 0.6);
}

.site-filter-clear[hidden],
#clearFilterBtn[hidden] {
  display: none !important;
}
