/* Shared interaction contract for every Bracketbridge participant and staff surface. */
:where(button, [role="button"], input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-block-size: 44px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #78a9ff;
  outline-offset: 3px;
}

:where(button, [role="button"], summary, select, label[for]) { touch-action: manipulation; }
:where(button, [role="button"]):disabled,
:where(input, select, textarea):disabled {
  cursor: not-allowed;
  opacity: .52;
}

:where([role="status"], [role="alert"], output) { overflow-wrap: anywhere; }
:where(dialog) { max-block-size: calc(100dvh - 24px); }
:where(dialog[open]) { overscroll-behavior: contain; }

.product-skip-link {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 100000;
  translate: 0 -160%;
  border-radius: 10px;
  padding: 10px 14px;
  background: #0a66ff;
  color: #fff;
  font: 700 14px/1.2 var(--bb-font-sans);
  text-decoration: none;
}

.product-skip-link:focus { translate: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  :where(button, [role="button"], input, select, textarea, summary) { border: 1px solid ButtonText; }
}
