<?php
/**
 * Early Bird Notice Bar
 *
 * Displays a dismissible early bird promotional notice
 * in the WordPress admin area for Radius Booking.
 *
 * @package RadiusBooking
 * @subpackage Admin\Notices
 */

namespace RadiusTheme\RadiusBooking\Admin\Notices;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class EarlyBirdNotice
 *
 * Handles the early bird promotional notice bar in the WordPress admin.
 *
 * @since 1.0.0
 * @package RadiusBooking
 */
class EarlyBirdNotice {

	/**
	 * User meta key used to track dismissal of the notice.
	 *
	 * @since 1.0.0
	 * @var string
	 */
	const DISMISSED_META_KEY = 'radius_booking_early_bird_dismissed';

	/**
	 * Nonce action for the dismiss AJAX request.
	 *
	 * @since 1.0.0
	 * @var string
	 */
	const NONCE_ACTION = 'radius_booking_dismiss_early_bird';

	/**
	 * The date after which the early bird notice should no longer appear.
	 *
	 * @since 1.0.0
	 * @var string Format: Y-m-d
	 */
	const EXPIRY_DATE = '2026-05-15';

	/**
	 * Registers the hooks needed for the notice.
	 *
	 * The notice renders via the standard {@see admin_notices} hook but bails
	 * out for any screen other than the WordPress dashboard, the Plugins page,
	 * or the Radius Booking plugin page. The AJAX dismiss handler is hooked
	 * globally because AJAX requests have no current screen.
	 *
	 * @since 1.0.0
	 * @return void
	 */
	public function init() {
		add_action( 'wp_ajax_radius_booking_dismiss_early_bird', array( $this, 'handle_dismiss' ) );
		add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_assets' ) );
		add_action( 'admin_notices', array( $this, 'render_notice' ) );

		// Common::hide_notice_booking_page() runs at admin_head priority 1 and
		// calls remove_all_actions( 'admin_notices' ) on the Radius Booking
		// page, which would strip our handler. Re-attach it afterwards so the
		// notice still renders on the plugin page.
		add_action( 'admin_head', array( $this, 'reattach_on_plugin_page' ), 5 );
	}

	/**
	 * Re-registers the admin_notices handler on the Radius Booking page after
	 * Common::hide_notice_booking_page() removes it.
	 *
	 * @since 1.0.0
	 * @return void
	 */
	public function reattach_on_plugin_page() {
		global $current_screen;
		if ( $current_screen && 'toplevel_page_' . RADIUS_BOOKING_SLUG === $current_screen->base ) {
			add_action( 'admin_notices', array( $this, 'render_notice' ) );
		}
	}

	/**
	 * Determines whether the current admin screen is one we want to show the
	 * notice on (Dashboard, Plugins, or Radius Booking plugin page).
	 *
	 * @since 1.0.0
	 * @return bool
	 */
	public static function is_supported_screen() {
		if ( ! function_exists( 'get_current_screen' ) ) {
			return false;
		}

		$screen = get_current_screen();
		if ( ! $screen ) {
			return false;
		}

		$allowed = array(
			'dashboard',
			'plugins',
			'toplevel_page_' . RADIUS_BOOKING_SLUG,
		);

		return in_array( $screen->id, $allowed, true );
	}

	/**
	 * Determines whether the notice should be displayed.
	 *
	 * Returns false if the user dismissed it, the offer has expired,
	 * or the PRO version is already active.
	 *
	 * @since 1.0.0
	 * @return bool
	 */
	private function should_show() {
		if ( get_user_meta( get_current_user_id(), self::DISMISSED_META_KEY, true ) ) {
			return false;
		}

		if ( current_time( 'Y-m-d' ) > self::EXPIRY_DATE ) {
			return false;
		}

		if ( defined( 'RADIUS_BOOKING_PRO_VERSION' ) && RADIUS_BOOKING_PRO_VERSION ) {
			return false;
		}

		return true;
	}

