/* Keep native select behavior, but use the site's styling in WebKit as well. */
#order-form .field select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 42px 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background-color: var(--paper);
  background-image: url("assets/select-chevron.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 8px;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  color-scheme: light;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: left;
  text-align-last: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

#order-form .field select:disabled {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  cursor: default;
  opacity: .65;
}

@media (max-width: 600px) {
  #order-form .field select { font-size: 16px; }
  #order-form .material-details { grid-template-columns: minmax(0, 1fr); }
}

/* Let the OS draw its arrow when background images are suppressed. */
@media (forced-colors: active) {
  #order-form .field select {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}
