<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );

/**
 * Generates and outputs header generated stylesheets
 *
 * @action Before the template: us_before_template:templates/css-header
 * @action After the template: us_after_template:templates/css-header
 */

/* Generate media queries basen on breakpoint values */
$laptops_breakpoint = us_get_header_option( 'custom_breakpoint', 'laptops' )
	? (int) us_get_header_option( 'breakpoint', 'laptops' )
	: (int) us_get_option( 'laptops_breakpoint' );

$tablets_breakpoint = us_get_header_option( 'custom_breakpoint', 'tablets' )
	? (int) us_get_header_option( 'breakpoint', 'tablets' )
	: (int) us_get_option( 'tablets_breakpoint' );

$mobiles_breakpoint = us_get_header_option( 'custom_breakpoint', 'mobiles' )
	? (int) us_get_header_option( 'breakpoint', 'mobiles' )
	: (int) us_get_option( 'mobiles_breakpoint' );

$media_queries = array(
	'default' => '@media (min-width:' . ( $laptops_breakpoint + 1 ). 'px)',
	'laptops' => '@media (min-width:' . ( $tablets_breakpoint + 1 ) . 'px) and (max-width:' . $laptops_breakpoint . 'px)',
	'tablets' => '@media (min-width:' . ( $mobiles_breakpoint + 1 ) . 'px) and (max-width:' . $tablets_breakpoint . 'px)',
	'mobiles' => '@media (max-width:' . $mobiles_breakpoint . 'px)',
);

/* Header styles as variables */
global $us_template_directory;
$header_hor_styles = file_get_contents( $us_template_directory . '/common/css/base/header-hor.css' );
$header_ver_styles = file_get_contents( $us_template_directory . '/common/css/base/header-ver.css' );
$header_hor_pos_styles = file_get_contents( $us_template_directory . '/common/css/base/header-hor-position.css' );
?>

/* =============================================== */
/* ================ Header Colors ================ */
/* =============================================== */

<?php foreach ( array( 'top', 'middle', 'bottom' ) as $area ) :

	// Do not output extra CSS, if top or bottom areas are disabled in all states
	$show_state = FALSE;
	foreach ( (array) us_get_responsive_states( /* only keys */TRUE ) as $state ) {
		if ( us_get_header_option( $area . '_show', $state ) ) {
			$show_state = TRUE;
			break;
		}
	}
	if ( $area !== 'middle' AND ! $show_state ) {
		continue;
	}
	?>
	.l-subheader.at_<?= $area ?>,
	.l-subheader.at_<?= $area ?> .w-dropdown-list,
	.l-subheader.at_<?= $area ?> .type_mobile .w-nav-list.level_1 {
		background: <?= us_get_color( us_get_header_option( $area . '_bg_color' ), TRUE ) ?>;
		color: <?= us_get_color( us_get_header_option( $area . '_text_color' ) ) ?>;
		}
	.no-touch .l-subheader.at_<?= $area ?> a:hover,
	.no-touch .l-header.bg_transparent .l-subheader.at_<?= $area ?> .w-dropdown.opened a:hover {
		color: <?= us_get_color( us_get_header_option( $area . '_text_hover_color' ) ) ?>;
		}
	.l-header.bg_transparent:not(.sticky) .l-subheader.at_<?= $area ?> {
		background: <?= us_get_color( us_get_header_option( $area . '_transparent_bg_color' ), TRUE ) ?>;
		color: <?= us_get_color( us_get_header_option( $area . '_transparent_text_color' ) ) ?>;
		}
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .w-cart-link:hover,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .w-text a:hover,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .w-html a:hover,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .w-nav > a:hover,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .w-menu a:hover,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .w-search > a:hover,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .w-socials.shape_none.color_text a:hover,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .w-socials.shape_none.color_link a:hover,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .w-dropdown a:hover,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .type_desktop .menu-item.level_1.opened > a,
	.no-touch .l-header.bg_transparent:not(.sticky) .at_<?= $area ?> .type_desktop .menu-item.level_1:hover > a {
		color: <?= us_get_color( us_get_header_option( $area . '_transparent_text_hover_color' ) ) ?>;
		}
