/* This layer precedes the captured templates and their important utilities. */
@layer aft-button-interactions {
  :root, :host {
    --aft-button-hover: #19dc95;
    --aft-button-fade: 220ms ease-in-out;
  }

  :where(a[href], button, summary, [role="button"], [role="tab"], input:is([type="button"],[type="submit"],[type="reset"])) {
    transition: color var(--aft-button-fade), background-color var(--aft-button-fade) !important;
  }

  /* Text actions change ink. The keyboard focus indicator has its own state. */
  :where(button, summary, [role="button"], [role="tab"], a.link, .login, .navlink, .text-button,
    .learn-more-btn, .help-view-all, header.aft-site-nav a:not(.brand,[aria-label="AFT home"])):where(:hover):not(:disabled,[aria-disabled="true"]) {
    color: var(--aft-button-hover) !important;
  }
  :is(.crumb, [aria-label*="breadcrumb" i], [class*="breadcrumb" i],
    .flex.items-center:has(> a[href$="/index.html"], > a[href*="/index.html?lang="])) a.link:hover {
    color: #fff !important;
  }
  a.link { text-decoration-thickness: 1px !important; }
  :is(.footlinks, header.aft-site-nav) a { text-decoration-line: none !important; }

  /* Filled actions change their surface, including through the existing border. */
  :is(.button, .cta-btn, .cta-button, .bit-btn-main, .id-trade, .help-search-submit,
    .aft-contact-band a, .aft-fx-start-bar a, .gold-action-link, a[class*="-button"],
    input[type="button"], input[type="reset"], [type="submit"], [data-cta-type="register"],
    header.aft-site-nav a[href*="register.afttmarkets.com"]) {
    border-color: transparent !important;
    background-clip: border-box !important;
    box-shadow: none !important;
    text-decoration: none !important;
    &:hover:not(:disabled,[aria-disabled="true"]) {
      background-color: var(--aft-button-hover) !important;
      color: #111 !important;
      filter: none !important;
      transform: none !important;
      opacity: 1 !important;
    }
  }
  :where(.aft-fx-hero-actions .aft-fx-demo, .aft-fx-hero-actions .aft-fx-download) { box-shadow: none !important; }
  :where(.learn-more-btn,.close-btn):hover { opacity: 1 !important; }
  .hero-switch > .switches button::before {
    transition: background-color var(--aft-button-fade) !important;
  }
  .hero-switch > .switches button:hover::before { background-color: var(--aft-button-hover) !important; }
  @media (prefers-reduced-motion: reduce) {
    :root, :host { --aft-button-fade: 0s; }
  }
}
