<?php
// Add plugin-specific colors and fonts to the custom CSS
if ( ! function_exists( 'pantry_quickcal_get_css' ) ) {
	add_filter( 'pantry_filter_get_css', 'pantry_quickcal_get_css', 10, 2 );
	function pantry_quickcal_get_css( $css, $args ) {

		if ( isset( $css['fonts'] ) && isset( $args['fonts'] ) ) {
			$fonts         = $args['fonts'];
			$css['fonts'] .= <<<CSS

body #booked-profile-page .appt-block .booked-cal-buttons.addeventatc .google-cal-button,
body #booked-profile-page .booked-profile-appt-list .appt-block .booked-cal-buttons a,
body #booked-profile-page .appt-block .booked-cal-buttons .google-cal-button,
.booked-calendar-wrap .booked-appt-list .timeslot .timeslot-people button,
body #booked-profile-page input[type="submit"],
body #booked-profile-page button,
body .booked-list-view input[type="submit"],
body .booked-list-view button,
body .booked-calendar input[type="submit"],
body .booked-calendar button,
body .booked-modal input[type="submit"],
body .booked-modal button,
body #booked-profile-page .appt-block .booked-cal-buttons .google-cal-button.addeventatc, 
body #booked-profile-page .booked-profile-appt-list .appt-block .booked-cal-buttons a {
	{$fonts['button_font-family']}
	{$fonts['button_font-size']}
	{$fonts['button_font-weight']}
	{$fonts['button_font-style']}
	{$fonts['button_line-height']}
	{$fonts['button_text-decoration']}
	{$fonts['button_text-transform']}
	{$fonts['button_letter-spacing']}
}
body #booked-page-form input[type="text"],
body #booked-page-form input[type="password"],
body #booked-page-form input[type="email"],
body #booked-page-form textarea {
	{$fonts['input_font-family']}
	{$fonts['input_font-size']}
	{$fonts['input_font-weight']}
	{$fonts['input_font-style']}
	{$fonts['input_line-height']}
	{$fonts['input_text-decoration']}
	{$fonts['input_text-transform']}
	{$fonts['input_letter-spacing']}
}
body #profile-login label,
#profile-register label,
#profile-forgot label,
body #profile-edit #booked-page-form label,
body #booked-profile-page .booked-tabs li a,
body .booked-form .field label.field-label,
body .booked-modal .bm-window p.appointment-title,
body .booked-modal .bm-window p.calendar-name,
body .booked-modal .bm-window p small,
body #booked-profile-page .booked-profile-appt-list .appt-block .status-block,
#ui-datepicker-div.booked_custom_date_picker .ui-datepicker-header .ui-datepicker-title,
body div.booked-calendar-wrap.large .bc-body .date .number,
body div.booked-calendar .bc-head,
.booked-appt-list .timeslot .timeslot-time .timeslot-title,
.booked-appt-list .timeslot .timeslot-time .timeslot-range {
	{$fonts['h5_font-family']}
}

body .booked-modal .bm-window p,
body div.booked-calendar-wrap .booked-appt-list .timeslot .spots-available {
	{$fonts['p_font-family']}
}

CSS;
		}

		return $css;
	}
}