/* Live AIR filters only. Keep real selects, labels, form values and change events. */
body[data-style="air"] :is(.rv-field, .catalog-sort) select {
  min-height: 48px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 36px 12px 15px;
  border: 1px solid #ded6eb;
  border-radius: 13px;
  background-color: #fff;
  color: #302754;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
body[data-style="air"] :is(.rv-field, .catalog-sort) select:hover {
  border-color: #b8a8d4;
}
body[data-style="air"] :is(.rv-field, .catalog-sort) select:focus-visible {
  border-color: #7560af;
  outline: 2px solid #b8a8d4;
  outline-offset: 2px;
  box-shadow: none;
}
body[data-style="air"] .catalog-sort select { min-width: 180px; }

/* Unsupported browsers retain their functional platform picker. No JS clone. */
@supports (appearance: base-select) and selector(select::picker(select)) {
  body[data-style="air"] :is(.rv-field, .catalog-sort) select,
  body[data-style="air"] :is(.rv-field, .catalog-sort) select::picker(select) {
    appearance: base-select;
  }
  body[data-style="air"] :is(.rv-field, .catalog-sort) select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-inline: 15px;
    background-image: none;
  }
  body[data-style="air"] :is(.rv-field, .catalog-sort) select::picker-icon {
    content: "";
    width: 8px;
    height: 8px;
    margin: -4px 3px 0 0;
    flex: 0 0 8px;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    color: #75658d;
    rotate: 45deg;
  }
  body[data-style="air"] :is(.rv-field, .catalog-sort) select:open {
    border-color: #9983bf;
    background-color: #fcfaff;
  }
  body[data-style="air"] :is(.rv-field, .catalog-sort) select:open::picker-icon {
    rotate: 225deg;
    margin-top: 4px;
  }
  body[data-style="air"] :is(.rv-field, .catalog-sort) select::picker(select) {
    margin-block: 7px;
    padding: 6px;
    border: 1px solid #e2daed;
    border-radius: 15px;
    background: #fff;
    color: #302754;
    box-shadow: 0 12px 32px #3027541a, 0 2px 6px #30275408;
    max-inline-size: calc(100vw - 24px);
    max-block-size: min(336px, 60dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c8bbdc transparent;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
  }
  body[data-style="air"] :is(.rv-field, .catalog-sort) option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    padding: 11px 12px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #302754;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  body[data-style="air"] :is(.rv-field, .catalog-sort) option:checked {
    background: #eee8f7;
    color: #5440a4;
    font-weight: 600;
  }
  body[data-style="air"] :is(.rv-field, .catalog-sort) option:is(:hover, :focus-visible) {
    background: #f5f1fa;
    outline: 2px solid #9983bf;
    outline-offset: -2px;
  }
  body[data-style="air"] :is(.rv-field, .catalog-sort) option::checkmark {
    order: 1;
    margin-inline-start: auto;
    color: #6850a8;
  }
}
@media (max-width: 600px) {
  body[data-style="air"] :is(.rv-field, .catalog-sort) select { font-size: 16px; }
  body[data-style="air"] .catalog-sort select { min-width: 160px; }
}
