/* Scoped to controls added by the finder; existing menu/cart styling is preserved. */
#masthead .me-finder-header-search,
#masthead .me-finder-header-search__panel,
#masthead .me-finder-header-search__form,
#masthead .me-finder-header-search__input,
#masthead .me-finder-header-search__submit {
  box-sizing: border-box;
}
#masthead .me-finder-header-search { width: 100%; min-width: 0; }
#masthead .me-finder-header-search__form {
  display: flex; align-items: stretch; width: 100%; min-width: 0;
  margin: 0; padding: 0; height: 44px; border: 1px solid #c9c9c9;
  border-radius: 4px; background: #fff; color: #171717;
}
#masthead .me-finder-header-search__input {
  display: block; flex: 1 1 auto; width: 100%; min-width: 0; max-width: none;
  height: 42px; margin: 0; padding: 8px 12px; border: 0; border-radius: 4px 0 0 4px;
  background: #fff; color: #171717; font-family: inherit; font-size: 16px;
  font-weight: 400; line-height: 24px; box-shadow: none;
}
#masthead .me-finder-header-search__input::placeholder { color: #606060; opacity: 1; }
#masthead .me-finder-header-search__submit {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 44px; width: 44px; min-width: 44px; height: 42px; min-height: 0;
  margin: 0; padding: 0; border: 0; border-radius: 0 3px 3px 0;
  background: #f39200; color: #111; line-height: 1; cursor: pointer;
}
#masthead .me-finder-header-search__submit:hover { background: #ffac29; }
#masthead .me-finder-header-search__submit svg,
#masthead .me-finder-header-search__toggle svg { display: block; width: 24px; height: 24px; fill: currentColor; pointer-events: none; }
#masthead .me-finder-header-search__form:focus-within { border-color: #a65e00; outline: 2px solid #f39200; outline-offset: 2px; }
#masthead .me-finder-header-search__input:focus { outline: 0; box-shadow: none; }
#masthead .me-finder-header-search__submit:focus-visible,
#masthead .me-finder-header-search__toggle:focus-visible,
#masthead .me-finder-header-search__close:focus-visible { outline: 2px solid #f39200; outline-offset: 3px; }
#masthead .me-finder-header-search__sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#masthead .me-finder-header-search__mobile-slot { display: flex; align-items: center; flex: 0 0 44px; width: 44px; padding: 0; margin: 0; }
#masthead .me-finder-header-search__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; width: 44px; min-width: 44px; height: 44px; min-height: 44px;
  padding: 10px; margin: 0; border: 0; border-radius: 4px;
  background: transparent; color: #f39200; line-height: 1; cursor: pointer;
}
#masthead .me-finder-header-search__toggle:hover,
#masthead .me-finder-header-search__toggle[aria-expanded="true"] { background: rgba(243, 146, 0, 0.13); }
#masthead .me-finder-header-search__panel {
  width: 100%; padding: 8px 20px 16px; margin: 0; background: #151515; color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
#masthead .me-finder-header-search__panel[hidden] { display: none !important; }
#masthead .me-finder-header-search__panel-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 720px; margin: 0 auto 6px; font-size: 15px; font-weight: 600;
}
#masthead .me-finder-header-search__panel .me-finder-header-search__form { max-width: 720px; margin: 0 auto; }
#masthead .me-finder-header-search__close {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  margin: 0; padding: 8px 0 8px 8px; border: 0; background: transparent; color: #fff;
  font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer;
}
@media (max-width: 380px) {
  #masthead .me-finder-header-search__bar { padding-left: 12px; padding-right: 12px; }
  #masthead .me-finder-header-search__bar > .ast-builder-grid-row { column-gap: 8px; }
  #masthead .me-finder-header-search__panel { padding-left: 12px; padding-right: 12px; }
}
