/* v3.9.4: Rife Free-inspired buttons, 4 standard + 8 WooCommerce.
   Activate only once an independent palette color is saved, to preserve
   the current site's customized theme colors on upgrade. Appearance only. */

/* Standard non-shop submit buttons and content CTAs, as in Rife Free Buttons. */
body.mm-theme.mmwl-rife-standard-enabled :is(.mm-editor-content,.mm-page-content,.mm-article,.comment-form,.search-form,.wpcf7-form) :is(button[type="submit"],input[type="submit"],.wp-block-button__link,.wp-element-button):not(.single_add_to_cart_button):not(.mmwl-customs-remove-button):not(.wc-block-components-button),
body.mm-theme.mmwl-rife-standard-enabled :is(.mm-editor-content,.mm-page-content,.mm-article) .mm-btn {
  background:var(--mm-rife-standard-bg,#0d4a96)!important;
  background-color:var(--mm-rife-standard-bg,#0d4a96)!important;
  color:var(--mm-rife-standard-text,#fff)!important;
  border-color:var(--mm-rife-standard-bg,#0d4a96)!important;
}
body.mm-theme.mmwl-rife-standard-enabled :is(.mm-editor-content,.mm-page-content,.mm-article,.comment-form,.search-form,.wpcf7-form) :is(button[type="submit"],input[type="submit"],.wp-block-button__link,.wp-element-button):not(.single_add_to_cart_button):not(.mmwl-customs-remove-button):not(.wc-block-components-button):is(:hover,:focus-visible),
body.mm-theme.mmwl-rife-standard-enabled :is(.mm-editor-content,.mm-page-content,.mm-article) .mm-btn:is(:hover,:focus-visible) {
  background:var(--mm-rife-standard-hover-bg,#083a7c)!important;
  background-color:var(--mm-rife-standard-hover-bg,#083a7c)!important;
  color:var(--mm-rife-standard-hover-text,#fff)!important;
  border-color:var(--mm-rife-standard-hover-bg,#083a7c)!important;
}

/* Rife Free -> Shop -> Buttons. Use the SAME variables as existing
   myMondo palette CSS so its older high-specificity selectors cannot win.
   Both regular and alternative controls have independent text/hover colors. */
body.mm-theme.mmwl-rife-woocommerce-enabled :is(.woocommerce,.wc-block-cart,.wc-block-checkout,.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) {
  --mm-button-primary-bg:var(--mm-rife-shop-bg,#0d4a96);
  --mm-button-primary-text:var(--mm-rife-shop-text,#fff);
  --mm-button-primary-hover-bg:var(--mm-rife-shop-hover-bg,#083a7c);
  --mm-button-primary-hover-text:var(--mm-rife-shop-hover-text,#fff);
  --mm-button-secondary-bg:var(--mm-rife-shop-bg,#0d4a96);
  --mm-button-secondary-text:var(--mm-rife-shop-text,#fff);
  --mm-button-secondary-border:var(--mm-rife-shop-bg,#0d4a96);
  --mm-button-secondary-hover-bg:var(--mm-rife-shop-hover-bg,#083a7c);
  --mm-button-secondary-hover-text:var(--mm-rife-shop-hover-text,#fff);
  --mm-button-accent-bg:var(--mm-rife-shop-alt-bg,#ff6123);
  --mm-button-accent-text:var(--mm-rife-shop-alt-text,#fff);
  --mm-button-accent-hover-bg:var(--mm-rife-shop-alt-hover-bg,#e64f1b);
  --mm-button-accent-hover-text:var(--mm-rife-shop-alt-hover-text,#fff);
}
/* Top-level Woo Block action buttons use their own design system;
   these selectors add Rife color support but never target payment iframes. */
body.mm-theme.mmwl-rife-woocommerce-enabled :is(.wc-block-cart,.wc-block-checkout,.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-button:where(:not(.wc-block-components-product-button__button)) {
  background:var(--mm-rife-shop-bg,#0d4a96)!important;
  color:var(--mm-rife-shop-text,#fff)!important;
  border-color:var(--mm-rife-shop-bg,#0d4a96)!important;
}
body.mm-theme.mmwl-rife-woocommerce-enabled :is(.wc-block-cart,.wc-block-checkout,.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) .wc-block-components-button:where(:not(.wc-block-components-product-button__button)):is(:hover,:focus-visible) {
  background:var(--mm-rife-shop-hover-bg,#083a7c)!important;
  color:var(--mm-rife-shop-hover-text,#fff)!important;
  border-color:var(--mm-rife-shop-hover-bg,#083a7c)!important;
}
body.mm-theme.mmwl-rife-woocommerce-enabled :is(.wc-block-cart,.wc-block-checkout,.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button) {
  background:var(--mm-rife-shop-alt-bg,#ff6123)!important;
  color:var(--mm-rife-shop-alt-text,#fff)!important;
  border-color:var(--mm-rife-shop-alt-bg,#ff6123)!important;
}
body.mm-theme.mmwl-rife-woocommerce-enabled :is(.wc-block-cart,.wc-block-checkout,.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) :is(.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button):is(:hover,:focus-visible) {
  background:var(--mm-rife-shop-alt-hover-bg,#e64f1b)!important;
  color:var(--mm-rife-shop-alt-hover-text,#fff)!important;
  border-color:var(--mm-rife-shop-alt-hover-bg,#e64f1b)!important;
}
/* Product buttons have independent active/hover/disabled overrides in v3.9.3. */
