.catalog-search:has(.ym-search-panel:not([hidden])) { z-index: 12; }
.ym-search-panel {
  position: absolute;
  z-index: 12;
  inset: calc(100% + 6px) -1px auto;
  max-height: min(20rem, var(--ym-menu-height, 44vh));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px;
  border: 1px solid #575052;
  border-radius: 13px;
  background: #202021;
  box-shadow: 0 13px 30px #0007;
  color: #f6f4ef;
  text-align: left;
}
.ym-search-panel[hidden], .ym-search-panel [hidden] { display: none; }
.ym-search-panel ul { list-style: none; margin: 0; padding: 0; }
.ym-search-panel li {
  display: grid;
  position: relative;
  align-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.ym-search-panel li[aria-selected="true"] { background: #393033; outline: 1px solid #a96d75; outline-offset: -1px; }
@media (hover: hover) {
  .ym-search-panel li:hover { background: #343235; }
}
.ym-search-panel li strong, .ym-search-panel li small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ym-search-panel li strong { font: 600 .95rem/1.25 'Instrument Sans','DM Sans',sans-serif; }
.ym-search-panel li small, .ym-search-panel p { color: #c7c2c2; font-size: .8rem; line-height: 1.25; }
.ym-search-panel p { margin: 0; padding: 12px 10px; }
@media (max-width: 480px) {
  .ym-search-panel li strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
}
