<?php

$online_mobile_accessories_custom_css = "";


$online_mobile_accessories_primary_color = get_theme_mod('online_mobile_accessories_primary_color');
$online_mobile_accessories_second_color = get_theme_mod('online_mobile_accessories_second_color');

/*------------------ Primary Global Color -----------*/

if ($online_mobile_accessories_primary_color) {
  $online_mobile_accessories_custom_css .= ':root {';
  $online_mobile_accessories_custom_css .= '--primary-color: ' . esc_attr($online_mobile_accessories_primary_color) . ' !important;';
  $online_mobile_accessories_custom_css .= '} ';
}

/*------------------ Secondary Global Color -----------*/

if ($online_mobile_accessories_second_color) {
  $online_mobile_accessories_custom_css .= ':root {';
  $online_mobile_accessories_custom_css .= '--secondary-color: ' . esc_attr($online_mobile_accessories_second_color) . ' !important;';
  $online_mobile_accessories_custom_css .= '} ';
}

/*-------------------- Scroll Top Alignment-------------------*/

$online_mobile_accessories_scroll_top_alignment = get_theme_mod( 'online_mobile_accessories_scroll_top_alignment','right-align');

if($online_mobile_accessories_scroll_top_alignment == 'right-align'){
$online_mobile_accessories_custom_css .='#button{';
	$online_mobile_accessories_custom_css .='right: 3%;';
$online_mobile_accessories_custom_css .='}';
}else if($online_mobile_accessories_scroll_top_alignment == 'center-align'){
$online_mobile_accessories_custom_css .='#button{';
	$online_mobile_accessories_custom_css .='right:0; left:0; margin: 0 auto;';
$online_mobile_accessories_custom_css .='}';
}else if($online_mobile_accessories_scroll_top_alignment == 'left-align'){
$online_mobile_accessories_custom_css .='#button{';
	$online_mobile_accessories_custom_css .='left: 3%;';
$online_mobile_accessories_custom_css .='}';
}

/*-------------------- Archive Page Pagination Alignment-------------------*/

$online_mobile_accessories_archive_pagination_alignment = get_theme_mod( 'online_mobile_accessories_archive_pagination_alignment','left-align');

if($online_mobile_accessories_archive_pagination_alignment == 'right-align'){
$online_mobile_accessories_custom_css .='.pagination{';
	$online_mobile_accessories_custom_css .='justify-content: end;';
$online_mobile_accessories_custom_css .='}';
}else if($online_mobile_accessories_archive_pagination_alignment == 'center-align'){
$online_mobile_accessories_custom_css .='.pagination{';
	$online_mobile_accessories_custom_css .='justify-content: center;';
$online_mobile_accessories_custom_css .='}';
}else if($online_mobile_accessories_archive_pagination_alignment == 'left-align'){
$online_mobile_accessories_custom_css .='.pagination{';
	$online_mobile_accessories_custom_css .='justify-content: start;';
$online_mobile_accessories_custom_css .='}';
}

/*-------------------- Scroll Top Responsive-------------------*/

$online_mobile_accessories_resp_scroll_top = get_theme_mod( 'online_mobile_accessories_resp_scroll_top',true);
if($online_mobile_accessories_resp_scroll_top == true && get_theme_mod( 'online_mobile_accessories_scroll_to_top',true) != true){
	$online_mobile_accessories_custom_css .='#button.show{';
		$online_mobile_accessories_custom_css .='visibility:hidden !important;';
	$online_mobile_accessories_custom_css .='} ';
}
if($online_mobile_accessories_resp_scroll_top == true){
	$online_mobile_accessories_custom_css .='@media screen and (max-width:575px) {';
	$online_mobile_accessories_custom_css .='#button.show{';
		$online_mobile_accessories_custom_css .='visibility:visible !important;';
	$online_mobile_accessories_custom_css .='} }';
}else if($online_mobile_accessories_resp_scroll_top == false){
	$online_mobile_accessories_custom_css .='@media screen and (max-width:575px){';
	$online_mobile_accessories_custom_css .='#button.show{';
		$online_mobile_accessories_custom_css .='visibility:hidden !important;';
	$online_mobile_accessories_custom_css .='} }';
}

/*-------------------- Preloader Responsive-------------------*/

