/* Screen-only selected-state cue. Preserve each control's meaning and colors. */
@media screen {
  html {
    --orumup-selection-outline: #259757;
  }
  html[data-oreumup-theme="dark"] {
    --orumup-selection-outline: #afffd3;
  }
  html[data-oreumup-theme="dark"]:is([data-oreumup-tone="50"],[data-oreumup-tone="60"],[data-oreumup-tone="70"],[data-oreumup-tone="80"],[data-oreumup-tone="90"]) {
    --orumup-selection-outline: #003b20;
  }
  /* Do not replace the keyboard focus ring or disabled appearance. */
  html body :is(button,[role="button"],[role="tab"]):is([aria-pressed="true"],[aria-selected="true"],[aria-checked="true"],[aria-current="page"],.active:not([aria-pressed="false"]):not([aria-selected="false"]),.selected:not([aria-pressed="false"]):not([aria-selected="false"]),.is-selected:not([aria-pressed="false"]):not([aria-selected="false"])):not(:disabled):not([aria-disabled="true"]):not(:focus-visible) {
    outline: 3px solid var(--orumup-selection-outline) !important;
    outline-offset: -3px !important;
  }
  /* A keyboard focus ring means focus, not selection. Preserve that ring and
     add an inset cue for a focused control that is also selected. */
  html body :is(button,[role="button"],[role="tab"]):is([aria-pressed="true"],[aria-selected="true"],[aria-checked="true"],[aria-current="page"],.active:not([aria-pressed="false"]):not([aria-selected="false"]),.selected:not([aria-pressed="false"]):not([aria-selected="false"]),.is-selected:not([aria-pressed="false"]):not([aria-selected="false"])):not(:disabled):not([aria-disabled="true"]):focus-visible {
    box-shadow: inset 0 0 0 1px #ffffff, inset 0 0 0 3px var(--orumup-selection-outline) !important;
  }

  /* Customer-support crop choices keep their selected fill despite the legacy
     quick-tool theme's higher-specificity button and hover rules. The two
     excluded data-management actions are not crop choices. */
  html body #homeQuickModal #oqmRoot #oqmSupportChoices button[aria-pressed="true"]:not(#oqmClearCustomers):not(#oqmLatestCustomers) {
    background-color: #17774b !important;
    color: #ffffff !important;
    border-color: #17774b !important;
  }
  /* Sending temporarily disables crop choices: keep the checkmark, but do
     not let the selected green fill masquerade as an actionable button. */
  html body #homeQuickModal #oqmRoot #oqmSupportChoices button[aria-pressed="true"]:not(#oqmClearCustomers):not(#oqmLatestCustomers):disabled {
    background-color: #626b66 !important;
    color: #ffffff !important;
    border-color: #626b66 !important;
    opacity: .7 !important;
    cursor: not-allowed !important;
  }
}
