/**
 * Layout1 search overlay — l1-search BEM (isolated from .searchBox / storefront-bold__search-*).
 * Build: 20260522-layout1-h-v59
 * Scope: body.theme-layout1.storefront-bold
 */

body.theme-layout1.storefront-bold .l1-search {
  position: fixed;
  inset: 0;
  z-index: 120080;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: rgba(15, 23, 42, 0.55);
  box-sizing: border-box;
}

body.theme-layout1.storefront-bold .l1-search.show,
body.theme-layout1.storefront-bold .l1-search[aria-hidden="false"] {
  display: flex !important;
}

body.theme-layout1.storefront-bold .l1-search__panel {
  width: min(100%, 36rem);
  margin: 0 auto;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  box-sizing: border-box;
}

body.theme-layout1.storefront-bold .l1-search__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

body.theme-layout1.storefront-bold .l1-search__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sf-bold-ink, #0f172a);
}

body.theme-layout1.storefront-bold .l1-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sf-bold-ink, #0f172a);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

body.theme-layout1.storefront-bold .l1-search__close-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

body.theme-layout1.storefront-bold .l1-search__field {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

body.theme-layout1.storefront-bold .l1-search__input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--sf-bold-ink, #0f172a);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

body.theme-layout1.storefront-bold .l1-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 0;
  background: var(--sf-theme-accent, #c45c5c);
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

body.theme-layout1.storefront-bold .l1-search__suggest {
  margin-top: 0.5rem;
}

body.theme-layout1.storefront-bold .l1-search__suggest[hidden] {
  display: none !important;
}

/* Monolith .searchBox / storefront-bold__search-* must not apply inside l1-search */
body.theme-layout1.storefront-bold:has(.l1-search) .storefront-bold__search.searchBox,
body.theme-layout1.storefront-bold:has(.l1-search) .storefront-bold__search-overlay.searchBox {
  display: none !important;
}
