/* Keep the catalog's filter chips and their option lists in one visual system. */
.catalog-filter.is-enhanced > select,
.catalog-filter.is-enhanced > .connect-icon {
  display: none;
}

.catalog-filter .catalog-select__trigger {
  position: relative;
  display: block;
  width: 100%;
  min-width: 76px;
  min-height: 44px;
  padding: 0 32px 0 12px;
  border: 0;
  border-radius: 22px;
  background: #eaf0f7;
  color: #4b5c73;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease, color 140ms ease;
}

.catalog-select__value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-filter .catalog-select__trigger > .connect-icon {
  top: 50%;
  right: 10px;
  width: 16px;
  height: 16px;
  color: currentColor;
  transform: translateY(-50%) rotate(90deg);
  transition: transform 140ms ease;
}

.catalog-filter .catalog-select__trigger.is-filtered {
  background: #e0ecff;
  color: #1155bb;
}

.catalog-filter .catalog-select__trigger[aria-expanded="true"] {
  background: #dfeafb;
  color: #174f9d;
}

.catalog-filter .catalog-select__trigger[aria-expanded="true"] > .connect-icon {
  transform: translateY(-50%) rotate(270deg);
}

.catalog-filter .catalog-select__trigger:disabled {
  background: #edf1f6;
  color: #748094;
  cursor: default;
}

.catalog-select__trigger:focus-visible,
.catalog-select__menu:focus-visible {
  outline: 2px solid #1762d3;
  outline-offset: 3px;
}

.catalog-select__menu {
  position: fixed;
  z-index: 25;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #20334f;
  box-shadow: 0 6px 20px #243e6421;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  scrollbar-width: thin;
  scrollbar-color: #c2d0e2 transparent;
  animation: catalog-select-reveal 140ms cubic-bezier(.16, 1, .3, 1);
}

.catalog-select__menu[hidden] {
  display: none;
}

.catalog-select__menu::-webkit-scrollbar { width: 6px; }
.catalog-select__menu::-webkit-scrollbar-track { background: transparent; }
.catalog-select__menu::-webkit-scrollbar-thumb { border-radius: 6px; background: #c2d0e2; }
.catalog-select__menu ::selection { background: #c7ddfb; color: #17365d; }

.catalog-select__option {
  position: relative;
  display: flex;
  box-sizing: border-box;
  min-height: 40px;
  align-items: center;
  padding: 6px 28px 6px 10px;
  border-radius: 7px;
  color: #35465e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.catalog-select__option[data-active="true"] {
  background: #f0f5fc;
}

.catalog-select__option[aria-selected="true"] {
  background: #e8f1ff;
  color: #1155bb;
  font-weight: 500;
}

.catalog-select__option[aria-selected="true"][data-active="true"] {
  background: #dfeaff;
}

.catalog-select__option[aria-selected="true"]::after {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 6px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  transform: translateY(-65%) rotate(45deg);
}

.catalog-select__option[aria-disabled="true"] {
  color: #748094;
  cursor: default;
}

@media (pointer: coarse) {
  .catalog-select__option { min-height: 44px; }
}

@media (hover: hover) {
  .catalog-filter .catalog-select__trigger:not(:disabled):hover { background: #dfe9f8; }
  .catalog-select__option:not([aria-disabled="true"]):not([aria-selected="true"]):hover { background: #f0f5fc; }
}

@media (max-width: 360px) {
  .catalog-filter .catalog-select__trigger { min-width: 68px; padding-inline-start: 10px; }
}

@keyframes catalog-select-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-filter .catalog-select__trigger,
  .catalog-filter .catalog-select__trigger > .connect-icon { transition: none; }
  .catalog-select__menu { animation-name: catalog-select-fade; animation-duration: 80ms; }
}

@keyframes catalog-select-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
