/* Astra applies a dotted outline to every focused link, including touch taps.
 * Only suppress that pointer-only outline; keyboard focus and editable fields
 * keep their existing visible cues. Unsupported browsers retain theme defaults.
 */
@supports selector(:focus-visible) {
  body.dsv-polish :is(a[href], button, summary, [role="button"], [role="link"], input[type="button"], input[type="submit"], input[type="reset"]):focus:not(:focus-visible) {
    outline: none !important;
  }

  /* Custom keyboard controls need the same cue as native links and buttons. */
  body.dsv-polish :is(summary, [role="button"], [role="link"]):focus-visible {
    outline: 2px solid #737373;
    outline-offset: 3px;
  }

  /* The transparent currency select paints its focus on a separate visible face. */
  body.dsv-polish .dsv-currency-picker select:focus:not(:focus-visible) ~ .dsv-currency-face {
    outline: none !important;
  }
  body.dsv-polish .dsv-currency-picker select:focus-visible ~ .dsv-currency-face {
    outline: 2px solid #8c7755 !important;
    outline-offset: 3px;
  }
}

/* Keep subtle tap feedback, instead of the browser's dark rectangular flash. */
body.dsv-polish :is(a[href], button, summary, [role="button"], [role="link"], input[type="button"], input[type="submit"], input[type="reset"]) {
  -webkit-tap-highlight-color: rgba(0, 0, 0, .06);
}

@media (forced-colors: active) {
  body.dsv-polish :is(a[href], button, summary, [role="button"], [role="link"]):focus-visible,
  body.dsv-polish .dsv-currency-picker select:focus-visible ~ .dsv-currency-face {
    outline: 2px solid Highlight !important;
  }
}
