<?php
/**
 * Reusable "Pro feature" upsell card.
 *
 * Set $bingocr_upsell_title and $bingocr_upsell_desc before including this file:
 *   $bingocr_upsell_title = __( '…', 'bingocar' );
 *   $bingocr_upsell_desc  = __( '…', 'bingocar' );
 *   include __DIR__ . '/partial-pro-upsell.php';
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
$bingocr_upsell_title = $bingocr_upsell_title ?? __( 'This is a Pro feature', 'bingocar' );
$bingocr_upsell_desc  = $bingocr_upsell_desc ?? '';
?>
<div class="bingocr-pro-upsell">
	<span class="bcr-plan-badge bcr-plan-pro"><?php esc_html_e( 'Pro', 'bingocar' ); ?></span>
	<h3 class="bingocr-pro-upsell__title"><?php echo esc_html( $bingocr_upsell_title ); ?></h3>
	<?php if ( $bingocr_upsell_desc ) : ?>
		<p class="bingocr-pro-upsell__desc"><?php echo esc_html( $bingocr_upsell_desc ); ?></p>
	<?php endif; ?>
	<a class="button button-primary" href="<?php echo esc_url( BingoCR_License::upgrade_url() ); ?>" target="_blank" rel="noopener noreferrer">
		<?php esc_html_e( 'Upgrade to Pro →', 'bingocar' ); ?>
	</a>
</div>
