/*
 * Search bar: a large search box with a search button.
 *
 * The theme styles every [type="submit"] as a gold button, so the button's
 * selectors include [type="submit"] to win over it.
 */

.search-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
  padding: 0 20px;
  border-radius: 8px;
  background: #f3f3f3;
}

.search-bar:focus-within {
  outline: 2px solid #123b73;
  outline-offset: 2px;
}

.search-bar .search-bar__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #444;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  outline: none;
  appearance: none;
}

.search-bar .search-bar__input::placeholder {
  color: #444;
  opacity: 0.6;
}

.search-bar .search-bar__input::-webkit-search-cancel-button {
  display: none;
}

/* The theme's search icon, as in the header. */
.search-bar .search-bar__submit[type="submit"] {
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: #123b73;
  cursor: pointer;
  -webkit-mask: url("../../images/SVGs-3x/HEADER_FOOTER/SEARCH.svg") no-repeat center / contain;
  mask: url("../../images/SVGs-3x/HEADER_FOOTER/SEARCH.svg") no-repeat center / contain;
}

.search-bar .search-bar__submit[type="submit"]::after {
  content: none;
}

.search-bar .search-bar__submit[type="submit"]:hover,
.search-bar .search-bar__submit[type="submit"]:focus-visible {
  background-color: #0c7f9e;
}

@media (max-width: 767.98px) {
  .search-bar {
    height: 60px;
  }

  .search-bar .search-bar__input {
    font-size: 1.125rem;
  }

  .search-bar .search-bar__submit[type="submit"] {
    width: 22px;
    height: 22px;
  }
}
