/* Shared native dropdowns: keep form submission, keyboard navigation and Alpine bindings. */
body select:not([multiple]):not([size]),
body select:not([multiple])[size="1"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 2.5rem;
  padding: .625rem 2.75rem .625rem .875rem;
  padding-inline-end: 2.75rem !important;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%2364758b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  background-size: 1.25rem;
  color: #0f172a;
  font: inherit;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
body select:not([multiple]):hover:not(:disabled) { border-color: #94a3b8; }
body select:not([multiple]):focus-visible {
  outline: none;
  border-color: #3a5eff;
  box-shadow: 0 0 0 3px #dce7ff;
}
body select:disabled { cursor: not-allowed; opacity: .55; }
@supports (appearance: base-select) {
  body select:not([multiple]):not([size]),
  body select:not([multiple])[size="1"],
  body select:not([multiple]):not([size])::picker(select),
  body select:not([multiple])[size="1"]::picker(select) { appearance: base-select; }
  body select:not([multiple])::picker-icon { display: none; }
  body select:not([multiple])::picker(select) {
    margin-block-start: .375rem;
    border: 1px solid #e2e8f0;
    border-radius: .875rem;
    padding: .375rem;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 12px 32px -8px rgb(15 23 42 / .22);
    max-height: min(20rem, 60vh);
    overflow-y: auto;
  }
  body select:not([multiple]) option {
    min-height: 2.5rem;
    padding: .625rem .75rem;
    border-radius: .5rem;
    cursor: pointer;
    white-space: normal;
  }
  body select:not([multiple]) option:hover,
  body select:not([multiple]) option:focus { background: #eef4ff; }
  body select:not([multiple]) option:checked { background: #eef4ff; color: #1b33c4; font-weight: 600; }
  body select:not([multiple]) option:disabled { color: #94a3b8; cursor: not-allowed; }
  body select:not([multiple]) option::checkmark { color: #2242e8; }
}
@media (prefers-reduced-motion: reduce) { body select { transition: none !important; } }
@media (forced-colors: active) {
  body select:not([multiple]):not([size]),body select:not([multiple])[size="1"] { appearance: auto; background-image: none; }
}
