/* Shared by the website and the standalone partner install pages.
 * Hover adds depth only: no geometry, focus, animation or touch changes. */
@media (hover: hover) and (pointer: fine) {
  @layer base {
    :is(
      button,
      input:is([type="button"], [type="submit"], [type="reset"]),
      [role="button"],
      details > summary:first-of-type,
      a.orbis-button-chrome,
      .kiana-public a:is(.hero-shop, .hero-pickup, .cart-checkout),
      .kiana-confirmation-page a:is(.confirmation-bottom .primary, .confirmation-resume-payment)
    ):where(:not(
      :disabled,
      [aria-disabled="true"],
      [aria-disabled="true"] *,
      [data-disabled]:not([data-disabled="false"]),
      [inert],
      [inert] *,
      [aria-hidden="true"],
      [aria-hidden="true"] *
    )) {
      cursor: pointer;
    }
  }

  /* Keep Tailwind's existing shadow/rings. More specific, purpose-built hover
   * treatments keep precedence. A focused or pressed button keeps its own look. */
  :where(
    button,
    input:is([type="button"], [type="submit"], [type="reset"]),
    [role="button"],
    a.orbis-button-chrome,
    .kiana-public a:is(.hero-shop, .hero-pickup, .cart-checkout),
    .kiana-confirmation-page a:is(.confirmation-bottom .primary, .confirmation-resume-payment)
  ):where(:not(
    :disabled,
    [aria-disabled="true"],
    [aria-disabled="true"] *,
    [data-disabled]:not([data-disabled="false"]),
    [inert],
    [inert] *,
    [aria-hidden="true"],
    [aria-hidden="true"] *,
    .gallery-enlarge,
    .orbis-no-button-lift,
    [role="checkbox"],
    [role="radio"],
    [role="switch"],
    :focus-visible,
    :active
  )):hover {
    box-shadow:
      var(--tw-inset-shadow, 0 0 #0000),
      var(--tw-inset-ring-shadow, 0 0 #0000),
      var(--tw-ring-offset-shadow, 0 0 #0000),
      var(--tw-ring-shadow, 0 0 #0000),
      var(--tw-shadow, 0 0 #0000),
      0 2px 4px rgb(29 24 18 / 23%);
  }
}
