<?php if ( forminator_array_value_exists( $properties, 'hasLeads' ) && $properties['hasLeads'] ) { ?>
	#forminator-quiz-leads-<?php echo $properties['form_id'] ?>.forminator-ui {
		width: 100%;
		<?php if ( forminator_array_value_exists( $properties, 'quiz-size' ) ) { ?>
			<?php if ( 'custom' == $properties['quiz-size'] ) { ?>
				<?php if ( ! empty( $properties['quiz-custom-size'] ) ) { ?>
					max-width: <?php echo $properties['quiz-custom-size'] ?>px;
				<?php } else { ?>
					max-width: 600px;
				<?php } ?>
			<?php } ?>
		<?php } else { ?>
			max-width: 600px;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'quiz-padding' ) ) { ?>
			<?php if ( 'custom' == $properties['quiz-padding'] && ! empty( $properties['quiz-padding-top'] ) ) { ?>
				padding-top: <?php echo $properties['quiz-padding-top'] ?>px;
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-padding'] && ! empty( $properties['quiz-padding-right'] ) ) { ?>
				padding-right: <?php echo $properties['quiz-padding-right'] ?>px;
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-padding'] && ! empty( $properties['quiz-padding-bottom'] ) ) { ?>
				padding-bottom: <?php echo $properties['quiz-padding-bottom'] ?>px;
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-padding'] && ! empty( $properties['quiz-padding-left'] ) ) { ?>
				padding-left: <?php echo $properties['quiz-padding-left'] ?>px;
			<?php } ?>
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'quiz-border' ) ) { ?>
			<?php if ( 'custom' == $properties['quiz-border'] && ! empty( $properties['quiz-border-width'] ) ) { ?>
				border-width: <?php echo $properties['quiz-border-width'] ?>px;
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-border'] ) { ?>
				<?php if ( ! empty( $properties['quiz-border-style'] ) ) { ?>
					border-style: <?php echo $properties['quiz-border-style'] ?>;
				<?php } else { ?>
					border-style: none;
				<?php } ?>
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-border'] && ! empty( $properties['quiz-border-radius'] ) ) { ?>
				border-radius: <?php echo $properties['quiz-border-radius'] ?>px;
				-moz-border-radius: <?php echo $properties['quiz-border-radius'] ?>px;
				-webkit-border-radius: <?php echo $properties['quiz-border-radius'] ?>px;
			<?php } ?>
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-palette' ) ) { ?>
			<?php if ( forminator_array_value_exists( $properties, 'knowledge-container-color' ) ) { ?>
				background-color: <?php echo $properties['knowledge-container-color'] ?>;
			<?php } else { ?>
				background-color: rgba(0,0,0,0);
			<?php } ?>
			<?php if ( forminator_array_value_exists( $properties, 'container-border-color' ) ) { ?>
				border-color: <?php echo $properties['container-border-color'] ?>;
			<?php } else { ?>
				border-color: #000000;
			<?php } ?>
		<?php } else { ?>
			background-color: rgba(0,0,0,0);
			border-color: #000000;
		<?php } ?>
	}

	#forminator-quiz-leads-<?php echo $properties['form_id'] ?>.forminator-ui .forminator-quiz--skip button {
		<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-palette' ) ) { ?>
			<?php if ( forminator_array_value_exists( $properties, 'knowledge-skip-default-color' ) ) { ?>
				color: <?php echo $properties['knowledge-skip-default-color'] ?>;
			<?php } else { ?>
				color: #888888;
			<?php } ?>
		<?php } else { ?>
			color: #888888;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-typography' ) ) { ?>
			<?php if ( forminator_array_value_exists( $properties, 'knowledge-skip-font-size' ) ) { ?>
				font-size: <?php echo $properties['knowledge-skip-font-size'] ?>px;
			<?php } else { ?>
				font-size: 15px;
			<?php } ?>
			<?php if ( forminator_array_value_exists( $properties, 'knowledge-skip-font-family' ) ) { ?>
				<?php if ( $properties['knowledge-skip-font-family'] != 'custom' ) { ?>
					font-family: <?php echo $properties['knowledge-skip-font-family'] ?>;
				<?php } else { ?>
					<?php if ( ! empty( $properties['knowledge-skip-custom-family'] ) ) { ?>
						font-family: <?php echo $properties['knowledge-skip-custom-family'] ?>;
					<?php } ?>
				<?php } ?>
			<?php } ?>
			<?php if ( forminator_array_value_exists( $properties, 'knowledge-skip-font-weight' ) ) { ?>
				<?php forminator_echo_font_weight( $properties, 'knowledge-skip-font-weight' ); ?>
			<?php } else { ?>
				font-weight: 400;
			<?php } ?>
		<?php } else { ?>
			font-size: 15px;
			font-weight: 400;
		<?php } ?>
	}

	#forminator-quiz-leads-<?php echo $properties['form_id'] ?>.forminator-ui .forminator-quiz--skip button:hover {
		<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-palette' ) ) { ?>
			<?php if ( forminator_array_value_exists( $properties, 'knowledge-skip-hover-color' ) ) { ?>
				color: <?php echo $properties['knowledge-skip-hover-color'] ?>;
			<?php } else { ?>
				color: #333333;
			<?php } ?>
		<?php } else { ?>
			color: #333333;
		<?php } ?>
	}

	#forminator-quiz-leads-<?php echo $properties['form_id'] ?>.forminator-ui .forminator-quiz--skip button:focus,
	#forminator-quiz-leads-<?php echo $properties['form_id'] ?>.forminator-ui .forminator-quiz--skip button:active {
		<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-palette' ) ) { ?>
			<?php if ( forminator_array_value_exists( $properties, 'knowledge-skip-active-color' ) ) { ?>
				color: <?php echo $properties['knowledge-skip-active-color'] ?>;
			<?php } else { ?>
				color: #333333;
			<?php } ?>
		<?php } else { ?>
			color: #333333;
		<?php } ?>
	}
