<?php
/**
 * Dynamic css
 *
 * @package Canyon Themes
 * @subpackage Sewa
 *
 * @param null
 * @return void
 *
 */
if ( !function_exists('sewa_dynamic_css') ):
    function sewa_dynamic_css(){
    $sewa_primary_color         = esc_attr( sewa_get_option('sewa_primary_color') );
    $custom_css                  = '';
    /*==================== Primary Color ==============*/


    $custom_css .= "
    .section-0-background,
     hr,
     header .dropdown-menu > li > a:hover,
     .dropdown-menu > .active > a, 
     .dropdown-menu > .active > a:focus, 
     .dropdown-menu > .active > a:hover,
     button, 
     .comment-reply-link, 
     input[type='button'], 
     input[type='reset'], 
     input[type='submit'],
     header .navbar-toggle,
     .section-10-background,
     .footer-top .submit-bgcolor,
     .section1 .border::before,
     .section1 .border::after,
     #section-12 .filter-box .lower-box a i,
     .section-2-box-left .border.left::before,
     .section-2-box-left .border::after,
     .inner-title, 
     .search-toggle,
     .comments-area .comment-body .reply a
      {
       background-color: " . $sewa_primary_color . ";}
    ";
    
    $custom_css .= "
    .section-4-box-icon-cont i,
    header .navbar-menu .navbar-nav > li > a:active,
    header .navbar-menu .navbar-nav>.open>a,
    header .navbar-menu .navbar-nav>.open>a:focus,
    header .navbar-menu .navbar-nav>.open>a:hover,
    .btn-seconday,
    .menu-top-container ul li a:hover,
    .section-14-box h3 a:hover, 
    .widget ul li a:hover,
    .footer-top ul li a:hover,
    .section-0-btn-cont .btn:hover,
    .footer-top .widget_recent_entries ul li:hover:before,
    .footer-top .widget_nav_menu ul li:hover:before,
    .footer-top .widget_archive ul li:hover:before,
    .navbar-default .navbar-nav > .active > a, 
    .comments-area .comment-body .comment-metadata time,
    .navbar-default .navbar-nav > .active > a:focus, 
    .navbar-default .navbar-nav > .active > a:hover
    {
        color: " . $sewa_primary_color . ";}
    ";
    
    $custom_css .= ".section-14-box .underline,
   .item blockquote img,
   .widget .widget-title,
   .portfolioFilter a,
   button, 
   .comment-reply-link, 
   input[type='button'], 
   input[type='reset'], 
   input[type='submit'],
   .testimonials .content .avatar,
   header .navbar-menu .navbar-right .dropdown-menu
   {
       border-color: " . $sewa_primary_color . ";}
    ";
    /*------------------------------------------------------------------------------------------------- */
    /*custom css*/
    wp_add_inline_style('sewa-style', $custom_css);
    }
endif;
add_action('wp_enqueue_scripts', 'sewa_dynamic_css', 99);