/* One chevron for native dropdowns throughout the theme and WordPress admin.
   Keep listboxes, multi-selects and enhanced Select2 controls unchanged. */
body select:not(.select2-hidden-accessible):where(:not([multiple]):not([size]), :not([multiple])[size="0"], :not([multiple])[size="1"]) {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
  padding-inline-end: 36px !important;
}

[dir="rtl"] select:not(.select2-hidden-accessible):where(:not([multiple]):not([size]), :not([multiple])[size="0"], :not([multiple])[size="1"]) {
  background-position: left 12px center !important;
}

body select::-ms-expand { display: none; }

@media (forced-colors: active) {
  body select:not(.select2-hidden-accessible):where(:not([multiple]):not([size]), :not([multiple])[size="0"], :not([multiple])[size="1"]) {
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
    background-image: none !important;
  }
}