<?php endforeach ?>

.header_ver .l-header {
	background: <?= us_get_color( us_get_header_option( 'middle_bg_color' ), TRUE ) ?>;
	color: <?= us_get_color( us_get_header_option( 'middle_text_color' ) ) ?>;
	}



/* =============================================== */
/* ============== Responsive states ============== */
/* =============================================== */

<?php foreach ( $media_queries as $state => $media_query ) :

echo $media_query ?> {

	.hidden_for_<?= $state ?> { display: none !important; }

	<?php if ( ! us_get_header_option( 'top_show', $state ) ) { ?>
		.l-subheader.at_top { display: none; }
	<?php }
	if ( ! us_get_header_option( 'bottom_show', $state ) ) { ?>
		.l-subheader.at_bottom { display: none; }
	<?php }
	if (
		$bg_image = us_get_header_option( 'bg_img', $state )
		AND $bg_image_url = wp_get_attachment_image_url( $bg_image, 'full' )
	) {
		?>
		.l-subheader.at_middle {
			background-image: url(<?= esc_url( $bg_image_url ) ?>);
			background-attachment: <?= ( us_get_header_option( 'bg_img_attachment', $state ) ) ? 'scroll' : 'fixed' ?>;
			background-position: <?= us_get_header_option( 'bg_img_position', $state ) ?>;
			background-repeat: <?= us_get_header_option( 'bg_img_repeat', $state ) ?>;
			background-size: <?= us_get_header_option( 'bg_img_size', $state ) ?>;
			}
	<?php }

	// HORIZONTAL HEADER
	if ( us_get_header_option( 'orientation', $state ) == 'hor' ) {
		echo $header_hor_styles;

		$top_height = us_get_header_option( 'top_height', $state );
		$middle_height = us_get_header_option( 'middle_height', $state );
		$bottom_height = us_get_header_option( 'bottom_height', $state );
		$top_sticky_height = us_get_header_option( 'top_sticky_height', $state );
		$middle_sticky_height = us_get_header_option( 'middle_sticky_height', $state );
		$bottom_sticky_height = us_get_header_option( 'bottom_sticky_height', $state );

		// Calculate header Default and Sticky heights (in PX) for all states
		$header_height = (int) $middle_height;
		if ( us_get_header_option( 'top_show', $state ) ) {
			$header_height += (int) $top_height;
		}
		if ( us_get_header_option( 'bottom_show', $state ) ) {
			$header_height += (int) $bottom_height;
		}
		$header_sticky_height = (int) $middle_sticky_height;
		if ( us_get_header_option( 'top_show', $state ) ) {
			$header_sticky_height+= (int) $top_sticky_height;
		}
		if ( us_get_header_option( 'bottom_show', $state ) ) {
			$header_sticky_height += (int) $bottom_sticky_height;
		}
		?>
		:root {
			--header-height: <?= $header_height ?>px;
			--header-sticky-height: <?= $header_sticky_height ?>px;
			}
		.l-header:before {
			content: '<?= $header_height ?>';
			}
		.l-header.sticky:before {
			content: '<?= $header_sticky_height ?>';
			}
		<?php
		foreach ( array( 'top', 'middle', 'bottom' ) as $area ) {
			?>
			.l-subheader.at_<?= $area ?> {
				line-height: <?= ${$area . '_height'} ?>;
				height: <?= ${$area . '_height'} ?>;
				overflow: <?= ( (int) ${$area . '_height'} ) ? 'visible' : 'hidden' ?>;
				visibility: <?= ( (int) ${$area . '_height'} ) ? 'visible' : 'hidden' ?>;
				}
			.l-header.sticky .l-subheader.at_<?= $area ?> {
				line-height: <?= ${$area . '_sticky_height'} ?>;
				height: <?= ${$area . '_sticky_height'} ?>;
				overflow: <?= ( (int) ${$area . '_sticky_height'} ) ? 'visible' : 'hidden' ?>;
				visibility: <?= ( (int) ${$area . '_sticky_height'} ) ? 'visible' : 'hidden' ?>;
				}
			<?php

			// Center the middle cell
			if ( us_get_header_option( $area . '_centering', $state ) ) {
				?>
				.l-subheader.at_<?= $area ?> .l-subheader-cell.at_left,
				.l-subheader.at_<?= $area ?> .l-subheader-cell.at_right {
					display: flex;
					flex-basis: 100px;
					min-width: fit-content;
					}
				<?php
			}
		}

		// Styles are needed for Default and Laptops states only
		if ( in_array( $state, array( 'default', 'laptops' ) ) ) {
			echo $header_hor_pos_styles;
			?>
			.admin-bar .l-header.pos_static.bg_solid ~ .l-main .l-section.full_height:first-of-type {
				min-height: calc( 100vh - var(--header-height) - 32px );
				}
			.admin-bar .l-header.pos_fixed:not(.sticky_auto_hide) ~ .l-main .l-section.full_height:not(:first-of-type) {
				min-height: calc( 100vh - var(--header-sticky-height) - 32px );
				}
			.admin-bar.headerinpos_below .l-header.pos_fixed ~ .l-main .l-section.full_height:nth-of-type(2) {
				min-height: calc(100vh - 32px);
				}
		<?php }

		// VERTICAL HEADER
	} else {
		echo $header_ver_styles;
		?>
		:root {
			--header-width: <?= us_get_header_option( 'width', $state ) ?>;
			}
		<?php
		// Different styles for Default and Laptops states only
		if ( in_array( $state, array( 'default', 'laptops' ) ) ) { ?>

			.l-body.header_ver {
				padding-inline-start: var(--header-width, 0px);
				position: relative;
				}

			<?php if ( us_get_option( 'footer_reveal', 0 ) ) { ?>
			body.footer_reveal .l-footer {
				width: calc( 100% - var(--header-width, 0px) );
				}
			body.footer_reveal .l-canvas.type_boxed ~ .l-footer {
				inset-inline-start: var(--header-width, 0px);
				}
			<?php } ?>

			.l-body:not(.rtl) .w-toplink.pos_left {
				left: calc( var(--header-width, 0px) + var(--site-outline-width, 0px) );
				}
			body.rtl .w-toplink.pos_right {
				right: calc( var(--header-width, 0px) + var(--site-outline-width, 0px) );
				}

		<?php } else { ?>

			/* Slided vertical header for Tablets and Mobiles states */
			.w-header-show,
			body:not(.footer_reveal) .w-header-overlay {
				display: block;
				}
			.l-header {
				bottom: 0;
				overflow-y: auto;
				-webkit-overflow-scrolling: touch;
				box-shadow: none;
				transition: transform .3s;
				transform: translate3d(-100%,0,0);
				}
			body.rtl .l-header {
				transform: translate3d(100%,0,0);
				}
			body.header-show .l-header {
				transform: translate3d(0,0,0);
				}

			.post_navigation.layout_sided .order_first {
				inset-inline-start: -14rem;
				}
			.no-touch .post_navigation.layout_sided .order_first:hover,
			.post_navigation.layout_sided .order_first:focus-visible {
				inset-inline-start: 0;
				}

		<?php }
		if ( us_get_header_option( 'elm_align', $state ) == 'left' ) { ?>
			.l-subheader-cell {
				text-align: left;
				align-items: flex-start;
				}
		<?php }
		if ( us_get_header_option( 'elm_align', $state ) == 'right' ) { ?>
			.l-subheader-cell {
				text-align: right;
				align-items: flex-end;
				}
		<?php }
		if ( us_get_header_option( 'elm_valign', $state ) == 'middle' ) { ?>
			.l-subheader.at_middle {
				display: flex;
				align-items: center;
				}
		<?php }
		if ( us_get_header_option( 'elm_valign', $state ) == 'bottom' ) { ?>
			.l-subheader.at_middle {
				display: flex;
				align-items: flex-end;
				}
		<?php }
	}
	?>
}

