/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
div.payment_method_sequra div.sq_payment_method{
    border-radius: 0px !important;
    border: 0px !important;
    background-color: transparent !important;
    padding: 0px !important;
}

div.payment_method_sequra label.sq_payment_method {
    display: flex !important;
    flex-direction: row-reverse !important;
}

add_filter('woocommerce_sequra_get_merchant_ref', function($merchant_ref) {
	$country = wpml_get_current_language();
	if ( WC()->customer ){
		$customer = WC()->customer;
		$country = $customer->get_shipping_country();
	}
	if ( isset($_GET['order']) && $order = wc_get_order( $_GET['order'] ) ) {
		$country = $order->get_shipping_country();
	}
	if (strtolower($country) == 'es') {
		return $merchant_ref;
	} elseif (strtolower($country) == 'fr') {
		return '';
	} elseif (strtolower($country) == 'it') {
		return '';
	} elseif (strtolower($country) == 'pt') {
		return 'piscinasathena_sv_pt';
	} else {
		return $merchant_ref;
	}
});

#cookiescript_description {
	min-height: 100px; /* o el espacio estimado */
	content-visibility: auto;
  }
  
