<?php

    $event_dining_catering_theme_css= "";

    /*--------------------------- Scroll to top positions -------------------*/

    $event_dining_catering_scroll_position = get_theme_mod( 'event_dining_catering_scroll_top_position','Right');
    if($event_dining_catering_scroll_position == 'Right'){
        $event_dining_catering_theme_css .='#button{';
            $event_dining_catering_theme_css .='right: 20px;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_scroll_position == 'Left'){
        $event_dining_catering_theme_css .='#button{';
            $event_dining_catering_theme_css .='left: 20px;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_scroll_position == 'Center'){
        $event_dining_catering_theme_css .='#button{';
            $event_dining_catering_theme_css .='right: 50%;left: 50%;';
        $event_dining_catering_theme_css .='}';
    }

    /*------------------ Nav Menus -------------------*/

    $event_dining_catering_nav_menu = get_theme_mod( 'event_dining_catering_nav_menu_text_transform','Capitalize');
    if($event_dining_catering_nav_menu == 'Capitalize'){
        $event_dining_catering_theme_css .='.site-navigation .primary-menu > li a{';
            $event_dining_catering_theme_css .='text-transform:Capitalize;';
        $event_dining_catering_theme_css .='}';
    }
    if($event_dining_catering_nav_menu == 'Lowercase'){
        $event_dining_catering_theme_css .='.site-navigation .primary-menu > li a{';
            $event_dining_catering_theme_css .='text-transform:Lowercase;';
        $event_dining_catering_theme_css .='}';
    }
    if($event_dining_catering_nav_menu == 'Uppercase'){
        $event_dining_catering_theme_css .='.site-navigation .primary-menu > li a{';
            $event_dining_catering_theme_css .='text-transform:Uppercase;';
        $event_dining_catering_theme_css .='}';
    }

    $event_dining_catering_menu_font_size = get_theme_mod( 'event_dining_catering_menu_font_size');
    if($event_dining_catering_menu_font_size != ''){
        $event_dining_catering_theme_css .='.site-navigation .primary-menu > li a{';
            $event_dining_catering_theme_css .='font-size: '.esc_attr($event_dining_catering_menu_font_size).'px;';
        $event_dining_catering_theme_css .='}';
    }

    $event_dining_catering_nav_menu_font_weight = get_theme_mod( 'event_dining_catering_nav_menu_font_weight',400);
    if($event_dining_catering_menu_font_size != ''){
        $event_dining_catering_theme_css .='.site-navigation .primary-menu > li a{';
            $event_dining_catering_theme_css .='font-weight: '.esc_attr($event_dining_catering_nav_menu_font_weight).';';
        $event_dining_catering_theme_css .='}';
    }

    /*--------------------------- Footer Widget Heading Alignment -------------------*/

    $event_dining_catering_footer_widget_heading_alignment = get_theme_mod( 'event_dining_catering_footer_widget_heading_alignment','Left');
    if($event_dining_catering_footer_widget_heading_alignment == 'Left'){
        $event_dining_catering_theme_css .='#colophon h5, h5.footer-column-widget-title{';
        $event_dining_catering_theme_css .='text-align: left;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_footer_widget_heading_alignment == 'Center'){
        $event_dining_catering_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $event_dining_catering_theme_css .='text-align: center;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_footer_widget_heading_alignment == 'Right'){
        $event_dining_catering_theme_css .='#colophon h5, h5.footer-column-widget-title{';
            $event_dining_catering_theme_css .='text-align: right;';
        $event_dining_catering_theme_css .='}';
    }

    /*--------------------------- Footer Widget Content Alignment -------------------*/

    $event_dining_catering_footer_widget_content_alignment = get_theme_mod( 'event_dining_catering_footer_widget_content_alignment','Left');
    if($event_dining_catering_footer_widget_content_alignment == 'Left'){
        $event_dining_catering_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
        $event_dining_catering_theme_css .='text-align: left;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_footer_widget_content_alignment == 'Center'){
        $event_dining_catering_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $event_dining_catering_theme_css .='text-align: center;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_footer_widget_content_alignment == 'Right'){
        $event_dining_catering_theme_css .='#colophon ul, #colophon p, .tagcloud, .widget{';
            $event_dining_catering_theme_css .='text-align: right;';
        $event_dining_catering_theme_css .='}';
    }

    /*--------------------------- Copyright Content Alignment -------------------*/

    $event_dining_catering_copyright_content_alignment = get_theme_mod( 'event_dining_catering_copyright_content_alignment','Center');
    if($event_dining_catering_copyright_content_alignment == 'Left'){
        $event_dining_catering_theme_css .='.footer-menu-left{';
        $event_dining_catering_theme_css .='text-align: left !important;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_copyright_content_alignment == 'Center'){
        $event_dining_catering_theme_css .='.footer-menu-left{';
            $event_dining_catering_theme_css .='text-align: center !important;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_copyright_content_alignment == 'Right'){
        $event_dining_catering_theme_css .='.footer-menu-left{';
            $event_dining_catering_theme_css .='text-align: right !important;';
        $event_dining_catering_theme_css .='}';
    }

    /*---------------------------Width Layout -------------------*/

    $event_dining_catering_width_option = get_theme_mod( 'event_dining_catering_width_option','Full Width');
    if($event_dining_catering_width_option == 'Boxed Width'){
        $event_dining_catering_theme_css .='body{';
            $event_dining_catering_theme_css .='max-width: 1140px; width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto;';
        $event_dining_catering_theme_css .='}';
        $event_dining_catering_theme_css .='.scrollup i{';
            $event_dining_catering_theme_css .='right: 100px;';
        $event_dining_catering_theme_css .='}';
        $event_dining_catering_theme_css .='.page-template-custom-home-page .home-page-header{';
            $event_dining_catering_theme_css .='padding: 0px 40px 0 10px;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_width_option == 'Wide Width'){
        $event_dining_catering_theme_css .='body{';
            $event_dining_catering_theme_css .='width: 100%;padding-right: 15px;padding-left: 15px;margin-right: auto;margin-left: auto;';
        $event_dining_catering_theme_css .='}';
        $event_dining_catering_theme_css .='.scrollup i{';
            $event_dining_catering_theme_css .='right: 30px;';
        $event_dining_catering_theme_css .='}';
    }else if($event_dining_catering_width_option == 'Full Width'){
        $event_dining_catering_theme_css .='body{';
            $event_dining_catering_theme_css .='max-width: 100%;';
        $event_dining_catering_theme_css .='}';
    }

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

    $event_dining_catering_global_color = get_theme_mod('event_dining_catering_global_color');

    if($event_dining_catering_global_color != false){
        $event_dining_catering_theme_css .='.comment-respond input#submit,.wp-block-button__link,.main-navigation .sub-menu,.sidebar input[type="submit"], .sidebar button[type="submit"],a.btn-text,#top-slider .owl-carousel .owl-nav .owl-prev, #top-slider .owl-carousel .owl-nav .owl-next,.featured .owl-carousel .owl-nav .owl-prev:hover, .featured .owl-carousel .owl-nav .owl-next:hover,#button, span.onsale, .pro-button a, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt.disabled, .woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce input.button.alt,.woocommerce a.added_to_cart, .woocommerce ul.products li.product .onsale, .woocommerce span.onsale, .woocommerce .woocommerce-ordering select, .woocommerce-account .woocommerce-MyAccount-navigation ul li, .post-navigation .nav-previous a:hover, .post-navigation .nav-next a:hover, .posts-navigation .nav-previous a:hover, .posts-navigation .nav-next a:hover, .navigation.pagination .nav-links a.current, .navigation.pagination .nav-links a:hover, .navigation.pagination .nav-links span.current, .navigation.pagination .nav-links span:hover, .sidebar h5, .sidebar .tagcloud a:hover, p.wp-block-tag-cloud a:hover, .main-header,.site-navigation .primary-menu ul, #top-banner .slide-btn a, #top-banner .slide-btn a.banner-btn2:hover, .counter .counter-box,#recipe-section .recipe-box:hover, #recipe-section .recipe-btn a:hover, #colophon, .sidebar h5, .sidebar h2.wp-block-heading, a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained{';
            $event_dining_catering_theme_css .='background-color: '.esc_attr($event_dining_catering_global_color).';';
        $event_dining_catering_theme_css .='}';
    }

    if($event_dining_catering_global_color != false){
        $event_dining_catering_theme_css .='a,.main-navigation .menu > li > a:hover,.post-navigation .nav-previous a, .post-navigation .nav-next a, .posts-navigation .nav-previous a, .posts-navigation .nav-next a,.article-box h3.entry-title a,.navbar-brand p,.top-info .social-link a i:hover, .top-info p.location i,.recipe-icon i, section.featured span.last_slide_head, p.price, .woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce-message::before, .woocommerce-info::before, .widget a:hover, .widget a:focus, .sidebar ul li a:hover, #recipe-section h3{';
            $event_dining_catering_theme_css .='color: '.esc_attr($event_dining_catering_global_color).';';
        $event_dining_catering_theme_css .='}';
    }

    if($event_dining_catering_global_color != false){
        $event_dining_catering_theme_css .='.wp-block-button.is-style-outline .wp-block-button__link,.postcat-name{';
            $event_dining_catering_theme_css .='color: '.esc_attr($event_dining_catering_global_color).' !important;';
        $event_dining_catering_theme_css .='}';
    }

    if($event_dining_catering_global_color != false){
        $event_dining_catering_theme_css .='.wp-block-button.is-style-outline .wp-block-button__link,.button-header a, #top-slider .slide-btn a, .post-navigation .nav-previous a:hover, .post-navigation .nav-next a:hover, .posts-navigation .nav-previous a:hover, .posts-navigation .nav-next a:hover, .navigation.pagination .nav-links a.current, .navigation.pagination .nav-links a:hover, .navigation.pagination .nav-links span.current, .navigation.pagination .nav-links span:hover, #recipe-section .recipe-btn a{';
            $event_dining_catering_theme_css .='border-color: '.esc_attr($event_dining_catering_global_color).';';
        $event_dining_catering_theme_css .='}';
    }

    if($event_dining_catering_global_color != false){
        $event_dining_catering_theme_css .='.woocommerce-message, .woocommerce-info{';
            $event_dining_catering_theme_css .='border-top-color: '.esc_attr($event_dining_catering_global_color).';';
        $event_dining_catering_theme_css .='}';
    }

    $event_dining_catering_theme_css .='@media screen and (max-width:1000px) {';
        if($event_dining_catering_global_color != false){
            $event_dining_catering_theme_css .='.toggle-nav i, .sidenav .closebtn{
            background: '.esc_attr($event_dining_catering_global_color).';
            }';
        }
    $event_dining_catering_theme_css .='}';

    /*-------------------- Heading typography -------------------*/

    $event_dining_catering_heading_color = get_theme_mod('event_dining_catering_heading_color');
    $event_dining_catering_heading_font_family = get_theme_mod('event_dining_catering_heading_font_family');
    $event_dining_catering_heading_font_size = get_theme_mod('event_dining_catering_heading_font_size');
    if($event_dining_catering_heading_color != false || $event_dining_catering_heading_font_family != false || $event_dining_catering_heading_font_size != false){
        $event_dining_catering_theme_css .='h1, h2, h3, h4, h5, h6, .navbar-brand h1.site-title, h2.entry-title, h1.entry-title, h2.page-title, #latest_post h2, h2.woocommerce-loop-product__title, #top-slider .slider-inner-box h3, .featured h3.main-heading, .article-box h3.entry-title, .featured h4.main-heading, #colophon h5, .sidebar h5{';
            $event_dining_catering_theme_css .='color: '.esc_attr($event_dining_catering_heading_color).'!important; 
            font-family: '.esc_attr($event_dining_catering_heading_font_family).'!important;
            font-size: '.esc_attr($event_dining_catering_heading_font_size).'px !important;';
        $event_dining_catering_theme_css .='}';
    }

    $event_dining_catering_paragraph_color = get_theme_mod('event_dining_catering_paragraph_color');
    $event_dining_catering_paragraph_font_family = get_theme_mod('event_dining_catering_paragraph_font_family');
    $event_dining_catering_paragraph_font_size = get_theme_mod('event_dining_catering_paragraph_font_size');
    if($event_dining_catering_paragraph_color != false || $event_dining_catering_paragraph_font_family != false || $event_dining_catering_paragraph_font_size != false){
        $event_dining_catering_theme_css .='p, p.site-title, span, .article-box p, ul, li{';
            $event_dining_catering_theme_css .='color: '.esc_attr($event_dining_catering_paragraph_color).'!important; 
            font-family: '.esc_attr($event_dining_catering_paragraph_font_family).'!important;
            font-size: '.esc_attr($event_dining_catering_paragraph_font_size).'px !important;';
        $event_dining_catering_theme_css .='}';
    }

    /*---------------- Logo CSS ----------------------*/
    $event_dining_catering_logo_title_font_size = get_theme_mod( 'event_dining_catering_logo_title_font_size');
    $event_dining_catering_logo_tagline_font_size = get_theme_mod( 'event_dining_catering_logo_tagline_font_size');
    if( $event_dining_catering_logo_title_font_size != '') {
        $event_dining_catering_theme_css .='#masthead .navbar-brand a{';
            $event_dining_catering_theme_css .='font-size: '. $event_dining_catering_logo_title_font_size. 'px;';
        $event_dining_catering_theme_css .='}';
    }
    if( $event_dining_catering_logo_tagline_font_size != '') {
        $event_dining_catering_theme_css .='#masthead .navbar-brand p{';
            $event_dining_catering_theme_css .='font-size: '. $event_dining_catering_logo_tagline_font_size. 'px;';
        $event_dining_catering_theme_css .='}';
    }