	/**
	 * Renders the early bird notice bar HTML in the WordPress admin.
	 *
	 * @since 1.0.0
	 * @return void
	 */
	public function render_notice() {
		if ( ! self::is_supported_screen() || ! $this->should_show() ) {
			return;
		}

		$nonce       = wp_create_nonce( self::NONCE_ACTION );
		$upgrade_url = 'https://radiusbooking.co/#pricing';
		?>
		<div id="radius-booking-early-bird-notice" class="radius-booking-early-bird-bar" data-nonce="<?php echo esc_attr( $nonce ); ?>" data-expiry="<?php echo esc_attr( (string) $this->get_expiry_timestamp() ); ?>">
			<div class="radius-booking-early-bird-inner">

<!--				<div class="radius-booking-early-bird-brand">-->
<!--					--><?php //echo $this->get_logo_svg(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- static SVG markup with no user input. ?>
<!--					<span class="radius-booking-early-bird-brand-name">-->
<!--						--><?php //esc_html_e( 'Radius Booking', 'radius-booking' ); ?>
<!--					</span>-->
<!--				</div>-->

<!--				<div class="radius-booking-early-bird-divider" aria-hidden="true"></div>-->

				<span class="radius-booking-early-bird-badge">
					<svg class="radius-booking-early-bird-badge-icon" width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
						<path d="M6 0L0 7H3.5L3 12L10 4.5H5.5L6 0Z" fill="currentColor"/>
					</svg>
					<?php esc_html_e( 'Early Bird', 'radius-booking' ); ?>
				</span>

				<p class="radius-booking-early-bird-message">
					<?php
					printf(
					/* translators: %s: discount percentage wrapped in <strong> tag */
						esc_html__( 'Get upto %s OFF %s  — Limited-time Early Bird offer.', 'radius-booking' ),
						'<strong style="color: #FCD34D">70%</strong>',
						'<strong>Radius Booking Pro</strong>'
					);
					?>
				</p>

				<div class="radius-booking-early-bird-actions">
					<div class="radius-booking-early-bird-countdown" aria-label="<?php esc_attr_e( 'Time remaining until offer expires', 'radius-booking' ); ?>">
<!--						<span class="radius-booking-early-bird-cd-prefix">--><?php //esc_html_e( 'Ends in', 'radius-booking' ); ?><!--</span>-->
<!--						<div class="radius-booking-early-bird-cd-box">-->
<!--							<span class="radius-booking-early-bird-cd-num" data-cd="days">--</span>-->
<!--							<span class="radius-booking-early-bird-cd-label">--><?php //esc_html_e( 'Days', 'radius-booking' ); ?><!--</span>-->
<!--						</div>-->
<!--						<span class="radius-booking-early-bird-cd-sep" aria-hidden="true">:</span>-->
<!--						<div class="radius-booking-early-bird-cd-box">-->
<!--							<span class="radius-booking-early-bird-cd-num" data-cd="hours">--</span>-->
<!--							<span class="radius-booking-early-bird-cd-label">--><?php //esc_html_e( 'Hrs', 'radius-booking' ); ?><!--</span>-->
<!--						</div>-->
<!--						<span class="radius-booking-early-bird-cd-sep" aria-hidden="true">:</span>-->
<!--						<div class="radius-booking-early-bird-cd-box">-->
<!--							<span class="radius-booking-early-bird-cd-num" data-cd="mins">--</span>-->
<!--							<span class="radius-booking-early-bird-cd-label">--><?php //esc_html_e( 'Min', 'radius-booking' ); ?><!--</span>-->
<!--						</div>-->
<!--						<span class="radius-booking-early-bird-cd-sep" aria-hidden="true">:</span>-->
<!--						<div class="radius-booking-early-bird-cd-box">-->
<!--							<span class="radius-booking-early-bird-cd-num" data-cd="secs">--</span>-->
<!--							<span class="radius-booking-early-bird-cd-label">--><?php //esc_html_e( 'Sec', 'radius-booking' ); ?><!--</span>-->
<!--						</div>-->
					</div>

					<a
						href="<?php echo esc_url( $upgrade_url ); ?>"
						class="radius-booking-early-bird-cta"
						target="_blank"
						rel="noopener noreferrer"
					>
						<?php esc_html_e( 'Claim Discount', 'radius-booking' ); ?>
					</a>

					<button
						type="button"
						class="radius-booking-early-bird-dismiss"
						aria-label="<?php esc_attr_e( 'Dismiss early bird notice', 'radius-booking' ); ?>"
					>
						&times;
					</button>
				</div>

			</div>
		</div>
		<?php
	}

