
/*
 * SEARCH WIDGET
 * ----------------------------------------- */
.custom-search-wrapper {
  position: relative;
  display: inline-block;
  padding: 0 .5em;
}
.search-toggle svg {
  fill: var(--bcg-search-icon, #fff);
  width: 1.25em;
  transition: fill 0.3s;
}
/* Falls back to the icon color when no hover color is set. */
.search-toggle:hover svg,
.search-toggle:focus-visible svg {
  fill: var(--bcg-search-icon-hover, var(--bcg-search-icon, #fff));
}
.custom-search-wrapper button.search-toggle {
  background: none;
  padding: 0;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
}
.custom-search-wrapper button.search-toggle:hover {
  background: none;
}
.custom-search-wrapper button.search-toggle:focus {
  background: none;
  outline: none;
}
.custom-search-wrapper button.search-toggle:focus-visible {
  background: none;
  outline: 2px solid currentColor;
  outline-offset: 0.25em;
}
.search-box {
  position: absolute;
  top: 120%;
  right: 0;
  width: 0;
  max-width: 400px;
  background: white;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  overflow: hidden;
  transition:
    width 0.3s ease,
    opacity 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}
.search-box.show {
  width: 400px;
  opacity: 1;
  pointer-events: auto;
}
.header-search-form input {
  border: 1px solid #ddd;
  outline: none;
  border-radius: 6px;
  font-family: var(--ff-display);
  transition: all 0.2s ease;
  box-shadow: none;
}
.header-search-form input:focus {
  border: 1px solid transparent;
  outline: none;
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.2);
}
.search-field {
  padding: 6px;
  font-size: 1rem;
}
.search-submit,
.search-submit:hover {
  padding: 6px 10px;
  font-size: 1rem;
  background: none;
  border: none;
  outline: none;
}