/* Burnigan Core 1.8 — Mobile UX + accessibility */
body.burnigan-core-a11y {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.burnigan-core-a11y :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 2px solid #080808 !important;
  outline-offset: 3px !important;
}

body.burnigan-core-a11y footer :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
body.burnigan-core-a11y .burnigan-mobile-panel :where(a,button,[tabindex]):focus-visible {
  outline-color: #fff !important;
}

body.burnigan-core-a11y :where(button,.button,.wp-element-button,.ct-button,a.added_to_cart) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.burnigan-core-a11y :where(h1,h2,h3,[id]) {
  scroll-margin-top: 110px;
}

body.burnigan-core-a11y .woocommerce-error[tabindex="-1"],
body.burnigan-core-a11y .woocommerce-message[tabindex="-1"],
body.burnigan-core-a11y .woocommerce-info[tabindex="-1"] {
  outline: none;
}

@media (max-width: 689px) {
  body.burnigan-core-a11y :where(input[type="text"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],select,textarea) {
    font-size: 16px !important; /* prevents iOS form zoom */
  }

  body.burnigan-core-a11y :where(
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button,
    .wp-element-button,
    .ct-button,
    a.added_to_cart
  ) {
    min-height: 44px;
  }

  body.burnigan-core-a11y .quantity :where(button,.plus,.minus,[class*="increase"],[class*="decrease"]) {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  body.burnigan-core-a11y .woocommerce-MyAccount-navigation a,
  body.burnigan-core-a11y .burnigan-category-navigation__link,
  body.burnigan-core-a11y .burnigan-mobile-menu-list > li > a {
    min-height: 44px;
  }

  body.burnigan-core-a11y .woocommerce-error,
  body.burnigan-core-a11y .woocommerce-message,
  body.burnigan-core-a11y .woocommerce-info {
    overflow-wrap: anywhere;
  }

  body.burnigan-core-a11y .products .product :where(.woocommerce-loop-product__title,.price) {
    overflow-wrap: anywhere;
  }

  body.burnigan-core-a11y .woocommerce-checkout :where(label,.form-row) {
    scroll-margin-top: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.burnigan-core-a11y {
    scroll-behavior: auto !important;
  }
}
