/* Give inline action links a transformable box without overriding component layouts. */
:where(nav a[href], footer li a[href], .jbb-directory li a[href], .jf-lead a[href], .jf-cards a[href],
  .jr a[href], .jr-finish a[href], .text-link, .fd-link, .jbb-underline,
  .hero-rating, .jbp-rating, .review-source, .link, [role="button"]) {
  display: inline-block;
}

@media screen and (prefers-reduced-motion: no-preference) {
  :where(
    button, input:is([type="button"], [type="submit"], [type="reset"], [type="image"]),
    [role="button"], [role="tab"], details > summary,
    .product-form__input input + label, .swatch-input__input + label,
    .facet-checkbox, .mobile-facets__label, select,
    a:is([class*="button"], [class*="btn"], [class*="cta"], .link, .underlined-link,
      .jbb-underline, .fd-primary, .fd-secondary, .fd-link, .text-link,
      .hero-rating, .jbp-rating, .review-source, .header__icon, .pagination__item),
    nav a[href], footer li a[href], .jbb-directory li a[href],
    .fd-film-actions a[href], .jf-lead a[href], .jf-cards a[href], .jr a[href], .jr-finish a[href],
    .hero-actions a[href], .bottom a[href], .announcement-bar__link,
    shopify-accelerated-checkout, shop-pay-wallet-button
  ):not(:disabled, [disabled], [aria-disabled="true"], [inert] *, [aria-disabled="true"] *,
    input:disabled + label, .facet-checkbox--disabled, .mobile-facets__label--disabled) {
    transition-property: scale, background-color, color, border-color, box-shadow, opacity, transform;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(.2,.7,.25,1);

    @media (any-hover: hover) {
      &:hover { scale: 1.045; }
    }
    &:focus-visible { scale: 1.045; }
    &:active { scale: .98; }
  }

  shopify-chat::part(activator) {
    transition: scale 150ms cubic-bezier(.2,.7,.25,1);
  }
  @media (any-hover: hover) {
    shopify-chat::part(activator):hover { scale: 1.045; }
  }
  shopify-chat::part(activator):focus-visible { scale: 1.045; }
  shopify-chat::part(activator):active { scale: .98; }
}
