<?php

$custom_styles .= '

	h1, h2, h3, h4, h5, h6,
	.comments-title,
	.comment-author,
	#reply-title,
	.site-footer .widget-title,
	.accordion_title,
	.ui-tabs-anchor,
	.products .button,
	.site-title a,
	.post_meta_archive a,
	.post_meta a,
	.post_tags a,
	 #nav-below a,
	.list_categories a,
	.list_shop_categories a,
	.main-navigation > ul > li > a,
	.main-navigation .mega-menu > ul > li > a,
	.more-link,
	.top-page-excerpt,
	.select2-search input,
	.product_after_shop_loop_buttons a,
	.woocommerce .products-grid a.button,
	.page-numbers,
	input.qty,
	.button,
	button,
	.button_text,
	input[type="button"],
	input[type="reset"],
	input[type="submit"],
	button[type="submit"],
	.woocommerce a.button,
	.woocommerce-page a.button,
	.woocommerce button.button,
	.woocommerce-page button.button,
	.woocommerce input.button,
	.woocommerce-page input.button,
	.woocommerce #respond input#submit,
	.woocommerce-page #respond input#submit,
	.woocommerce #content input.button,
	.woocommerce-page #content input.button,
	.woocommerce a.button.alt,
	.woocommerce button.button.alt,
	.woocommerce input.button.alt,
	.woocommerce #respond input#submit.alt,
	.woocommerce #content input.button.alt,
	.woocommerce-page a.button.alt,
	.woocommerce-page button.button.alt,
	.woocommerce-page input.button.alt,
	.woocommerce-page #respond input#submit.alt,
	.woocommerce-page #content input.button.alt,
	.yith-wcwl-wishlistexistsbrowse.show a,
	.share-product-text,
	.tabs > li > a,
	label,
	.shopkeeper_new_product,
	.comment-respond label,
	.product_meta_title,
	.woocommerce table.shop_table th,
	.woocommerce-page table.shop_table th,
	#map_button,
	.woocommerce .cart-collaterals .cart_totals tr.order-total td strong,
	.woocommerce-page .cart-collaterals .cart_totals tr.order-total td strong,
	.cart-wishlist-empty,
	.wishlist-empty,
	.cart-empty,
	.return-to-shop .wc-backward,
	.order-number a,
	.post-edit-link,
	.from_the_blog_title,
	.icon_box_read_more,
	.vc_pie_chart_value,
	.shortcode_banner_simple_bullet,
	.shortcode_banner_simple_height_bullet,
	.product-category .woocommerce-loop-category__title,
	.categories_grid .category_name,
	.woocommerce span.onsale,
	.woocommerce-page span.onsale,
	.out_of_stock_badge_single,
	.out_of_stock_badge_loop,
	.page-numbers,
	.post-nav-links span,
	.post-nav-links a,
	.add_to_wishlist,
	.yith-wcwl-wishlistaddedbrowse,
	.yith-wcwl-wishlistexistsbrowse,
	.filters-group,
	.product-name,
	.product-quantity,
	.product-total,
	.download-product a,
	.woocommerce-order-details table tfoot th,
	.woocommerce-order-details table tfoot td,
	.woocommerce .woocommerce-order-downloads table tbody td:before,
	.woocommerce table.woocommerce-MyAccount-orders td:before,
	.widget h3,
	.widget .total .amount,
	.wishlist-in-stock,
	.wishlist-out-of-stock,
	.comment-reply-link,
	.comment-edit-link,
	.widget_calendar table thead tr th,
	.page-type,
	.mobile-navigation a,
	table thead tr th,
	.portfolio_single_list_cat,
	.portfolio-categories,
	.shipping-calculator-button,
	.vc_btn,
	.vc_btn2,
	.vc_btn3,
	.account-tab-item .account-tab-link,
	.account-tab-list .sep,
	ul.order_details li,
	ul.order_details.bacs_details li,
	.widget_calendar caption,
	.widget_recent_comments li a,
	.edit-account legend,
	.widget_shopping_cart li.empty,
	.cart-collaterals .cart_totals .shop_table .order-total .woocommerce-Price-amount,
	.woocommerce table.cart .cart_item td a,
	.woocommerce #content table.cart .cart_item td a,
	.woocommerce-page table.cart .cart_item td a,
	.woocommerce-page #content table.cart .cart_item td a,
	.woocommerce table.cart .cart_item td span,
	.woocommerce #content table.cart .cart_item td span,
	.woocommerce-page table.cart .cart_item td span,
	.woocommerce-page #content table.cart .cart_item td span,
	.woocommerce-MyAccount-navigation ul li,
	.woocommerce-info.wc_points_rewards_earn_points,
	.woocommerce-info, .woocommerce-error, .woocommerce-message,
	.woocommerce .cart-collaterals .cart_totals .cart-subtotal th,
	.woocommerce-page .cart-collaterals .cart_totals .cart-subtotal th,
	.woocommerce .cart-collaterals .cart_totals tr.shipping th,
	.woocommerce-page .cart-collaterals .cart_totals tr.shipping th,
	.woocommerce .cart-collaterals .cart_totals tr.order-total th,
	.woocommerce-page .cart-collaterals .cart_totals tr.order-total th,
	.woocommerce .cart-collaterals .cart_totals h2,
	.woocommerce .cart-collaterals .cross-sells h2,
	.woocommerce-cart #content table.cart td.actions .coupon #coupon_code,
	form.checkout_coupon #coupon_code,
	.woocommerce-checkout .woocommerce-info,
	.shopkeeper_checkout_coupon,
	.shopkeeper_checkout_login,
	.minicart-message,
	.woocommerce .woocommerce-checkout-review-order table.shop_table tfoot td,
	.woocommerce .woocommerce-checkout-review-order table.shop_table tfoot th,
	.woocommerce-page .woocommerce-checkout-review-order table.shop_table tfoot td,
	.woocommerce-page .woocommerce-checkout-review-order table.shop_table tfoot th,
	.no-products-info p,
	.getbowtied_blog_ajax_load_button a,
	.getbowtied_ajax_load_button a,
	.index-layout-2 ul.blog-posts .blog-post article .post-categories li a,
	.index-layout-3 .blog-posts_container ul.blog-posts .blog-post article .post-categories li a,
	.index-layout-2 ul.blog-posts .blog-post .post_content_wrapper .post_content .read_more,
	.index-layout-3 .blog-posts_container ul.blog-posts .blog-post article .post_content_wrapper .post_content .read_more,
	.woocommerce .woocommerce-breadcrumb,
	.woocommerce-page .woocommerce-breadcrumb,
	.woocommerce .woocommerce-breadcrumb a,
	.woocommerce-page .woocommerce-breadcrumb a,
	.product_meta,
	.product_meta span,
	.product_meta a,
	.product_layout_classic div.product span.price,
	.product_layout_classic div.product p.price,
	.product_layout_cascade div.product span.price,
	.product_layout_cascade div.product p.price,
	.product_layout_2 div.product span.price,
	.product_layout_2 div.product p.price,
	.product_layout_scattered div.product span.price,
	.product_layout_scattered div.product p.price,
	.product_layout_4 div.product span.price,
	.product_layout_4 div.product p.price,
	.related-products-title,
	.product_socials_wrapper .share-product-text,
	#button_offcanvas_sidebar_left .filters-text,
	.woocommerce-ordering select.orderby,
	.fr-position-text,
	.woocommerce-checkout-review-order .woocommerce-checkout-review-order-table tr td,
	.catalog-ordering .select2-container.orderby a,
	.catalog-ordering .select2-container span,
	.widget_product_categories ul li .count,
	.widget_layered_nav ul li .count,
	.woocommerce-mini-cart__empty-message,
	.woocommerce-ordering select.orderby,
	.woocommerce .cart-collaterals .cart_totals table.shop_table_responsive tr td::before,
	.woocommerce-page .cart-collaterals .cart_totals table.shop_table_responsive tr td::before,
	.login-register-container .lost-pass-link,
	.woocommerce-cart .cart-collaterals .cart_totals table td .amount,
	.wpb_wrapper .add_to_cart_inline .woocommerce-Price-amount.amount,
	.woocommerce-page .cart-collaterals .cart_totals tr.shipping td,
	.woocommerce-page .cart-collaterals .cart_totals tr.shipping td,
	.woocommerce .cart-collaterals .cart_totals tr.cart-discount th,
	.woocommerce-page .cart-collaterals .cart_totals tr.cart-discount th,
	.woocommerce-thankyou-order-received,
	.woocommerce-order-received .woocommerce table.shop_table tfoot th,
	.woocommerce-order-received .woocommerce-page table.shop_table tfoot th,
	.woocommerce-view-order .woocommerce table.shop_table tfoot th,
	.woocommerce-view-order .woocommerce-page table.shop_table tfoot th,
	.woocommerce-order-received .woocommerce table.shop_table tfoot td,
	.woocommerce-order-received .woocommerce-page table.shop_table tfoot td,
	.woocommerce-view-order .woocommerce table.shop_table tfoot td,
	.woocommerce-view-order .woocommerce-page table.shop_table tfoot td,
	.language-and-currency #top_bar_language_list > ul > li,
	.language-and-currency .wcml_currency_switcher > ul > li.wcml-cs-active-currency,
	.language-and-currency-offcanvas #top_bar_language_list > ul > li,
	.language-and-currency-offcanvas .wcml_currency_switcher > ul > li.wcml-cs-active-currency,
	.woocommerce-order-pay .woocommerce .woocommerce-form-login p.lost_password a,
	.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a,
	.woocommerce form.login .lost_password,
	.comment-reply-title,
	.product_content_wrapper .product_infos .out_of_stock_wrapper .out_of_stock_badge_single,
	.product_content_wrapper .product_infos .woocommerce-variation-availability p.stock.out-of-stock,
	.site-search .widget_product_search .search-field,
	.site-search .widget_search .search-field,
	.site-search .search-form .search-field,
	.site-search .search-text,
	.site-search .search-no-suggestions,
	.latest_posts_grid_wrapper .latest_posts_grid_title,
	p.has-drop-cap:not(:focus):first-letter,
	.paypal-button-tagline .paypal-button-text,
	.tinvwl_add_to_wishlist_button,
	.product-addon-totals,
	body.gbt_custom_notif .page-notifications .gbt-custom-notification-message,
	body.gbt_custom_notif .page-notifications .gbt-custom-notification-message *,
	body.gbt_custom_notif .page-notifications .product_notification_text,
	body.gbt_custom_notif .page-notifications .product_notification_text *,
	body.gbt_classic_notif .woocommerce-error a,
	body.gbt_classic_notif .woocommerce-info a,
	body.gbt_classic_notif .woocommerce-message a,
	body.gbt_classic_notif .woocommerce-notice a,
	.shop_table.cart .product-price .amount,
	p.has-drop-cap:first-letter,
	.woocommerce-result-count,
	.widget_price_filter .price_slider_amount,
	.woocommerce ul.products li.product .price,
	.product_content_wrapper .product_infos table.variations  td.label,
	.woocommerce div.product form.cart .reset_variations,
	#powerTip,
	div.wcva_shop_textblock,
	.wcva_filter_textblock,
	.wcva_single_textblock,
	.added_to_cart,
	.upper a,
	.wp-block-woocommerce-active-filters ul.wc-block-active-filters-list li *,
	.wp-block-woocommerce-active-filters .wc-block-active-filters__clear-all,
	.product_navigation #nav-below span,
	.order-info mark,
	.top-headers-wrapper .site-header .site-header-wrapper .site-title,
	.mobile-navigation > ul > li > ul > li.menu-item-has-children > a,
	.mobile-navigation > ul > li > ul li.upper > a
	{
		font-family: ' . Shopkeeper_Fonts::get_main_font() . ';
	}

	body,
	p,
	.site-navigation-top-bar,
	.site-title,
	.widget_product_search #searchsubmit,
	.widget_search #searchsubmit,
	.widget_product_search .search-submit,
	.widget_search .search-submit,
	#site-menu,
	.copyright_text,
	blockquote cite,
	table thead th,
	.recently_viewed_in_single h2,
	.woocommerce .cart-collaterals .cart_totals table th,
	.woocommerce-page .cart-collaterals .cart_totals table th,
	.woocommerce .cart-collaterals .shipping_calculator h2,
	.woocommerce-page .cart-collaterals .shipping_calculator h2,
	.woocommerce table.woocommerce-checkout-review-order-table tfoot th,
	.woocommerce-page table.woocommerce-checkout-review-order-table tfoot th,
	.qty,
	.shortcode_banner_simple_inside h4,
	.shortcode_banner_simple_height h4,
	.fr-caption,
	.post_meta_archive,
	.post_meta,
	.yith-wcwl-wishlistaddedbrowse .feedback,
	.yith-wcwl-wishlistexistsbrowse .feedback,
	.product-name span,
	.widget_calendar table tbody a,
	.fr-touch-caption-wrapper,
	.woocommerce .checkout_login p.form-row label[for="rememberme"],
	.wpb_widgetised_column aside ul li span.count,
	.woocommerce td.product-name dl.variation dt,
	.woocommerce td.product-name dl.variation dd,
	.woocommerce td.product-name dl.variation dt p,
	.woocommerce td.product-name dl.variation dd p,
	.woocommerce-page td.product-name dl.variation dt,
	.woocommerce-page td.product-name dl.variation dd p,
	.woocommerce-page td.product-name dl.variation dt p,
	.woocommerce .select2-container,
	.check_label,
	.woocommerce-page #payment .terms label,
	ul.order_details li strong,
	.widget_recent_comments li,
	.widget_shopping_cart p.total,
	.widget_shopping_cart p.total .amount,
	.mobile-navigation li ul li a,
	.woocommerce #payment div.payment_box p,
    .woocommerce-page #payment div.payment_box p,
	.woocommerce table.cart .cart_item td:before,
	.woocommerce #content table.cart .cart_item td:before,
	.woocommerce-page table.cart .cart_item td:before,
	.woocommerce-page #content table.cart .cart_item td:before,
	.language-and-currency #top_bar_language_list > ul > li > ul > li > a,
	.language-and-currency .wcml_currency_switcher > ul > li.wcml-cs-active-currency > ul.wcml-cs-submenu li a,
	.language-and-currency #top_bar_language_list > ul > li.menu-item-first > ul.sub-menu li.sub-menu-item span.icl_lang_sel_current,
	.language-and-currency-offcanvas  #top_bar_language_list > ul > li > ul > li > a,
	.language-and-currency-offcanvas  .wcml_currency_switcher > ul > li.wcml-cs-active-currency > ul.wcml-cs-submenu li a,
	.language-and-currency-offcanvas  #top_bar_language_list > ul > li.menu-item-first > ul.sub-menu li.sub-menu-item span.icl_lang_sel_current,
	.woocommerce-order-pay .woocommerce .woocommerce-info,
	.select2-results__option,
	body.gbt_classic_notif .woocommerce-error,
	body.gbt_classic_notif .woocommerce-info,
	body.gbt_classic_notif .woocommerce-message,
	body.gbt_classic_notif .woocommerce-notice,
	.gbt_18_sk_editor_banner_subtitle,
	.gbt_18_sk_editor_slide_description_input,
	.woocommerce td.product-name .wc-item-meta li,
	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.product_content_wrapper .product_infos span.belowtext,
	.wc-block-grid__product-title,
	.wp-block-woocommerce-attribute-filter ul.wc-block-checkbox-list li label,
	.wp-block-woocommerce-active-filters ul.wc-block-active-filters-list li .wc-block-active-filters-list-item__name
	{
		font-family: ' . Shopkeeper_Fonts::get_secondary_font() . ';

	}';

