/* Native form controls keep their keyboard, validation and mobile behavior. */
:root body select:not([multiple]) {
  box-sizing: border-box;
  appearance: none;
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: 11px 42px 11px 14px;
  border: 1px solid #cddad4;
  border-radius: 13px;
  background-color: #fffdf9;
  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='%2324524d' stroke-width='1.8' 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;
  color: var(--deep, #123934);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: start;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px #12393405;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
:root [dir=rtl] select:not([multiple]) {padding-inline: 14px 42px; background-position: left 14px center}
:root body select:not([multiple]):hover:not(:disabled) {border-color: #8ba99e; background-color: #fff}
:root body select:not([multiple]):focus-visible {outline: 3px solid #24524d26; outline-offset: 2px; border-color: var(--green, #24524d)}
:root body select:not([multiple]):disabled {opacity: .55; cursor: not-allowed; background-color: #f1f1ec}
:root body select:not([multiple])[aria-invalid=true] {border-color: var(--danger, #a44f4f)}
:root body .bulk-destination select {min-inline-size: min(185px, 100%)}
:root body input[type=checkbox], :root body input[type=radio] {accent-color: var(--green, #24524d)}

/* Supporting browsers can style the native popup too; others keep the OS picker. */
@supports (appearance: base-select) {
  :root body select:not([multiple]):where(:not([size]), [size="1"]),
  :root body select:not([multiple]):where(:not([size]), [size="1"])::picker(select) {appearance: base-select}
  :root body select:not([multiple]):where(:not([size]), [size="1"]), :root [dir=rtl] select:not([multiple]):where(:not([size]), [size="1"]) {background-image: none; padding-inline: 14px; gap: 18px}
  :root body select::picker-icon {content: ''; inline-size: 16px; block-size: 16px; flex: none; background: 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='%2359786c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center; transition: rotate .15s}
  :root body select:open {border-color: var(--green, #24524d); box-shadow: 0 0 0 3px #24524d14}
  :root body select:open::picker-icon {rotate: 180deg}
  :root body select::picker(select) {
    color: var(--deep, #123934);
    background: #fffdf9;
    border: 1px solid #d3dfd8;
    border-radius: 15px;
    padding: 6px;
    margin-block: 6px;
    max-block-size: min(360px, 55dvh);
    max-inline-size: calc(100vw - 24px);
    overflow-y: auto;
    box-shadow: 0 12px 36px #12393429;
    scrollbar-width: thin;
    scrollbar-color: #b5c8be transparent;
  }
  :root body select option {min-block-size: 42px; padding: 10px 12px; border-radius: 9px; gap: 14px; font-size: 14px; font-weight: 400; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; cursor: pointer}
  :root body select option:checked {background: #e8f1ec; color: #123934; font-weight: 650}
  :root body select option:hover:not(:disabled), :root body select option:focus-visible {background: #24524d; color: white; outline: none}
  :root body select option:disabled {color: #8c968f; cursor: not-allowed}
  :root body select option::checkmark {order: 1; margin-inline-start: auto; color: currentColor; font-size: 14px}
  :root body select optgroup {font-size: 12px; font-weight: 700; color: #6b746e; padding-block: 4px}
}
:root body select[name=slot], :root body select[name=slot] option {direction: ltr; unicode-bidi: isolate}
@media(max-width: 660px) {:root body select:not([multiple]) {font-size: 16px; min-block-size: 46px} :root body select option {font-size: 16px; min-block-size: 44px}}
@media(prefers-reduced-motion: reduce) {:root body select, :root body select::picker-icon {transition: none!important}}
@media(forced-colors: active) {:root body select:not([multiple]) {appearance: auto; background-image: none; border-color: ButtonText; box-shadow: none}}
