
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<title>Connect on WhatsApp</title>
	<style>
		:root {
			--wa-brand-green: #25D366;
			--wa-secondary-green: #00A884;
			--wa-dark-charcoal: #111B21;
			--wa-muted-gray: #54656F;
			--wa-bg: #FFFFFF;
			--wa-light-bg: #F7F8FA;
			--wa-border: #E9EDEF;
		}

		* {
			box-sizing: border-box;
			margin: 0;
			padding: 0;
		}

		body {
			font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
			background-color: var(--wa-bg);
			color: var(--wa-dark-charcoal);
			line-height: 1.5;
			-webkit-font-smoothing: antialiased;
		}

		/* WordPress Admin Bar Compatibility */
		body.admin-bar {
			margin-top: 32px;
		}
		@media screen and (max-width: 782px) {
			body.admin-bar {
				margin-top: 46px;
			}
		}

		/* Header / Navbar */
		.wa-navbar_4777fd43 {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 16px 24px;
			border-bottom: 1px solid var(--wa-border);
			background: #ffffff;
			position: sticky;
			top: 0;
			z-index: 100;
		}

		.wa-logo-container_4777fd43 {
			display: flex;
			align-items: center;
			gap: 8px;
			text-decoration: none;
			color: var(--wa-dark-charcoal);
			font-weight: 700;
			font-size: 19px;
		}

		.wa-logo-container_4777fd43 svg {
			width: 32px;
			height: 32px;
			fill: var(--wa-brand-green);
		}

		.wa-nav-links_4777fd43 {
			display: none;
			gap: 32px;
		}

		.wa-nav-links_4777fd43 a {
			text-decoration: none;
			color: var(--wa-muted-gray);
			font-weight: 500;
			font-size: 15px;
			transition: color 0.2s ease;
		}

		.wa-nav-links_4777fd43 a:hover {
			color: var(--wa-dark-charcoal);
		}

		.wa-nav-actions_4777fd43 {
			display: flex;
			align-items: center;
			gap: 16px;
		}

		.wa-btn-text_4777fd43 {
			text-decoration: none;
			color: var(--wa-dark-charcoal);
			font-weight: 600;
			font-size: 14px;
			display: none;
		}

		.wa-btn-download_4777fd43 {
			text-decoration: none;
			background-color: var(--wa-dark-charcoal);
			color: #ffffff;
			padding: 8px 16px;
			border-radius: 24px;
			font-weight: 600;
			font-size: 14px;
			transition: background-color 0.2s ease;
		}

		.wa-btn-download_4777fd43:hover {
			background-color: #333333;
		}

		/* Main Layout / Intermediate Card Area */
		.wa-main-container_4777fd43 {
			display: flex;
			align-items: center;
			justify-content: center;
			min-height: calc(100vh - 140px);
			padding: 40px 20px;
		}

		.wa-card_4777fd43 {
			background: #ffffff;
			width: 100%;
			max-width: 460px;
			text-align: center;
			padding: 32px 24px;
			border-radius: 0; /* Flat layout on mobile, elevated styled elsewhere */
		}

		/* Card Elements */
		.wa-avatar-badge_4777fd43 {
			width: 52px;
			height: 52px;
			background-color: rgba(37, 211, 102, 0.1);
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			margin: 0 auto 16px auto;
		}

		.wa-avatar-badge_4777fd43 svg {
			width: 28px;
			height: 28px;
			fill: var(--wa-secondary-green);
		}

		.wa-business-title_4777fd43 {
			font-size: 20px;
			font-weight: 600;
			color: var(--wa-dark-charcoal);
			display: flex;
			align-items: center;
			justify-content: center;
			gap: 6px;
			margin-bottom: 24px;
		}

		.wa-verified-icon_4777fd43 {
			width: 18px;
			height: 18px;
			fill: var(--wa-secondary-green);
		}

		/* Message Bubble style */
		.wa-message-bubble_4777fd43 {
			background-color: var(--wa-light-bg);
			border: 1px solid var(--wa-border);
			border-radius: 12px;
			padding: 16px;
			font-size: 15px;
			color: var(--wa-dark-charcoal);
			text-align: left;
			margin-bottom: 28px;
			position: relative;
		}

		/* Buttons Container */
		.wa-button-group_4777fd43 {
			display: flex;
			flex-direction: column;
			gap: 12px;
			margin-bottom: 24px;
		}

		.wa-primary-btn_4777fd43 {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			background-color: var(--wa-brand-green);
			color: #ffffff;
			text-decoration: none;
			font-size: 16px;
			font-weight: 600;
			border-radius: 30px;
			padding: 14px 28px;
			min-height: 48px; /* Thumb-friendly height */
			transition: background-color 0.2s ease, transform 0.1s ease;
			border: none;
			cursor: pointer;
		}

		.wa-primary-btn_4777fd43:hover {
			background-color: var(--wa-secondary-green);
		}

		.wa-primary-btn_4777fd43:active {
			transform: scale(0.98);
		}

		.wa-secondary-btn_4777fd43 {
			display: none; /* Desktop only */
			align-items: center;
			justify-content: center;
			background-color: transparent;
			color: var(--wa-secondary-green);
			text-decoration: none;
			font-size: 15px;
			font-weight: 600;
			border: 1px solid var(--wa-border);
			border-radius: 30px;
			padding: 12px 24px;
			min-height: 48px;
			transition: background-color 0.2s ease, border-color 0.2s ease;
			cursor: pointer;
		}

		.wa-secondary-btn_4777fd43:hover {
			background-color: var(--wa-light-bg);
			border-color: var(--wa-secondary-green);
		}

		/* Footer helpers */
		.wa-footer-text_4777fd43 {
			font-size: 13px;
			color: var(--wa-muted-gray);
		}

		.wa-footer-text_4777fd43 a {
			color: var(--wa-secondary-green);
			text-decoration: none;
			font-weight: 600;
		}

		.wa-footer-text_4777fd43 a:hover {
			text-decoration: underline;
		}

		/* Responsive Design Adjustments */
		@media (min-width: 769px) {
			body {
				background-color: var(--wa-light-bg);
			}

			.wa-navbar_4777fd43 {
				padding: 16px 80px;
			}

			.wa-nav-links_4777fd43 {
				display: flex;
			}

			.wa-btn-text_4777fd43 {
				display: inline-block;
			}

			.wa-card_4777fd43 {
				border-radius: 16px;
				box-shadow: 0 4px 12px rgba(17, 27, 33, 0.04), 0 1px 2px rgba(17, 27, 33, 0.08);
			}

			.wa-secondary-btn_4777fd43 {
				display: inline-flex;
			}
		}
	</style>