<?php } else { ?>
	.forminator-ui.forminator-quiz#forminator-module-<?php echo $properties['form_id'] ?> {
		width: 100%;
		<?php if ( forminator_array_value_exists( $properties, 'quiz-size' ) ) { ?>
			<?php if ( 'custom' == $properties['quiz-size'] ) { ?>
				<?php if ( ! empty( $properties['quiz-custom-size'] ) ) { ?>
					max-width: <?php echo $properties['quiz-custom-size'] ?>px;
				<?php } else { ?>
					max-width: 600px;
				<?php } ?>
			<?php } ?>
		<?php } else { ?>
			max-width: 600px;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'quiz-padding' ) ) { ?>
			<?php if ( 'custom' == $properties['quiz-padding'] && ! empty( $properties['quiz-padding-top'] ) ) { ?>
				padding-top: <?php echo $properties['quiz-padding-top'] ?>px;
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-padding'] && ! empty( $properties['quiz-padding-right'] ) ) { ?>
				padding-right: <?php echo $properties['quiz-padding-right'] ?>px;
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-padding'] && ! empty( $properties['quiz-padding-bottom'] ) ) { ?>
				padding-bottom: <?php echo $properties['quiz-padding-bottom'] ?>px;
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-padding'] && ! empty( $properties['quiz-padding-left'] ) ) { ?>
				padding-left: <?php echo $properties['quiz-padding-left'] ?>px;
			<?php } ?>
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'quiz-border' ) ) { ?>
			<?php if ( 'custom' == $properties['quiz-border'] && ! empty( $properties['quiz-border-width'] ) ) { ?>
				border-width: <?php echo $properties['quiz-border-width'] ?>px;
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-border'] ) { ?>
				<?php if ( ! empty( $properties['quiz-border-style'] ) ) { ?>
					border-style: <?php echo $properties['quiz-border-style'] ?>;
				<?php } else { ?>
					border-style: none;
				<?php } ?>
			<?php } ?>
			<?php if ( 'custom' == $properties['quiz-border'] && ! empty( $properties['quiz-border-radius'] ) ) { ?>
				border-radius: <?php echo $properties['quiz-border-radius'] ?>px;
				-moz-border-radius: <?php echo $properties['quiz-border-radius'] ?>px;
				-webkit-border-radius: <?php echo $properties['quiz-border-radius'] ?>px;
			<?php } ?>
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'knowledge-toggle-palette' ) ) { ?>
			<?php if ( forminator_array_value_exists( $properties, 'knowledge-container-color' ) ) { ?>
				background-color: <?php echo $properties['knowledge-container-color'] ?>;
			<?php } else { ?>
				background-color: transparent;
			<?php } ?>
			<?php if ( forminator_array_value_exists( $properties, 'container-border-color' ) ) { ?>
				border-color: <?php echo $properties['container-border-color'] ?>;
			<?php } else { ?>
				border-color: #000000;
			<?php } ?>
		<?php } else { ?>
			background-color: transparent;
			border-color: #000000;
		<?php } ?>
	}
<?php } ?>