#catalog-view .lh-header-search:has(#coffee-search-suggestions) { position: relative; }
.lh-header-search:has([data-coffee-search]) { position: relative; }
.lh-global .lh-header-search [data-coffee-search] {
  border: 1px solid #416652;
  border-radius: 24px;
  background: #fffef8;
  box-shadow: none;
}
.lh-global .lh-header-search [data-coffee-search] > button {
  order: -1; color: #294432; background: transparent; border: 0; border-radius: 50%;
}
.lh-global .lh-header-search [data-coffee-search] .coffee-search-label {
  display: inline-flex; order: 1; padding: 4px 8px; border: 0; border-radius: 14px; background: #e5ecd8;
  font-size: clamp(.66rem, 2.6vw, .82rem);
}
body .main-coffee .coffee-toolbar.coffee-compact-toolbar {
  display: flex;
  padding: 8px 10px;
  margin: 8px 0 0;
  gap: 8px 14px;
  flex-wrap: wrap;
  border: 1px solid #c4cebc;
  border-radius: 12px;
  background: #f8f8edea;
}
.main-coffee .coffee-compact-toolbar .coffee-catalog-controls { margin: 0; width: auto; flex: 0 1 auto; }
.main-coffee .coffee-sort-form { width: auto; margin: 0 0 0 auto; }
.main-coffee .coffee-result-heading :is(h2, p) { display: block; }
.main-coffee .coffee-result-heading .mobile-catalog-title {
  position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%);
}
.main-coffee .coffee-usage-shortcuts { margin: 8px 0; flex-wrap: wrap; }
.main-coffee .studio-coffee-active .coffee-active-filters { margin: 0; }
#catalog-view .lh-global .lh-header-search #search {
  border: 1px solid #416652;
  border-radius: 24px;
  background: #fffef8;
  box-shadow: none;
}
#catalog-view #search > button { order: -1; color: #294432; background: transparent; border-radius: 50%; }
#catalog-view #search > input[type=search] { padding-inline: 2px 8px; }
#catalog-view #search .lh-search-scope {
  order: 1;
  padding: 4px 8px;
  border: 0;
  border-radius: 14px;
  background: #e5ecd8;
  font-size: clamp(.66rem, 2.6vw, .82rem);
}
#coffee-search-suggestions {
  position: absolute;
  inset: calc(100% + 7px) 0 auto;
  z-index: 5;
  padding: 7px;
  max-height: min(25rem, 64dvh);
  overflow: auto;
  background: #fffef8;
  border: 1px solid #b8c7b3;
  border-radius: 12px;
  box-shadow: 0 12px 28px #223b2924;
}
#coffee-search-suggestions[hidden] { display: none; }
#coffee-search-suggestions h2 {
  margin: 5px 8px 3px;
  color: #526b55;
  font: 700 .68rem/1.4 var(--sans, system-ui);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.coffee-search-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  min-height: 38px;
  padding: 5px 8px;
  border-radius: 7px;
  color: inherit;
  font-size: .89rem;
  text-decoration: none;
}
.coffee-search-option small { color: #526b55; text-align: end; }
.coffee-search-brand, .coffee-search-option:hover, .coffee-search-option:focus-visible { background: #eaf1e3; }
.coffee-search-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 12px;
  margin-top: 5px;
  padding-inline: 6px;
  border-top: 1px solid #dbe4d4;
}
.coffee-search-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  color: inherit;
  font-size: .83rem;
  overflow-wrap: anywhere;
  text-decoration: underline;
}
#catalog-view .resultsHead + .cc-tools {
  padding: 8px 10px;
  margin: 8px 0 0;
  gap: 8px 14px;
  flex-wrap: wrap;
  border: 1px solid #c4cebc;
  border-radius: 12px;
  background: #f8f8edea;
}
#catalog-view .cc-tools .ar-facets:has(.coffee-brand-picker) { flex: 0 1 auto; width: auto; min-width: 0; }
#catalog-view .coffee-brand-picker:has([data-brand-label]:not([hidden])) > summary,
#catalog-view .coffee-brand-picker:has([data-brand-label]:not([hidden])) [data-brand-label] {
  color: #fffef8;
  background: #233f33;
}
#catalog-view .coffee-brand-label:has(+ [data-brand-label]:not([hidden]))::after { content: ":"; }
.studio-coffee-sort {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #294432;
  font-size: .86rem;
  margin-inline-start: auto;
}
.studio-coffee-sort select {
  min-height: 39px;
  padding: 5px 6px;
  border: 1px solid #aebda8;
  border-radius: 8px;
  background: #fffef8;
  color: inherit;
  font: inherit;
}
.studio-coffee-active {
  display: flex;
  gap: 5px 9px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 0 1px;
  font-size: .83rem;
}
#catalog-view :is(.studio-coffee-active,.studio-methods)[hidden],
#catalog-view .studio-methods button[hidden] { display: none; }
#catalog-view .studio-coffee-active .tokens { margin: 0; padding: 0; }
#catalog-view .studio-coffee-active .reset { text-decoration: underline; }
#catalog-view .studio-methods button { min-height: 35px; }
#catalog-view .studio-methods button:hover { background: #f7f8ee; }
.studio-price-band {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
  color: #435c4b;
  font-size: .78rem;
}
.studio-price-band > span { display: inline-flex; align-items: end; gap: 2px; }
.studio-price-band i { display: block; width: 4px; border-radius: 1px; background: #b7c5b4; }
.studio-price-band i:nth-child(1) { height: 5px; }
.studio-price-band i:nth-child(2) { height: 9px; }
.studio-price-band i:nth-child(3) { height: 13px; }
.studio-price-band i.is-filled { background: #3d6e51; }
.studio-reference-price { color: #435c4b; font-size: .84rem; }
.studio-price-help { color: #435c4b; font-size: .84rem; margin: 7px 0; }
.studio-price-help summary { cursor: pointer; }
.studio-price-help p { max-width: 65ch; margin: 5px 0; }
@media (max-width: 520px) {
  body .main-coffee .coffee-toolbar.coffee-compact-toolbar { column-gap: 7px; padding-inline: 8px; }
  .main-coffee .coffee-compact-toolbar .coffee-catalog-controls { gap: 5px; }
  .studio-coffee-sort > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (pointer: coarse) {
  #catalog-view .studio-methods button, .coffee-search-option, .coffee-search-actions a { min-height: 44px; }
}
