<?php
defined( 'ABSPATH' ) || exit;

/**
 * Compatibility with theme: Kadence (by Kadence WP).
*/
class FluidCheckout_ThemeCompat_Kadence extends FluidCheckout {

	/**
	 * __construct function.
	 */
	public function __construct() {
		$this->hooks();
	}



	/**
	 * Initialize hooks.
	 */
	public function hooks() {
		// Container class
		add_filter( 'fc_add_container_class', '__return_false', 10 );
		add_filter( 'fc_content_section_class', array( $this, 'change_fc_content_section_class' ), 10 );
	}

		

	/**
	 * Add container class to the main content element for the cart page.
	 *
	 * @param string $class Main content element classes.
	 */
	public function change_fc_content_section_class( $class ) {
		// Bail if using distraction free header and footer
		if ( FluidCheckout_CheckoutPageTemplate::instance()->is_distraction_free_header_footer_checkout() ) { return $class; }

		return $class . ' site-container';
	}

}

FluidCheckout_ThemeCompat_Kadence::instance();
