<?php

$air_ticket_booking_custom_css = "";

	$air_ticket_booking_theme_pagination_options_alignment = get_theme_mod('air_ticket_booking_theme_pagination_options_alignment', 'Center');
	if ($air_ticket_booking_theme_pagination_options_alignment == 'Center') {
		$air_ticket_booking_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
		$air_ticket_booking_custom_css .= 'justify-content: center;margin: 0 auto;';
		$air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_theme_pagination_options_alignment == 'Right') {
		$air_ticket_booking_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
		$air_ticket_booking_custom_css .= 'justify-content: right;margin: 0 0 0 auto;';
		$air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_theme_pagination_options_alignment == 'Left') {
		$air_ticket_booking_custom_css .= '.navigation.pagination,.navigation.posts-navigation .nav-links{';
		$air_ticket_booking_custom_css .= 'justify-content: left;margin: 0 auto 0 0;';
		$air_ticket_booking_custom_css .= '}';
	}

	$air_ticket_booking_theme_breadcrumb_enable = get_theme_mod('air_ticket_booking_theme_breadcrumb_enable',true);
    if($air_ticket_booking_theme_breadcrumb_enable != true){
        $air_ticket_booking_custom_css .='nav.breadcrumb-trail.breadcrumbs,nav.woocommerce-breadcrumb{';
            $air_ticket_booking_custom_css .='display: none;';
        $air_ticket_booking_custom_css .='}';
    }

	$air_ticket_booking_theme_breadcrumb_options_alignment = get_theme_mod('air_ticket_booking_theme_breadcrumb_options_alignment', 'Left');
	if ($air_ticket_booking_theme_breadcrumb_options_alignment == 'Center') {
	    $air_ticket_booking_custom_css .= '.breadcrumbs ul,nav.woocommerce-breadcrumb{';
	    $air_ticket_booking_custom_css .= 'text-align: center !important;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_theme_breadcrumb_options_alignment == 'Right') {
	    $air_ticket_booking_custom_css .= '.breadcrumbs ul,nav.woocommerce-breadcrumb{';
	    $air_ticket_booking_custom_css .= 'text-align: Right !important;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_theme_breadcrumb_options_alignment == 'Left') {
	    $air_ticket_booking_custom_css .= '.breadcrumbs ul,nav.woocommerce-breadcrumb{';
	    $air_ticket_booking_custom_css .= 'text-align: Left !important;';
	    $air_ticket_booking_custom_css .= '}';
	}

	$air_ticket_booking_single_page_content_alignment = get_theme_mod('air_ticket_booking_single_page_content_alignment', 'left');
	if ($air_ticket_booking_single_page_content_alignment == 'left') {
	    $air_ticket_booking_custom_css .= '#single-page .type-page,section.theme-custom-block.theme-error-sectiontheme-error-section.error-block-middle,section.theme-custom-block.theme-error-section.error-block-heading .theme-area-header{';
	    $air_ticket_booking_custom_css .= 'text-align: left !important;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_single_page_content_alignment == 'center') {
	    $air_ticket_booking_custom_css .= '#single-page .type-page,section.theme-custom-block.theme-error-sectiontheme-error-section.error-block-middle,section.theme-custom-block.theme-error-section.error-block-heading .theme-area-header{';
	    $air_ticket_booking_custom_css .= 'text-align: center !important;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_single_page_content_alignment == 'right') {
	    $air_ticket_booking_custom_css .= '#single-page .type-page,section.theme-custom-block.theme-error-sectiontheme-error-section.error-block-middle,section.theme-custom-block.theme-error-section.error-block-heading .theme-area-header{';
	    $air_ticket_booking_custom_css .= 'text-align: right !important;';
	    $air_ticket_booking_custom_css .= '}';
	}

	$air_ticket_booking_single_post_content_alignment = get_theme_mod('air_ticket_booking_single_post_content_alignment', 'left');
	if ($air_ticket_booking_single_post_content_alignment == 'left') {
	    $air_ticket_booking_custom_css .= '#single-page .type-post,#single-page .type-post .entry-meta,#single-page .type-post .is-layout-flex{';
	    $air_ticket_booking_custom_css .= 'text-align: left !important;justify-content: left;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_single_post_content_alignment == 'center') {
	    $air_ticket_booking_custom_css .= '#single-page .type-post,#single-page .type-post .entry-meta,#single-page .type-post .is-layout-flex{';
	    $air_ticket_booking_custom_css .= 'text-align: center !important;justify-content: center;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_single_post_content_alignment == 'right') {
	    $air_ticket_booking_custom_css .= '#single-page .type-post,#single-page .type-post .entry-meta,#single-page .type-post .is-layout-flex{';
	    $air_ticket_booking_custom_css .= 'text-align: right !important;justify-content: right;';
	    $air_ticket_booking_custom_css .= '}';
	}

	$air_ticket_booking_menu_text_transform = get_theme_mod('air_ticket_booking_menu_text_transform', 'Capitalize');
	if ($air_ticket_booking_menu_text_transform == 'Capitalize') {
	    $air_ticket_booking_custom_css .= '.site-navigation .primary-menu > li a{';
	    $air_ticket_booking_custom_css .= 'text-transform: Capitalize !important;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_menu_text_transform == 'uppercase') {
	    $air_ticket_booking_custom_css .= '.site-navigation .primary-menu > li a{';
	    $air_ticket_booking_custom_css .= 'text-transform: uppercase !important;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_menu_text_transform == 'lowercase') {
	    $air_ticket_booking_custom_css .= '.site-navigation .primary-menu > li a{';
	    $air_ticket_booking_custom_css .= 'text-transform: lowercase !important;';
	    $air_ticket_booking_custom_css .= '}';
	}

	$air_ticket_booking_footer_widget_title_alignment = get_theme_mod('air_ticket_booking_footer_widget_title_alignment', 'left');
	if ($air_ticket_booking_footer_widget_title_alignment == 'left') {
	    $air_ticket_booking_custom_css .= 'h2.widget-title{';
	    $air_ticket_booking_custom_css .= 'text-align: left !important;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_footer_widget_title_alignment == 'center') {
	    $air_ticket_booking_custom_css .= 'h2.widget-title{';
	    $air_ticket_booking_custom_css .= 'text-align: center !important;';
	    $air_ticket_booking_custom_css .= '}';
	} else if ($air_ticket_booking_footer_widget_title_alignment == 'right') {
	    $air_ticket_booking_custom_css .= 'h2.widget-title{';
	    $air_ticket_booking_custom_css .= 'text-align: right !important;';
	    $air_ticket_booking_custom_css .= '}';
	}

    $air_ticket_booking_show_hide_related_product = get_theme_mod('air_ticket_booking_show_hide_related_product',true);
    if($air_ticket_booking_show_hide_related_product != true){
        $air_ticket_booking_custom_css .='.related.products{';
            $air_ticket_booking_custom_css .='display: none;';
        $air_ticket_booking_custom_css .='}';
    }

	$air_ticket_booking_sticky_sidebar = get_theme_mod('air_ticket_booking_sticky_sidebar',true);
    if($air_ticket_booking_sticky_sidebar != true){
        $air_ticket_booking_custom_css .='.widget-area-wrapper{';
            $air_ticket_booking_custom_css .='position: relative !important;';
        $air_ticket_booking_custom_css .='}';
    }

	/*-------------------- Global First Color -------------------*/

	$air_ticket_booking_global_color = get_theme_mod('air_ticket_booking_global_color', '#458FB3 '); // Add a fallback if the color isn't set

	if ($air_ticket_booking_global_color) {
		$air_ticket_booking_custom_css .= ':root {';
		$air_ticket_booking_custom_css .= '--global-color: ' . esc_attr($air_ticket_booking_global_color) . ';';
		$air_ticket_booking_custom_css .= '}';
	}

	$air_ticket_booking_global_secondary_color = get_theme_mod('air_ticket_booking_global_secondary_color', '#0F131F'); // Add a fallback if the color isn't set

	if ($air_ticket_booking_global_secondary_color) {
		$air_ticket_booking_custom_css .= ':root {';
		$air_ticket_booking_custom_css .= '--secondary-color: ' . esc_attr($air_ticket_booking_global_secondary_color) . ';';
		$air_ticket_booking_custom_css .= '}';
	}
	
	/*-------------------- Content Font -------------------*/

	$air_ticket_booking_content_typography_font = get_theme_mod('air_ticket_booking_content_typography_font', 'montserrat'); // Add a fallback if the color isn't set

	if ($air_ticket_booking_content_typography_font) {
		$air_ticket_booking_custom_css .= ':root {';
		$air_ticket_booking_custom_css .= '--font-main: ' . esc_attr($air_ticket_booking_content_typography_font) . ';';
		$air_ticket_booking_custom_css .= '}';
	}

	/*-------------------- Heading Font -------------------*/

	$air_ticket_booking_heading_typography_font = get_theme_mod('air_ticket_booking_heading_typography_font', 'montserrat'); // Add a fallback if the color isn't set

	if ($air_ticket_booking_heading_typography_font) {
		$air_ticket_booking_custom_css .= ':root {';
		$air_ticket_booking_custom_css .= '--font-head: ' . esc_attr($air_ticket_booking_heading_typography_font) . ';';
		$air_ticket_booking_custom_css .= '}';
	}

	/*-------------------- FOOTER -------------------*/

	$air_ticket_booking_footer_widget_background_color = get_theme_mod('air_ticket_booking_footer_widget_background_color');
    if ($air_ticket_booking_footer_widget_background_color) {

        $air_ticket_booking_custom_css .= "
            .footer-widgetarea {
                background-color: ". esc_attr($air_ticket_booking_footer_widget_background_color) .";
            }
        ";
    }

    $air_ticket_booking_footer_widget_background_image = get_theme_mod('air_ticket_booking_footer_widget_background_image');
	if ($air_ticket_booking_footer_widget_background_image) {
		$air_ticket_booking_custom_css .= "
			.footer-widgetarea {
				background-image: url(" . esc_url($air_ticket_booking_footer_widget_background_image) . ");
			}
		";
	}

    $air_ticket_booking_copyright_font_size = get_theme_mod('air_ticket_booking_copyright_font_size');
    if ($air_ticket_booking_copyright_font_size) {

        $air_ticket_booking_custom_css .= "
            .footer-copyright {
                font-size: ". esc_attr($air_ticket_booking_copyright_font_size) ."px;
            }
        ";
    }

	$air_ticket_booking_columns = get_theme_mod('air_ticket_booking_posts_per_columns', 3);
    $air_ticket_booking_columns = absint($air_ticket_booking_columns);
    if ( $air_ticket_booking_columns < 1 || $air_ticket_booking_columns > 6 ) {
        $air_ticket_booking_columns = 3;
    }
    $air_ticket_booking_custom_css .= "
        .site-content .article-wraper-archive {
            grid-template-columns: repeat({$air_ticket_booking_columns}, 1fr);
        }
    ";

	$air_ticket_booking_copyright_alignment = get_theme_mod( 'air_ticket_booking_copyright_alignment', 'Default' );
	if ( $air_ticket_booking_copyright_alignment === 'Reverse' ) {
		$air_ticket_booking_custom_css .= '.site-info .column-row { flex-direction: row-reverse; }';
		$air_ticket_booking_custom_css .= '.footer-credits { justify-content: flex-end; }';
		$air_ticket_booking_custom_css .= '.footer-copyright { text-align: right; }';
		$air_ticket_booking_custom_css .= '.site-info .column.column-3 { text-align: left; }';
	} elseif ( $air_ticket_booking_copyright_alignment === 'Center' ) {
		$air_ticket_booking_custom_css .= '.site-info .column-row { flex-direction: column; align-items: center; gap: 15px; }';
		$air_ticket_booking_custom_css .= '.footer-credits { justify-content: center; }';
		$air_ticket_booking_custom_css .= '.footer-copyright { text-align: center; }';
		$air_ticket_booking_custom_css .= '.site-info .column.column-3 { text-align: center; }';
	}