/* Shared native-select reset for consistent Safari/Chromium rendering. */
select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-inline-start: 12px;
  border-color: #d1d5db !important;
  border-radius: var(--ms-input-radius, 10px);
  background-color: #fff !important;
  color: #111827 !important;
  font: inherit;
  box-sizing: border-box;
}

/* Give otherwise unstyled selects the same baseline as a normal input. */
select:not([class]) {
  min-height: 44px;
  border: 1px solid #d1d5db;
}

select:not([multiple]):not([size]) {
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.25 6 6.25 11 1.25' fill='none' stroke='%23111827' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
}

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

select:disabled {
  background-color: #f8fafc !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  select:not([multiple]):not([size]) {
    background-position: right 12px center !important;
  }
}
