/* Shared public/editor catalog controls. The input surface stays static. */
#catalogSearchForm {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
#catalogSearchForm .catalog-search {
  grid-column: auto;
  min-width: 0;
}
.catalog-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
#productSearch {
  min-height: 56px;
  min-width: 0;
  padding-right: 14px;
  background: #fdfcf9 !important;
  border: 1px solid #dadddc !important;
  color: var(--ink);
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  appearance: none;
  -webkit-appearance: none;
}
#productSearch::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
#catalogSearchSubmit,
#clearFilters {
  background: #fdfcf999 !important;
  color: var(--ink);
  border: 1px solid #dadddc;
  outline: none !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms ease, border-color 180ms ease !important;
}
#catalogSearchSubmit {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
#catalogSearchSubmit svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
#clearFilters {
  min-height: 56px;
  min-width: 80px;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
@media (max-width: 600px) {
  #catalogSearchForm .catalog-search {
    grid-column: 1 / -1;
  }
  #clearFilters {
    grid-column: 2;
    justify-self: end;
  }
}
@media (hover: hover) and (pointer: fine) {
  #catalogSearchSubmit:hover,
  #clearFilters:hover {
    color: #5e778b;
    border-color: #718ca3;
  }
}
#catalogSearchSubmit:active,
#catalogSearchSubmit:focus-visible,
#clearFilters:active,
#clearFilters:focus-visible {
  color: #48647b;
  border-color: #56748d;
}
@media (prefers-reduced-motion: reduce) {
  #catalogSearchSubmit,
  #clearFilters {
    transition: none !important;
  }
}