<?php endforeach ?>



/* Image */

<?php foreach ( us_get_header_elms_of_a_type( 'image' ) as $class => $param ) {
	foreach ( us_get_responsive_states( /* only keys */TRUE ) as $state ) { ?>
	<?= $media_queries[ $state ] ?> {
		.<?= $class ?> {
			height: <?= $param[ 'height_' . $state ] ?> !important;
			}
		.l-header.sticky .<?= $class ?> {
			height: <?= ( $state === 'default' ) ? $param[ 'height_sticky' ] : $param[ 'height_sticky_' . $state ] ?> !important;
			}
	}
	<?php
	}
} ?>



/* Menu */

<?php foreach ( us_get_header_elms_of_a_type( 'menu' ) as $class => $param ): ?>
.<?= $class ?>.type_desktop {
	--menu-items-gap: <?= $param['indents'] ?>;
	}
.<?= $class ?>.type_desktop .menu-item:not(.level_1) {
	font-size: <?= $param['dropdown_font_size'] ?>;
	}
<?php if ( $param['dropdown_width'] ): ?>
.<?= $class ?>.type_desktop {
	position: relative;
	}
<?php endif ?>
.<?= $class ?>.type_mobile .w-nav-anchor.level_1,
.<?= $class ?>.type_mobile .w-nav-anchor.level_1 + .w-nav-arrow {
	font-size: <?= $param['mobile_font_size'] ?>;
	}
