<?php
$post_sidebar = get_post( $sidebar );
?>
<div class="tm-sc tm-sc-vc-sidebars tm-sidebar <?php echo esc_attr( $css_class )?>">
	<style scoped>
		<?php echo get_post_meta( $sidebar, '_wpb_shortcodes_custom_css', true ); ?>
	</style>
	<?php echo apply_filters( 'the_content', $post_sidebar->post_content ); ?>
</div>