</head>
<body>

	<!-- Top Navigation Bar -->
	<header class="wa-navbar_4777fd43">
		<a href="#" class="wa-logo-container_4777fd43">
			<svg viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg">
				<path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7 .9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/>
			</svg>
			<span>WhatsApp</span>
		</a>
		<nav class="wa-nav-links_4777fd43">
			<a href="#">Features</a>
			<a href="#">Privacy</a>
			<a href="#">Help Center</a>
		</nav>
		<div class="wa-nav-actions_4777fd43">
			<a href="#" class="wa-btn-text_4777fd43">Log In</a>
			<a href="https://www.whatsapp.com/download" class="wa-btn-download_4777fd43" target="_blank" rel="noopener">Download</a>
		</div>
	</header>

	<!-- Main Container -->
	<main class="wa-main-container_4777fd43">
		<div class="wa-card_4777fd43">
			<!-- Verified Business Header -->
			<div class="wa-avatar-badge_4777fd43">
				<svg viewBox="0 0 448 512" xmlns="http://www.w3.org/2000/svg">
					<path d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7 .9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/>
				</svg>
			</div>
			<h1 class="wa-business-title_4777fd43">
				Contact Support
				<svg class="wa-verified-icon_4777fd43" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
					<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
				</svg>
			</h1>

			<!-- Message Bubble Preview -->
			<div class="wa-message-bubble_4777fd43" id="wa-preview_4777fd43">
				Hi, I'd like to get in touch with your team. Can someone help me?
			</div>

			<!-- Interaction Buttons -->
			<div class="wa-button-group_4777fd43">
				<a href="#" id="wa-primary-btn_4777fd43" class="wa-primary-btn_4777fd43">Open WhatsApp</a>
				<a href="#" id="wa-secondary-btn_4777fd43" class="wa-secondary-btn_4777fd43">Continue to WhatsApp Web</a>
			</div>

			<!-- Help Text footer -->
			<p class="wa-footer-text_4777fd43">
				Don't have the app? <a href="https://www.whatsapp.com/download" target="_blank" rel="noopener">Download it now</a>
			</p>
		</div>
	</main>

	<!-- Config and Core Interaction Script -->
	<script>
		(function() {
			// Configuration Object
			const CONFIG = {
				phoneNumber: '1234567890', // Format with country code, no spaces or special characters
				prefilledText: "Hi, I'd like to get in touch with your team. Can someone help me?"
			};

			const previewBubble = document.getElementById('wa-preview_4777fd43');
			const primaryBtn = document.getElementById('wa-primary-btn_4777fd43');
			const secondaryBtn = document.getElementById('wa-secondary-btn_4777fd43');

			// Populate custom prefilled text
			if (previewBubble) {
				previewBubble.textContent = CONFIG.prefilledText;
			}

			// Format parameters
			const encodedText = encodeURIComponent(CONFIG.prefilledText);
			const cleanPhone = CONFIG.phoneNumber.replace(/[^0-9]/g, '');

			// Detect Mobile Viewport based on exact logic (< 769px screen width)
			function isMobile() {
				return window.innerWidth <= 768;
			}

			function setupLinks() {
				if (isMobile()) {
					// Mobile configuration
					primaryBtn.textContent = "Open WhatsApp";
					
					// Use direct custom scheme trigger with api.whatsapp.com fallback
					const nativeScheme = `whatsapp://send?phone=${cleanPhone}&text=${encodedText}`;
					primaryBtn.setAttribute('href', nativeScheme);
					
					// Hide secondary button because WhatsApp Web isn't native to mobile layout rules
					if (secondaryBtn) {
						secondaryBtn.style.display = 'none';
					}
				} else {
					// Desktop configuration
					primaryBtn.textContent = "Open app";
					primaryBtn.setAttribute('href', `whatsapp://send?phone=${cleanPhone}&text=${encodedText}`);
					
					if (secondaryBtn) {
						secondaryBtn.style.display = 'inline-flex';
						secondaryBtn.setAttribute('href', `https://web.whatsapp.com/send?phone=${cleanPhone}&text=${encodedText}`);
						secondaryBtn.setAttribute('target', '_blank');
						secondaryBtn.setAttribute('rel', 'noopener');
					}
				}
			}

			// Run on boot and resize
			setupLinks();
			window.addEventListener('resize', setupLinks);
		})();
	</script>
