/* Only the category filter form uses these finishes. */
#filterPanel {
  --rim: 8px;
  --inset: 9px;
  --round: 23px;
  --fade: 9px;
  --outer: 0 9px 14px -5px rgb(0 0 0 / 39%), 0 2px 8px rgb(0 0 0 / 13%), 0 -1px 5px rgb(0 0 0 / 7%);
  --inner: inset 0 0 7px 2px rgb(0 0 0 / 14%), inset 0 2px 5px rgb(0 0 0 / 9%);
}
#filterPanel :is(.filter-block,.filter-label-group,.filter-sort) > strong {
  text-shadow: 0 1px 0 rgb(255 255 255 / 85%), 0 2px 2px rgb(0 0 0 / 20%), 0 3px 5px rgb(0 0 0 / 13%);
}
#filterPanel .filter-block {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  max-height: none;
  overflow: visible;
}
#filterPanel .menu-frame {
  box-sizing: border-box;
  min-width: 0;
  padding: calc(var(--rim) - 1px);
  border: 1px solid #d9dfdf;
  border-radius: var(--round);
  background: linear-gradient(156deg, #fff 0%, #fafafa 31%, #f1f1f1 66%, #e4e4e4 100%);
  box-shadow: inset 0 1px 3px #fff, inset 0 -1px 3px rgb(0 0 0 / 9%), var(--outer);
}
#filterPanel .menu-well {
  position: relative;
  padding: var(--inset);
  border-radius: calc(var(--round) - var(--rim));
  background: #fbfbfb;
  box-shadow: var(--inner);
}
#filterPanel .filter-block-diamond-type .menu-well { background: white; }
#filterPanel .menu-options {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  background: transparent;
  contain: none;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 238px;
  scrollbar-width: thin;
  scrollbar-color: #929292 #e7e7e7;
}
#filterPanel .filter-block-vendor .menu-options { max-height: 374px; }
@supports selector(::-webkit-scrollbar) {
  #filterPanel .menu-options { scrollbar-width: auto; scrollbar-color: auto; }
}
#filterPanel .menu-options::-webkit-scrollbar { width: 7px; }
#filterPanel .menu-options::-webkit-scrollbar-track { border-radius: 8px; background: #e7e7e7; }
#filterPanel .menu-options::-webkit-scrollbar-thumb { border-radius: 8px; background: #929292; }
#filterPanel .menu-options label {
  position: relative;
  isolation: isolate;
  padding-inline: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}
#filterPanel .menu-options label:nth-child(even)::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -2px 0;
  pointer-events: none;
  background: rgb(0 0 0 / 4.5%);
}
#filterPanel .menu-options {
  --top-stop: 0px;
  --bottom-stop: 0px;
  mask-image: linear-gradient(to bottom, transparent 0, black var(--top-stop),
    black calc(100% - var(--bottom-stop)), transparent 100%);
}
#filterPanel .menu-well[data-above] .menu-options { --top-stop: var(--fade); }
#filterPanel .menu-well[data-below] .menu-options { --bottom-stop: var(--fade); }
#filterPanel .menu-well:not([data-above]):not([data-below]) .menu-options { mask-image: none; }
#filterPanel .menu-field { --round: 16px; }
#filterPanel .menu-field :is(input,select) {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: calc(var(--round) - var(--rim));
  box-shadow: var(--inner);
}
#filterPanel .filter-sort .menu-field { margin-top: 8px; }
#filterPanel .menu-shortcuts .exact-carat-options { width: 100%; }
#filterPanel .filter-row { row-gap: 24px; }
#filterPanel .compact-numeric-column { gap: 18px; }
@media (min-width: 1000px) {
  #filterPanel .filter-row { grid-template-rows: auto auto; }
  #filterPanel .filter-sort-controls { flex-wrap: wrap; align-self: start; }
  #filterPanel .filter-row-compact-alyans > :nth-child(6) { grid-row: 2; transform: none; }
  #filterPanel .filter-row-compact-alyans > :nth-child(2) { transform: none; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  #filterPanel .filter-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; }
  #filterPanel .filter-row > * { grid-column: auto !important; grid-row: auto !important; transform: none !important; margin-top: 0 !important; }
}
@media (max-width: 768px) {
  #filterPanel .filter-row > .filter-block, #filterPanel .compact-numeric-column > .filter-block,
  #filterPanel .filter-label-group, #filterPanel .menu-shortcuts, #filterPanel .filter-sort { width: 100%; }
  #filterPanel .menu-options { max-height: 202px; }
  #filterPanel .filter-block-vendor .menu-options { max-height: 304px; }
}
