/* Shared native selects: public portal and administration. */
:root {
  --portal-select-surface: #fff;
  --portal-select-ink: #253247;
  --portal-select-border: #c6cfdb;
  --portal-select-accent: #b73d0c;
}
html select,
#atube-admin-proposal select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--portal-select-border);
  border-radius: 12px;
  background-color: var(--portal-select-surface);
  color: var(--portal-select-ink);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: start;
  box-shadow: 0 2px 4px rgb(25 42 64 / 4%);
  transition: border-color .15s ease, box-shadow .15s ease;
}
html select:not([multiple]):not([size]),
html select[size="1"],
#atube-admin-proposal select:not([multiple]):not([size]),
#atube-admin-proposal select[size="1"] {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2359687d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
html select:not(:disabled):hover,
#atube-admin-proposal select:not(:disabled):hover {
  border-color: #8b9bb0;
  box-shadow: 0 3px 8px rgb(25 42 64 / 7%);
}
html select:focus-visible,
#atube-admin-proposal select:focus-visible {
  border-color: var(--portal-select-accent);
  outline: 2px solid var(--portal-select-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgb(183 61 12 / 10%);
}
html select:disabled,
#atube-admin-proposal select:disabled {
  color: #66758a;
  background-color: #f0f3f7;
  border-color: #d8dfe8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
html select[aria-invalid="true"],
#atube-admin-proposal select[aria-invalid="true"] { border-color: #b42318; }
html select option,
#atube-admin-proposal select option { background: #fff; color: #253247; }
html select option:disabled,
#atube-admin-proposal select option:disabled { color: #788497; }
[dir="rtl"] select:not([multiple]):not([size]) { background-position: left 14px center; }
@media (pointer: coarse) {
  html select, #atube-admin-proposal select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html select, #atube-admin-proposal select { transition: none; }
}
@media (forced-colors: active) {
  html select, #atube-admin-proposal select { appearance: auto; background-image: none; box-shadow: none; }
}