.<?= $class ?>.type_mobile .w-nav-anchor:not(.level_1),
.<?= $class ?>.type_mobile .w-nav-anchor:not(.level_1) + .w-nav-arrow {
	font-size: <?= $param['mobile_dropdown_font_size'] ?>;
	}
<?= $media_queries['default'] ?> {
	.<?= $class ?> .w-nav-icon {
		--icon-size: <?= $param['mobile_icon_size'] ?>;
		--icon-size-int: <?= (int) $param['mobile_icon_size'] ?>;
		}
}
<?= $media_queries['laptops'] ?> {
	.<?= $class ?> .w-nav-icon {
		--icon-size: <?= $param['mobile_icon_size_laptops'] ?>;
		--icon-size-int: <?= (int) $param['mobile_icon_size_laptops'] ?>;
		}
}
<?= $media_queries['tablets'] ?> {
	.<?= $class ?> .w-nav-icon {
		--icon-size: <?= $param['mobile_icon_size_tablets'] ?>;
		--icon-size-int: <?= (int) $param['mobile_icon_size_tablets'] ?>;
		}
}
<?= $media_queries['mobiles'] ?> {
	.<?= $class ?> .w-nav-icon {
		--icon-size: <?= $param['mobile_icon_size_mobiles'] ?>;
		--icon-size-int: <?= (int) $param['mobile_icon_size_mobiles'] ?>;
		}
}

/* Show mobile menu instead of desktop */
@media screen and (max-width: <?= ( (int) $param['mobile_width'] - 1 ) ?>px) {
	.w-nav.<?= $class ?> > .w-nav-list.level_1 {
		display: none;
		}
	.<?= $class ?> .w-nav-control {
		display: flex;
		}
}

/* MENU COLORS */

/* Menu Item on hover */
.no-touch .<?= $class ?> .w-nav-item.level_1.opened > a:not(.w-btn),
.no-touch .<?= $class ?> .w-nav-item.level_1:hover > a:not(.w-btn) {
	background: <?= us_get_color( $param['color_hover_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_hover_text'] ) ?>;
	}

/* Active Menu Item */
.<?= $class ?> .w-nav-item.level_1.current-menu-item > a:not(.w-btn),
.<?= $class ?> .w-nav-item.level_1.current-menu-ancestor > a:not(.w-btn),
.<?= $class ?> .w-nav-item.level_1.current-page-ancestor > a:not(.w-btn) {
	background: <?= us_get_color( $param['color_active_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_active_text'] ) ?>;
	}

