.wc-collection-search { margin: 0 0 18px; }
.wc-collection-search label { display: block; margin-bottom: 6px; color: #62645a; font-size: .875rem; }
.wc-collection-search input {
  box-sizing: border-box;
  width: min(100%, 32rem);
  min-height: 44px;
  padding: 8px 12px;
  color: inherit;
  background: #fffdf8;
  border: 1px solid #bcbcaf;
  border-radius: 8px;
  font: inherit;
}
#wc-search:focus {
  outline: none;
  box-shadow: none;
  border-color: #72766a;
}
@media (forced-colors: active) {
  #wc-search:focus { outline: 2px solid Highlight; }
}
.wc-search-field { position: relative; width: min(100%, 32rem); }
.wc-collection-search .wc-search-field input { width: 100%; padding-right: 76px; }
#wc-search::-webkit-search-cancel-button { appearance: none; display: none; }
.wc-search-actions { position: absolute; inset: 0 8px 0 auto; display: flex; align-items: center; }
.wc-search-actions button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; padding: 0; background: transparent; color: #55594e; cursor: pointer; }
.wc-search-actions button[hidden] { display: none; }
.wc-search-actions button:disabled { opacity: .55; cursor: default; }
#wc-search-clear span {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
}
#wc-search-clear span::before,
#wc-search-clear span::after {
  content: "";
  grid-area: 1 / 1;
  width: 12px;
  height: 1.5px;
  background: currentColor;
}
#wc-search-clear span::before { transform: rotate(45deg); }
#wc-search-clear span::after { transform: rotate(-45deg); }
#wc-search-toggle span { width: 0; height: 0; border: 6px solid transparent; border-top: 8px solid currentColor; border-bottom: 0; }
#wc-search-suggestions { position: absolute; z-index: 10; inset: calc(100% + 4px) 0 auto; padding: 4px; max-height: 16rem; overflow: auto; border: 1px solid #bcbcaf; border-radius: 8px; background: #fffdf8; }
#wc-search-suggestions button { display: block; width: 100%; padding: 8px; border: 0; border-radius: 4px; text-align: left; color: inherit; background: transparent; font: inherit; cursor: pointer; }
#wc-search-suggestions button:is(:hover, :focus-visible) { background: #eeece4; }

#wc-search-clear { color: #e8392b; }

.wc-search-panel {
  background: #f8f6ef;
  border: 1px solid #dedbd0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.wc-search-panel .wc-collection-search { margin: 0 0 14px; }
.wc-search-panel label { color: #56584f; font-size: 13px; }
.wc-search-panel .wc-search-field { width: 100%; }
.wc-search-panel #wc-search { padding-left: 40px; }
.wc-search-panel .wc-search-field::before,
.wc-search-panel .wc-search-field::after {
  content: "";
  position: absolute;
  top: 50%;
  pointer-events: none;
}
.wc-search-panel .wc-search-field::before {
  left: 14px;
  width: 12px;
  height: 12px;
  border: 1.5px solid #65685b;
  border-radius: 50%;
  transform: translateY(-65%);
}
.wc-search-panel .wc-search-field::after {
  left: 25px;
  width: 6px;
  height: 1.5px;
  background: #65685b;
  transform: rotate(45deg) translateY(3px);
}
.wc-search-panel .wc-collection-filters { border: 0; padding: 0; margin: 0; }
.wc-search-panel #wc-filter-form { gap: 12px; }
.wc-search-panel .wc-collection-select select { border-color: #d0cec2; }
#wc-result-sort:is(:focus, :active) { background-color: transparent; }
@media (max-width: 600px) {
  .wc-search-panel { padding: 12px; }
  .wc-search-panel #wc-filter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wc-search-panel #wc-filter-form label { min-width: 0; }
}

/* Keep the lowered underline inside the clipped title box. */
.wc-tile h3 {
  padding-bottom: 7px;
  margin-bottom: -2px;
}