	/**
	 * Enqueues inline styles and the dismiss script for the notice bar.
	 *
	 * @since 1.0.0
	 * @return void
	 */
	public function enqueue_assets() {
		if ( ! self::is_supported_screen() || ! $this->should_show() ) {
			return;
		}

		$css = '
			#radius-booking-early-bird-notice {
//				background: #0F172A;
//				border: 1px solid rgba(255, 255, 255, 0.06);
//				border-radius: 14px;
//				padding: 0;
//				margin: 12px 20px 16px;
//				position: sticky;
//				top: 44px;
//				z-index: 99;
//				box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
//				font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
//				-webkit-font-smoothing: antialiased;
//				-moz-osx-font-smoothing: grayscale;
//				overflow: hidden;
                background: #12234b;
                  border-bottom: 2px solid #9C48EA;
                margin-left: -20px;
//                position: sticky;
                top: 30px;
                z-index: 99;
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
                font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
                overflow: hidden;
                    width: 101%;
			}
			@media screen and (max-width: 782px) {
				#radius-booking-early-bird-notice {
					top: 58px;
					margin: 10px 12px 14px;
				}
			}
			.radius-booking-early-bird-inner {
				display: flex;
				align-items: center;
				gap: 18px;
				padding: 16px 22px;
				flex-wrap: wrap;
			}
			.radius-booking-early-bird-badge {
				display: inline-flex;
				align-items: center;
				gap: 6px;
				font-size: 12px;
				font-weight: 800;
				color: #0F172A;
				background: #FCD34D;
				padding: 7px 13px 7px 11px;
				border-radius: 999px;
				white-space: nowrap;
				flex-shrink: 0;
				letter-spacing: 0.06em;
				text-transform: uppercase;
				line-height: 1;
			}
			.radius-booking-early-bird-badge-icon {
				width: 10px;
				height: 12px;
				color: #0F172A;
				flex-shrink: 0;
			}
			.radius-booking-early-bird-message {
				font-size: 15px;
				font-weight: 500;
				color: #ffffff;
				flex: 1;
				margin: 0;
				line-height: 1.45;
				min-width: 0;
				letter-spacing: 0.005em;
			}
			.radius-booking-early-bird-message strong {
				color: #ffffff;
				font-weight: 700;
			}
			.radius-booking-early-bird-actions {
				display: flex;
				align-items: center;
				gap: 18px;
				flex-shrink: 0;
			}
			.radius-booking-early-bird-countdown {
				display: inline-flex;
				align-items: center;
				gap: 12px;
				flex-shrink: 0;
			}
			.radius-booking-early-bird-cd-prefix {
				font-size: 12px;
				font-weight: 600;
				color: rgba(255, 255, 255, 0.65);
				text-transform: uppercase;
				letter-spacing: 0.1em;
				margin-bottom: 13px;
				margin-right: 2px;
				line-height: 1;
				white-space: nowrap;
			}
			.radius-booking-early-bird-cd-box {
				display: inline-flex;
				flex-direction: column;
				align-items: center;
				gap: 4px;
				background: none;
				border: none;
				padding: 0;
				min-width: 0;
				line-height: 1;
			}
			.radius-booking-early-bird-cd-num {
				font-size: 22px;
				font-weight: 800;
				color: #FCD34D;
				font-variant-numeric: tabular-nums;
				letter-spacing: 0.01em;
				line-height: 1;
			}
			.radius-booking-early-bird-cd-label {
				font-size: 9px;
				color: #FCD34D;
				text-transform: uppercase;
				letter-spacing: 0.12em;
				font-weight: 700;
				line-height: 1;
				opacity: 0.85;
			}
			.radius-booking-early-bird-cd-sep {
				font-size: 22px;
				font-weight: 400;
				color: rgba(255, 255, 255, 0.25);
				margin-bottom: 13px;
				line-height: 1;
			}
			.radius-booking-early-bird-cta {
				font-size: 14px;
				font-weight: 700;
				color: #ffffff;
				background: #8B5CF6;
				padding: 12px 26px;
				border-radius: 999px;
				text-decoration: none;
				white-space: nowrap;
				display: inline-block;
				line-height: 1;
				letter-spacing: 0.01em;
				box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
				transition: background-color 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease;
			}
			.radius-booking-early-bird-cta:hover {
				background: #7C3AED;
				color: #ffffff;
				box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
				transform: translateY(-1px);
			}
			.radius-booking-early-bird-dismiss {
				font-size: 22px;
				line-height: 1;
				color: rgba(255, 255, 255, 0.45);
				background: transparent;
				border: none;
				cursor: pointer;
				padding: 0 4px;
				transition: color 0.2s ease;
			}
			.radius-booking-early-bird-dismiss:hover {
				color: #ffffff;
			}
		';

		wp_register_style( 'radius-booking-early-bird', false, array(), RADIUS_BOOKING_VERSION ); // phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
		wp_enqueue_style( 'radius-booking-early-bird' );
		wp_add_inline_style( 'radius-booking-early-bird', $css );

		$js = '
			( function () {
				var ADMIN_BAR_PX     = 32;
				var countdownTimer   = null;

				function applyOffset( notice ) {
					if ( ! notice ) {
						return;
					}
					var rect = notice.getBoundingClientRect();
					var marginBottom = parseFloat( getComputedStyle( notice ).marginBottom ) || 0;
					var top = Math.max( ADMIN_BAR_PX, rect.bottom + marginBottom );
					document.documentElement.style.setProperty(
						"--rtrb-content-top",
						top + "px"
					);
				}

				function resetOffset() {
					document.documentElement.style.setProperty(
						"--rtrb-content-top",
						ADMIN_BAR_PX + "px"
					);
				}

				function pad( n ) {
					return ( n < 10 ? "0" : "" ) + n;
				}

				function updateCountdown( notice ) {
					var cells = notice.querySelectorAll( "[data-cd]" );
					if ( ! cells.length ) {
						return;
					}

					var expirySeconds = parseInt( notice.getAttribute( "data-expiry" ) || "0", 10 );
					if ( ! expirySeconds ) {
						return;
					}

					var diffMs = ( expirySeconds * 1000 ) - Date.now();
					var days = 0, hours = 0, minutes = 0, seconds = 0;

					if ( diffMs > 0 ) {
						var totalSeconds = Math.floor( diffMs / 1000 );
						days    = Math.floor( totalSeconds / 86400 );
						hours   = Math.floor( ( totalSeconds % 86400 ) / 3600 );
						minutes = Math.floor( ( totalSeconds % 3600 ) / 60 );
						seconds = totalSeconds % 60;
					} else if ( countdownTimer ) {
						clearInterval( countdownTimer );
						countdownTimer = null;
					}

					for ( var i = 0; i < cells.length; i++ ) {
						var key = cells[ i ].getAttribute( "data-cd" );
						var val;
						if ( "days" === key ) {
							val = days;
						} else if ( "hours" === key ) {
							val = hours;
						} else if ( "mins" === key ) {
							val = minutes;
						} else {
							val = seconds;
						}
						cells[ i ].textContent = pad( val );
					}
				}

				document.addEventListener( "DOMContentLoaded", function () {
					var notice  = document.getElementById( "radius-booking-early-bird-notice" );
					var dismiss = notice ? notice.querySelector( ".radius-booking-early-bird-dismiss" ) : null;

					if ( ! notice ) {
						return;
					}

					applyOffset( notice );
					window.addEventListener( "resize", function () { applyOffset( notice ); } );
					window.addEventListener( "scroll", function () { applyOffset( notice ); }, { passive: true } );

					updateCountdown( notice );
					countdownTimer = setInterval( function () { updateCountdown( notice ); }, 1000 );

					if ( ! dismiss ) {
						return;
					}

					dismiss.addEventListener( "click", function () {
						var nonce = notice.getAttribute( "data-nonce" );

						if ( countdownTimer ) {
							clearInterval( countdownTimer );
							countdownTimer = null;
						}

						notice.style.transition = "opacity 0.3s";
						notice.style.opacity    = "0";
						resetOffset();

						setTimeout( function () {
							if ( notice.parentNode ) {
								notice.parentNode.removeChild( notice );
							}
						}, 300 );

						var xhr = new XMLHttpRequest();
						xhr.open( "POST", ajaxurl, true );
						xhr.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );
						xhr.send(
							"action=radius_booking_dismiss_early_bird&nonce=" + encodeURIComponent( nonce )
						);
					} );
				} );
			} )();
		';

		wp_add_inline_script( 'jquery', $js );
	}

	/**
	 * Handles the AJAX request to permanently dismiss the early bird notice.
	 *
	 * Verifies the nonce then stores the dismissal in user meta so the notice
	 * is not shown again for this user.
	 *
	 * @since 1.0.0
	 * @return void
	 */
	public function handle_dismiss() {
		check_ajax_referer( self::NONCE_ACTION, 'nonce' );

		update_user_meta( get_current_user_id(), self::DISMISSED_META_KEY, true );

		wp_send_json_success();
	}

	/**
	 * Returns the Unix timestamp for the end of the offer expiry date.
	 *
	 * Used by the inline countdown JS to compute days/hours/minutes remaining
	 * relative to the visitor's current local time.
	 *
	 * @since 1.0.0
	 * @return int Unix timestamp (seconds).
	 */
	private function get_expiry_timestamp() {
		return (int) strtotime( self::EXPIRY_DATE . ' 23:59:59' );
	}

	/**
	 * Returns the inline SVG markup for the Radius Booking logo.
	 *
	 * All paths are fully static — no user input is interpolated.
	 * The caller suppresses escaping with a phpcs:ignore at the output point.
	 *
	 * @since 1.0.0
	 * @return string SVG markup string.
	 */
	private function get_logo_svg() {
		return '<svg width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">'
		       . '<path d="M19.7209 4.8583C19.398 2.30206 17.9138 0.61828 15.0898 0.200598C14.2241 0.0721328 13.2779 0 10.0032 0C6.72842 0 5.78023 0.0721328 4.9186 0.200598C2.09183 0.61828 0.60768 2.30206 0.288177 4.8583C-0.0313283 7.41455 0.000965778 8.17503 0.000965778 10.0003C0.000965778 11.8256 -0.0320152 12.5848 0.28749 15.1417C0.606995 17.6986 2.09115 19.3817 4.91515 19.7994C5.77953 19.9279 6.72705 19.9986 9.99975 20C13.2724 20.0014 14.222 19.9279 15.0843 19.7994C17.9083 19.3817 19.3925 17.6986 19.712 15.1417C20.0315 12.5848 19.9985 11.8236 19.9985 10.0003C19.9985 8.1771 20.037 7.41523 19.7209 4.8583Z" fill="white"/>'
		       . '<path d="M10.5898 10.3113H7.44506C7.02555 10.3113 6.68732 9.96954 6.68732 9.54647C6.68732 9.12339 7.02555 8.78168 7.44506 8.78168H10.5898C11.0093 8.78168 11.3475 9.12339 11.3475 9.54647C11.3475 9.96954 11.0093 10.3113 10.5898 10.3113Z" fill="#0046FF"/>'
		       . '<path d="M9.69874 12.9217H7.44506C7.02555 12.9217 6.68732 12.58 6.68732 12.1569C6.68732 11.7339 7.02555 11.3922 7.44506 11.3922H9.69874C10.1183 11.3922 10.4565 11.7339 10.4565 12.1569C10.4565 12.58 10.1183 12.9217 9.69874 12.9217Z" fill="#0046FF"/>'
		       . '<path d="M15.4081 12.6417C14.9919 12.2219 14.426 11.9843 13.8374 11.9843C13.3983 11.9843 12.9691 12.1145 12.6048 12.3618C12.2406 12.6092 11.9544 12.9574 11.7853 13.3674C11.6162 13.7775 11.5739 14.2266 11.6585 14.6627C11.743 15.0988 11.9544 15.4958 12.2666 15.8115C12.5788 16.1239 12.9723 16.3387 13.4048 16.4266C13.8374 16.5145 14.2829 16.4689 14.6894 16.2997C15.0959 16.1304 15.4406 15.8441 15.6845 15.4731C15.9284 15.1053 16.0585 14.6692 16.0585 14.2266C16.0585 13.6311 15.8244 13.0615 15.4081 12.6417ZM14.7317 13.9597H14.7284L13.8016 14.8938C13.7756 14.9198 13.7463 14.9393 13.7105 14.9556C13.678 14.9686 13.6422 14.9784 13.6032 14.9784C13.5642 14.9784 13.5317 14.9719 13.4959 14.9556C13.4634 14.9426 13.4308 14.9198 13.4048 14.8938L12.943 14.4284C12.917 14.4023 12.8975 14.3698 12.8813 14.3373C12.8682 14.3047 12.8617 14.2657 12.8617 14.2299C12.8617 14.1941 12.8682 14.155 12.8813 14.1225C12.8943 14.0867 12.917 14.0574 12.943 14.0313C12.9691 14.0053 12.9983 13.9858 13.0341 13.9695C13.0666 13.9565 13.1024 13.9467 13.1414 13.9467C13.1804 13.9467 13.213 13.9532 13.2487 13.9695C13.2813 13.9825 13.3138 14.0053 13.3398 14.0313L13.6065 14.3015L14.3414 13.566C14.3935 13.5139 14.465 13.4846 14.5366 13.4846C14.6081 13.4846 14.6796 13.5139 14.7317 13.566C14.7837 13.618 14.813 13.6896 14.813 13.7645C14.813 13.8393 14.7837 13.9109 14.7317 13.963V13.9597Z" fill="#0046FF"/>'
		       . '<path d="M7.66152 7.57157C7.242 7.57157 6.90378 7.22986 6.90378 6.80678V4.1349C6.90378 3.71183 7.242 3.37012 7.66152 3.37012C8.08103 3.37012 8.41925 3.71183 8.41925 4.1349V6.80678C8.41925 7.22986 8.08103 7.57157 7.66152 7.57157Z" fill="#0046FF"/>'
		       . '<path d="M12.3221 7.57157C11.9026 7.57157 11.5643 7.22986 11.5643 6.80678V4.1349C11.5643 3.71183 11.9026 3.37012 12.3221 3.37012C12.7416 3.37012 13.0798 3.71183 13.0798 4.1349V6.80678C13.0798 7.22986 12.7416 7.57157 12.3221 7.57157Z" fill="#0046FF"/>'
		       . '<path d="M16.0941 5.22168V9.07165C16.0941 9.13023 16.0649 9.18881 16.0194 9.22461L14.2177 10.5915L13.2974 11.2912V9.47195C13.2974 9.41337 13.3266 9.35479 13.3722 9.31899L14.5071 8.45656C14.5559 8.42077 14.5819 8.36545 14.5819 8.30361V6.748C14.5819 6.64385 14.4974 6.55924 14.3933 6.55924H5.58671C5.48265 6.55924 5.39809 6.64385 5.39809 6.748V14.7506C5.39809 14.8547 5.48265 14.9394 5.58671 14.9394H10.1331C10.2209 14.9394 10.2957 14.998 10.3152 15.0826C10.4095 15.4731 10.5624 15.8408 10.7738 16.176C10.8518 16.303 10.7608 16.4657 10.6144 16.4657H4.07449C3.97043 16.4657 3.88589 16.3811 3.88589 16.2769V5.21842C3.88589 5.11428 3.97043 5.02966 4.07449 5.02966H15.9055C16.0096 5.02966 16.0941 5.11428 16.0941 5.21842V5.22168Z" fill="#0046FF"/>'
		       . '</svg>';
	}
}