<?php
$get_tooltip_styles = get_option( 'gf_stla_form_id_tooltips_' . $form['id'] );
ob_start();



?>
<style type="text/css">

<?php echo '.tippy-tooltip.custom-' . $form['id'] . '-theme'; ?> {
	<?php if ( isset($get_tooltip_styles['tooltips']['border-size']) && isset($get_tooltip_styles['tooltips']['border-color']) ) {?>
	box-shadow: 0 0 0 <?php echo $this-> gf_tooltip_add_px_to_value( $get_tooltip_styles['tooltips']['border-size'] ); ?> <?php echo $get_tooltip_styles['tooltips']['border-color']; ?> inset;
	<?php } if( isset($get_tooltip_styles['tooltips']['border-radius']) ) {?>
	border-radius: <?php echo $this-> gf_tooltip_add_px_to_value( $get_tooltip_styles['tooltips']['border-radius'] );  ?>;
	<?php } 
	if( isset($get_tooltip_styles['tooltips']['background-color']) ){?>
		background-color: <?php echo $get_tooltip_styles['tooltips']['background-color']; ?>;
	<?php } 
	if( isset($get_tooltip_styles['tooltips']['font-color']) ){ ?>
		color: <?php echo $get_tooltip_styles['tooltips']['font-color']; ?>;
	<?php }
	if( isset($get_tooltip_styles['tooltips']['font-size']) ){ ?>
	font-size: <?php echo $this-> gf_tooltip_add_px_to_value( $get_tooltip_styles['tooltips']['font-size'] ); ?>;
	<?php }?>
  }
  
	<?php echo '.tippy-tooltip.custom-' . $form['id'] . '-theme[data-animatefill]'; ?> {
	background-color: transparent;
  }
  
	<?php echo '.tippy-tooltip.custom-' . $form['id'] . '-theme .tippy-backdrop'; ?> {
		<?php if( isset($get_tooltip_styles['tooltips']['background-color']) ){ ?>
		background-color: <?php echo $get_tooltip_styles['tooltips']['background-color']; ?>;
	<?php } ?>

  }
  <?php echo '.tippy-tooltip.custom-' . $form['id'] . '-theme .tippy-roundarrow path'; ?> {
		<?php if( isset($get_tooltip_styles['tooltips']['arrow-color']) ){ ?>
  fill: <?php echo $get_tooltip_styles['tooltips']['arrow-color']; ?>;
	<?php } ?>
}
</style>

<?php
$styles = ob_get_contents();
ob_end_clean();
echo $styles;
