/*
 * OneCargoKit tools quality layer
 * Shared accessibility, responsive, and motion safeguards for /tools pages.
 */
.tool-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(
  button,
  [role="button"],
  input,
  select,
  textarea,
  a[href],
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid #C2762E !important;
  outline-offset: 2px !important;
}

.tz-card:focus-within .tz-remove,
.tz-remove:focus-visible {
  opacity: 1 !important;
}

.ts.stale {
  background: #FEF3C7 !important;
  color: #854D0E !important;
}

button[aria-disabled="true"],
button:disabled {
  cursor: not-allowed !important;
}

@media (pointer: coarse) {
  :where(
    button,
    [role="button"],
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    .tab,
    .tab-btn,
    .mode-tab,
    .region-btn,
    .deck-tab
  ) {
    min-height: 44px;
  }

  :where(
    button,
    [role="button"],
    .tz-remove,
    .btn-rm,
    .pi-del,
    .remove-row
  ) {
    min-width: 44px;
  }

  .tz-remove {
    opacity: 1 !important;
  }
}

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

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

@media print {
  :focus {
    outline: none !important;
  }
}