<?php if ( $param['color_transparent_hover_bg'] OR $param['color_transparent_hover_text'] ): ?>
/* Menu Item on hover in transparent header */
.no-touch .l-header.bg_transparent:not(.sticky) .<?= $class ?>.type_desktop .w-nav-item.level_1.opened > a:not(.w-btn),
.no-touch .l-header.bg_transparent:not(.sticky) .<?= $class ?>.type_desktop .w-nav-item.level_1:hover > a:not(.w-btn) {
	<?= ( $param['color_transparent_hover_bg'] ) ? 'background:' . us_get_color( $param['color_transparent_hover_bg'], /* Gradient */ TRUE ) . ';' : '' ?>
	<?= ( $param['color_transparent_hover_text'] ) ? 'color:' . us_get_color( $param['color_transparent_hover_text'] ) . ';' : '' ?>
	}
<?php endif ?>

/* Active Menu Item in transparent header */
.l-header.bg_transparent:not(.sticky) .<?= $class ?>.type_desktop .w-nav-item.level_1.current-menu-item > a:not(.w-btn),
.l-header.bg_transparent:not(.sticky) .<?= $class ?>.type_desktop .w-nav-item.level_1.current-menu-ancestor > a:not(.w-btn),
.l-header.bg_transparent:not(.sticky) .<?= $class ?>.type_desktop .w-nav-item.level_1.current-page-ancestor > a:not(.w-btn) {
	background: <?= us_get_color( $param['color_transparent_active_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_transparent_active_text'] ) ?>;
	}

/* Dropdowns */
.<?= $class ?> .w-nav-list:not(.level_1) {
	background: <?= us_get_color( $param['color_drop_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_drop_text'] ) ?>;
	}

/* Dropdown Item on hover */
.no-touch .<?= $class ?> .w-nav-item:not(.level_1) > a:focus,
.no-touch .<?= $class ?> .w-nav-item:not(.level_1):hover > a {
	background: <?= us_get_color( $param['color_drop_hover_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_drop_hover_text'] ) ?>;
	}

/* Dropdown Active Item */
.<?= $class ?> .w-nav-item:not(.level_1).current-menu-item > a,
.<?= $class ?> .w-nav-item:not(.level_1).current-menu-ancestor > a,
.<?= $class ?> .w-nav-item:not(.level_1).current-page-ancestor > a {
	background: <?= us_get_color( $param['color_drop_active_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_drop_active_text'] ) ?>;
	}

<?php if ( $param['mobile_colors'] ): ?>

/* Mobile Menu: Main items */
.l-subheader .w-nav.<?= $class ?>.type_mobile .w-nav-list.level_1 {
	background: <?= us_get_color( $param['color_mobile_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_mobile_text'] ) ?>;
	}
.<?= $class ?>.type_mobile .w-nav-item.level_1 > a:not(.w-btn):focus,
.no-touch .<?= $class ?>.type_mobile .w-nav-item.level_1.opened > a:not(.w-btn),
.no-touch .<?= $class ?>.type_mobile .w-nav-item.level_1:hover > a:not(.w-btn) {
	background: <?= us_get_color( $param['color_mobile_hover_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_mobile_hover_text'] ) ?>;
	}
.<?= $class ?>.type_mobile .w-nav-item.level_1.current-menu-item > a:not(.w-btn),
.<?= $class ?>.type_mobile .w-nav-item.level_1.current-menu-ancestor > a:not(.w-btn),
.<?= $class ?>.type_mobile .w-nav-item.level_1.current-page-ancestor > a:not(.w-btn) {
	background: <?= us_get_color( $param['color_mobile_active_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_mobile_active_text'] ) ?>;
	}

/* Mobile Menu: Sub items */
.<?= $class ?>.type_mobile .w-nav-list:not(.level_1) {
	background: <?= us_get_color( $param['color_mobile_sub_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_mobile_sub_text'] ) ?>;
	}
.<?= $class ?>.type_mobile .w-nav-item:not(.level_1) > a:not(.w-btn):focus,
.no-touch .<?= $class ?>.type_mobile .w-nav-item:not(.level_1).opened > a:not(.w-btn),
.no-touch .<?= $class ?>.type_mobile .w-nav-item:not(.level_1):hover > a:not(.w-btn) {
	background: <?= us_get_color( $param['color_mobile_sub_hover_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_mobile_sub_hover_text'] ) ?>;
	}
