/* Artellan 1.5.6 — compact inline product search in the free Blocksy HTML header.
   Size comes directly from the shortcode, not from theme input min-heights. */
.ag-header-product-search,
.ct-header .ag-header-product-search {
  --ag-header-search-width: 270px;
  --ag-header-search-height: 38px;
  --ag-header-search-button: var(--ag-header-search-height);
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--ag-header-search-button) !important;
  align-items: stretch !important;
  flex: 0 1 var(--ag-header-search-width);
  width: min(100%, var(--ag-header-search-width)) !important;
  max-width: min(100%, var(--ag-header-search-width)) !important;
  min-width: 0 !important;
  height: var(--ag-header-search-height) !important;
  min-height: 0 !important;
  max-height: var(--ag-header-search-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  color: var(--theme-form-text-initial-color, #262626);
  background: var(--theme-form-field-background-initial-color, #fff);
  border: 1px solid var(--theme-form-field-border-initial-color, #c9c9c9);
  border-radius: var(--theme-form-field-border-radius, 5px);
  box-shadow: none;
}
.ag-header-product-search:focus-within,
.ct-header .ag-header-product-search:focus-within {
  border-color: var(--theme-palette-color-1, #bf5c30);
  outline: 2px solid var(--theme-palette-color-1, #bf5c30);
  outline-offset: 1px;
}
.ag-header-product-search input[type="search"],
.ct-header .ag-header-product-search input[type="search"] {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 10px !important;
  font-family: var(--theme-font-family, inherit);
  font-size: 13px !important;
  font-weight: 400;
  line-height: normal !important;
  color: var(--theme-form-text-initial-color, #262626) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  appearance: none;
}
.ag-header-product-search input[type="search"]::placeholder { color: currentColor; opacity: .6; }
.ag-header-product-search button[type="submit"],
.ct-header .ag-header-product-search button[type="submit"] {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: var(--ag-header-search-button) !important;
  min-width: 0 !important;
  max-width: var(--ag-header-search-button) !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  color: var(--theme-button-text-initial-color, #fff) !important;
  background: var(--theme-button-background-initial-color, var(--theme-palette-color-1, #bf5c30)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
}
.ag-header-product-search button[type="submit"]:is(:hover,:focus-visible),
.ct-header .ag-header-product-search button[type="submit"]:is(:hover,:focus-visible) {
  color: var(--theme-button-text-hover-color, var(--theme-button-text-initial-color, #fff)) !important;
  background: var(--theme-button-background-hover-color, var(--theme-palette-color-1, #bf5c30)) !important;
}
.ag-header-product-search button[type="submit"] svg { width: 17px !important; height: 17px !important; display: block; flex: none; fill: none; }
.ag-header-product-search button[type="submit"] span { font-size: 12px; }
.ag-header-product-search > label.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: -1px !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 767px) {
  .ag-header-product-search, .ct-header .ag-header-product-search {
    width: 100% !important;
    max-width: min(100%, var(--ag-header-search-width)) !important;
  }
}
