<?php
/**
 * Frontend CSS & Google Fonts loading File.
 *
 * @since 2.0.0
 *
 * @package uagb
 */

$overall_border_css    = UAGB_Block_Helper::uag_generate_border_css( $attr, 'tab' );
$overall_border_css    = UAGB_Block_Helper::uag_generate_deprecated_border_css(
	$overall_border_css,
	( isset( $attr['borderWidth'] ) ? $attr['borderWidth'] : '' ),
	( isset( $attr['borderRadius'] ) ? $attr['borderRadius'] : '' ),
	( isset( $attr['borderColor'] ) ? $attr['borderColor'] : '' ),
	( isset( $attr['borderStyle'] ) ? $attr['borderStyle'] : '' )
);
$overall_border_tablet = UAGB_Block_Helper::uag_generate_border_css( $attr, 'tab', 'tablet' );
$overall_border_mobile = UAGB_Block_Helper::uag_generate_border_css( $attr, 'tab', 'mobile' );
// Adds Fonts.
UAGB_Block_JS::blocks_tabs_gfont( $attr );

$block_name = 'tabs';

$icon_size_fallback    = UAGB_Block_Helper::get_fallback_number( $attr['iconSize'], 'iconSize', $block_name );
$icon_spacing_fallback = UAGB_Block_Helper::get_fallback_number( $attr['iconSpacing'], 'iconSpacing', $block_name );

$tab_title_top_padding    = isset( $attr['tabTitleTopPadding'] ) ? $attr['tabTitleTopPadding'] : $attr['tabTitleVertPadding'];
$tab_title_bottom_padding = isset( $attr['tabTitleBottomPadding'] ) ? $attr['tabTitleBottomPadding'] : $attr['tabTitleVertPadding'];
$tab_title_left_padding   = isset( $attr['tabTitleLeftPadding'] ) ? $attr['tabTitleLeftPadding'] : $attr['tabTitleHrPadding'];
$tab_title_right_padding  = isset( $attr['tabTitleRightPadding'] ) ? $attr['tabTitleRightPadding'] : $attr['tabTitleHrPadding'];

$tab_body_top_padding    = isset( $attr['tabBodyTopPadding'] ) ? $attr['tabBodyTopPadding'] : $attr['tabBodyVertPadding'];
$tab_body_bottom_padding = isset( $attr['tabBodyBottomPadding'] ) ? $attr['tabBodyBottomPadding'] : $attr['tabBodyVertPadding'];
$tab_body_left_padding   = isset( $attr['tabBodyLeftPadding'] ) ? $attr['tabBodyLeftPadding'] : $attr['tabBodyHrPadding'];
$tab_body_right_padding  = isset( $attr['tabBodyRightPadding'] ) ? $attr['tabBodyRightPadding'] : $attr['tabBodyHrPadding'];