.<?= $class ?>.type_mobile .w-nav-item:not(.level_1).current-menu-item > a:not(.w-btn),
.<?= $class ?>.type_mobile .w-nav-item:not(.level_1).current-menu-ancestor > a:not(.w-btn),
.<?= $class ?>.type_mobile .w-nav-item:not(.level_1).current-page-ancestor > a:not(.w-btn) {
	background: <?= us_get_color( $param['color_mobile_sub_active_bg'], /* Gradient */ TRUE ) ?>;
	color: <?= us_get_color( $param['color_mobile_sub_active_text'] ) ?>;
	}
<?php endif ?>
<?php endforeach ?>



/* Simple Menu */

<?php foreach ( us_get_header_elms_of_a_type( 'additional_menu' ) as $class => $param ): ?>
	.header_hor .<?= $class ?> .menu {
		margin: 0 -<?= $param['main_gap'] ?>;
		}
	.header_hor .<?= $class ?>.spread .menu {
		width: calc(100% + <?= $param['main_gap'] ?> + <?= $param['main_gap'] ?>);
		}
	.header_hor .<?= $class ?> .menu-item {
		padding: 0 <?= $param['main_gap'] ?>;
		}
	.header_ver .<?= $class ?> .menu-item {
		padding: <?= $param['main_gap'] ?> 0;
		}
<?php endforeach ?>



/* Search */

<?php foreach ( us_get_header_elms_of_a_type( 'search' ) as $class => $param ): ?>
<?= $media_queries['default'] ?> {
	.<?= $class ?>.layout_simple {
		max-width: <?= $param['field_width'] ?>;
		}
	.<?= $class ?>.layout_modern.active {
		width: <?= $param['field_width'] ?>;
		}
	.<?= $class ?> {
		font-size: <?= $param['icon_size'] ?>;
		}
}
<?= $media_queries['laptops'] ?> {
	.<?= $class ?>.layout_simple {
		max-width: <?= $param['field_width_laptops'] ?>;
		}
	.<?= $class ?>.layout_modern.active {
		width: <?= $param['field_width_laptops'] ?>;
		}
	.<?= $class ?> {
		font-size: <?= $param['icon_size_laptops'] ?>;
		}
}
<?= $media_queries['tablets'] ?> {
	.<?= $class ?>.layout_simple {
		max-width: <?= $param['field_width_tablets'] ?>;
		}
	.<?= $class ?>.layout_modern.active {
		width: <?= $param['field_width_tablets'] ?>;
		}
	.<?= $class ?> {
		font-size: <?= $param['icon_size_tablets'] ?>;
		}
}
<?= $media_queries['mobiles'] ?> {
	.<?= $class ?> {
		font-size: <?= $param['icon_size_mobiles'] ?>;
		}
}
<?php endforeach ?>



/* Socials */

<?php foreach ( us_get_header_elms_of_a_type( 'socials' ) as $class => $param ): ?>
<?php if ( ! empty( $param['gap'] ) ): ?>
.<?= $class ?> .w-socials-list {
	margin: -<?= $param['gap'] ?>;
	}
.<?= $class ?> .w-socials-item {
	padding: <?= $param['gap'] ?>;
	}
<?php endif ?>
<?php endforeach ?>



/* Cart */

<?php foreach ( us_get_header_elms_of_a_type( 'cart' ) as $class => $param ): ?>
<?= $media_queries['default'] ?> {
	.<?= $class ?> .w-cart-link {
		font-size: <?= $param['size'] ?>;
		}
}
<?= $media_queries['laptops'] ?> {
	.<?= $class ?> .w-cart-link {
		font-size: <?= $param['size_laptops'] ?>;
		}
}
<?= $media_queries['tablets'] ?> {
	.<?= $class ?> .w-cart-link {
		font-size: <?= $param['size_tablets'] ?>;
		}
}
<?= $media_queries['mobiles'] ?> {
	.<?= $class ?> .w-cart-link {
		font-size: <?= $param['size_mobiles'] ?>;
		}
}
<?php endforeach ?>



/* Design Options */

<?= us_get_header_design_options_css() ?>
