/* Theme adapters only: behavior and base geometry come from the app control. */
.native-select-wrap {
  --color-canvas: var(--bg, #07090d);
  --color-surface-1: var(--panel, #121720);
  --color-surface-2: var(--panel-muted, var(--panel, #121720));
  --color-surface-3: var(--panel-strong, var(--panel-2, #192230));
  --color-surface-selected: color-mix(in srgb, var(--purple, #9b87f5) 22%, var(--panel, #121720));
  --color-border: var(--line, #2b3748);
  --color-border-strong: var(--line-strong, var(--line, #45617d));
  --color-text: var(--text, #f7f9fc);
  --color-text-strong: var(--text, #f7f9fc);
  --color-text-muted: var(--muted, #aab5c4);
  --radius-md: 8px;
  --radius-sm: 5px;
  --shadow-elevated: 0 14px 38px #0006;
  color: var(--color-text);
  font: inherit;
}

.native-select-wrap .native-select-button {
  min-height: 44px;
  padding: 9px 12px;
  font: inherit;
  line-height: 1.4;
  text-transform: none;
}

.native-select-wrap .native-select-option {
  min-height: 34px;
  padding: 7px 9px;
  line-height: 1.35;
  font-weight: 500;
  white-space: normal;
}

.native-select-wrap .native-select-option span {
  color: inherit;
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

.native-select-wrap .native-select-label {
  display: block;
  margin: 0;
  color: inherit;
  font: inherit;
}

.native-select-wrap .native-select-filter {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  background: var(--color-surface-3);
  color: var(--color-text);
  font: inherit;
  line-height: 1.35;
}

.native-select-wrap .native-select-button:active,
.native-select-wrap .native-select-option:active {
  transform: none;
}

.native-select-wrap .native-select-button:focus-visible,
.native-select-wrap .native-select-filter:focus-visible {
  outline: 2px solid var(--focus, var(--cyan, #8be2ff));
  outline-offset: 2px;
}

.catalog-toolbar label > .native-select-wrap {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
}

.catalog-toolbar .native-select-button { min-height: 46px; }
.live-filter-panel .native-select-wrap { font-weight: 400; }
.live-filter-panel .native-select-option span { color: inherit; font-weight: inherit; }
#checkoutCurrencyControl .native-select-button { min-height: 50px; padding-inline: 14px; }

[data-site-select-theme="cms"] .native-select-wrap { font-size: 13px; font-weight: 500; }
[data-site-select-theme="cms"] .native-select-button { min-height: 42px; }
[data-site-select-theme="cms"] .audit-toolbar label > .native-select-wrap {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}
[data-site-select-theme="cms"] .diagnostics-controls > .native-select-wrap { width: auto; min-width: 140px; }

@media (max-width: 600px) {
  [data-site-select-theme="cms"] .diagnostics-controls > .native-select-wrap { flex: 1 1 100%; }
}