$selectors = array(
	' .uagb-tabs__panel .uagb-tab '                        => array_merge(
		array(
			'background' => $attr['headerBgColor'],
			'text-align' => $attr['titleAlign'],
		),
		$overall_border_css
	),
	'.uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab a '  => array(
		'padding-top'    => UAGB_Helper::get_css_value( $tab_title_top_padding, $attr['tabTitlePaddingUnit'] ),
		'padding-bottom' => UAGB_Helper::get_css_value( $tab_title_bottom_padding, $attr['tabTitlePaddingUnit'] ),
		'padding-left'   => UAGB_Helper::get_css_value( $tab_title_left_padding, $attr['tabTitlePaddingUnit'] ),
		'padding-right'  => UAGB_Helper::get_css_value( $tab_title_right_padding, $attr['tabTitlePaddingUnit'] ),
		'color'          => $attr['headerTextColor'],
	),
	'.uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab'     => array(
		'margin-top'    => UAGB_Helper::get_css_value( $attr['tabTitleTopMargin'], $attr['tabTitleMarginUnit'] ),
		'margin-left'   => UAGB_Helper::get_css_value( $attr['tabTitleLeftMargin'], $attr['tabTitleMarginUnit'] ),
		'margin-right'  => UAGB_Helper::get_css_value( $attr['tabTitleRightMargin'], $attr['tabTitleMarginUnit'] ),
		'margin-bottom' => UAGB_Helper::get_css_value( $attr['tabTitleBottomMargin'], $attr['tabTitleMarginUnit'] ),
	),
	'.uagb-tabs__wrap .uagb-tabs__panel .uagb-tab:hover '  => array(
		'border-color' => $attr['tabBorderHColor'],
	),
	' .uagb-tabs__panel .uagb-tab.uagb-tabs__active'       => array(
		'background' => $attr['activeTabBgColor'],
	),
	'.uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab.uagb-tabs__active a' => array(
		'color' => $attr['activeTabTextColor'],
	),
	' .uagb-tabs__panel .uagb-tab.uagb-tabs__active .uagb-tabs__icon svg' => array(
		'fill' => $attr['activeiconColor'],
	),

	'.uagb-tabs__wrap .uagb-tabs__body-wrap '              => array(
		'background'     => $attr['bodyBgColor'],
		'padding-top'    => UAGB_Helper::get_css_value( $tab_body_top_padding, $attr['tabBodyPaddingUnit'] ),
		'padding-bottom' => UAGB_Helper::get_css_value( $tab_body_bottom_padding, $attr['tabBodyPaddingUnit'] ),
		'padding-left'   => UAGB_Helper::get_css_value( $tab_body_left_padding, $attr['tabBodyPaddingUnit'] ),
		'padding-right'  => UAGB_Helper::get_css_value( $tab_body_right_padding, $attr['tabBodyPaddingUnit'] ),
		'margin-top'     => UAGB_Helper::get_css_value( $attr['tabBodyTopMargin'], $attr['tabBodyMarginUnit'] ),
		'margin-left'    => UAGB_Helper::get_css_value( $attr['tabBodyLeftMargin'], $attr['tabBodyMarginUnit'] ),
		'margin-right'   => UAGB_Helper::get_css_value( $attr['tabBodyRightMargin'], $attr['tabBodyMarginUnit'] ),
		'margin-bottom'  => UAGB_Helper::get_css_value( $attr['tabBodyBottomMargin'], $attr['tabBodyMarginUnit'] ),
	),
	'.uagb-tabs__wrap .uagb-tabs__body-wrap:hover '        => array(
		'border-color' => $attr['tabBorderHColor'],
	),
	' .uagb-tabs__body-wrap p '                            => array(
		'color' => $attr['bodyTextColor'],
	),
	' .uagb-tabs__icon svg'                                => array(
		'height' => UAGB_Helper::get_css_value( $icon_size_fallback, 'px' ),
		'width'  => UAGB_Helper::get_css_value( $icon_size_fallback, 'px' ),
		'fill'   => $attr['iconColor'],
	),
	' .uagb-tabs__icon-position-left > .uagb-tabs__icon'   => array(
		'margin-right' => UAGB_Helper::get_css_value( $icon_spacing_fallback, 'px' ),
	),
	' .uagb-tabs__icon-position-right > .uagb-tabs__icon'  => array(
		'margin-left' => UAGB_Helper::get_css_value( $icon_spacing_fallback, 'px' ),
	),
	' .uagb-tabs__icon-position-bottom > .uagb-tabs__icon' => array(
		'margin-top' => UAGB_Helper::get_css_value( $icon_spacing_fallback, 'px' ),
	),
	' .uagb-tabs__icon-position-top > .uagb-tabs__icon'    => array(
		'margin-bottom' => UAGB_Helper::get_css_value( $icon_spacing_fallback, 'px' ),
	),
	'.uagb-tabs__hstyle1-desktop > .uagb-tabs__panel .uagb-tab' => $overall_border_css,
	'.uagb-tabs__hstyle1-desktop > .uagb-tabs__body-wrap'  => $overall_border_css,
	'.uagb-tabs__hstyle2-desktop > .uagb-tabs__panel .uagb-tab' => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__hstyle2-desktop ul.uagb-tabs__panel'      => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_css
	),
	'.uagb-tabs__hstyle2-desktop > .uagb-tabs__body-wrap'  => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__hstyle3-desktop .uagb-tab'                => array_merge(
		array(
			'border-bottom-width' => '0px',
			'border-bottom'       => 0,
			'outline'             => 0,
			'border-radius'       => 0,
		),
		$overall_border_css
	),
	'.uagb-tabs__hstyle3-desktop > .uagb-tabs__body-wrap'  => $overall_border_css,
	'.uagb-tabs__hstyle4-desktop .uagb-tab'                => array_merge(
		array(
			'border-radius' => '30px',
		),
		$overall_border_css
	),
	'.uagb-tabs__hstyle4-desktop > .uagb-tabs__body-wrap'  => $overall_border_css,
	'.uagb-tabs__hstyle5-desktop'                          => $overall_border_css,
	'.uagb-tabs__hstyle5-desktop .uagb-tab'                => array(
		'border-top-width'    => '0px',
		'border-right-width'  => '0px',
		'border-left-width'   => '0px',
		'border-bottom-width' => '0px',
		'border-top'          => 0,
		'border-left'         => 0,
		'border-right'        => 0,
		'border-bottom'       => 0,
		'outline'             => 0,
		'border-radius'       => 0,
	),
	'.uagb-tabs__hstyle5-desktop .uagb-tab.uagb-tabs__active' => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_css
	),
	'.uagb-tabs__vstyle6-desktop .uagb-tab'                => $overall_border_css,
	'.uagb-tabs__vstyle6-desktop .uagb-tabs__body-wrap'    => $overall_border_css,
	'.uagb-tabs__vstyle7-desktop .uagb-tab'                => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_css
	),
	'.uagb-tabs__vstyle7-desktop > .uagb-tabs__body-wrap'  => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__vstyle8-desktop .uagb-tab'                => array_merge(
		array(
			'border-right-width' => '0px',
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_css
	),
	'.uagb-tabs__vstyle8-desktop > .uagb-tabs__body-wrap'  => $overall_border_css,
	'.uagb-tabs__vstyle9-desktop .uagb-tab'                => array_merge(
		array(
			'border-radius' => '30px',
		),
		$overall_border_css
	),
	'.uagb-tabs__vstyle9-desktop > .uagb-tabs__body-wrap'  => $overall_border_css,
	'.uagb-tabs__vstyle10-desktop'                         => $overall_border_css,
	'.uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel .uagb-tab' => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__vstyle10-desktop .uagb-tabs__body-wrap'   => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__vstyle10-desktop ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active' => array_merge(
		array(
			'border-top-width'    => '0px',
			'border-bottom-width' => '0px',
			'border-left-width'   => '0px',
			'border-top'          => 0,
			'border-left'         => 0,
			'border-bottom'       => 0,
			'outline'             => 0,
			'border-radius'       => 0,
		),
		$overall_border_css
	),
);
if ( 'left' === $attr['tabAlign'] ) {
	$selectors[' ul.uagb-tabs__panel'] = array(
		'margin-right' => 'auto',
		'margin-left'  => 0,
	);
} elseif ( 'right' === $attr['tabAlign'] ) {
	$selectors[' ul.uagb-tabs__panel'] = array(
		'margin-left'  => 'auto',
		'margin-right' => 0,
	);
} else {
	$selectors[' ul.uagb-tabs__panel'] = array(
		'margin' => 'auto',
	);
}
$m_selectors = array(
	' .uagb-tabs__icon svg'                                => array(
		'height' => UAGB_Helper::get_css_value( $attr['iconSizeMobile'], 'px' ),
		'width'  => UAGB_Helper::get_css_value( $attr['iconSizeMobile'], 'px' ),
	),
	'.uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab a '  => array(
		'padding-top'    => UAGB_Helper::get_css_value( $attr['tabTitleTopPaddingMobile'], $attr['mobiletabTitlePaddingUnit'] ),
		'padding-bottom' => UAGB_Helper::get_css_value( $attr['tabTitleBottomPaddingMobile'], $attr['mobiletabTitlePaddingUnit'] ),
		'padding-left'   => UAGB_Helper::get_css_value( $attr['tabTitleLeftPaddingMobile'], $attr['mobiletabTitlePaddingUnit'] ),
		'padding-right'  => UAGB_Helper::get_css_value( $attr['tabTitleRightPaddingMobile'], $attr['mobiletabTitlePaddingUnit'] ),
	),
	'.uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab'     => array(
		'margin-top'    => UAGB_Helper::get_css_value( $attr['tabTitleTopMarginMobile'], $attr['mobiletabTitleMarginUnit'] ),
		'margin-left'   => UAGB_Helper::get_css_value( $attr['tabTitleLeftMarginMobile'], $attr['mobiletabTitleMarginUnit'] ),
		'margin-right'  => UAGB_Helper::get_css_value( $attr['tabTitleRightMarginMobile'], $attr['mobiletabTitleMarginUnit'] ),
		'margin-bottom' => UAGB_Helper::get_css_value( $attr['tabTitleBottomMarginMobile'], $attr['mobiletabTitleMarginUnit'] ),
	),
	'.uagb-tabs__wrap .uagb-tabs__body-wrap'               => array(
		'padding-top'    => UAGB_Helper::get_css_value( $attr['tabBodyTopPaddingMobile'], $attr['mobiletabBodyPaddingUnit'] ),
		'padding-bottom' => UAGB_Helper::get_css_value( $attr['tabBodyBottomPaddingMobile'], $attr['mobiletabBodyPaddingUnit'] ),
		'padding-left'   => UAGB_Helper::get_css_value( $attr['tabBodyLeftPaddingMobile'], $attr['mobiletabBodyPaddingUnit'] ),
		'padding-right'  => UAGB_Helper::get_css_value( $attr['tabBodyRightPaddingMobile'], $attr['mobiletabBodyPaddingUnit'] ),
		'margin-top'     => UAGB_Helper::get_css_value( $attr['tabBodyTopMarginMobile'], $attr['mobiletabBodyMarginUnit'] ),
		'margin-left'    => UAGB_Helper::get_css_value( $attr['tabBodyLeftMarginMobile'], $attr['mobiletabBodyMarginUnit'] ),
		'margin-right'   => UAGB_Helper::get_css_value( $attr['tabBodyRightMarginMobile'], $attr['mobiletabBodyMarginUnit'] ),
		'margin-bottom'  => UAGB_Helper::get_css_value( $attr['tabBodyBottomMarginMobile'], $attr['mobiletabBodyMarginUnit'] ),
	),
	' .uagb-tabs__icon-position-left > .uagb-tabs__icon'   => array(
		'margin-right' => UAGB_Helper::get_css_value( $attr['iconSpacingMobile'], 'px' ),
	),
	' .uagb-tabs__icon-position-right > .uagb-tabs__icon'  => array(
		'margin-left' => UAGB_Helper::get_css_value( $attr['iconSpacingMobile'], 'px' ),
	),
	' .uagb-tabs__icon-position-bottom > .uagb-tabs__icon' => array(
		'margin-top' => UAGB_Helper::get_css_value( $attr['iconSpacingMobile'], 'px' ),
	),
	' .uagb-tabs__icon-position-top > .uagb-tabs__icon'    => array(
		'margin-bottom' => UAGB_Helper::get_css_value( $attr['iconSpacingMobile'], 'px' ),
	),
	'.uagb-tabs__hstyle1-mobile > .uagb-tabs__panel .uagb-tab' => $overall_border_mobile,
	'.uagb-tabs__hstyle1-mobile > .uagb-tabs__body-wrap'   => $overall_border_mobile,
	'.uagb-tabs__hstyle2-mobile > .uagb-tabs__panel .uagb-tab' => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__hstyle2-mobile ul.uagb-tabs__panel'       => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_mobile
	),
	'.uagb-tabs__hstyle2-mobile > .uagb-tabs__body-wrap'   => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__hstyle3-mobile .uagb-tab'                 => array_merge(
		array(
			'border-bottom-width' => '0px',
			'border-bottom'       => 0,
			'outline'             => 0,
			'border-radius'       => 0,
		),
		$overall_border_mobile
	),
	'.uagb-tabs__hstyle3-mobile > .uagb-tabs__body-wrap'   => $overall_border_mobile,
	'.uagb-tabs__hstyle4-mobile .uagb-tab'                 => array_merge(
		array(
			'border-radius' => '30px',
		),
		$overall_border_mobile
	),
	'.uagb-tabs__hstyle4-mobile > .uagb-tabs__body-wrap'   => $overall_border_mobile,
	'.uagb-tabs__hstyle5-mobile'                           => $overall_border_mobile,
	'.uagb-tabs__hstyle5-mobile .uagb-tab'                 => array(
		'border-top-width'    => '0px',
		'border-right-width'  => '0px',
		'border-left-width'   => '0px',
		'border-bottom-width' => '0px',
		'border-top'          => 0,
		'border-left'         => 0,
		'border-right'        => 0,
		'border-bottom'       => 0,
		'outline'             => 0,
		'border-radius'       => 0,
	),
	'.uagb-tabs__hstyle5-mobile .uagb-tab.uagb-tabs__active' => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_mobile
	),
	'.uagb-tabs__vstyle6-mobile .uagb-tab'                 => $overall_border_mobile,
	'.uagb-tabs__vstyle6-mobile .uagb-tabs__body-wrap'     => $overall_border_mobile,
	'.uagb-tabs__vstyle7-mobile .uagb-tab'                 => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_mobile
	),
	'.uagb-tabs__vstyle7-mobile > .uagb-tabs__body-wrap'   => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__vstyle8-mobile .uagb-tab'                 => array_merge(
		array(
			'border-right-width' => '0px',
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_mobile
	),
	'.uagb-tabs__vstyle8-mobile > .uagb-tabs__body-wrap'   => $overall_border_mobile,
	'.uagb-tabs__vstyle9-mobile .uagb-tab'                 => array_merge(
		array(
			'border-radius' => '30px',
		),
		$overall_border_mobile
	),
	'.uagb-tabs__vstyle9-mobile > .uagb-tabs__body-wrap'   => $overall_border_mobile,
	'.uagb-tabs__vstyle10-mobile'                          => $overall_border_mobile,
	'.uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel .uagb-tab' => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__vstyle10-mobile .uagb-tabs__body-wrap'    => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__vstyle10-mobile ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active' => array_merge(
		array(
			'border-top-width'    => '0px',
			'border-bottom-width' => '0px',
			'border-left-width'   => '0px',
			'border-top'          => 0,
			'border-left'         => 0,
			'border-bottom'       => 0,
			'outline'             => 0,
			'border-radius'       => 0,
		),
		$overall_border_mobile
	),
	'.uagb-tabs__stack11-mobile > .uagb-tabs__panel .uagb-tab' => $overall_border_mobile,
	'.uagb-tabs__stack11-mobile > .uagb-tabs__body-wrap'   => $overall_border_mobile,
	'.uagb-tabs__stack12-mobile .uagb-tab'                 => array_merge(
		array(
			'border-bottom-width' => '0px',
			'border-bottom'       => 0,
			'outline'             => 0,
			'border-radius'       => 0,
		),
		$overall_border_mobile
	),
	'.uagb-tabs__stack12-mobile > .uagb-tabs__body-wrap'   => $overall_border_mobile,
	'.uagb-tabs__stack13-mobile .uagb-tab'                 => array_merge(
		array(
			'border-radius' => '30px',
		),
		$overall_border_mobile
	),
	'.uagb-tabs__stack13-mobile > .uagb-tabs__body-wrap'   => $overall_border_mobile,
	'.uagb-tabs__stack14-mobile'                           => $overall_border_mobile,
	'.uagb-tabs__stack14-mobile .uagb-tab'                 => array(
		'border-top-width'    => '0px',
		'border-right-width'  => '0px',
		'border-left-width'   => '0px',
		'border-bottom-width' => '0px',
		'border-top'          => 0,
		'border-left'         => 0,
		'border-right'        => 0,
		'border-bottom'       => 0,
		'outline'             => 0,
		'border-radius'       => 0,
	),
	'.uagb-tabs__stack14-mobile .uagb-tab.uagb-tabs__active' => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_mobile
	),


);
$t_selectors = array(
	' .uagb-tabs__icon svg'                                => array(
		'height' => UAGB_Helper::get_css_value( $attr['iconSizeTablet'], 'px' ),
		'width'  => UAGB_Helper::get_css_value( $attr['iconSizeTablet'], 'px' ),
	),
	'.uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab a '  => array(
		'padding-top'    => UAGB_Helper::get_css_value( $attr['tabTitleTopPaddingTablet'], $attr['tablettabTitlePaddingUnit'] ),
		'padding-bottom' => UAGB_Helper::get_css_value( $attr['tabTitleBottomPaddingTablet'], $attr['tablettabTitlePaddingUnit'] ),
		'padding-left'   => UAGB_Helper::get_css_value( $attr['tabTitleLeftPaddingTablet'], $attr['tablettabTitlePaddingUnit'] ),
		'padding-right'  => UAGB_Helper::get_css_value( $attr['tabTitleRightPaddingTablet'], $attr['tablettabTitlePaddingUnit'] ),
	),
	'.uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab '    => array(
		'margin-top'    => UAGB_Helper::get_css_value( $attr['tabTitleTopMarginTablet'], $attr['tablettabTitleMarginUnit'] ),
		'margin-left'   => UAGB_Helper::get_css_value( $attr['tabTitleLeftMarginTablet'], $attr['tablettabTitleMarginUnit'] ),
		'margin-right'  => UAGB_Helper::get_css_value( $attr['tabTitleRightMarginTablet'], $attr['tablettabTitleMarginUnit'] ),
		'margin-bottom' => UAGB_Helper::get_css_value( $attr['tabTitleBottomMarginTablet'], $attr['tablettabTitleMarginUnit'] ),
	),
	'.uagb-tabs__wrap .uagb-tabs__body-wrap '              => array(
		'padding-top'    => UAGB_Helper::get_css_value( $attr['tabBodyTopPaddingTablet'], $attr['tablettabBodyPaddingUnit'] ),
		'padding-bottom' => UAGB_Helper::get_css_value( $attr['tabBodyBottomPaddingTablet'], $attr['tablettabBodyPaddingUnit'] ),
		'padding-left'   => UAGB_Helper::get_css_value( $attr['tabBodyLeftPaddingTablet'], $attr['tablettabBodyPaddingUnit'] ),
		'padding-right'  => UAGB_Helper::get_css_value( $attr['tabBodyRightPaddingTablet'], $attr['tablettabBodyPaddingUnit'] ),
		'margin-top'     => UAGB_Helper::get_css_value( $attr['tabBodyTopMarginTablet'], $attr['tablettabBodyMarginUnit'] ),
		'margin-left'    => UAGB_Helper::get_css_value( $attr['tabBodyLeftMarginTablet'], $attr['tablettabBodyMarginUnit'] ),
		'margin-right'   => UAGB_Helper::get_css_value( $attr['tabBodyRightMarginTablet'], $attr['tablettabBodyMarginUnit'] ),
		'margin-bottom'  => UAGB_Helper::get_css_value( $attr['tabBodyBottomMarginTablet'], $attr['tablettabBodyMarginUnit'] ),
	),
	' .uagb-tabs__icon-position-left > .uagb-tabs__icon'   => array(
		'margin-right' => UAGB_Helper::get_css_value( $attr['iconSpacingTablet'], 'px' ),
	),
	' .uagb-tabs__icon-position-right > .uagb-tabs__icon'  => array(
		'margin-left' => UAGB_Helper::get_css_value( $attr['iconSpacingTablet'], 'px' ),
	),
	' .uagb-tabs__icon-position-bottom > .uagb-tabs__icon' => array(
		'margin-top' => UAGB_Helper::get_css_value( $attr['iconSpacingTablet'], 'px' ),
	),
	' .uagb-tabs__icon-position-top > .uagb-tabs__icon'    => array(
		'margin-bottom' => UAGB_Helper::get_css_value( $attr['iconSpacingTablet'], 'px' ),
	),
	'.uagb-tabs__hstyle1-tablet > .uagb-tabs__panel .uagb-tab' => $overall_border_tablet,
	'.uagb-tabs__hstyle1-tablet > .uagb-tabs__body-wrap'   => $overall_border_tablet,
	'.uagb-tabs__hstyle2-tablet > .uagb-tabs__panel .uagb-tab' => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__hstyle2-tablet ul.uagb-tabs__panel'       => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_tablet
	),
	'.uagb-tabs__hstyle2-tablet > .uagb-tabs__body-wrap'   => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__hstyle3-tablet .uagb-tab'                 => array_merge(
		array(
			'border-bottom-width' => '0px',
			'border-bottom'       => 0,
			'outline'             => 0,
			'border-radius'       => 0,
		),
		$overall_border_tablet
	),
	'.uagb-tabs__hstyle3-tablet > .uagb-tabs__body-wrap'   => $overall_border_tablet,
	'.uagb-tabs__hstyle4-tablet .uagb-tab'                 => array_merge(
		array(
			'border-radius' => '30px',
		),
		$overall_border_tablet
	),
	'.uagb-tabs__hstyle4-tablet > .uagb-tabs__body-wrap'   => $overall_border_tablet,
	'.uagb-tabs__hstyle5-tablet'                           => $overall_border_tablet,
	'.uagb-tabs__hstyle5-tablet .uagb-tab'                 => array(
		'border-top-width'    => '0px',
		'border-right-width'  => '0px',
		'border-left-width'   => '0px',
		'border-bottom-width' => '0px',
		'border-top'          => 0,
		'border-left'         => 0,
		'border-right'        => 0,
		'border-bottom'       => 0,
		'outline'             => 0,
		'border-radius'       => 0,
	),
	'.uagb-tabs__hstyle5-tablet .uagb-tab.uagb-tabs__active' => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_tablet
	),
	'.uagb-tabs__vstyle6-tablet .uagb-tab'                 => $overall_border_tablet,
	'.uagb-tabs__vstyle6-tablet .uagb-tabs__body-wrap'     => $overall_border_tablet,
	'.uagb-tabs__vstyle7-tablet .uagb-tab'                 => array_merge(
		array(
			'border-top-width'   => '0px',
			'border-right-width' => '0px',
			'border-left-width'  => '0px',
			'border-top'         => 0,
			'border-left'        => 0,
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_tablet
	),
	'.uagb-tabs__vstyle7-tablet > .uagb-tabs__body-wrap'   => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__vstyle8-tablet .uagb-tab'                 => array_merge(
		array(
			'border-right-width' => '0px',
			'border-right'       => 0,
			'outline'            => 0,
			'border-radius'      => 0,
		),
		$overall_border_tablet
	),
	'.uagb-tabs__vstyle8-tablet > .uagb-tabs__body-wrap'   => $overall_border_tablet,
	'.uagb-tabs__vstyle9-tablet .uagb-tab'                 => array_merge(
		array(
			'border-radius' => '30px',
		),
		$overall_border_tablet
	),
	'.uagb-tabs__vstyle9-tablet > .uagb-tabs__body-wrap'   => $overall_border_tablet,
	'.uagb-tabs__vstyle10-tablet'                          => $overall_border_tablet,
	'.uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel .uagb-tab' => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__vstyle10-tablet .uagb-tabs__body-wrap'    => array(
		'border-width' => '0px',
		'border-style' => 'none',
	),
	'.uagb-tabs__vstyle10-tablet ul.uagb-tabs__panel .uagb-tab.uagb-tabs__active' => array_merge(
		array(
			'border-top-width'    => '0px',
			'border-bottom-width' => '0px',
			'border-left-width'   => '0px',
			'border-top'          => 0,
			'border-left'         => 0,
			'border-bottom'       => 0,
			'outline'             => 0,
			'border-radius'       => 0,
		),
		$overall_border_tablet
	),
);

$combined_selectors = array(
	'desktop' => $selectors,
	'mobile'  => $m_selectors,
	'tablet'  => $t_selectors,
);
$combined_selectors = UAGB_Helper::get_typography_css( $attr, 'title', '  .uagb-tabs__panel .uagb-tab a', $combined_selectors );

return UAGB_Helper::generate_all_css( $combined_selectors, '.uagb-block-' . $id );
