@import url('/vendor/choices/choices.css');

/* 第三方样式只做布局底座，界面颜色由本站主题统一提供。 */
.catalog-home .choices {
  --choices-bg-color: var(--white);
  --choices-bg-color-dropdown: var(--white);
  --choices-keyline-color: var(--line);
  --choices-primary-color: var(--brand-action);
  --choices-highlighted-color: var(--brand-tint);
  --choices-bg-color-disabled: var(--soft);
  --choices-item-disabled-color: var(--muted);
  --choices-darken: var(--ink);
  --choices-border-radius: 8px;
  --choices-font-size-lg: 14px;
  --choices-font-size-md: 14px;
  --choices-z-index: 20;
  min-width: 126px;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}
.catalog-home .choices.is-open {
  z-index: 20;
}
.catalog-home .choices .choices__inner {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 32px 9px 12px;
  border-radius: 8px;
  box-sizing: border-box;
}
.catalog-home .choices__list--single {
  padding: 0;
}
.catalog-home .choices__placeholder {
  opacity: 1;
}
.catalog-home .choices[data-type*='select-one']::after {
  border: 0;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  height: 6px;
  width: 6px;
  right: 14px;
  margin-top: -5px;
  transform: rotate(45deg);
}
.catalog-home .choices[data-type*='select-one'].is-open::after {
  margin-top: -1px;
  transform: rotate(225deg);
}
.catalog-home .choices:is(.is-focused, .is-open) .choices__inner {
  border-color: var(--brand-action);
}
.catalog-home .choices:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 3px;
  border-radius: 8px;
}
.catalog-home .choices .choices__list--dropdown {
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--ui-overlay-shadow);
  word-break: normal;
  overflow-wrap: anywhere;
}
.catalog-home .choices__list--dropdown .choices__list {
  max-height: min(280px, 45vh);
  overscroll-behavior: contain;
}
.catalog-home .choices .choices__list--dropdown .choices__item {
  min-height: 40px;
  padding: 9px 26px 9px 10px;
  border-radius: 6px;
}
.catalog-home .choices .choices__item--selectable.is-highlighted {
  background: var(--brand-tint);
  color: var(--brand-action);
}
.catalog-home .choices__list--dropdown .choices__item.is-selected {
  color: var(--brand-action);
  background: var(--brand-tint-strong);
}
.catalog-home .choices__list--dropdown .choices__item.is-selected::before {
  content: '✓';
  position: absolute;
  right: 8px;
}
.catalog-home .choices .choices__item::after {
  display: none;
}
.catalog-home .catalog-sort .choices {
  min-width: 115px;
}
.catalog-field {
  min-width: 0;
}
@media (max-width: 540px) {
  .catalog-home .choices {
    min-width: 0;
    width: 100%;
  }
}

.catalog-home .catalog-sort {
  white-space: nowrap;
}