</body>
</html>
{"version":"1.0","provider_name":"mahadev","provider_url":"https:\/\/mahadev.markefy.in\/wp","author_name":"priyanshaadmin","author_url":"https:\/\/mahadev.markefy.in\/wp\/author\/priyanshaadmin\/","title":"Sample Page","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"L9gSISyd1G\"><a href=\"https:\/\/mahadev.markefy.in\/wp\/sample-page\/\">Sample Page<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/mahadev.markefy.in\/wp\/sample-page\/embed\/#?secret=L9gSISyd1G\" width=\"600\" height=\"338\" title=\"&#8220;Sample Page&#8221; &#8212; mahadev\" data-secret=\"L9gSISyd1G\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script>\n\/*! This file is auto-generated *\/\n!function(d,l){\"use strict\";l.querySelector&&d.addEventListener&&\"undefined\"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),o=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),c=new RegExp(\"^https?:$\",\"i\"),i=0;i<o.length;i++)o[i].style.display=\"none\";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute(\"style\"),\"height\"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):\"link\"===t.message&&(r=new URL(s.getAttribute(\"src\")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",function(){for(var e,t,s=l.querySelectorAll(\"iframe.wp-embedded-content\"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute(\"data-secret\"))||(t=Math.random().toString(36).substring(2,12),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t)),e.contentWindow.postMessage({message:\"ready\",secret:t},\"*\")},!1)))}(window,document);\n\/\/# sourceURL=https:\/\/mahadev.markefy.in\/wp\/wp-includes\/js\/wp-embed.min.js\n<\/script>\n"}