if ( SHOPKEEPER_CALL_TO_ACTION_IS_ACTIVE ) {
	$custom_styles .= '
		.call-to-action-canvas .call-to-action-purchase-link,
		.call-to-action-canvas .call-to-action-bottom-purchase-link
		.call-to-action-canvas .call-to-action-testimonial-text,
		.call-to-action-canvas .call-to-action-links a,
		.call-to-action-canvas .call-to-action-layout-badge,
		.call-to-action-canvas .call-to-action-refund-text,
		.call-to-action-canvas .call-to-action-testimonial-author a,
		.call-to-action-canvas a.call-to-action-bottom-purchase-link
		{
			font-family: ' . Shopkeeper_Fonts::get_main_font() . ';
		}

		.call-to-action-canvas .call-to-action-testimonial-author
		{
			font-family: ' . Shopkeeper_Fonts::get_secondary_font() . ';

		}
	';
}

$headings_base_size = Shopkeeper_Opt::getOption( 'headings_font_size', 23 );
$h0_size = $headings_base_size * 3.157;
$h1_size = $headings_base_size * 2.369;
$h2_size = $headings_base_size * 1.777;
$h3_size = $headings_base_size * 1.333;
$h4_size = $headings_base_size * 1;
$h5_size = $headings_base_size * 0.75;
$mobile_base_size = 13;
$h0_size_mobile = $mobile_base_size * 3.157;
$h1_size_mobile = $mobile_base_size * 2.369;
$h2_size_mobile = $mobile_base_size * 1.777;
$h3_size_mobile = $mobile_base_size * 1.333;
$h4_size_mobile = $mobile_base_size * 1;
$h5_size_mobile = $mobile_base_size * 0.75;

