<?php
// Add plugin-specific colors and fonts to the custom CSS
if ( ! function_exists( 'integro_trx_addons_get_css' ) ) {
	add_filter( 'integro_filter_get_css', 'integro_trx_addons_get_css', 10, 2 );
	function integro_trx_addons_get_css( $css, $args ) {

		if ( isset( $css['fonts'] ) && isset( $args['fonts'] ) ) {
			$fonts         = $args['fonts'];
			$css['fonts'] .= <<<CSS

.sc_layouts_cart_items_short,
[class*="trx_addons_title_with_link"],
.sc_price_item_price .sc_price_item_price_after,
.sc_price_item .sc_price_item_subtitle,
.sc_dishes_compact .sc_services_item_title,
.sc_services_iconed .sc_services_item_title,
.sc_services .sc_services_item_subtitle,
.sc_testimonials_item_author_subtitle,
.sc_icons_plain .sc_icons_item:not(.sc_icons_item_linked) .sc_icons_item_link,
.sc_hotspot_item_popup .sc_hotspot_item_subtitle .post_meta_item {
	{$fonts['p_font-family']}
}
.sc_testimonials_bred .sc_testimonials_item_content,
.sc_testimonials_decoration .sc_testimonials_item_content,
.sc_testimonials_alter2 .sc_testimonials_item_content,
.sc_testimonials_alter .sc_testimonials_item_content,
.sc_testimonials_fashion .sc_testimonials_item_content,
.sc_testimonials_creative .sc_testimonials_item_content,
.sc_testimonials_accent2 .sc_testimonials_item_content,
.sc_testimonials_accent .sc_testimonials_item_content,
.sc_testimonials_hover .sc_testimonials_item_content,
.sc_testimonials_common .sc_testimonials_item_content,
.sc_testimonials_list .sc_testimonials_item_content,
.sc_testimonials_light .sc_testimonials_item_content,
.sc_testimonials_extra .sc_testimonials_item_content,
.sc_testimonials_plain .sc_testimonials_item_content,
.sc_testimonials_simple .sc_testimonials_item_content,
.sc_testimonials_default .sc_testimonials_item_content {
	{$fonts['other_font-family']}
}

.widget_contacts .contacts_info .contacts_phone,
.services_page_related.related_wrap .sc_services_item_subtitle,
.widget .trx_addons_tabs .trx_addons_tabs_titles li,
.trx_addons_video_list_controller_wrap .trx_addons_video_list_subtitle,
.trx_addons_video_list_controller_wrap .trx_addons_video_list_image_label,
.trx_addons_audio_wrap .trx_addons_audio_navigation,
.services_page_tabs.trx_addons_tabs .trx_addons_tabs_titles li > a,
.sc_events_item_price,
.sc_events_item_date_day,
.sc_events_item_meta_locality,
.tabs_style_2.elementor-widget-tabs .elementor-tab-title,
.trx_addons_list_parameters,
.sc_events_item_more_link,
.sc_events_item_meta_categories a,
.scroll_to_top_style_modern,
.categories_list .categories_link_more,
.sc_blogger_default.sc_blogger_default_classic_time_2 .post_meta.sc_blogger_item_meta.post_meta_date,
.sc_blogger_default.sc_blogger_default_classic_time .post_meta.sc_blogger_item_meta.post_meta_date,
.team_member_brief_info_details .team_member_details_phone .team_member_details_value,
.sc_socials.sc_socials_icons_names .social_item .social_name,
.services_single .services_page_featured .sc_services_item_price,
.sc_services .sc_services_item_price,
.sc_services .sc_services_item_number,
.sc_services_minimal .sc_services_item_subtitle,
.audio_now_playing,
.sc_testimonials_modern .sc_testimonials_item_content strong,
.sc_testimonials_classic .sc_testimonials_item_content,
.social_item.social_item_type_names .social_name,
.trx_addons_message_box,
.sc_countdown .sc_countdown_label,
.sc_countdown_default .sc_countdown_digits,
.sc_countdown_default .sc_countdown_separator,
.sc_price_simple .sc_price_item_details,
.toc_menu_item .toc_menu_description,
.sc_recent_news .post_item .post_footer .post_meta .post_meta_item,
.sc_item_subtitle,
.sc_icons_item_title,
.sc_price_item_title, .sc_price_item_price,
.sc_courses_default .sc_courses_item_price,
.sc_courses_default .trx_addons_hover_content .trx_addons_hover_links a,
.sc_events_classic .sc_events_item_price,
.sc_events_classic .trx_addons_hover_content .trx_addons_hover_links a,
.sc_promo_modern .sc_promo_link2 span+span,
.sc_skills_counter .sc_skills_total,
.sc_skills_counter_alter .sc_skills_total,
.sc_skills_counter_extra .sc_skills_total, 
.sc_skills_counter_modern .sc_skills_total, 
.sc_skills_counter_simple .sc_skills_total,
.sc_skills_pie.sc_skills_compact_off .sc_skills_total,
.sc_skills_counter_alter .sc_skills_item_title,
.sc_skills_counter_extra .sc_skills_item_title,
.sc_skills_counter_modern .sc_skills_item_title,
.sc_skills_counter_simple .sc_skills_item_title,
.sc_skills_pie.sc_skills_compact_off .sc_skills_item_title,
.sc_icons_number .sc_icons_item_number,
.slider_container .slide_info.slide_info_large .slide_title,
.slider_style_modern .slider_controls_label span + span,
.slider_pagination_wrap,
.sc_slider_controller_info,
.trx_addons_dropcap,
.sc_hotspot_item_price,
.sc_igenerator_extended .sc_igenerator_form_actions_item > a,
.sc_igenerator_form_field_tags_item,
.sc_igenerator_form_field_tags_label,
.sc_igenerator_form_field_inner > label,
.sc_tgenerator_result .sc_tgenerator_result_label,
.sc_chat_form_field_prompt_label,
.sc_chat_form_field_tags_label,
.sc_chat_form_field_tags_item,
.slide_info .slide_number,
.slider_outer_titles_outside_top .slider_titles_outside_wrap .slide_cats,
.h5-font-family,
.trx_addons_bg_text_char {
	{$fonts['h5_font-family']}
}

.sc_recent_news .post_item .post_meta,
.sc_courses_default .sc_courses_item_date,
.courses_single .courses_page_meta,
.sc_events_classic .sc_events_item_date,
.sc_promo_modern .sc_promo_link2 span,
.sc_skills_counter .sc_skills_item_title,
.slider_style_modern .slider_controls_label span,
.slider_titles_outside_wrap .slide_cats,
.slider_titles_outside_wrap .slide_subtitle,
.sc_slider_controller_item_info_date,
.sc_testimonials_item_author_title,
.sc_testimonials_item_content:before {
	{$fonts['info_font-family']}
}
.slider_outer_wrap .sc_slider_controller .sc_slider_controller_item_info_date {
	{$fonts['info_font-size']}
	{$fonts['info_font-weight']}
	{$fonts['info_font-style']}
	{$fonts['info_line-height']}
	{$fonts['info_text-decoration']}
	{$fonts['info_text-transform']}
	{$fonts['info_letter-spacing']}
}
.trx_expcol_button,
.sc_button:not(.sc_button_simple),
.sc_button.sc_button_simple,
.sc_form button {
	{$fonts['button_font-family']}
	{$fonts['button_font-size']}
	{$fonts['button_font-weight']}
	{$fonts['button_font-style']}
	{$fonts['button_line-height']}
	{$fonts['button_text-decoration']}
	{$fonts['button_text-transform']}
	{$fonts['button_letter-spacing']}
}
.sc_tgenerator_result .sc_tgenerator_result_copy .sc_button,
.sc_chat_form_field_prompt .sc_chat_form_field_prompt_button,
.sc_tgenerator_form_field_prompt .sc_tgenerator_form_field_prompt_button,
.sc_igenerator_form_field_prompt .sc_igenerator_form_field_prompt_button,
.sc_igenerator_form_field_upload_image_decorator .sc_igenerator_form_field_upload_image_button,
.sc_icons .sc_icons_item_more_link,
.sc_services .sc_services_item_more_link,
.sc_blogger .sc_blogger_item_button .item_more_link,
.sc_promo_modern .sc_promo_link2 {
	{$fonts['button_font-family']}
}

/* Portfolio */
.sc_portfolio.sc_portfolio_band .sc_portfolio_item .post_content_wrap .post_meta .post_categories {
    {$fonts['h5_font-family']}
}

.trx_addons_message_box,
.sc_icons_plate.sc_icons .sc_icons_item_more_link,
.social_item.social_item_type_names .social_name, 
.sc_icons_plain .sc_icons_item .sc_icons_item_more_link,
.sc_blogger_portestate .sc_blogger_item .sc_blogger_item_content .sc_blogger_item_meta .post_categories,
.slider_pagination_style_title.sc_slider_controls_light .slider_pagination_wrap .slider_pagination_bullet,
.sc_title_default h5.sc_item_title_tag + .sc_title_subtitle,
.sc_portfolio.sc_portfolio_simple .sc_portfolio_item .post_content_wrap .post_meta .post_categories,
.sc_portfolio.sc_portfolio_default .sc_portfolio_item .post_featured .post_info .post_meta .post_categories,
.sc_style_toggle .sc_blogger .sc_item_filters_wrap .sc_item_filters .sc_item_filters_header .sc_item_filters_subtitle,
.sc_portfolio .sc_portfolio_item .post_meta .post_meta_item,
.sc_blogger_lay_portfolio_grid .sc_blogger_item .post_meta .post_categories,
.sc_blogger_lay_portfolio .sc_blogger_item .post_meta .post_categories {
    {$fonts['p_font-family']}
}
CSS;
		}

		return $css;
	}
}