$online_mobile_accessories_resp_loader = get_theme_mod('online_mobile_accessories_resp_loader',false);
if($online_mobile_accessories_resp_loader == true && get_theme_mod('online_mobile_accessories_header_preloader',false) == false){
	$online_mobile_accessories_custom_css .='@media screen and (min-width:575px){
		.preloader{';
		$online_mobile_accessories_custom_css .='display:none !important;';
	$online_mobile_accessories_custom_css .='} }';
}

if($online_mobile_accessories_resp_loader == false){
	$online_mobile_accessories_custom_css .='@media screen and (max-width:575px){
		.preloader{';
		$online_mobile_accessories_custom_css .='display:none !important;';
	$online_mobile_accessories_custom_css .='} }';
}

// Scroll to top button shape 

$online_mobile_accessories_scroll_border_radius = get_theme_mod( 'online_mobile_accessories_scroll_to_top_radius','curved-box');
if($online_mobile_accessories_scroll_border_radius == 'box'){
	$online_mobile_accessories_custom_css .='#button{';
		$online_mobile_accessories_custom_css .='border-radius: 0px;';
	$online_mobile_accessories_custom_css .='}';
}else if($online_mobile_accessories_scroll_border_radius == 'curved-box'){
	$online_mobile_accessories_custom_css .='#button{';
		$online_mobile_accessories_custom_css .='border-radius: 4px;';
	$online_mobile_accessories_custom_css .='}';
}
else if($online_mobile_accessories_scroll_border_radius == 'circle'){
	$online_mobile_accessories_custom_css .='#button{';
		$online_mobile_accessories_custom_css .='border-radius: 50%;';
	$online_mobile_accessories_custom_css .='}';
}

// Footer Background Image Attachment 

$online_mobile_accessories_footer_attachment = get_theme_mod( 'online_mobile_accessories_background_attachment','scroll');
if($online_mobile_accessories_footer_attachment == 'fixed'){
	$online_mobile_accessories_custom_css .='.site-footer{';
		$online_mobile_accessories_custom_css .='background-attachment: fixed;';
	$online_mobile_accessories_custom_css .='}';
}elseif ($online_mobile_accessories_footer_attachment == 'scroll'){
	$online_mobile_accessories_custom_css .='.site-footer{';
		$online_mobile_accessories_custom_css .='background-attachment: scroll;';
	$online_mobile_accessories_custom_css .='}';
}

// Menu Hover Style	

$online_mobile_accessories_menus_item = get_theme_mod( 'online_mobile_accessories_menus_style','None');
if($online_mobile_accessories_menus_item == 'None'){
	$online_mobile_accessories_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$online_mobile_accessories_custom_css .='';
	$online_mobile_accessories_custom_css .='}';
}else if($online_mobile_accessories_menus_item == 'Zoom In'){
	$online_mobile_accessories_custom_css .='#site-navigation .menu ul li a:hover, .main-navigation .menu li a:hover{';
		$online_mobile_accessories_custom_css .='transition: all 0.3s ease-in-out !important; transform: scale(1.2) !important;';
	$online_mobile_accessories_custom_css .='}';

	$online_mobile_accessories_custom_css .= '.main-navigation ul ul li a:hover {';
	$online_mobile_accessories_custom_css .= 'margin-left: 20px;';
	$online_mobile_accessories_custom_css .= '}';
}	

// Post Content Alignment

$online_mobile_accessories_blog_layout_option = get_theme_mod( 'online_mobile_accessories_blog_layout_option','Left');
if($online_mobile_accessories_blog_layout_option == 'Left'){
	$online_mobile_accessories_custom_css .='.post{';
		$online_mobile_accessories_custom_css .='text-align: left;';
	$online_mobile_accessories_custom_css .='}';
}elseif ($online_mobile_accessories_blog_layout_option == 'Right'){
	$online_mobile_accessories_custom_css .='.post{';
		$online_mobile_accessories_custom_css .='text-align: right;';
	$online_mobile_accessories_custom_css .='}';
}elseif ($online_mobile_accessories_blog_layout_option == 'Center'){
	$online_mobile_accessories_custom_css .='.post{';
		$online_mobile_accessories_custom_css .='text-align: center;';
	$online_mobile_accessories_custom_css .='}';
}