/* Shared flat buttons. Components keep ownership of fill, stroke, size and shape. */
:is(body, .ae-home .ae-page) :is(
  button, input[type="submit"], input[type="button"], input[type="reset"],
  [role="button"], .btn, .ae-pill, .fp-button, .pc-buy,
  .pd-button, .pd-preview-button, .shop-primary,
  .ac-button, .ac-secondary, .admin-btn, .tn-button,
  .connect-primary, .connect-secondary, .auth-popup-google,
  .mini-cart-actions a, .tn-start, .tn-menu-button > summary,
  .home-brand-control
) {
  /* Enforce the site-wide treatment over component hover/active and ID rules. */
  box-shadow:none!important;
  filter:none!important;
  translate:none!important;
  scale:none!important;
  transition:background-color .18s ease, border-color .18s ease,
    color .18s ease, opacity .18s ease;
}

/* Keep the static transforms that centre overlays and utility controls. */
:is(body, .ae-home .ae-page) :is(
  button, input[type="submit"], input[type="button"], input[type="reset"],
  [role="button"], .btn, .ae-pill, .fp-button, .pc-buy,
  .pd-button, .shop-primary, .ac-button, .ac-secondary, .admin-btn,
  .tn-button, .connect-primary, .connect-secondary, .auth-popup-google,
  .mini-cart-actions a, .tn-start, .tn-menu-button > summary
):not(.pd-preview-button, .password-toggle, .coming-soon-toggle, .home-brand-control, .ae-section-row > a) {
  transform:none!important;
}

:is(button, input[type="submit"], input[type="button"], input[type="reset"]) {
  appearance:none;
}

/* Preserve the existing filter-chip strokes. */
.fp-filters button:not([aria-pressed="true"]){border-color:#383b45}
.fp-filters button:not([aria-pressed="true"]):hover{border-color:#60636f}

@media (prefers-reduced-motion:reduce) {
  :is(body, .ae-home .ae-page) :is(
    button, input[type="submit"], input[type="button"], input[type="reset"],
    [role="button"], .btn, .ae-pill, .fp-button, .pc-buy,
    .pd-button, .pd-preview-button, .shop-primary,
    .ac-button, .ac-secondary, .admin-btn, .tn-button,
    .connect-primary, .connect-secondary, .auth-popup-google,
    .mini-cart-actions a, .tn-start, .tn-menu-button > summary,
    .home-brand-control
  ) { transition:none; }
}