$custom_styles .= '
	h1, .woocommerce h1, .woocommerce-page h1 { font-size: ' . esc_html( $h1_size_mobile ) . 'px; }
	h2, .woocommerce h2, .woocommerce-page h2 { font-size: ' . esc_html( $h2_size_mobile ) . 'px; }
	h3, .woocommerce h3, .woocommerce-page h3 { font-size: ' . esc_html( $h3_size_mobile ) . 'px; }
	h4, .woocommerce h4, .woocommerce-page h4 { font-size: ' . esc_html( $h4_size_mobile ) . 'px; }
	h5, .woocommerce h5, .woocommerce-page h5 { font-size: ' . esc_html( $h5_size_mobile ) . 'px; }

	.woocommerce-account .account-tab-list .account-tab-item .account-tab-link
	{
		font-size: ' . esc_html( $h1_size ) . 'px;
	}

	.page-title.blog-listing,
	.woocommerce .page-title,
	.page-title,
	.single .entry-title,
	.woocommerce-cart .page-title,
	.woocommerce-checkout .page-title,
	.woocommerce-account .page-title
	{
		font-size: ' . esc_html( $h0_size_mobile ) . 'px;
	}

	p.has-drop-cap:first-letter
	{
		font-size: ' . esc_html( $h0_size_mobile ) . 'px !important;
	}

	.entry-title-archive,
	.wp-block-latest-posts li > a
	{
		font-size: ' . esc_html( $h3_size ) . 'px;
	}

	.woocommerce #content div.product .product_title,
	.woocommerce div.product .product_title,
	.woocommerce-page #content div.product .product_title,
	.woocommerce-page div.product .product_title
	{
		font-size: ' . esc_html( $h2_size_mobile ) . 'px;
	}

	h2.woocommerce-order-details__title,
	h2.woocommerce-column__title,
	h2.woocommerce-order-downloads__title
	{
		font-size: ' . esc_html( $h3_size_mobile ) . 'px;
	}

	.woocommerce-checkout .content-area h3,
	.woocommerce-edit-address h3,
	.woocommerce-edit-account legend
	{
		font-size: ' . esc_html( $h4_size_mobile ) . 'px;
	}

	@media only screen and (max-width: 768px)
	{
		.woocommerce-account .account-tab-list .account-tab-item .account-tab-link
		{
			font-size: ' . esc_html( $h1_size_mobile ) . 'px;
		}
	}

	@media only screen and (min-width: 768px) {

		h1, .woocommerce h1, .woocommerce-page h1 { font-size: ' . esc_html( $h1_size ) . 'px; }
		h2, .woocommerce h2, .woocommerce-page h2 { font-size: ' . esc_html( $h2_size ) . 'px; }
		h3, .woocommerce h3, .woocommerce-page h3 { font-size: ' . esc_html( $h3_size ) . 'px; }
		h4, .woocommerce h4, .woocommerce-page h4 { font-size: ' . esc_html( $h4_size ) . 'px; }
		h5, .woocommerce h5, .woocommerce-page h5 { font-size: ' . esc_html( $h5_size ) . 'px; }

		.page-title.blog-listing,
		.woocommerce .page-title,
		.page-title,
		.single .entry-title,
		.woocommerce-cart .page-title,
		.woocommerce-checkout .page-title,
		.woocommerce-account .page-title
		{
			font-size: ' . esc_html( $h0_size ) . 'px;
		}

		p.has-drop-cap:first-letter
		{
			font-size: ' . esc_html( $h0_size ) . 'px !important;
		}

		.entry-title-archive,
		.wp-block-latest-posts li > a
		{
			font-size: ' . esc_html( $h3_size ) . 'px;
		}

		.woocommerce-checkout .content-area h3,
		h2.woocommerce-order-details__title,
		h2.woocommerce-column__title,
		h2.woocommerce-order-downloads__title,
		.woocommerce-edit-address h3,
		.woocommerce-edit-account legend,
		.woocommerce-order-received h2,
		.fr-position-text
		{
			font-size: ' . esc_html( $h4_size ) . 'px;
		}

	}

	@media only screen and (min-width: 1024px) {

		.woocommerce #content div.product .product_title,
		.woocommerce div.product .product_title,
		.woocommerce-page #content div.product .product_title,
		.woocommerce-page div.product .product_title
		{
			font-size: ' . esc_html( $h2_size ) . 'px;
		}

	}

	@media only screen and (max-width: 1023px) {

		.woocommerce #content div.product .product_title,
		.woocommerce div.product .product_title,
		.woocommerce-page #content div.product .product_title,
		.woocommerce-page div.product .product_title
		{
			font-size: ' . esc_html( $h2_size_mobile ) . 'px;
		}
	}

	@media only screen and (min-width: 1024px) {
		p,
		.woocommerce table.shop_attributes th,
		.woocommerce-page table.shop_attributes th,
		.woocommerce table.shop_attributes td,
		.woocommerce-page table.shop_attributes td,
		.woocommerce-review-link,
		.blog-isotope .entry-content-archive,
		.blog-isotope .entry-content-archive *,
		body.gbt_classic_notif .woocommerce-message,
		body.gbt_classic_notif .woocommerce-error,
		body.gbt_classic_notif .woocommerce-info,
		body.gbt_classic_notif .woocommerce-notice,
		.woocommerce-store-notice, p.demo_store,
		.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-MyAccount-orders td,
		ul li ul,
		ul li ol,
		ul, ol, dl
		{
			font-size: ' . Shopkeeper_Opt::getOption( 'body_font_size', 16 ) . 'px;
		}
	}

	.woocommerce ul.order_details li strong,
	.fr-caption,
	.woocommerce-order-pay .woocommerce .woocommerce-info
	{
		font-size: ' . Shopkeeper_Opt::getOption( 'body_font_size', 16 ) . 'px !important;
	}

	@media only screen and (min-width: 768px)
	{
		.woocommerce ul.products li.product .woocommerce-loop-product__title,
		.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-link .wc-block-grid__product-title
		{
			font-size: ' . Shopkeeper_Opt::getOption( 'product_title_font_size', 13 ) . 'px !important;
		}
	}';
