/* Stable action colors. The saved Primary action text setting is authoritative. */
body :is(.cfl-ux202,.cfl-account-shell,.cfl-customer-portal,.cfl-walkthrough-layer,.cfl-ux-settings,.cfl-ux-admin) {
  --cfl-v2-primary-text: var(--cfl-brand-button-text,#fff);
  --cfl-cx-primary-text: var(--cfl-brand-button-text,#fff);
  --cfl-account-on-primary: var(--cfl-brand-button-text,#fff);
  --cfl-report-primary-text: var(--cfl-brand-button-text,#fff);
}

/* One text value through normal, hover, focus, pressed, disabled and loading states.
 * Backgrounds, borders, secondary actions and theme preferences keep their own rules. */
body :is(.cfl-ux202,.cfl-account-shell,.cfl-customer-portal,.cfl-walkthrough-layer,.cfl-ux-settings,.cfl-ux-admin) :is(.cfl-btn,.cfl-primary-button,.cfl-operations-dashboard-button,.cfl-customer-btn,.button-primary):not(.secondary):not(.cfl-secondary),
body .cfl-account-shell .cfl-account-header-action--browse,
body .cfl-account-shell .button:not(.alt):not(.secondary):not(.cfl-secondary),
body .cfl-rm-product-controls .button:not([data-reload]),
body.single-product form.cart .single_add_to_cart_button,
body :is(.cfl-session5-actions,.cfl-session5-handoff) .button.alt {
  color: var(--cfl-brand-button-text,#fff) !important;
  -webkit-text-fill-color: var(--cfl-brand-button-text,#fff) !important;
  transition-property: background-color,border-color,box-shadow,transform,opacity !important;
}

/* Native request forms may load their stylesheet after the account shell. */
body.cfl-rental-customer-account .cfl-account-shell .cfl-rental-review button[type="submit"] {
  background: var(--cfl-brand-primary,#f05a1a) !important;
  border-color: var(--cfl-brand-primary,#f05a1a) !important;
  color: var(--cfl-brand-button-text,#fff) !important;
  -webkit-text-fill-color: var(--cfl-brand-button-text,#fff) !important;
  transition-property: background-color,border-color,box-shadow,transform,opacity !important;
}

/* Solid active tabs share the primary-action ink. Pale task/account navigation
 * keeps its existing theme text instead of being treated as a solid action. */
body .cfl-ux202 :is(.cfl-rental-view-switcher a.active,.cfl-rental-view-switcher a.is-active,.cfl-directory-view-switcher a.is-active,.cfl-inventory-subnav a.active,.cfl-catalog-view-toggle a.active,.cfl-report-section-nav a.is-active),
body .cfl-account-shell .cfl-financial-filters :is(a.is-active,a[aria-current="page"]) {
  color: var(--cfl-brand-button-text,#fff) !important;
  -webkit-text-fill-color: var(--cfl-brand-button-text,#fff) !important;
  transition-property: background-color,border-color,box-shadow,transform,opacity !important;
}

body :is(.cfl-ux202,.cfl-account-shell,.cfl-customer-portal,.cfl-walkthrough-layer,.cfl-ux-settings,.cfl-ux-admin) :is(.cfl-btn,.cfl-primary-button,.cfl-operations-dashboard-button,.cfl-customer-btn,.button-primary):not(.secondary):not(.cfl-secondary) :is(span,strong,small,i,svg),
body .cfl-account-shell .cfl-account-header-action--browse :is(span,i,svg),
body .cfl-rm-product-controls .button:not([data-reload]) :is(span,strong,i,svg) {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
