/**
 * HyperCorners v9.2.0 — Accessibility and motion safeguards.
 */

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid var(--hc-blue) !important;
  outline-offset: 3px !important;
  box-shadow: var(--hc-shadow-focus);
}

@media (pointer: coarse) {
  :where(
    .button,
    button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"],
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button
  ) {
    min-height: var(--hc-control-min-height);
  }
}

:target {
  scroll-margin-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
