<?php
/**
 * Paywall Header Partial
 *
 * Displays the paywall header with optional badge, title, and description.
 *
 * Expected variables:
 * - string $badge       Optional badge text
 * - string $title       Paywall title
 * - string $description Optional description
 *
 * @package PostGate
 * @subpackage Templates/Parts
 * @since 1.0.1
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="postgate-paywall__header">
	<?php if ( ! empty( $badge ) ) : ?>
		<div class="postgate-paywall__badge" aria-hidden="true"><?php echo esc_html( $badge ); ?></div>
	<?php endif; ?>

	<h3 class="postgate-paywall__title" id="postgate-price-options-label">
		<?php echo esc_html( $title ); ?>
	</h3>

	<?php if ( ! empty( $description ) ) : ?>
		<p class="postgate-paywall__description">
			<?php echo esc_html( $description ); ?>
		</p>
	<?php endif; ?>
</div>