<!DOCTYPE html>
<html lang="lt" translate="no">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <meta name="google" content="notranslate" />
        <meta name="csrf-token" content="J6r18pfMVOO2Nc3CedDbB84U3KVTnLlpdTNLCGHk" />
        <title>Maistas į namus | Amba</title>
        <meta name="description" content="Maisto pristatymas. Restoranai, parduotuvės, maisto prekės ir daugiau.">
                <meta property="og:title" content="amba" />
        <meta property="og:type" content="website" />
        <meta property="og:url" content="https://amba.lt" />
        <meta property="og:image" content="https://amba.lt/img/default.webp" />
        <meta property="og:description" content="Maisto pristatymas. Restoranai, parduotuvės, maisto prekės ir daugiau." />
        <meta property="og:site_name" content="amba" />
        <meta property="og:locale" content="lt" />
        <meta property="og:image:width" content="1200" />
        <meta property="og:image:height" content="630" />
        <meta property="fb:app_id" content="2037867906974229" />
        <meta name="twitter:card" content="summary_large_image" />
        <meta name="twitter:title" content="amba" />
        <meta name="twitter:description" content="Maisto pristatymas. Restoranai, parduotuvės, maisto prekės ir daugiau." />
        <meta name="twitter:image" content="https://amba.lt/img/default.webp" />
            <link rel="apple-touch-icon" sizes="180x180" href="/img/favicon/apple-touch-icon.png" />
        <link rel="icon" type="image/png" sizes="32x32" href="/img/favicon/favicon-32x32.png" />
        <link rel="icon" type="image/png" sizes="16x16" href="/img/favicon/favicon-16x16.png" />
        <link rel="manifest" href="/img/favicon/site.webmanifest" />
        <link rel="preload" as="style" href="https://amba.lt/build/assets/app-css-CuReUzue.css" /><link rel="modulepreload" as="script" href="https://amba.lt/build/assets/app-D9TIbTj6.js" /><link rel="modulepreload" as="script" href="https://amba.lt/build/assets/firebase-C5mWjdW0.js" /><link rel="stylesheet" href="https://amba.lt/build/assets/app-css-CuReUzue.css" data-navigate-track="reload" /><script type="module" src="https://amba.lt/build/assets/app-D9TIbTj6.js" data-navigate-track="reload"></script>                <!-- Livewire Styles --><style >[wire\:loading][wire\:loading], [wire\:loading\.delay][wire\:loading\.delay], [wire\:loading\.list-item][wire\:loading\.list-item], [wire\:loading\.inline-block][wire\:loading\.inline-block], [wire\:loading\.inline][wire\:loading\.inline], [wire\:loading\.block][wire\:loading\.block], [wire\:loading\.flex][wire\:loading\.flex], [wire\:loading\.table][wire\:loading\.table], [wire\:loading\.grid][wire\:loading\.grid], [wire\:loading\.inline-flex][wire\:loading\.inline-flex] {display: none;}[wire\:loading\.delay\.none][wire\:loading\.delay\.none], [wire\:loading\.delay\.shortest][wire\:loading\.delay\.shortest], [wire\:loading\.delay\.shorter][wire\:loading\.delay\.shorter], [wire\:loading\.delay\.short][wire\:loading\.delay\.short], [wire\:loading\.delay\.default][wire\:loading\.delay\.default], [wire\:loading\.delay\.long][wire\:loading\.delay\.long], [wire\:loading\.delay\.longer][wire\:loading\.delay\.longer], [wire\:loading\.delay\.longest][wire\:loading\.delay\.longest] {display: none;}[wire\:offline][wire\:offline] {display: none;}[wire\:dirty]:not(textarea):not(input):not(select) {display: none;}:root {--livewire-progress-bar-color: #ea580c;}[x-cloak] {display: none !important;}[wire\:cloak] {display: none !important;}dialog#livewire-error::backdrop {background-color: rgba(0, 0, 0, .6);}</style>
        <style>
    :root.dark {
        color-scheme: dark;
    }
</style>
<script>
    window.Flux = {
        applyAppearance (appearance) {
            let applyDark = () => document.documentElement.classList.add('dark')
            let applyLight = () => document.documentElement.classList.remove('dark')

            if (appearance === 'system') {
                let media = window.matchMedia('(prefers-color-scheme: dark)')

                window.localStorage.removeItem('flux.appearance')

                media.matches ? applyDark() : applyLight()
            } else if (appearance === 'dark') {
                window.localStorage.setItem('flux.appearance', 'dark')

                applyDark()
            } else if (appearance === 'light') {
                window.localStorage.setItem('flux.appearance', 'light')

                applyLight()
            }
        }
    }

    window.Flux.applyAppearance(window.localStorage.getItem('flux.appearance') || 'system')
</script>
    </head>
    <body class="font-sans antialiased">
        
        <script>
            (function() {
                try {
                    if (typeof window.eruda !== 'undefined' && typeof window.eruda.init === 'function') {
                        window.eruda.init();
                    }
                } catch (e) {}
            })();
        </script>
        <div
    x-data="{&quot;show&quot;:true,&quot;style&quot;:&quot;success&quot;,&quot;message&quot;:null}"
    :class="{ 'bg-orange-500': style == 'success', 'bg-red-700': style == 'danger', 'bg-gray-500': style != 'success' && style != 'danger' }"
    style="display: none"
    x-show="show && message"
    x-on:banner-message.window="
                style = event.detail.style;
                message = event.detail.message;
                show = true;
            "
>
    <div class="mx-auto max-w-7xl px-2 py-1.5 sm:px-6 sm:py-2 lg:px-8">
        <div class="flex flex-wrap items-center justify-between">
            <div class="flex w-0 min-w-0 flex-1 items-center">
                <span
                    class="flex rounded-lg p-1.5 sm:p-2"
                    :class="{ 'bg-orange-600': style == 'success', 'bg-red-600': style == 'danger' }"
                >
                    <svg
                        x-show="style == 'success'"
                        class="h-4 w-4 text-white sm:h-5 sm:w-5"
                        xmlns="http://www.w3.org/2000/svg"
                        fill="none"
                        viewBox="0 0 24 24"
                        stroke-width="1.5"
                        stroke="currentColor"
                    >
                        <path
                            stroke-linecap="round"
                            stroke-linejoin="round"
                            d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
                        />
                    </svg>
                    <svg
                        x-show="style == 'danger'"
                        class="h-4 w-4 text-white sm:h-5 sm:w-5"
                        xmlns="http://www.w3.org/2000/svg"
                        fill="none"
                        viewBox="0 0 24 24"
                        stroke-width="1.5"
                        stroke="currentColor"
                    >
                        <path
                            stroke-linecap="round"
                            stroke-linejoin="round"
                            d="M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"
                        />
                    </svg>
                    <svg
                        x-show="style != 'success' && style != 'danger'"
                        class="h-4 w-4 text-white sm:h-5 sm:w-5"
                        xmlns="http://www.w3.org/2000/svg"
                        fill="none"
                        viewBox="0 0 24 24"
                        stroke-width="1.5"
                        stroke="currentColor"
                    >
                        <path
                            stroke-linecap="round"
                            stroke-linejoin="round"
                            d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"
                        />
                    </svg>
                </span>

                <p class="ms-2 truncate text-xs font-medium text-white sm:ms-3 sm:text-sm" x-text="message"></p>
            </div>

            <div class="shrink-0 sm:ms-3">
                <button
                    type="button"
                    class="-me-1 flex rounded-md p-1.5 transition focus:outline-hidden sm:-me-2 sm:p-2"
                    :class="{ 'hover:bg-orange-600 focus:bg-orange-600': style == 'success', 'hover:bg-red-600 focus:bg-red-600': style == 'danger' }"
                    aria-label="Dismiss"
                    x-on:click="show = false"
                >
                    <svg
                        class="h-4 w-4 text-white sm:h-5 sm:w-5"
                        xmlns="http://www.w3.org/2000/svg"
                        fill="none"
                        viewBox="0 0 24 24"
                        stroke-width="1.5"
                        stroke="currentColor"
                    >
                        <path
                            stroke-linecap="round"
                            stroke-linejoin="round"
                            d="M6 18L18 6M6 6l12 12"
                        />
                    </svg>
                </button>
            </div>
        </div>
    </div>
</div>
        <div class="bg-gray-100 dark:bg-gray-900">
            <nav wire:key="lw-3449780231-0" wire:snapshot="{&quot;data&quot;:[],&quot;memo&quot;:{&quot;id&quot;:&quot;XvxhWRa0VDLpExEFCjC4&quot;,&quot;name&quot;:&quot;navigation-menu&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:{&quot;lw-3455546865-0&quot;:[&quot;div&quot;,&quot;9yVpH4heeCv2vC33jJS7&quot;],&quot;lw-3455546865-1&quot;:[&quot;div&quot;,&quot;emd50SG0DhJHXnrKdEUS&quot;],&quot;lw-3455546865-5&quot;:[&quot;ui-radio-group&quot;,&quot;IxjWWZNGxQ62qMWmMle6&quot;],&quot;lw-3455546865-6&quot;:[&quot;ui-radio-group&quot;,&quot;nVhA2Xrh7z8XHTYPdxal&quot;],&quot;lw-3455546865-9&quot;:[&quot;ui-radio-group&quot;,&quot;8ii84gB3PSNCphiw3Lwt&quot;],&quot;lw-3455546865-10&quot;:[&quot;ui-radio-group&quot;,&quot;cKWYbh6CV4et6oJCwPKI&quot;],&quot;lw-3455546865-11&quot;:[&quot;div&quot;,&quot;hvzvPCMgF3npfapMWfWE&quot;]},&quot;scripts&quot;:[&quot;3455546865-0&quot;,&quot;3455546865-1&quot;],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;aa59a29a57120178137a788c8e63229577905303016f8ad0b53caaace658a7e7&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;scripts&quot;:{&quot;3455546865-0&quot;:&quot;&lt;script&gt;\n    window.navigationMenu = function() {\n        return {\n            open: false,\n            currentRouteName: &#039;home&#039;,\n            isProfilePage: false,\n            isSearchPage: false,\n            isTableCheckout: false,\n            isCheckoutPage: false,\n            init() {\n                \/\/ Update route info when Livewire navigates or URL changes\n                this.updateRouteInfo();\n\n                \/\/ Listen for Livewire navigation events\n                window.addEventListener(&#039;livewire:navigated&#039;, () =&gt; {\n                    this.updateRouteInfo();\n                });\n\n                \/\/ Listen for Livewire updates (when components update)\n                Livewire.hook(&#039;morph.updated&#039;, () =&gt; {\n                    this.updateRouteInfo();\n                });\n\n                \/\/ Also check on popstate (browser back\/forward)\n                window.addEventListener(&#039;popstate&#039;, () =&gt; {\n                    this.updateRouteInfo();\n                });\n            },\n            updateRouteInfo() {\n                const path = window.location.pathname;\n                this.isProfilePage = path.startsWith(&#039;\/user\/profile&#039;) || path === &#039;\/profile&#039;;\n                this.isSearchPage = path.startsWith(&#039;\/search&#039;);\n                this.isTableCheckout = path.includes(&#039;\/table-checkout&#039;);\n                this.isCheckoutPage = path.includes(&#039;\/checkout&#039;) || path.includes(&#039;\/table-checkout&#039;);\n\n                \/\/ Try to get route name from data attribute if available\n                const routeData = document.querySelector(&#039;[data-route-name]&#039;);\n                if (routeData) {\n                    this.currentRouteName = routeData.getAttribute(&#039;data-route-name&#039;);\n                }\n            }\n        };\n    };\n&lt;\/script&gt;\n    &quot;,&quot;3455546865-1&quot;:&quot;&lt;script&gt;\n    \/\/ Function to initialize area switcher\n    window.initAreaSwitcherNavigation = function() {\n            \/\/ Skip area switcher initialization if on profile page or table service\n            const navMenu = document.getElementById(&#039;nav-menu&#039;);\n            if (!navMenu) {\n                setTimeout(window.initAreaSwitcherNavigation, 100);\n                return;\n            }\n\n            \/\/ Safely get Alpine data\n            let isProfilePage = false;\n            try {\n                if (navMenu.__x &amp;&amp; navMenu.__x.$data) {\n                    isProfilePage = navMenu.__x.$data.isProfilePage || false;\n                }\n            } catch (e) {\n                \/\/ Alpine not ready, will retry\n                setTimeout(window.initAreaSwitcherNavigation, 100);\n                return;\n            }\n\n            const isTableService = null;\n\n            if (isProfilePage || isTableService) {\n                \/\/ Remove area switcher from targets if on profile\/table service\n                const desktopTarget = document.getElementById(&#039;desktop-area-switcher-target&#039;);\n                const mobileTarget = document.getElementById(&#039;mobile-area-switcher-target&#039;);\n                const areaSwitcherContainer = document.getElementById(&#039;area-switcher-container&#039;);\n\n                if (desktopTarget &amp;&amp; desktopTarget.hasChildNodes()) {\n                    const areaSwitcher = desktopTarget.querySelector(&#039;div&#039;);\n                    if (areaSwitcher &amp;&amp; areaSwitcherContainer) {\n                        areaSwitcherContainer.appendChild(areaSwitcher);\n                    }\n                }\n                if (mobileTarget &amp;&amp; mobileTarget.hasChildNodes()) {\n                    const areaSwitcher = mobileTarget.querySelector(&#039;div&#039;);\n                    if (areaSwitcher &amp;&amp; areaSwitcherContainer) {\n                        areaSwitcherContainer.appendChild(areaSwitcher);\n                    }\n                }\n                if (areaSwitcherContainer) {\n                    areaSwitcherContainer.classList.add(&#039;hidden&#039;);\n                }\n                return;\n            }\n\n            \/\/ Wait for component to be fully loaded - retry multiple times\n            let retries = 0;\n            const maxRetries = 10;\n\n            function findAreaSwitcherComponent() {\n                const container = document.getElementById(&#039;area-switcher-container&#039;);\n                const desktopTarget = document.getElementById(&#039;desktop-area-switcher-target&#039;);\n                const mobileTarget = document.getElementById(&#039;mobile-area-switcher-target&#039;);\n                for (const el of [container, desktopTarget, mobileTarget]) {\n                    if (!el) continue;\n                    const found = el.querySelector(&#039;[wire\\\\:id]&#039;) || el.querySelector(&#039;[wire\\\\:key]&#039;) || Array.from(el.children).find(c =&gt; c.hasAttribute?.(&#039;wire:id&#039;) || c.hasAttribute?.(&#039;wire:key&#039;));\n                    if (found) return found;\n                }\n                return null;\n            }\n\n            function tryMoveAreaSwitcher() {\n                const areaSwitcherContainer = document.getElementById(&#039;area-switcher-container&#039;);\n                if (!areaSwitcherContainer) {\n                    if (retries &lt; maxRetries) {\n                        retries++;\n                        setTimeout(tryMoveAreaSwitcher, 200);\n                    }\n                    return;\n                }\n\n                const desktopTarget = document.getElementById(&#039;desktop-area-switcher-target&#039;);\n                const mobileTarget = document.getElementById(&#039;mobile-area-switcher-target&#039;);\n                if (!desktopTarget || !mobileTarget) return;\n\n                \/\/ Find component - may be in container, desktop, or mobile (after previous move or re-render)\n                let areaSwitcher = areaSwitcherContainer.querySelector(&#039;div[wire\\\\:id]&#039;) ||\n                    areaSwitcherContainer.querySelector(&#039;div[wire\\\\:key]&#039;) ||\n                    areaSwitcherContainer.querySelector(&#039;div&#039;);\n                if (!areaSwitcher) {\n                    areaSwitcher = desktopTarget.querySelector(&#039;div[wire\\\\:id]&#039;) ||\n                        desktopTarget.querySelector(&#039;div[wire\\\\:key]&#039;) ||\n                        desktopTarget.querySelector(&#039;div&#039;);\n                }\n                if (!areaSwitcher) {\n                    areaSwitcher = mobileTarget.querySelector(&#039;div[wire\\\\:id]&#039;) ||\n                        mobileTarget.querySelector(&#039;div[wire\\\\:key]&#039;) ||\n                        mobileTarget.querySelector(&#039;div&#039;);\n                }\n\n                if (!areaSwitcher) {\n                    if (retries &lt; maxRetries) {\n                        retries++;\n                        setTimeout(tryMoveAreaSwitcher, 200);\n                    }\n                    return;\n                }\n\n                areaSwitcherContainer.classList.remove(&#039;hidden&#039;);\n\n                function moveComponent() {\n                    const current = findAreaSwitcherComponent();\n                    const desktop = document.getElementById(&#039;desktop-area-switcher-target&#039;);\n                    const mobile = document.getElementById(&#039;mobile-area-switcher-target&#039;);\n                    if (!current || !desktop || !mobile) return;\n\n                    if (desktop.hasChildNodes()) {\n                        const existing = desktop.querySelector(&#039;div&#039;);\n                        if (existing &amp;&amp; existing !== current) desktop.removeChild(existing);\n                    }\n                    if (mobile.hasChildNodes()) {\n                        const existing = mobile.querySelector(&#039;div&#039;);\n                        if (existing &amp;&amp; existing !== current) mobile.removeChild(existing);\n                    }\n\n                    const target = window.innerWidth &gt;= 768 ? desktop : mobile;\n                    if (!target.contains(current)) target.appendChild(current);\n                }\n\n                moveComponent();\n\n                if (window.areaSwitcherResizeHandler) {\n                    window.removeEventListener(&#039;resize&#039;, window.areaSwitcherResizeHandler);\n                }\n                window.areaSwitcherResizeHandler = moveComponent;\n                window.addEventListener(&#039;resize&#039;, window.areaSwitcherResizeHandler);\n            }\n\n            \/\/ Start trying after initial delay\n            setTimeout(tryMoveAreaSwitcher, 100);\n        }\n\n        \/\/ Initialize on page load\n        if (typeof Livewire !== &#039;undefined&#039; &amp;&amp; Livewire.initialized) {\n            window.initAreaSwitcherNavigation();\n        } else {\n            document.addEventListener(&#039;livewire:initialized&#039;, function () {\n                window.initAreaSwitcherNavigation();\n            });\n        }\n\n        \/\/ Re-initialize after navigation\n        window.addEventListener(&#039;livewire:navigated&#039;, function () {\n            \/\/ Small delay to ensure DOM is updated\n            setTimeout(window.initAreaSwitcherNavigation, 150);\n        });\n\n\n&lt;\/script&gt;\n    &quot;},&quot;listeners&quot;:[&quot;refresh-navigation-menu&quot;]}" wire:id="XvxhWRa0VDLpExEFCjC4" wire:name="navigation-menu"
    id="nav-menu"
    x-data="navigationMenu()"
    x-init="init()"
    class="sticky top-0 z-30 border-b border-transparent bg-white dark:border-transparent dark:bg-gray-800"
>
    <!-- Primary Navigation Menu -->
    <div class="mx-auto max-w-7xl px-0 sm:px-4 lg:px-6">
        <div class="flex h-11 items-center justify-between gap-1.5 md:h-16 md:gap-2">
            <div class="flex items-center gap-2 shrink-0 min-w-0">
                <!-- Logo -->
                <div class="flex h-7 shrink-0 md:h-10">
                                            <!-- Normal navigation -->
                        <a href="https://amba.lt/index.php" class="flex h-7 items-center md:h-10">
                            <div class="inline-block block h-7 w-auto md:h-10">
    <svg viewBox="0 0 120 60" xmlns="http://www.w3.org/2000/svg" class="block h-full w-auto" style="height: 100%; width: auto;">
    <style>
        @font-face {
            font-family: 'Pacifico';
            src: url('/storage/fonts/Pacifico-Regular.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        svg {
            --color-top: yellow;
            --color-middle: green;
            --color-bottom: red;
        }
    </style>

    <defs>
        <clipPath id="textClip">
            <text x="0" y="48" font-size="52" font-family="'Pacifico', cursive" font-weight="bold">
                amba
            </text>
        </clipPath>
    </defs>

    <path
        clip-path="url(#textClip)"
        fill="var(--color-top)"
        id="stripeTop"
        d="M 0,0 L 120,0 L 120,22 Q 90,22 60,22 T 0,22 Z"
    >
        <animate
            attributeName="d"
            dur="3s"
            repeatCount="indefinite"
            values="M 0,0 L 120,0 L 120,22 Q 90,22 60,22 T 0,22 Z;M 0,0 L 120,0 L 120,18 Q 90,18 60,18 T 0,18 Z;M 0,0 L 120,0 L 120,22 Q 90,22 60,22 T 0,22 Z"
        />
    </path>

    <path
        clip-path="url(#textClip)"
        fill="var(--color-middle)"
        id="stripeMid"
        d="M 0,20 Q 30,20 60,20 T 120,20 L 120,42 Q 90,42 60,42 T 0,42 Z"
    >
        <animate
            attributeName="d"
            dur="3s"
            repeatCount="indefinite"
            values="M 0,20 Q 30,20 60,20 T 120,20 L 120,42 Q 90,42 60,42 T 0,42 Z;M 0,18 Q 30,18 60,18 T 120,18 L 120,44 Q 90,44 60,44 T 0,44 Z;M 0,20 Q 30,20 60,20 T 120,20 L 120,42 Q 90,42 60,42 T 0,42 Z"
        />
    </path>

    <path
        clip-path="url(#textClip)"
        fill="var(--color-bottom)"
        id="stripeBot"
        d="M 0,40 Q 30,40 60,40 T 120,40 L 120,62 L 0,62 Z"
    >
        <animate
            attributeName="d"
            dur="3s"
            repeatCount="indefinite"
            values="M 0,40 Q 30,40 60,40 T 120,40 L 120,62 L 0,62 Z;M 0,44 Q 30,44 60,44 T 120,44 L 120,62 L 0,62 Z;M 0,40 Q 30,40 60,40 T 120,40 L 120,62 L 0,62 Z"
        />
    </path>
</svg>
</div>
                        </a>
                                    </div>

                <!-- Search Button/Input - Expandable -->
                <div
                    x-data="{ searchOpen: false }"
                    x-show="!isSearchPage && !isProfilePage && !isCheckoutPage && !null"
                    x-cloak
                    class="flex items-center min-w-0 shrink-0 overflow-hidden md:max-w-xs"
                >
                    <!-- Search Button (when closed) -->
                    <button
                        x-show="!searchOpen"
                        x-transition:enter="transition ease-out duration-150"
                        x-transition:enter-start="opacity-0 scale-95"
                        x-transition:enter-end="opacity-100 scale-100"
                        x-transition:leave="transition ease-in duration-100"
                        x-transition:leave-start="opacity-100 scale-100"
                        x-transition:leave-end="opacity-0 scale-95"
                        @click="searchOpen = true; setTimeout(() => { const input = $el.nextElementSibling?.querySelector('input'); if (input) input.focus(); }, 0)"
                        class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-gray-600 transition duration-150 ease-in-out hover:bg-gray-100 hover:text-gray-900 focus:bg-gray-100 focus:text-gray-900 focus:outline-hidden cursor-pointer dark:text-gray-300 dark:hover:bg-gray-700 dark:hover:text-gray-400 dark:focus:bg-gray-700 dark:focus:text-gray-400 md:h-10 md:w-10"
                        title="Ieškoti produktų, restoranų, parduotuvių, virtuvių..."
                    >
                        <svg class="h-4 w-4 md:h-5 md:w-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
                        </svg>
                    </button>

                    <!-- Search Input (when open) - expands to the right from icon position -->
                    <div
                        x-show="searchOpen"
                        x-transition:enter="transition ease-out duration-200"
                        x-transition:enter-start="opacity-0 scale-x-0"
                        x-transition:enter-end="opacity-100 scale-x-100"
                        x-transition:leave="transition ease-in duration-150"
                        x-transition:leave-start="opacity-100 scale-x-100"
                        x-transition:leave-end="opacity-0 scale-x-0"
                        @click.away="searchOpen = false"
                        class="flex w-full min-w-0 origin-left items-center"
                        style="width: 100%; min-width: 0; max-width: none;"
                    >
                        <div wire:key="lw-3455546865-0" wire:snapshot="{&quot;data&quot;:{&quot;isFullPage&quot;:false,&quot;search&quot;:&quot;&quot;,&quot;products&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;partners&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;cuisineResults&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;searchResults&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;currentTab&quot;:&quot;all&quot;,&quot;activePaginator&quot;:null,&quot;cuisineParam&quot;:&quot;&quot;,&quot;cuisines&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;showResults&quot;:false,&quot;paginators&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}]},&quot;memo&quot;:{&quot;id&quot;:&quot;9yVpH4heeCv2vC33jJS7&quot;,&quot;name&quot;:&quot;search&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[&quot;2456910609-0&quot;],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;bd50deacb81c61c5c985373acefb215460a08884a70798037351dcf6a1cecd2d&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;scripts&quot;:{&quot;2456910609-0&quot;:&quot;    &lt;script&gt;\n        window.searchComponent = function () {\n            return {\n                open: false,\n                search: window.Livewire.find(&#039;9yVpH4heeCv2vC33jJS7&#039;).entangle(&#039;search&#039;).live,\n                showResults: window.Livewire.find(&#039;9yVpH4heeCv2vC33jJS7&#039;).entangle(&#039;showResults&#039;).live,\n                isFullPage: false,\n                init() {\n                    $nextTick(() =&gt; {\n                        const hasSearchParams =\n                            (this.search &amp;&amp; this.search.length &gt; 0) ||\n                            false;\n                        if (hasSearchParams) {\n                            this.showResults = true;\n                            this.open = true;\n                        }\n                    });\n                },\n            };\n        };\n\n        document.addEventListener(&#039;livewire:initialized&#039;, () =&gt; {\n            Livewire.on(&#039;urlChanged&#039;, (data) =&gt; {\n                if (data.url) {\n                    window.location.href = data.url;\n                }\n            });\n        });\n    &lt;\/script&gt;\n    &quot;},&quot;url&quot;:{&quot;search&quot;:{&quot;as&quot;:null,&quot;use&quot;:&quot;push&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:null},&quot;currentTab&quot;:{&quot;as&quot;:&quot;tab&quot;,&quot;use&quot;:&quot;replace&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:null},&quot;cuisineParam&quot;:{&quot;as&quot;:&quot;cuisine&quot;,&quot;use&quot;:&quot;push&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:null}}}" wire:id="9yVpH4heeCv2vC33jJS7" wire:name="search"
    class="search-component search-navbar w-full flex-1 min-w-0"
    x-data="searchComponent()"
    x-init="init()"
    @click.away="!isFullPage && (showResults = false)"
>
    <!-- Search form/input - shown in BOTH contexts -->
    <div class="w-full min-w-0">
        <div class="w-full min-w-0 relative">
            <div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2 md:pl-3">
                <svg
                    class="h-4 w-4 md:h-5 md:w-5 text-gray-400"
                    fill="none"
                    stroke="currentColor"
                    viewBox="0 0 24 24"
                >
                    <path
                        stroke-linecap="round"
                        stroke-linejoin="round"
                        stroke-width="2"
                        d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
                    />
                </svg>
            </div>
            <input
                type="text"
                wire:model.live.debounce.100ms="search"
                placeholder="Ieškoti produktų, restoranų, parduotuvių, virtuvių..."
                class="py-1.5 pr-2 pl-9 text-sm md:py-2 md:pr-3 md:pl-10  block w-full rounded-lg border border-gray-300 bg-white text-gray-900 placeholder-gray-500 focus:border-orange-500 focus:ring-1 focus:ring-orange-500 focus:outline-none dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400"
                @focus="open = true; showResults = true;"
                @keydown.escape.window="if(!isFullPage) { $event.stopPropagation(); }"
                @keydown="open = true; showResults = true;"
            />
            <div
                class="absolute inset-y-0 right-0 flex items-center pr-2 md:pr-3"
            >
                
                <button
                    type="button"
                    wire:click="$set('search', '')"
                    x-show="search && search.length > 0"
                    @click="showResults = false"
                    class="text-gray-400 hover:text-gray-500 dark:text-gray-400 dark:hover:text-gray-300"
                >
                    <span class="sr-only">Išvalyti paiešką</span>
                    <svg class="h-4 w-4 md:h-5 md:w-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path
                            stroke-linecap="round"
                            stroke-linejoin="round"
                            stroke-width="2"
                            d="M6 18L18 6M6 6l12 12"
                        />
                    </svg>
                </button>
            </div>
        </div>
    </div>

    <!-- Unified search results container with conditional styling -->
    <div
                    x-show="showResults"
            x-transition:enter="transition duration-200 ease-out"
            x-transition:enter-start="translate-y-1 opacity-0"
            x-transition:enter-end="translate-y-0 opacity-100"
            x-transition:leave="transition duration-150 ease-in"
            x-transition:leave-start="translate-y-0 opacity-100"
            x-transition:leave-end="translate-y-1 opacity-0"
            style="display: none; min-width: 300px; max-height: 80vh; overflow-y: auto; position: fixed; left: 0; right: 0; z-index: 99999;"
                class="ring-opacity-5 shadow-xl ring-1 ring-black focus:outline-none dark:ring-gray-700 top-[2.75rem] md:top-16 bg-gray-800 dark:bg-gray-900"
    >
                    <!-- Empty state - no results or no search -->
            <div class=" px-4 py-6 text-center">
                                    <p class="text-sm text-gray-300 dark:text-gray-400">
                        Pradėkite paiešką
                    </p>
                            </div>
            </div>
</div>

                        </div>
                </div>
            </div>

            <div class="flex-1 min-w-0 hidden md:block" aria-hidden="true"></div>

            <!-- Right side: Area Switcher, Cart, Settings, Login -->
            <div class="flex items-center gap-1.5 shrink-0 md:gap-2">
                <!-- Area Chooser - Desktop -->
                                    <div x-show="!isProfilePage && !null" x-cloak class="hidden items-center md:flex">
                        <div id="desktop-area-switcher-target" class="desktop-area-container flex items-center"></div>
                    </div>
                
                <!-- Flash messages - visible on all screen sizes -->
                <div wire:key="lw-3455546865-1" wire:snapshot="{&quot;data&quot;:{&quot;message&quot;:null,&quot;type&quot;:&quot;info&quot;},&quot;memo&quot;:{&quot;id&quot;:&quot;emd50SG0DhJHXnrKdEUS&quot;,&quot;name&quot;:&quot;flash-messages&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;48123326032be66b272d7b7ecbd5283124ef05e01b687a9a629b7edba62556fe&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;listeners&quot;:[&quot;flashMessage&quot;,&quot;clearFlashMessage&quot;]}" wire:id="emd50SG0DhJHXnrKdEUS" wire:name="flash-messages"
    x-show="$wire.message && $wire.message.trim() !== ''"
    x-transition:enter="duration-300 ease-out"
    x-transition:enter-start="scale-90 opacity-0"
    x-transition:enter-end="scale-100 opacity-100"
    x-transition:leave="duration-300 ease-in"
    x-transition:leave-start="scale-100 opacity-100"
    x-transition:leave-end="scale-90 opacity-0"
    class="pointer-events-none fixed top-0 right-0 left-0 z-100 flex items-start justify-center p-4"
    style="display: none"
    x-init="
        let timeoutId = null;

        function startTimer() {
            if (timeoutId) clearTimeout(timeoutId);
            timeoutId = setTimeout(() => {
                $el.style.display = 'none';
                $wire.call('clearFlashMessage');
            }, 5000);
        }

        $watch('$wire.message', (newMessage) => {
            if (newMessage && newMessage.trim() !== '') {
                $el.style.display = 'flex';
                startTimer();
            } else {
                $el.style.display = 'none';
                if (timeoutId) clearTimeout(timeoutId);
            }
        });

        if ($wire.message && $wire.message.trim() !== '') {
            $el.style.display = 'flex';
            startTimer();
        }
    "
>
    <div class="@container p-2 flex border rounded-xl border-(--callout-border) bg-(--callout-background) [&amp;_[data-slot=heading]]:text-(--callout-heading) [&amp;_[data-slot=text]]:text-(--callout-text) [--callout-border:var(--color-zinc-200)] dark:[--callout-border:color-mix(in_oklab,var(--color-white),transparent_95%)] [--callout-background:var(--color-zinc-50)] dark:[--callout-background:color-mix(in_oklab,var(--color-zinc-400),transparent_90%)] [--callout-heading:var(--color-zinc-800)] dark:[--callout-heading:var(--color-zinc-200)] [--callout-text:var(--color-zinc-500)] dark:[--callout-text:var(--color-zinc-300)] [--callout-icon:var(--color-zinc-400)] dark:[--callout-icon:var(--color-zinc-400)] w-full max-w-md" data-flux-callout>
            <div class="ps-2 py-2 pe-0 flex items-baseline">
            <svg class="shrink-0 [:where(&amp;)]:size-5 inline-block size-5 text-[var(--callout-icon)] dark:text-[var(--callout-icon)]" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z" clip-rule="evenodd"/>
</svg>

                </div>
    
    <div class="ps-2 flex-1 ">
        <div class="flex-1 py-2 pe-3 @md:pe-4 flex flex-col justify-center gap-2" data-slot="content">
            
            
            <div class="text-sm" data-slot="text">
    
</div>
        </div>

            </div>

            <div class="ps-2">
            <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md w-8 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white    *:transition-opacity [&amp;[data-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-flux-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-loading]&gt;[data-flux-loading-indicator]]:opacity-100 [&amp;[data-flux-loading]&gt;[data-flux-loading-indicator]]:opacity-100 data-loading:pointer-events-none data-flux-loading:pointer-events-none  pointer-events-auto" data-flux-button="data-flux-button" wire:target="clearFlashMessage" wire:loading.attr="data-flux-loading" wire:click="clearFlashMessage">
        <div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
                <svg class="shrink-0 [:where(&amp;)]:size-5 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
    <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
    <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
                    </div>
        
                    <svg class="shrink-0 [:where(&amp;)]:size-5" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"/>
</svg>
    </button>
        </div>
    </div>
</div>

                <!-- Desktop components -->
                <div class="hidden items-center gap-2 md:flex">
                    
                    <div id="cart-icon-button-container"></div>
                </div>

                
                <div class="hidden sm:flex sm:items-center sm:gap-2">
                    <!-- Settings Dropdown -->
                    <div class="relative" x-data="{ dropReady: false }" x-init="setTimeout(() => dropReady = true, 0)">
                                            <div class="flex items-center gap-2" x-data="{ dropReady: false }" x-init="setTimeout(() => dropReady = true, 0)">
                            <template x-if="dropReady">
                                <ui-dropdown position="bottom end"  data-flux-dropdown>
    <button
                                        class="flex h-8 w-8 items-center justify-center rounded-full p-1 text-gray-600 hover:bg-gray-100 hover:text-gray-900 focus:outline-none cursor-pointer dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
                                    >
                                        <svg
                                            xmlns="http://www.w3.org/2000/svg"
                                            fill="none"
                                            viewBox="0 0 24 24"
                                            stroke-width="1.5"
                                            stroke="currentColor"
                                            class="h-6 w-6"
                                        >
                                            <path
                                                stroke-linecap="round"
                                                stroke-linejoin="round"
                                                d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"
                                            />
                                            <path
                                                stroke-linecap="round"
                                                stroke-linejoin="round"
                                                d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
                                            />
                                        </svg>
                                    </button>

                                    <ui-menu
    class="[:where(&amp;)]:min-w-48 p-[.3125rem] rounded-lg shadow-xs border border-zinc-200 dark:border-zinc-600 bg-white dark:bg-zinc-700 focus:outline-hidden [&_a]:cursor-pointer [&_button]:cursor-pointer"
    popover="manual"
    data-flux-menu
>
    <div class="px-4 py-2">
                                            <div class="flex items-center justify-between gap-2">
                                                <div>
                                                    <span class="text-xs text-gray-500">
                                                        Kalba
                                                    </span>
                                                </div>
                                                <ui-radio-group wire:key="lw-3455546865-5" wire:snapshot="{&quot;data&quot;:{&quot;locales&quot;:[[[{&quot;code&quot;:&quot;en&quot;,&quot;native&quot;:&quot;EN&quot;},{&quot;s&quot;:&quot;std&quot;}],[{&quot;code&quot;:&quot;lt&quot;,&quot;native&quot;:&quot;LT&quot;},{&quot;s&quot;:&quot;std&quot;}],[{&quot;code&quot;:&quot;ru&quot;,&quot;native&quot;:&quot;RU&quot;},{&quot;s&quot;:&quot;std&quot;}]],{&quot;s&quot;:&quot;arr&quot;}],&quot;currentLocaleName&quot;:&quot;LT&quot;,&quot;currentLocale&quot;:&quot;lt&quot;},&quot;memo&quot;:{&quot;id&quot;:&quot;IxjWWZNGxQ62qMWmMle6&quot;,&quot;name&quot;:&quot;language-switcher&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;ace27a6ba0a2685ad1530b89e61af38144eabaef4a6febc693fa355223f8ebf4&quot;}" wire:effects="{&quot;partials&quot;:[]}" wire:id="IxjWWZNGxQ62qMWmMle6" wire:name="language-switcher" class="block flex p-1 rounded-lg bg-zinc-800/5 dark:bg-white/10 h-8 py-[3px] px-[3px] -my-px h-[calc(2rem+2px)] [&_[data-flux-control]]:cursor-pointer [&_ui-radio]:cursor-pointer" wire:model.live="currentLocale"  data-flux-radio-group-segmented>
        <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-3 text-sm" value="en" title="EN" data-flux-control data-flux-radio-segmented tabindex="-1">
    
    EN

    </ui-radio>
            <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-3 text-sm" value="lt" title="LT" data-flux-control data-flux-radio-segmented tabindex="-1">
    
    LT

    </ui-radio>
            <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-3 text-sm" value="ru" title="RU" data-flux-control data-flux-radio-segmented tabindex="-1">
    
    RU

    </ui-radio>
    </ui-radio-group>
                                            </div>
                                        </div>

                                        <div class="px-4 py-2">
                                            <div class="flex items-center justify-between gap-2">
                                                <div>
                                                    <span class="text-xs text-gray-500">
                                                        Tema
                                                    </span>
                                                </div>
                                                <ui-radio-group wire:key="lw-3455546865-6" wire:snapshot="{&quot;data&quot;:[],&quot;memo&quot;:{&quot;id&quot;:&quot;nVhA2Xrh7z8XHTYPdxal&quot;,&quot;name&quot;:&quot;theme-switcher&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;c772ab0d7cc1e4843e3630d32a213ca31c9dea1e7e0e53d4b7a938a529690c37&quot;}" wire:effects="{&quot;partials&quot;:[]}" wire:id="nVhA2Xrh7z8XHTYPdxal" wire:name="theme-switcher" class="block flex p-1 rounded-lg bg-zinc-800/5 dark:bg-white/10 h-10 p-1  [&_[data-flux-control]]:cursor-pointer [&_ui-radio]:cursor-pointer" x-model="$flux.appearance"  data-flux-radio-group-segmented>
        <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-4" value="light" data-flux-control data-flux-radio-segmented tabindex="-1">
            <svg class="shrink-0 [:where(&amp;)]:size-5 text-zinc-500 dark:text-zinc-400 [ui-radio[data-checked]_&]:text-zinc-800 dark:[ui-radio[data-checked]_&]:text-white" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M10 2a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 10 2ZM10 15a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 10 15ZM10 7a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM15.657 5.404a.75.75 0 1 0-1.06-1.06l-1.061 1.06a.75.75 0 0 0 1.06 1.06l1.06-1.06ZM6.464 14.596a.75.75 0 1 0-1.06-1.06l-1.06 1.06a.75.75 0 0 0 1.06 1.06l1.06-1.06ZM18 10a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 18 10ZM5 10a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 5 10ZM14.596 15.657a.75.75 0 0 0 1.06-1.06l-1.06-1.061a.75.75 0 1 0-1.06 1.06l1.06 1.06ZM5.404 6.464a.75.75 0 0 0 1.06-1.06l-1.06-1.06a.75.75 0 1 0-1.061 1.06l1.06 1.06Z"/>
</svg>

            
    

    </ui-radio>
        <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-4" value="dark" data-flux-control data-flux-radio-segmented tabindex="-1">
            <svg class="shrink-0 [:where(&amp;)]:size-5 text-zinc-500 dark:text-zinc-400 [ui-radio[data-checked]_&]:text-zinc-800 dark:[ui-radio[data-checked]_&]:text-white" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M7.455 2.004a.75.75 0 0 1 .26.77 7 7 0 0 0 9.958 7.967.75.75 0 0 1 1.067.853A8.5 8.5 0 1 1 6.647 1.921a.75.75 0 0 1 .808.083Z" clip-rule="evenodd"/>
</svg>

            
    

    </ui-radio>
        <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-4" value="system" data-flux-control data-flux-radio-segmented tabindex="-1">
            <svg class="shrink-0 [:where(&amp;)]:size-5 text-zinc-500 dark:text-zinc-400 [ui-radio[data-checked]_&]:text-zinc-800 dark:[ui-radio[data-checked]_&]:text-white" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M2 4.25A2.25 2.25 0 0 1 4.25 2h11.5A2.25 2.25 0 0 1 18 4.25v8.5A2.25 2.25 0 0 1 15.75 15h-3.105a3.501 3.501 0 0 0 1.1 1.677A.75.75 0 0 1 13.26 18H6.74a.75.75 0 0 1-.484-1.323A3.501 3.501 0 0 0 7.355 15H4.25A2.25 2.25 0 0 1 2 12.75v-8.5Zm1.5 0a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-.75.75H4.25a.75.75 0 0 1-.75-.75v-7.5Z" clip-rule="evenodd"/>
</svg>

            
    

    </ui-radio>
    </ui-radio-group>

                                            </div>
                                        </div>
</ui-menu>
</ui-dropdown>
                            </template>

                            <a
                                href="https://amba.lt/index.php/login"
                                class="flex items-center font-semibold text-gray-600 hover:text-gray-900 focus:rounded-sm focus:outline-hidden focus:outline-red-500 cursor-pointer dark:text-gray-400 dark:hover:text-white"
                            >
                                Prisijungti
                            </a>

                                                            <a
                                    href="https://amba.lt/index.php/register"
                                    class="ml-4 flex items-center font-semibold text-gray-600 hover:text-gray-900 focus:rounded-sm focus:outline-hidden focus:outline-red-500 cursor-pointer dark:text-gray-400 dark:hover:text-white"
                                >
                                    Registruotis
                                </a>
                                                    </div>
                                    </div>
            </div>

            <!-- Mobile cart icon (always visible on mobile) -->
            <div class="flex items-center md:hidden">
                <div id="mobile-cart-icon-container"></div>

                <!-- Hamburger -->
                <button
                    @click="open = ! open"
                    class="inline-flex h-8 w-8 items-center justify-center rounded-md p-1.5 text-gray-600 transition duration-150 ease-in-out hover:bg-gray-100 hover:text-gray-900 focus:bg-gray-100 focus:text-gray-900 focus:outline-hidden cursor-pointer dark:text-gray-300 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:bg-gray-700 dark:focus:text-white md:h-10 md:w-10 md:p-2"
                >
                    <svg class="h-5 w-5 md:h-6 md:w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
                        <path
                            :class="{'hidden': open, 'inline-flex': ! open }"
                            class="inline-flex"
                            stroke-linecap="round"
                            stroke-linejoin="round"
                            stroke-width="2"
                            d="M4 6h16M4 12h16M4 18h16"
                        />
                        <path
                            :class="{'hidden': ! open, 'inline-flex': open }"
                            class="hidden"
                            stroke-linecap="round"
                            stroke-linejoin="round"
                            stroke-width="2"
                            d="M6 18L18 6M6 6l12 12"
                        />
                    </svg>
                </button>
            </div>
        </div>
    </div>

    <!-- Responsive Navigation Menu -->
    <div :class="{'block': open, 'hidden': ! open}" class="hidden sm:hidden">
        <!-- Mobile Table Info -->
        
        <!-- Responsive Settings Options -->
        <div class="border-t border-gray-200 pt-4 pb-1 dark:border-gray-600">
                            <div class="mt-3 flex gap-4">
                    <!-- Left: Theme + Language -->
                    <div class="flex shrink-0 flex-col gap-2">
                        <div
                            class="flex cursor-pointer items-center justify-between gap-2 rounded px-2 py-2 hover:bg-gray-100 dark:hover:bg-gray-700"
                        >
                            <span class="whitespace-nowrap text-sm text-gray-600 dark:text-gray-300">
                                Tema
                            </span>
                            <ui-radio-group wire:key="lw-3455546865-9" wire:snapshot="{&quot;data&quot;:[],&quot;memo&quot;:{&quot;id&quot;:&quot;8ii84gB3PSNCphiw3Lwt&quot;,&quot;name&quot;:&quot;theme-switcher&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;4fea67a215808fd0ea7da2fda9349637c6d7ed91621c742cab34440e02986c5c&quot;}" wire:effects="{&quot;partials&quot;:[]}" wire:id="8ii84gB3PSNCphiw3Lwt" wire:name="theme-switcher" class="block flex p-1 rounded-lg bg-zinc-800/5 dark:bg-white/10 h-10 p-1  [&_[data-flux-control]]:cursor-pointer [&_ui-radio]:cursor-pointer" x-model="$flux.appearance"  data-flux-radio-group-segmented>
        <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-4" value="light" data-flux-control data-flux-radio-segmented tabindex="-1">
            <svg class="shrink-0 [:where(&amp;)]:size-5 text-zinc-500 dark:text-zinc-400 [ui-radio[data-checked]_&]:text-zinc-800 dark:[ui-radio[data-checked]_&]:text-white" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M10 2a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 10 2ZM10 15a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 10 15ZM10 7a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM15.657 5.404a.75.75 0 1 0-1.06-1.06l-1.061 1.06a.75.75 0 0 0 1.06 1.06l1.06-1.06ZM6.464 14.596a.75.75 0 1 0-1.06-1.06l-1.06 1.06a.75.75 0 0 0 1.06 1.06l1.06-1.06ZM18 10a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 18 10ZM5 10a.75.75 0 0 1-.75.75h-1.5a.75.75 0 0 1 0-1.5h1.5A.75.75 0 0 1 5 10ZM14.596 15.657a.75.75 0 0 0 1.06-1.06l-1.06-1.061a.75.75 0 1 0-1.06 1.06l1.06 1.06ZM5.404 6.464a.75.75 0 0 0 1.06-1.06l-1.06-1.06a.75.75 0 1 0-1.061 1.06l1.06 1.06Z"/>
</svg>

            
    

    </ui-radio>
        <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-4" value="dark" data-flux-control data-flux-radio-segmented tabindex="-1">
            <svg class="shrink-0 [:where(&amp;)]:size-5 text-zinc-500 dark:text-zinc-400 [ui-radio[data-checked]_&]:text-zinc-800 dark:[ui-radio[data-checked]_&]:text-white" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M7.455 2.004a.75.75 0 0 1 .26.77 7 7 0 0 0 9.958 7.967.75.75 0 0 1 1.067.853A8.5 8.5 0 1 1 6.647 1.921a.75.75 0 0 1 .808.083Z" clip-rule="evenodd"/>
</svg>

            
    

    </ui-radio>
        <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-4" value="system" data-flux-control data-flux-radio-segmented tabindex="-1">
            <svg class="shrink-0 [:where(&amp;)]:size-5 text-zinc-500 dark:text-zinc-400 [ui-radio[data-checked]_&]:text-zinc-800 dark:[ui-radio[data-checked]_&]:text-white" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M2 4.25A2.25 2.25 0 0 1 4.25 2h11.5A2.25 2.25 0 0 1 18 4.25v8.5A2.25 2.25 0 0 1 15.75 15h-3.105a3.501 3.501 0 0 0 1.1 1.677A.75.75 0 0 1 13.26 18H6.74a.75.75 0 0 1-.484-1.323A3.501 3.501 0 0 0 7.355 15H4.25A2.25 2.25 0 0 1 2 12.75v-8.5Zm1.5 0a.75.75 0 0 1 .75-.75h11.5a.75.75 0 0 1 .75.75v7.5a.75.75 0 0 1-.75.75H4.25a.75.75 0 0 1-.75-.75v-7.5Z" clip-rule="evenodd"/>
</svg>

            
    

    </ui-radio>
    </ui-radio-group>

                        </div>
                        <div
                            class="flex cursor-pointer items-center justify-between gap-2 rounded px-2 py-2 hover:bg-gray-100 dark:hover:bg-gray-700"
                        >
                            <span class="whitespace-nowrap text-sm text-gray-600 dark:text-gray-300">
                                Kalba
                            </span>
                            <ui-radio-group wire:key="lw-3455546865-10" wire:snapshot="{&quot;data&quot;:{&quot;locales&quot;:[[[{&quot;code&quot;:&quot;en&quot;,&quot;native&quot;:&quot;EN&quot;},{&quot;s&quot;:&quot;std&quot;}],[{&quot;code&quot;:&quot;lt&quot;,&quot;native&quot;:&quot;LT&quot;},{&quot;s&quot;:&quot;std&quot;}],[{&quot;code&quot;:&quot;ru&quot;,&quot;native&quot;:&quot;RU&quot;},{&quot;s&quot;:&quot;std&quot;}]],{&quot;s&quot;:&quot;arr&quot;}],&quot;currentLocaleName&quot;:&quot;LT&quot;,&quot;currentLocale&quot;:&quot;lt&quot;},&quot;memo&quot;:{&quot;id&quot;:&quot;cKWYbh6CV4et6oJCwPKI&quot;,&quot;name&quot;:&quot;language-switcher&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;473a105124e3e57c481e618b83a1be0de06bab407631e8fd4290e9225dd64182&quot;}" wire:effects="{&quot;partials&quot;:[]}" wire:id="cKWYbh6CV4et6oJCwPKI" wire:name="language-switcher" class="block flex p-1 rounded-lg bg-zinc-800/5 dark:bg-white/10 h-8 py-[3px] px-[3px] -my-px h-[calc(2rem+2px)] [&_[data-flux-control]]:cursor-pointer [&_ui-radio]:cursor-pointer" wire:model.live="currentLocale"  data-flux-radio-group-segmented>
        <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-3 text-sm" value="en" title="EN" data-flux-control data-flux-radio-segmented tabindex="-1">
    
    EN

    </ui-radio>
            <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-3 text-sm" value="lt" title="LT" data-flux-control data-flux-radio-segmented tabindex="-1">
    
    LT

    </ui-radio>
            <ui-radio class="flex whitespace-nowrap flex-1 justify-center items-center gap-2 rounded-md data-checked:shadow-xs text-sm font-medium text-zinc-600 hover:text-zinc-800 dark:hover:text-white dark:text-white/70 data-checked:text-zinc-800 dark:data-checked:text-white data-checked:bg-white dark:data-checked:bg-white/20 [&amp;[disabled]]:opacity-50 dark:[&amp;[disabled]]:opacity-75 [&amp;[disabled]]:cursor-default [&amp;[disabled]]:pointer-events-none px-3 text-sm" value="ru" title="RU" data-flux-control data-flux-radio-segmented tabindex="-1">
    
    RU

    </ui-radio>
    </ui-radio-group>
                        </div>
                    </div>

                    <!-- Right: Login/Register -->
                    <div class="min-w-0 flex-1 space-y-1">
                        <a class="block w-full border-l-4 border-transparent py-2 ps-3 pe-4 text-start text-base font-medium text-gray-600 transition duration-150 ease-in-out hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 focus:border-gray-300 focus:bg-gray-50 focus:text-gray-800 focus:outline-hidden cursor-pointer dark:text-gray-400 dark:hover:border-gray-600 dark:hover:bg-gray-700 dark:hover:text-gray-200 dark:focus:border-gray-600 dark:focus:bg-gray-700 dark:focus:text-gray-200 flex items-center gap-2 px-2 py-2" href="https://amba.lt/index.php/login">
    <span>Prisijungti</span>
</a>

                                                    <a class="block w-full border-l-4 border-transparent py-2 ps-3 pe-4 text-start text-base font-medium text-gray-600 transition duration-150 ease-in-out hover:border-gray-300 hover:bg-gray-50 hover:text-gray-800 focus:border-gray-300 focus:bg-gray-50 focus:text-gray-800 focus:outline-hidden cursor-pointer dark:text-gray-400 dark:hover:border-gray-600 dark:hover:bg-gray-700 dark:hover:text-gray-200 dark:focus:border-gray-600 dark:focus:bg-gray-700 dark:focus:text-gray-200 flex items-center gap-2 px-2 py-2" href="https://amba.lt/index.php/register">
    <span>Registruotis</span>
</a>
                                            </div>
                </div>
                    </div>
    </div>

    <!-- Area Chooser - Mobile -->
            <div x-show="!isProfilePage && !null" x-collapse x-cloak class="block w-full min-w-0 px-0 py-1 md:hidden md:pb-0" x-transition>
            <div id="mobile-area-switcher-target" class="mobile-area-container flex items-center w-full min-w-0"></div>
        </div>

        <div x-show="!isProfilePage && !null" x-cloak id="area-switcher-container" class="hidden">
            <div wire:key="lw-3455546865-11" wire:snapshot="{&quot;data&quot;:{&quot;navigator&quot;:true,&quot;lat&quot;:null,&quot;lng&quot;:null,&quot;locationRequested&quot;:false,&quot;shouldRequestGps&quot;:true,&quot;waitingForGps&quot;:true,&quot;area&quot;:null,&quot;deliveryAddresses&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;delivery_address&quot;:null,&quot;serviceAreas&quot;:[null,{&quot;keys&quot;:[1,2,3,4,5,8,12,13,20],&quot;class&quot;:&quot;Illuminate\\Database\\Eloquent\\Collection&quot;,&quot;modelClass&quot;:&quot;App\\Models\\Area&quot;,&quot;s&quot;:&quot;elcln&quot;}],&quot;buttonLabel&quot;:[{&quot;icon&quot;:&quot;gps&quot;,&quot;label&quot;:&quot;Nustatoma vieta...&quot;},{&quot;s&quot;:&quot;arr&quot;}],&quot;hideOnCheckout&quot;:false,&quot;takeawayStyle&quot;:&quot;pickup&quot;,&quot;deliveryStyle&quot;:null,&quot;orderContext&quot;:&quot;pickup&quot;,&quot;class&quot;:null,&quot;showAreaSwitcherModal&quot;:false},&quot;memo&quot;:{&quot;id&quot;:&quot;hvzvPCMgF3npfapMWfWE&quot;,&quot;name&quot;:&quot;area-switcher&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:{&quot;delivery-time-as-none&quot;:[&quot;div&quot;,&quot;wJ8UFI5sqqtkPNPOj9zg&quot;],&quot;lw-1976285973-1&quot;:[&quot;div&quot;,&quot;QHrgysaUfADuSFyOBCGK&quot;]},&quot;scripts&quot;:[&quot;1976285973-0&quot;],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;a68d16fcf59c01e6da6372c453475f0b09c9a4c8b24dd4114b245bf1c9d461d1&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;scripts&quot;:{&quot;1976285973-0&quot;:&quot;&lt;script&gt;\n    \/\/ Make function available globally for x-init\n    \/\/ This function will be called from Alpine.js x-init, so it has access to Alpine.js scope via $wire\n    \/\/ Wrapped in try\/catch so external errors (e.g. Eruda \&quot;Please call eruda.init()\&quot;) do not prevent the area switcher from running\n    window.initAreaSwitcher = function() {\n        try {\n            if (typeof $wire === &#039;undefined&#039; || !$wire) {\n                setTimeout(window.initAreaSwitcher, 100);\n                return;\n            }\n        } catch (e) {\n            setTimeout(window.initAreaSwitcher, 100);\n            return;\n        }\n        const component = $wire;\n\n        try {\n        \/\/ Get variables from $wire (Livewire properties) - these are the source of truth\n        let locationRequested = $wire.locationRequested || false;\n        let shouldRequestGps = $wire.shouldRequestGps || false;\n        let waitingForGps = $wire.waitingForGps || false;\n\n        \/\/ Safe function to set waitingForGps - updates both $wire and local variable\n        function setWaitingForGps(value) {\n            try {\n                waitingForGps = value;\n                if (typeof $wire !== &#039;undefined&#039; &amp;&amp; $wire) {\n                    try {\n                        $wire.waitingForGps = value;\n                    } catch(e) {\n                        try {\n                            if (typeof $wire.call === &#039;function&#039;) {\n                                $wire.call(&#039;setWaitingForGps&#039;, value);\n                            }\n                        } catch(e2) {\n                            console.warn(&#039;Could not set waitingForGps:&#039;, e2);\n                        }\n                    }\n                }\n            } catch(e) {\n                console.warn(&#039;Error setting waitingForGps:&#039;, e);\n            }\n        }\n\n        \/\/ Sync Livewire property changes - update local variables when $wire changes\n        $watch(&#039;$wire.waitingForGps&#039;, value =&gt; {\n            try {\n                waitingForGps = value;\n            } catch(e) {\n                console.warn(&#039;Error syncing waitingForGps:&#039;, e);\n            }\n        });\n\n        $watch(&#039;$wire.shouldRequestGps&#039;, value =&gt; {\n            try {\n                shouldRequestGps = value;\n            } catch(e) {\n                console.warn(&#039;Error syncing shouldRequestGps:&#039;, e);\n            }\n        });\n\n        $watch(&#039;$wire.locationRequested&#039;, value =&gt; {\n            try {\n                locationRequested = value;\n            } catch(e) {\n                console.warn(&#039;Error syncing locationRequested:&#039;, e);\n            }\n        });\n\n        \/\/ Also watch for area changes to force sync\n        $watch(&#039;$wire.area&#039;, (value) =&gt; {\n            \/\/ Force sync waitingForGps when area changes\n            if (typeof $wire !== &#039;undefined&#039; &amp;&amp; $wire) {\n                try {\n                    waitingForGps = $wire.waitingForGps || false;\n                } catch(e) {\n                    console.warn(&#039;Error syncing waitingForGps after area change:&#039;, e);\n                }\n            }\n        });\n\n        \/\/ Listen for explicit state update event\n        Livewire.on(&#039;areaSwitcherStateUpdated&#039;, (data) =&gt; {\n            try {\n                if (data &amp;&amp; typeof data.waitingForGps !== &#039;undefined&#039;) {\n                    waitingForGps = data.waitingForGps;\n                }\n                if (typeof $wire !== &#039;undefined&#039; &amp;&amp; $wire) {\n                    \/\/ Also sync from $wire to be sure\n                    waitingForGps = $wire.waitingForGps || false;\n                }\n            } catch(e) {\n                console.warn(&#039;Error handling areaSwitcherStateUpdated:&#039;, e);\n            }\n        });\n\n\n        \/\/ Sync from $wire if available\n        if (typeof $wire !== &#039;undefined&#039; &amp;&amp; $wire) {\n            if (typeof $wire.locationRequested !== &#039;undefined&#039;) {\n                locationRequested = $wire.locationRequested;\n            }\n            if (typeof $wire.shouldRequestGps !== &#039;undefined&#039;) {\n                shouldRequestGps = $wire.shouldRequestGps;\n            }\n        }\n\n        \/\/ Request GPS if: no location requested yet AND (no area OR shouldRequestGps is true)\n        const shouldRequest = navigator.geolocation &amp;&amp; !locationRequested &amp;&amp; (!false || shouldRequestGps);\n\n\n        \/\/ Set a timeout to fallback to GeoIP, then default if GPS takes too long (30 seconds)\n        let gpsTimeout = null;\n        let geoIpTimeout = null; \/\/ 10 second timeout for GeoIP check to send to Partners\n\n        if (shouldRequest &amp;&amp; !false) {\n            \/\/ 10 second timeout to check GeoIP and send to Partners module\n            geoIpTimeout = setTimeout(() =&gt; {\n                if (!locationRequested) {\n                    try {\n                        $wire.call(&#039;tryGeoIpFallback&#039;);\n                    } catch(e) {\n                        console.warn(&#039;Error calling tryGeoIpFallback from 10s timeout:&#039;, e);\n                    }\n                }\n            }, 10000); \/\/ 10 second timeout\n\n            gpsTimeout = setTimeout(() =&gt; {\n                if (!locationRequested) {\n                    locationRequested = true;\n                    shouldRequestGps = false;\n                    setWaitingForGps(false);\n                    try {\n                        $wire.call(&#039;tryGeoIpFallback&#039;);\n                    } catch(e) {\n                        console.warn(&#039;Error calling tryGeoIpFallback on timeout:&#039;, e);\n                        try {\n                            $wire.call(&#039;useDefaultArea&#039;);\n                        } catch(e2) {\n                            console.warn(&#039;Error calling useDefaultArea:&#039;, e2);\n                        }\n                    }\n                }\n            }, 30000); \/\/ 30 second timeout\n        }\n\n        if (shouldRequest) {\n            const reason = !false ? &#039;no_area_set&#039; : &#039;should_request_gps_flag&#039;;\n            navigator.geolocation.getCurrentPosition(\n                function(position) {\n                    try {\n                        if (gpsTimeout) clearTimeout(gpsTimeout);\n                        if (geoIpTimeout) clearTimeout(geoIpTimeout);\n\n                        \/\/ Check if component still exists before calling\n                        if (typeof $wire !== &#039;undefined&#039; &amp;&amp; $wire &amp;&amp; typeof $wire.call === &#039;function&#039;) {\n                            $wire.call(&#039;setLocation&#039;, position.coords.latitude, position.coords.longitude);\n                            locationRequested = true;\n                            shouldRequestGps = false;\n                            setWaitingForGps(false);\n                        } else {\n                            console.warn(&#039;AreaSwitcher: Component no longer exists, cannot set location&#039;);\n                            \/\/ Component was removed, try to set area via direct API call or reload\n                            locationRequested = true;\n                            shouldRequestGps = false;\n                        }\n                    } catch(e) {\n                        console.warn(&#039;Error in GPS success handler:&#039;, e);\n                        locationRequested = true;\n                        shouldRequestGps = false;\n                    }\n                },\n                function(error) {\n                    let errorMessage = &#039;Unknown error&#039;;\n                    if (error.code === error.PERMISSION_DENIED) {\n                        errorMessage = &#039;User denied the request for Geolocation&#039;;\n                    } else if (error.code === error.POSITION_UNAVAILABLE) {\n                        errorMessage = &#039;Location information is unavailable&#039;;\n                    } else if (error.code === error.TIMEOUT) {\n                        errorMessage = &#039;The request to get user location timed out&#039;;\n                    }\n\n                    console.warn(&#039;AreaSwitcher: Location access denied or unavailable&#039;, {\n                        code: error.code,\n                        message: error.message,\n                        errorMessage: errorMessage,\n                        PERMISSION_DENIED: error.PERMISSION_DENIED,\n                        POSITION_UNAVAILABLE: error.POSITION_UNAVAILABLE,\n                        TIMEOUT: error.TIMEOUT\n                    });\n\n                    \/\/ If timeout, try again with lower accuracy (faster)\n                    if (error.code === error.TIMEOUT &amp;&amp; !locationRequested) {\n                        navigator.geolocation.getCurrentPosition(\n                            function(position) {\n                                try {\n                                    if (gpsTimeout) clearTimeout(gpsTimeout);\n                                    if (geoIpTimeout) clearTimeout(geoIpTimeout);\n                                    $wire.call(&#039;setLocation&#039;, position.coords.latitude, position.coords.longitude);\n                                    locationRequested = true;\n                                    shouldRequestGps = false;\n                                    setWaitingForGps(false);\n                                } catch(e) {\n                                    console.warn(&#039;Error in GPS retry success handler:&#039;, e);\n                                }\n                            },\n                            function(retryError) {\n                                console.warn(&#039;AreaSwitcher: Location retry also failed&#039;, {\n                                    code: retryError.code,\n                                    message: retryError.message\n                                });\n                                try {\n                                    if (gpsTimeout) clearTimeout(gpsTimeout);\n                                    if (geoIpTimeout) clearTimeout(geoIpTimeout);\n                                    locationRequested = true;\n                                    shouldRequestGps = false;\n                                    setWaitingForGps(false);\n                                    $wire.call(&#039;tryGeoIpFallback&#039;);\n                                } catch(e) {\n                                    console.warn(&#039;Error in GPS retry error handler:&#039;, e);\n                                }\n                            },\n                            {\n                                enableHighAccuracy: false,\n                                timeout: 15000,\n                                maximumAge: 600000\n                            }\n                        );\n                    } else {\n                        \/\/ GPS failed (denied\/unavailable) - IMMEDIATELY try GeoIP fallback\n\n                        \/\/ Clear timeouts\n                        if (gpsTimeout) clearTimeout(gpsTimeout);\n                        if (geoIpTimeout) clearTimeout(geoIpTimeout);\n\n                        \/\/ Update flags\n                        locationRequested = true;\n                        shouldRequestGps = false;\n                        \/\/ Keep waitingForGps = true so UI shows \&quot;Nustatoma vieta...\&quot; while checking GeoIP\n\n                        \/\/ Call GeoIP fallback - no try-catch needed, let it handle errors internally\n                        $wire.call(&#039;tryGeoIpFallback&#039;);\n                    }\n                },\n                {\n                    enableHighAccuracy: false,\n                    timeout: 30000,\n                    maximumAge: 600000\n                }\n            );\n        } else {\n            if (!navigator.geolocation) {\n                if (!false) {\n                    try {\n                        $wire.call(&#039;useDefaultArea&#039;);\n                    } catch(e) {\n                        console.warn(&#039;Error calling useDefaultArea when geolocation unavailable:&#039;, e);\n                    }\n                }\n            }\n            if (locationRequested) {\n            }\n            if (false &amp;&amp; !shouldRequestGps) {\n            }\n        }\n        } catch (e) {\n            if (typeof window.initAreaSwitcher === &#039;function&#039;) {\n                setTimeout(window.initAreaSwitcher, 200);\n            }\n        }\n    };\n\n    \/\/ Also make it available as local function for backwards compatibility\n    const initAreaSwitcher = window.initAreaSwitcher;\n&lt;\/script&gt;\n    &quot;},&quot;listeners&quot;:[&quot;addressUpdated&quot;,&quot;addressModalClosed&quot;,&quot;orderContextChanged&quot;,&quot;deliveryAddressSelected&quot;,&quot;deliveryStyleChanged&quot;,&quot;dismissGeoIpSuggestion&quot;,&quot;acceptGeoIpArea&quot;]}" wire:id="hvzvPCMgF3npfapMWfWE" wire:name="area-switcher" class=" flex w-full min-w-0 items-center mb-0 md:mb-0.5" x-data="{ locationRequested: false, shouldRequestGps: true, waitingForGps: true }" x-init="$nextTick(() => { if (typeof window.initAreaSwitcher === 'function') { window.initAreaSwitcher(); } else { console.warn('AreaSwitcher: initAreaSwitcher not found, retrying...'); setTimeout(() => { if (typeof window.initAreaSwitcher === 'function') window.initAreaSwitcher(); }, 100); } })" wire:key="area-switcher-none-waiting"
            <div class="block w-full min-w-0 overflow-hidden">
            <div class="flex items-center w-full min-w-0">
                <!-- When waiting for GPS, show full-width button with GPS icon and loading -->
                <div x-show="$wire && $wire.waitingForGps" class="w-full" x-cloak wire:key="waiting-gps-true">
                    <button
                        type="button"
                        x-on:click="$flux.modal('area-switcher-modal').show()"
                        class="flex w-full items-center justify-end gap-1.5 px-1 py-1 text-xs font-medium border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 rounded-md cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700 md:gap-2 md:text-sm"
                    >
                        <span class="flex-1 text-right">Nustatoma vieta...</span>
                        <div class="relative h-4 w-4 shrink-0 md:h-5 md:w-5">
                            <svg
                                xmlns="http://www.w3.org/2000/svg"
                                fill="none"
                                viewBox="0 0 24 24"
                                stroke-width="1.5"
                                stroke="currentColor"
                                class="h-4 w-4 animate-pulse text-orange-600 md:h-5 md:w-5"
                            >
                                <path
                                    stroke-linecap="round"
                                    stroke-linejoin="round"
                                    d="M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
                                />
                                <path
                                    stroke-linecap="round"
                                    stroke-linejoin="round"
                                    d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"
                                />
                            </svg>
                            <span class="absolute inset-0 flex items-center justify-center">
                                <span class="h-2 w-2 animate-ping rounded-full bg-orange-600 opacity-75"></span>
                            </span>
                        </div>
                    </button>
                </div>

                <!-- Normal button group when not waiting - Flux segmented style -->
                <div
                    x-show="!($wire && $wire.waitingForGps)"
                    class="flex w-full min-w-0 items-stretch gap-0.5 rounded-lg bg-gray-100 p-1 dark:bg-gray-700 md:gap-1 md:p-1"
                    wire:key="normal-button-none-Nustatoma vieta..."
                >
                    <!-- Mobile: xs, full width -->
                    <div class="flex w-full min-w-0 flex-1 items-stretch gap-0.5 md:hidden">
                        <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-6 text-xs rounded-md px-2 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white      min-w-0 flex-1 shrink !gap-0.5 !px-1 !py-0.5" data-flux-button="data-flux-button" x-on:click="$flux.modal('area-switcher-modal').show()">
        <div class="relative h-2.5 w-2.5 shrink-0">
                                <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="h-2.5 w-2.5" :class="{ 'animate-pulse': $wire && $wire.waitingForGps }">
                                    <path stroke-linecap="round" stroke-linejoin="round" d="M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" />
                                    <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z" />
                                </svg>
                                <span class="absolute inset-0 flex items-center justify-center" x-show="$wire && $wire.waitingForGps">
                                    <span class="h-2 w-2 animate-ping rounded-full bg-orange-600 opacity-75"></span>
                                </span>
                            </div>
                                                <span class="min-w-0 flex-1 truncate text-left text-xs" x-show="!($wire && $wire.waitingForGps)">
                                                            Nustatoma vieta...
                                                    </span>
                        <span class="truncate text-left text-xs" x-show="$wire && $wire.waitingForGps" x-cloak>
                            Nustatoma vieta...
                        </span>
                        <svg class="shrink-0 [:where(&amp;)]:size-6 h-2 w-2 shrink-0" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
  <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5"/>
</svg>
    </button>
                                            <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-6 text-xs rounded-md px-2 inline-flex  bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&amp;]:border-e-0 [:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-[1px] dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-0 dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-s-[1px] [:is([data-flux-button-group]&gt;&amp;:not(:first-child),_[data-flux-button-group]_:not(:first-child)&gt;&amp;)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)]   min-w-0 shrink" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" wire:click="selectTakeaway(0)">
        <span class="truncate">Išsinešimui</span>
    </button>
                        <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-6 text-xs rounded-md px-2 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white      min-w-0 shrink" data-flux-button="data-flux-button" wire:click="selectTakeaway(1)">
        <span class="truncate">Valgyti vietoje</span>
    </button>
                                        </div>
                    <!-- Desktop: sm -->
                    <div class="hidden w-full min-w-0 flex-1 flex-row items-stretch gap-1 md:flex">
                        <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md px-3 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white      min-w-0 flex-1 shrink" data-flux-button="data-flux-button" x-on:click="$flux.modal('area-switcher-modal').show()">
        <div class="relative h-5 w-5 shrink-0">
                                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="h-5 w-5" :class="{ 'animate-pulse': $wire && $wire.waitingForGps }">
                                        <path stroke-linecap="round" stroke-linejoin="round" d="M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" />
                                        <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z" />
                                    </svg>
                                    <span class="absolute inset-0 flex items-center justify-center" x-show="$wire && $wire.waitingForGps">
                                        <span class="h-2 w-2 animate-ping rounded-full bg-orange-600 opacity-75"></span>
                                    </span>
                                </div>
                                                        <span class="truncate text-left" x-show="!($wire && $wire.waitingForGps)">
                                Nustatoma vieta...
                            </span>
                            <span class="truncate text-left" x-show="$wire && $wire.waitingForGps" x-cloak>
                                Nustatoma vieta...
                            </span>
                            <svg class="shrink-0 [:where(&amp;)]:size-6 h-3 w-3 shrink-0" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
  <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5"/>
</svg>
    </button>
                                                    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md px-3 inline-flex  bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&amp;]:border-e-0 [:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-[1px] dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-0 dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-s-[1px] [:is([data-flux-button-group]&gt;&amp;:not(:first-child),_[data-flux-button-group]_:not(:first-child)&gt;&amp;)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)]" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" wire:click="selectTakeaway(0)">
        Išsinešimui
    </button>
                            <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md px-3 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white" data-flux-button="data-flux-button" wire:click="selectTakeaway(1)">
        Valgyti vietoje
    </button>
                                            </div>
                </div>
            </div>

            <!-- Flux Modal -->
            <ui-modal id="area-switcher-modal" data-flux-modal>
    
    <dialog
        wire:ignore.self 
        class="p-6 [:where(&amp;)]:max-w-xl [:where(&amp;)]:min-w-xs shadow-lg rounded-xl bg-white dark:bg-zinc-800 ring ring-black/5 dark:ring-zinc-700 shadow-lg rounded-xl"
         data-modal="area-switcher-modal"                         x-data="fluxModal('area-switcher-modal', 'hvzvPCMgF3npfapMWfWE')"
                x-on:modal-show.document="handleShow($event)"
        x-on:modal-close.document="handleClose($event)"
    >
        <!-- Close Button (like product modal) -->
                <button
                    type="button"
                    x-on:click="$flux.modal('area-switcher-modal').close()"
                    class="absolute right-4 top-4 z-20 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-white/80 backdrop-blur-sm text-gray-500 shadow-sm hover:bg-white hover:text-gray-700 dark:bg-gray-800/80 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
                >
                    <svg class="h-5 w-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path
                            stroke-linecap="round"
                            stroke-linejoin="round"
                            stroke-width="2"
                            d="M6 18L18 6M6 6l12 12"
                        />
                    </svg>
                </button>

                <div class="relative flex flex-col gap-4 p-0.5 sm:gap-6 sm:p-1.5 overflow-x-hidden">
                    <!-- Header with Title -->
                    <div class="pr-8 sm:pr-0 min-w-0">
                        <div class="font-medium [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white text-sm [&amp;:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&amp;]:mt-2" data-flux-heading>Pasirinkite adresą arba rajoną</div>
                        <div class="text-sm [:where(&amp;)]:text-zinc-500 [:where(&amp;)]:dark:text-white/70" data-flux-subheading>
    Pasirinkite pristatymo vietą
</div>
                    </div>

                    <div class="flex flex-col gap-3 sm:gap-4 lg:gap-6 lg:flex-row lg:items-stretch min-w-0 overflow-x-hidden">
                        <!-- Areas Section: flex so cities list fills height and matches right column -->
                        <div
                            class="flex w-full flex-col min-h-0 rounded-lg border border-gray-200 p-1.5 sm:p-2 shadow-xs dark:border-gray-600 lg:w-1/3 lg:min-h-0"
                        >
                            <div class="font-medium [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white text-sm [&amp;:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&amp;]:mt-2 mb-3 shrink-0" data-flux-heading>Galimi rajonai</div>
                            <div
                                class="scrollbar-orange min-h-0 flex-1 rounded-lg border border-gray-200 dark:border-gray-600 lg:min-h-[12rem]"
                            >
                                <div class="w-full">
                                                                            <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.changeArea('vilnius')
                                            "
                                            class="w-full text-left px-3 py-2 text-sm font-medium whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"
                                        >
                                            Vilnius
                                        </button>
                                                                            <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.changeArea('kaunas')
                                            "
                                            class="w-full text-left px-3 py-2 text-sm font-medium whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"
                                        >
                                            Kaunas
                                        </button>
                                                                            <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.changeArea('klaipeda')
                                            "
                                            class="w-full text-left px-3 py-2 text-sm font-medium whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"
                                        >
                                            Klaipėda
                                        </button>
                                                                            <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.changeArea('siauliai')
                                            "
                                            class="w-full text-left px-3 py-2 text-sm font-medium whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"
                                        >
                                            Šiauliai
                                        </button>
                                                                            <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.changeArea('panevezys')
                                            "
                                            class="w-full text-left px-3 py-2 text-sm font-medium whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"
                                        >
                                            Panevėžys
                                        </button>
                                                                            <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.changeArea('mazeikiai')
                                            "
                                            class="w-full text-left px-3 py-2 text-sm font-medium whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"
                                        >
                                            Mažeikiai
                                        </button>
                                                                            <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.changeArea('telsiai')
                                            "
                                            class="w-full text-left px-3 py-2 text-sm font-medium whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"
                                        >
                                            Telšiai
                                        </button>
                                                                            <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.changeArea('taurage')
                                            "
                                            class="w-full text-left px-3 py-2 text-sm font-medium whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"
                                        >
                                            Tauragė
                                        </button>
                                                                            <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.changeArea('plunge')
                                            "
                                            class="w-full text-left px-3 py-2 text-sm font-medium whitespace-nowrap overflow-hidden text-ellipsis cursor-pointer text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800"
                                        >
                                            Plungė
                                        </button>
                                                                    </div>
                            </div>
                        </div>

                        <!-- Right Column: Takeaway, Cities, Delivery, and Time -->
                        <div class="flex w-full flex-col gap-2 sm:gap-3 lg:w-2/3 min-w-0">
                            <!-- Takeaway Section -->
                            <div
                                class="rounded-lg border border-gray-200 p-2 sm:p-2 shadow-xs dark:border-gray-600"
                            >
                                <div class="font-medium [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white text-sm [&amp;:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&amp;]:mt-2 mb-3" data-flux-heading>Išsinešimo variantai</div>
                                <div class="flex w-full min-w-0 rounded-lg bg-gray-100 p-1 dark:bg-gray-700">
                                    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md px-3 inline-flex  bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&amp;]:border-e-0 [:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-[1px] dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-0 dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-s-[1px] [:is([data-flux-button-group]&gt;&amp;:not(:first-child),_[data-flux-button-group]_:not(:first-child)&gt;&amp;)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)]   flex-1" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" x-on:click="if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                            $dispatch('close-modal', { id: 'area-switcher-modal' });
                                            $wire.selectTakeaway(0)">
        Išsinešimui
    </button>
                                    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md px-3 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white      flex-1" data-flux-button="data-flux-button" x-on:click="if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                            $dispatch('close-modal', { id: 'area-switcher-modal' });
                                            $wire.selectTakeaway(1)">
        Valgyti vietoje
    </button>
                                </div>
                            </div>

                            <!-- Delivery Section -->
                            <div
                                class="rounded-lg border border-gray-200 p-2 sm:p-2 shadow-xs dark:border-gray-600"
                            >
                                <div class="font-medium [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white text-sm [&amp;:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&amp;]:mt-2 mb-3" data-flux-heading>Pristatymo variantai</div>
                                    <div
                                        class="scrollbar-orange mb-2 max-h-64 rounded-lg border border-gray-200 sm:max-h-80 dark:border-gray-600"
                                    x-data="{
                                        observeLastItem() {
                                            const observer = new IntersectionObserver(
                                                (entries) => {
                                                    entries.forEach((entry) => {
                                                        if (entry.isIntersecting) {
                                                            // Load more addresses when last item is visible
                                                            console.log('Last item is visible, should load more')
                                                        }
                                                    })
                                                },
                                                { threshold: 0.5 },
                                            )

                                            // Observe the last item in the list
                                            const lastItem = this.$el.querySelector('.address-item:last-child')
                                            if (lastItem) {
                                                observer.observe(lastItem)
                                            }
                                        },
                                    }"
                                    x-init="observeLastItem()"
                                >
                                    <!-- Section Header -->
                                    <div class="bg-gray-100 px-3 py-2 dark:bg-gray-800">
                                        <div class="font-medium [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white text-sm [&amp;:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&amp;]:mt-2 text-sm font-semibold text-gray-900 dark:text-white" data-flux-heading>Jūsų adresai</div>
                                    </div>

                                    <!-- Address List -->
                                    <div class="bg-white dark:bg-gray-900">
                                                                                    <div
                                                class="px-3 py-4 text-center text-sm text-gray-500 dark:text-gray-400"
                                            >
                                                Adresų nerasta.
                                            </div>
                                                                            </div>

                                    <!-- Add New Address Button -->
                                    <div class="border-t border-gray-200 bg-gray-50 p-3 dark:border-gray-700 dark:bg-gray-800">
                                        <button
                                            type="button"
                                            x-on:click="
                                                if (window.Flux && window.Flux.modal) { window.Flux.modal('area-switcher-modal').close(); }
                                                $dispatch('close-modal', { id: 'area-switcher-modal' });
                                                $wire.$dispatch('showAddressModal')
                                            "
                                            class="w-full px-2 py-1.5 text-sm font-medium bg-orange-600 text-white hover:bg-orange-700 rounded-md whitespace-nowrap min-w-0 cursor-pointer sm:px-2.5 sm:py-1.5"
                                        >
                                            Pridėti naują adresą
                                        </button>
                                    </div>
                                </div>
                                <!-- Delivery Style Options -->
                                                            </div>

                            <!-- Delivery Time Section -->
                            <div
                                class="rounded-lg border border-gray-200 p-2 sm:p-2 shadow-xs dark:border-gray-600"
                            >
                                <div class="mt-2">
                                    <div wire:key="delivery-time-as-none" wire:snapshot="{&quot;data&quot;:{&quot;content&quot;:[[],{&quot;class&quot;:&quot;Illuminate\\Support\\Collection&quot;,&quot;s&quot;:&quot;clctn&quot;}],&quot;delivery_time&quot;:&quot;asap&quot;,&quot;context&quot;:&quot;area-switcher&quot;,&quot;areaSlug&quot;:null,&quot;model&quot;:null,&quot;available_times&quot;:[{&quot;asap&quot;:&quot;Kuo grei\u010diau&quot;,&quot;17:30&quot;:&quot;17:30&quot;,&quot;18:00&quot;:&quot;18:00&quot;,&quot;18:30&quot;:&quot;18:30&quot;},{&quot;s&quot;:&quot;arr&quot;}],&quot;earliest_close_time&quot;:&quot;18:57&quot;,&quot;first_slot_time&quot;:&quot;17:30&quot;,&quot;timePickerValue&quot;:&quot;&quot;,&quot;showTimepicker&quot;:false,&quot;hasAfterMidnightSlots&quot;:false,&quot;isSharedCartNonLeader&quot;:false,&quot;sharedCartUuid&quot;:null,&quot;timeLabel&quot;:&quot;Atsi\u0117mimo laikas&quot;,&quot;selectTimeLabel&quot;:&quot;Pasirinkite atsi\u0117mimo laik\u0105&quot;},&quot;memo&quot;:{&quot;id&quot;:&quot;wJ8UFI5sqqtkPNPOj9zg&quot;,&quot;name&quot;:&quot;delivery-time&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;76ecf5145727f62f1426bf94d1edbedabe444db53be8cb371366bac39e39491d&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;listeners&quot;:[&quot;leaderDeliveryTimeChanged&quot;,&quot;product-removed&quot;,&quot;orderContextChanged&quot;,&quot;areaChanged&quot;,&quot;deliveryTimeSelected&quot;,&quot;clientLocationChanged&quot;,&quot;clearDeliveryTime&quot;]}" wire:id="wJ8UFI5sqqtkPNPOj9zg" wire:name="delivery-time" class="relative z-10 [&_[data-flux-control]]:cursor-pointer [&_button]:cursor-pointer [&_label]:cursor-pointer ">
            <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Atsiėmimo laikas

    
    
    </ui-label>
        
        
        <ui-time-picker
        class="block min-w-0 border-0 p-0 bg-transparent" wire:model.live.self="timePickerValue" min="17:30" max="18:57" interval="30" time-format="24-hour" label="Atsiėmimo laikas" aria-label="Pasirinkite atsiėmimo laiką"
        data-flux-control
        data-flux-time-picker
                                        wire:model.live.self="timePickerValue" min="17:30" max="18:57" interval="30" time-format="24-hour" label="Atsiėmimo laikas" aria-label="Pasirinkite atsiėmimo laiką"
    >
        <ui-time-picker-trigger>
                    <button type="button" class="group/select-button cursor-default py-2 overflow-hidden flex items-center shadow-xs bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] disabled:shadow-none h-10 text-base sm:text-sm rounded-lg px-3 block w-full border border-zinc-200 border-b-zinc-300/80 dark:border-white/10"  data-flux-group-target data-flux-time-picker-button>
    <svg class="shrink-0 [:where(&amp;)]:size-5 me-2 text-zinc-300 [[disabled]_&]:text-zinc-200! dark:text-white/60 dark:[[disabled]_&]:text-white/40!" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-13a.75.75 0 0 0-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 0 0 0-1.5h-3.25V5Z" clip-rule="evenodd"/>
</svg>

        
            <ui-selected-time x-ignore wire:ignore class="truncate flex gap-2 text-start flex-1 text-zinc-700 [[disabled]_&]:text-zinc-500 dark:text-zinc-300 dark:[[disabled]_&]:text-zinc-400">
    <template name="placeholder">
        <span class="text-zinc-400 [[disabled]_&]:text-zinc-400/70 dark:text-zinc-400 dark:[[disabled]_&]:text-zinc-500" data-flux-time-picker-placeholder>
            Kuo greičiau
        </span>
    </template>

    <template name="time">
        <div dir="auto" class="truncate"><slot></slot></div>
    </template>
</ui-selected-time>    
            <div data-flux-button="data-flux-button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md w-8 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-500 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-white      cursor-pointer ms-2 -me-2 [[data-flux-time-picker-button]:has([data-flux-time-picker-placeholder])_&]:hidden [[data-flux-time-picker]:has([disabled])_&]:hidden" tabindex="-1" aria-label="Clear time" x-on:click.prevent.stop="$el.closest('ui-time-picker').clear()">
        <svg class="shrink-0 [:where(&amp;)]:size-4" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"/>
</svg>
    </div>
    
    <svg class="shrink-0 [:where(&amp;)]:size-5 ms-2 -me-1 text-zinc-300 [[data-flux-time-picker-button]:hover_&]:text-zinc-800 [[disabled]_&]:text-zinc-200! dark:text-white/60 dark:[[data-flux-time-picker-button]:hover_&]:text-white dark:[[disabled]_&]:text-white/40!" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/>
</svg>

        </button>
                </ui-time-picker-trigger>

        <ui-time-picker-options popover="manual" tabindex="-1" wire:ignore class="[:where(&amp;)]:min-w-48 [:where(&amp;)]:max-h-[20rem] p-[.3125rem] scroll-py-[.3125rem] rounded-lg shadow-xs border border-zinc-200 dark:border-zinc-600 bg-white dark:bg-zinc-700">
            <template name="option">
                <button type="button" tabindex="-1" class="w-full px-1 py-1.5 rounded-lg flex items-center justify-start gap-2 text-sm text-zinc-800 dark:text-white data-active:bg-zinc-100 dark:data-active:bg-zinc-600 disabled:text-zinc-400 disabled:pointer-events-none disabled:cursor-default [[readonly]_&]:pointer-events-none [[readonly]_&]:cursor-default [[readonly]_&]:bg-transparent">
                    <div class="w-6 shrink-0" data-checked>
                        <svg class="shrink-0 [:where(&amp;)]:size-5 hidden [ui-time-picker-options>[data-selected]_&]:block" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z" clip-rule="evenodd"/>
</svg>

                            </div>
                    
                    <div dir="ltr" class="tabular-nums">
                        <slot></slot>
                    </div>
                </button>
            </template>
        </ui-time-picker-options>
    </ui-time-picker>

                <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>
    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                    <div class="absolute top-0 end-0 mt-4 me-4">
                <ui-close data-flux-modal-close >
    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md w-8 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white      text-zinc-400! hover:text-zinc-800! dark:text-zinc-500! dark:hover:text-white!" data-flux-button="data-flux-button" aria-label="Close modal">
        <svg class="shrink-0 [:where(&amp;)]:size-5" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"/>
</svg>
    </button>
</ui-close>
            </div>
            </dialog>
</ui-modal>

            <!-- Include the AddressModal component -->
            <div wire:key="lw-1976285973-1" wire:snapshot="{&quot;data&quot;:{&quot;municipalities&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;cities&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;streets&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;municipality&quot;:null,&quot;city&quot;:null,&quot;street&quot;:null,&quot;zipcode&quot;:null,&quot;apartment&quot;:null,&quot;lat&quot;:null,&quot;lng&quot;:null,&quot;floor&quot;:null,&quot;entrance&quot;:null,&quot;door_code&quot;:null,&quot;address_type&quot;:&quot;home&quot;,&quot;delivery_notes&quot;:null,&quot;municipalitySearch&quot;:&quot;&quot;,&quot;citySearch&quot;:&quot;&quot;,&quot;streetSearch&quot;:&quot;&quot;,&quot;municipalityPage&quot;:1,&quot;cityPage&quot;:1,&quot;streetPage&quot;:1,&quot;loadingMunicipalities&quot;:false,&quot;loadingCities&quot;:false,&quot;loadingStreets&quot;:false,&quot;currentStep&quot;:1,&quot;totalSteps&quot;:2,&quot;editMode&quot;:false,&quot;addressId&quot;:null,&quot;showModal&quot;:false,&quot;showMunicipalityDropdown&quot;:false,&quot;showCityDropdown&quot;:false,&quot;showStreetDropdown&quot;:false,&quot;hasMoreMunicipalities&quot;:true,&quot;hasMoreCities&quot;:true,&quot;hasMoreStreets&quot;:true},&quot;memo&quot;:{&quot;id&quot;:&quot;QHrgysaUfADuSFyOBCGK&quot;,&quot;name&quot;:&quot;address-modal&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;fa0f33e7edf9ad8f54c146cf0b79b1f36ea1c2ccd6f7df3a3187c5925f31896c&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;listeners&quot;:[&quot;editAddress&quot;,&quot;showAddressModal&quot;,&quot;hideAddressModal&quot;]}" wire:id="QHrgysaUfADuSFyOBCGK" wire:name="address-modal">
    <ui-modal id="address-modal" size="lg" x-on:open-address-modal.window="$flux.modal('address-modal').show();
            $nextTick(() => {
                if (! $wire.municipality) {
                    $wire.showMunicipalityDropdown = true
                    $wire.loadMunicipalities()
                }
                setTimeout(() => {
                    $refs.municipalitySearch?.focus()
                }, 100);
            });" data-flux-modal>
    
    <dialog
        wire:ignore.self 
        class="p-6 [:where(&amp;)]:max-w-xl [:where(&amp;)]:min-w-xs shadow-lg rounded-xl bg-white dark:bg-zinc-800 ring ring-black/5 dark:ring-zinc-700 shadow-lg rounded-xl address-modal-container" x-on:close-address-modal.window="$flux.modal('address-modal').close();"
         data-modal="address-modal"                         x-data="fluxModal('address-modal', 'QHrgysaUfADuSFyOBCGK')"
                x-on:modal-show.document="handleShow($event)"
        x-on:modal-close.document="handleClose($event)"
    >
        <!-- Close Button (match product/area-switcher: visible, top-right) -->
        <button
            type="button"
            x-on:click="$flux.modal('address-modal').close()"
            class="absolute right-4 top-4 z-20 flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-white/80 backdrop-blur-sm text-gray-500 shadow-sm hover:bg-white hover:text-gray-700 dark:bg-gray-800/80 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
        >
            <svg class="h-5 w-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
            </svg>
        </button>
        <div class="space-y-6">
            <div class="pr-10">
                <div class="font-medium [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white text-base [&amp;:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&amp;]:mt-2" data-flux-heading>Pridėti naują adresą</div>
            </div>

            <!-- Wizard Progress Timeline -->
            <div class="mb-4 -mx-2 px-2">
                <ol class="w-full [--flux-timeline-item-gap:2rem]" data-flux-timeline-align="center" data-flux-timeline-horizontal="data-flux-timeline-horizontal" data-flux-timeline>
    <li class="" data-flux-timeline-status="current" data-flux-timeline-item>
    <div class="[[data-flux-timeline-status=complete]+[data-flux-timeline-item]_&amp;]:*:bg-accent *:bg-zinc-200 dark:*:bg-zinc-700 in-data-[flux-timeline-size=lg]:*:bg-zinc-100" data-flux-timeline-line-leading>
        <div></div>
    </div>

    <div data-flux-timeline-gap-leading></div>

    <div class="rounded-full font-semibold text-sm grid place-items-center *:col-start-1 *:row-start-1 [:where(&amp;)]:size-[var(--flux-timeline-indicator-size)] border-2 border-accent text-zinc-800 dark:text-zinc-300" data-flux-timeline-indicator>
    <div data-flux-timeline-baseline class="opacity-0 [:where(&)]:text-sm" aria-hidden="true">&ZeroWidthSpace;</div>

    <div>
        <span class="text-xs">1</span>
    </div>
</div>                        <div class="" data-flux-timeline-content>
   <p class="[:where(&amp;)]:font-normal [:where(&amp;)]:text-sm [:where(&amp;)]:text-zinc-500 [:where(&amp;)]:dark:text-white/70 text-xs font-medium" data-flux-text >Pagrindinė adreso informacija</p>
</div>

    <div class="[[data-flux-timeline-status=complete]_&amp;]:*:bg-accent *:bg-zinc-200 dark:*:bg-zinc-700 in-data-[flux-timeline-size=lg]:*:bg-zinc-100" data-flux-timeline-line-trailing>
        <div></div>
    </div>

    <div data-flux-timeline-gap-trailing></div>
</li>
                    <li class="" data-flux-timeline-status="incomplete" data-flux-timeline-item>
    <div class="[[data-flux-timeline-status=complete]+[data-flux-timeline-item]_&amp;]:*:bg-accent *:bg-zinc-200 dark:*:bg-zinc-700 in-data-[flux-timeline-size=lg]:*:bg-zinc-100" data-flux-timeline-line-leading>
        <div></div>
    </div>

    <div data-flux-timeline-gap-leading></div>

    <div class="rounded-full font-semibold text-sm grid place-items-center *:col-start-1 *:row-start-1 [:where(&amp;)]:size-[var(--flux-timeline-indicator-size)] border-2 border-zinc-100 text-zinc-500 dark:border-zinc-700 dark:text-zinc-300" data-flux-timeline-indicator>
    <div data-flux-timeline-baseline class="opacity-0 [:where(&)]:text-sm" aria-hidden="true">&ZeroWidthSpace;</div>

    <div>
        <span class="text-xs">2</span>
    </div>
</div>                        <div class="opacity-75" data-flux-timeline-content>
   <p class="[:where(&amp;)]:font-normal [:where(&amp;)]:text-sm [:where(&amp;)]:text-zinc-500 [:where(&amp;)]:dark:text-white/70 text-xs font-medium" data-flux-text >Papildoma pristatymo informacija</p>
</div>

    <div class="[[data-flux-timeline-status=complete]_&amp;]:*:bg-accent *:bg-zinc-200 dark:*:bg-zinc-700 in-data-[flux-timeline-size=lg]:*:bg-zinc-100" data-flux-timeline-line-trailing>
        <div></div>
    </div>

    <div data-flux-timeline-gap-trailing></div>
</li>
</ol>            </div>

            <form wire:submit.prevent="saveAddress">
                <!-- Step 1: Basic Address Information -->
                <div class="space-y-4" x-show="$wire.currentStep === 1">
                    <!-- Municipality Field -->
                    <div class="relative">
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3 relative" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="municipality"  data-flux-label>
    Savivaldybė

    
    
    </ui-label>

                            <!-- Municipality Autocomplete -->
                            <div
                                class="relative"
                                x-data="{ open: false }"
                                @click.away="open = false; $wire.showMunicipalityDropdown = false"
                            >
                                                                    <div class="w-full relative block group/input" data-flux-input>
            
            <input
                type="text"
                
                class="w-full border rounded-lg block disabled:shadow-none dark:shadow-none appearance-none text-base sm:text-sm py-2 h-10 leading-[1.375rem] ps-3 pe-10 bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500 shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5 data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500" id="municipality-search" wire:model.live.debounce.300ms="municipalitySearch" placeholder="Ieškoti savivaldybės..." x-on:focus="open = true
                                            $wire.toggleMunicipalityDropdown()" x-ref="municipalitySearch" x-on:focus-municipality-search.window="$nextTick(() => $refs.municipalitySearch.focus())"
                 name="municipalitySearch"                                                                                                 data-flux-control
                data-flux-group-target
                                            >

                            <div class="absolute top-0 bottom-0 flex items-center gap-x-1.5 pe-2 border-e border-transparent end-0 text-xs text-zinc-400">
                    
                    
                    
                    
                    
                    
                    
                                                                    <svg class="shrink-0 [:where(&amp;)]:size-5" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z" clip-rule="evenodd"/>
</svg>

                                            </div>
                    </div>
                                
                                <div
                                    x-show="!$wire.municipality && $wire.showMunicipalityDropdown && open"
                                    x-cloak
                                    class="absolute z-50 mt-1 w-full rounded-md border border-gray-200 bg-white shadow-lg dark:border-zinc-700 dark:bg-zinc-800"
                                    x-init="
                                        $nextTick(() => {
                                            const municipalitiesList = $el.querySelector('.municipalities-list')
                                            if (municipalitiesList) {
                                                municipalitiesList.addEventListener('scroll', function () {
                                                    const scrollTop = this.scrollTop
                                                    const scrollHeight = this.scrollHeight
                                                    const clientHeight = this.clientHeight

                                                    // Check if scrolled to bottom (with a small buffer)
                                                    if (scrollHeight - scrollTop - clientHeight < 20) {
                                                        if (! $wire.loadingMunicipalities && $wire.hasMoreMunicipalities) {
                                                            $wire.loadMoreMunicipalities()
                                                        }
                                                    }
                                                })
                                            }
                                        })
                                    "
                                >
                                    <ul class="municipalities-list max-h-[250px] overflow-auto rounded-md py-1 text-sm">
                                                                                    <li
                                                class="px-4 py-2.5 text-center text-gray-500 dark:text-zinc-400"
                                            >
                                                Rezultatų nerasta
                                            </li>
                                        
                                                                            </ul>
                                </div>
                            </div>

                            <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>
                    </div>

                    <!-- City Field -->
                    <div class="relative mt-4">
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3 relative" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="city"  data-flux-label>
    Miestas/Kaimas

    
    
    </ui-label>

                            <!-- City Autocomplete -->
                            <div
                                class="relative"
                                x-data="{ open: false }"
                                @click.away="open = false; $wire.showCityDropdown = false"
                            >
                                                                    <div class="w-full relative block group/input" data-flux-input>
            
            <input
                type="text"
                
                class="w-full border rounded-lg block disabled:shadow-none dark:shadow-none appearance-none text-base sm:text-sm py-2 h-10 leading-[1.375rem] ps-3 pe-10 bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500 shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5 data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500" id="city-search" wire:model.live.debounce.300ms="citySearch" placeholder="Ieškoti miesto..." disabled="disabled" x-on:focus="open = true
                                            $wire.toggleCityDropdown()" x-ref="citySearch" x-on:focus-city-search.window="$nextTick(() => {
                                                $refs.citySearch.focus()
                                                open = true
                                                $wire.showCityDropdown = true
                                                $wire.loadCities()
                                            })"
                 name="citySearch"                                                                                                 data-flux-control
                data-flux-group-target
                                            >

                            <div class="absolute top-0 bottom-0 flex items-center gap-x-1.5 pe-2 border-e border-transparent end-0 text-xs text-zinc-400">
                    
                    
                    
                    
                    
                    
                    
                                                                    <svg class="shrink-0 [:where(&amp;)]:size-5" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z" clip-rule="evenodd"/>
</svg>

                                            </div>
                    </div>
                                
                                <div
                                    x-show="
                                        ! $wire.city &&
                                            $wire.showCityDropdown &&
                                            $wire.municipality &&
                                            $wire.cities.length > 0 &&
                                            open
                                    "
                                    x-cloak
                                    class="absolute z-10 mt-1 w-full rounded-md border border-gray-200 bg-white shadow-lg dark:border-zinc-700 dark:bg-zinc-800"
                                    x-init="
                                        $nextTick(() => {
                                            const citiesList = $el.querySelector('.cities-list')
                                            if (citiesList) {
                                                citiesList.addEventListener('scroll', function () {
                                                    const scrollTop = this.scrollTop
                                                    const scrollHeight = this.scrollHeight
                                                    const clientHeight = this.clientHeight

                                                    // Check if scrolled to bottom (with a small buffer)
                                                    if (scrollHeight - scrollTop - clientHeight < 20) {
                                                        if (! $wire.loadingCities && $wire.hasMoreCities) {
                                                            $wire.loadMoreCities()
                                                        }
                                                    }
                                                })
                                            }
                                        })
                                    "
                                >
                                    <ul
                                        class="cities-list max-h-[250px] divide-y divide-gray-200 overflow-auto rounded-md py-1 text-sm dark:divide-zinc-700"
                                    >
                                        
                                                                            </ul>
                                </div>
                            </div>

                            <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>
                    </div>

                    <!-- Street Address Field -->
                    <div class="mt-4">
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="street"  data-flux-label>
    Gatvė

    
    
    </ui-label>

                            <!-- Street Autocomplete -->
                            <div
                                class="relative"
                                x-data="{ open: false }"
                                @click.away="open = false; $wire.showStreetDropdown = false"
                            >
                                                                    <div class="relative">
                                        <div class="w-full relative block group/input" data-flux-input>
            
            <input
                type="text"
                
                class="w-full border rounded-lg block disabled:shadow-none dark:shadow-none appearance-none text-base sm:text-sm py-2 h-10 leading-[1.375rem] ps-3 pe-3 bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500 shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5 data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500" id="street-search" wire:model.live.debounce.300ms="streetSearch" placeholder="Ieškoti gatvės (min. 4 simboliai)..."  disabled="disabled" x-on:focus="open = true
                                                $wire.toggleStreetDropdown()" x-ref="streetSearch" x-on:focus-street-search.window="$nextTick(() => {
                                                    $refs.streetSearch.focus()
                                                    if ($wire.streetSearch && $wire.streetSearch.length >= 4) {
                                                        open = true
                                                        $wire.showStreetDropdown = true
                                                        $wire.loadStreets()
                                                    }
                                                })"
                 name="streetSearch"                                                                                                 data-flux-control
                data-flux-group-target
                 wire:loading.class="pe-10"                  wire:target="streetSearch"             >

                            <div class="absolute top-0 bottom-0 flex items-center gap-x-1.5 pe-2 border-e border-transparent end-0 text-xs text-zinc-400">
                    
                                            <svg class="shrink-0 [:where(&amp;)]:size-5 animate-spin" wire:loading="" wire:target="streetSearch" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
    <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
    <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
                            
                    
                    
                    
                    
                    
                                    </div>
                    </div>
                                                                            </div>
                                
                                <div
                                    x-show="
                                        ! $wire.street &&
                                            $wire.showStreetDropdown &&
                                            $wire.municipality &&
                                            $wire.city &&
                                            $wire.streetSearch.length >= 4 &&
                                            open
                                    "
                                    x-cloak
                                    class="absolute z-10 mt-1 w-full rounded-md border border-gray-200 bg-white shadow-lg dark:border-zinc-700 dark:bg-zinc-800"
                                    x-init="
                                        $nextTick(() => {
                                            const streetsList = $el.querySelector('.streets-list')
                                            if (streetsList) {
                                                streetsList.addEventListener('scroll', function () {
                                                    const scrollTop = this.scrollTop
                                                    const scrollHeight = this.scrollHeight
                                                    const clientHeight = this.clientHeight

                                                    // Check if scrolled to bottom (with a small buffer)
                                                    if (scrollHeight - scrollTop - clientHeight < 20) {
                                                        if (! $wire.loadingStreets && $wire.hasMoreStreets) {
                                                            $wire.loadMoreStreets()
                                                        }
                                                    }
                                                })
                                            }
                                        })
                                    "
                                >
                                    <ul
                                        class="streets-list max-h-[250px] divide-y divide-gray-200 overflow-auto rounded-md py-1 text-sm dark:divide-zinc-700"
                                    >
                                        
                                                                            </ul>
                                </div>

                                                            </div>

                            <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>
                    </div>

                    <!-- Zip Code Field -->
                    <div>
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="zipcode"  data-flux-label>
    Pašto kodas

    
    
    </ui-label>
                            <div class="w-full relative block group/input" data-flux-input>
            
            <input
                type="text"
                
                class="w-full border rounded-lg block disabled:shadow-none dark:shadow-none appearance-none text-base sm:text-sm py-2 h-10 leading-[1.375rem] ps-3 pe-3 bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500 shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5 data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500" id="zipcode" wire:model="zipcode"  disabled="disabled"
                 name="zipcode"                                                                                                 data-flux-control
                data-flux-group-target
                                            >

                    </div>
                            <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>
                    </div>

                    <!-- Apartment Field -->
                    <div>
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="apartment" data-flux-label>
    Butas

    
    
    </ui-label>
                            <div class="w-full relative block group/input" data-flux-input>
            
            <input
                type="text"
                
                class="w-full border rounded-lg block disabled:shadow-none dark:shadow-none appearance-none text-base sm:text-sm py-2 h-10 leading-[1.375rem] ps-3 pe-3 bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500 shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5 data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500" id="apartment" wire:model="apartment" disabled="disabled"
                 name="apartment"                                                                                                 data-flux-control
                data-flux-group-target
                                            >

                    </div>
</ui-field>
                    </div>
                </div>

                <!-- Step 2: Additional Courier-Friendly Fields -->
                <div class="space-y-4" x-show="$wire.currentStep === 2">
                    <div class="@container p-2 flex border rounded-xl border-(--callout-border) bg-(--callout-background) [&amp;_[data-slot=heading]]:text-(--callout-heading) [&amp;_[data-slot=text]]:text-(--callout-text) [--callout-border:var(--color-zinc-200)] dark:[--callout-border:color-mix(in_oklab,var(--color-white),transparent_95%)] [--callout-background:var(--color-white)] dark:[--callout-background:color-mix(in_oklab,var(--color-zinc-400),transparent_90%)] [--callout-heading:var(--color-zinc-800)] dark:[--callout-heading:var(--color-zinc-200)] [--callout-text:var(--color-zinc-500)] dark:[--callout-text:var(--color-zinc-300)] [--callout-icon:var(--color-zinc-400)] dark:[--callout-icon:var(--color-zinc-400)]" data-flux-callout>
    
    <div class="ps-2 flex-1 ">
        <div class="flex-1 py-2 pe-3 @md:pe-4 flex flex-col justify-center gap-2" data-slot="content">
            
            
            Šie duomenys padeda kurjeriui lengviau rasti jūsų vietą
        </div>

            </div>

    </div>

                    <!-- Address Type Field -->
                    <div>
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="address_type" data-flux-label>
    Adreso tipas

    
    
    </ui-label>
                            <select
    class="appearance-none [:where(&amp;)]:w-full ps-3 pe-10 block h-10 py-2 text-base sm:text-sm leading-[1.375rem] rounded-lg shadow-xs border bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] text-zinc-700 dark:text-zinc-300 disabled:text-zinc-500 dark:disabled:text-zinc-400 has-[option.placeholder:checked]:text-zinc-400 dark:has-[option.placeholder:checked]:text-zinc-400 dark:[&amp;&gt;option]:bg-zinc-700 dark:[&amp;&gt;option]:text-white disabled:shadow-none border border-zinc-200 border-b-zinc-300/80 dark:border-white/10" id="address_type" wire:model="address_type"
         name="address_type"         data-flux-control
    data-flux-select-native
    data-flux-group-target
>
            <option value="" disabled selected class="placeholder">Pasirinkite adreso tipą</option>
    
    <option
    
     value="home"      wire:key="home" >Namai</option>                                <option
    
     value="work"      wire:key="work" >Darbas</option>                                <option
    
     value="vacation"      wire:key="vacation" >Poilsis</option>                                <option
    
     value="other"      wire:key="other" >Kita</option>
</select>
</ui-field>
                    </div>

                    <!-- Floor Field -->
                    <div>
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="floor" data-flux-label>
    Aukštas
                                <span class="ml-1 text-xs text-gray-500 dark:text-zinc-500">
                                    (Neprivaloma)
                                </span>

    
    
    </ui-label>
                            <div class="w-full relative block group/input" data-flux-input>
            
            <input
                type="text"
                
                class="w-full border rounded-lg block disabled:shadow-none dark:shadow-none appearance-none text-base sm:text-sm py-2 h-10 leading-[1.375rem] ps-3 pe-3 bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500 shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5 data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500" id="floor" placeholder="Kuris aukštas? (pvz., 3, pirmas aukštas)" wire:model="floor"
                 name="floor"                                                                                                 data-flux-control
                data-flux-group-target
                                            >

                    </div>
</ui-field>
                    </div>

                    <!-- Entrance Field -->
                    <div>
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="entrance" data-flux-label>
    Įėjimas
                                <span class="ml-1 text-xs text-gray-500 dark:text-zinc-500">
                                    (Neprivaloma)
                                </span>

    
    
    </ui-label>
                            <div class="w-full relative block group/input" data-flux-input>
            
            <input
                type="text"
                
                class="w-full border rounded-lg block disabled:shadow-none dark:shadow-none appearance-none text-base sm:text-sm py-2 h-10 leading-[1.375rem] ps-3 pe-3 bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500 shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5 data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500" id="entrance" placeholder="Kuris įėjimas? (pvz., A, galinis įėjimas)" wire:model="entrance"
                 name="entrance"                                                                                                 data-flux-control
                data-flux-group-target
                                            >

                    </div>
</ui-field>
                    </div>

                    <!-- Door Code Field -->
                    <div>
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="door_code" data-flux-label>
    Durų kodas
                                <span class="ml-1 text-xs text-gray-500 dark:text-zinc-500">
                                    (Neprivaloma)
                                </span>

    
    
    </ui-label>
                            <div class="w-full relative block group/input" data-flux-input>
            
            <input
                type="text"
                
                class="w-full border rounded-lg block disabled:shadow-none dark:shadow-none appearance-none text-base sm:text-sm py-2 h-10 leading-[1.375rem] ps-3 pe-3 bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500 shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5 data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500" id="door_code" placeholder="Durų ar vartų kodas, jei reikia" wire:model="door_code"
                 name="door_code"                                                                                                 data-flux-control
                data-flux-group-target
                                            >

                    </div>
</ui-field>
                    </div>

                    <!-- Delivery Notes Field -->
                    <div>
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" for="delivery_notes" data-flux-label>
    Pristatymo pastabos
                                <span class="ml-1 text-xs text-gray-500 dark:text-zinc-500">
                                    (Neprivaloma)
                                </span>

    
    
    </ui-label>
                            <textarea
        class="block p-3 w-full shadow-xs disabled:shadow-none border rounded-lg bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] resize-y text-base sm:text-sm text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500 border-zinc-200 border-b-zinc-300/80 dark:border-white/10 data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500" id="delivery_notes" placeholder="Bet kokia papildoma informacija kurjeriui" wire:model="delivery_notes"
        rows="3"
        style="resize: vertical; "
         name="delivery_notes"                                 data-flux-control
        data-flux-textarea
    ></textarea>
</ui-field>
                    </div>
                </div>

                <!-- Navigation Buttons -->
                <div class="mt-6 flex items-center justify-between gap-4">
                                            <div></div>
                    
                    <div class="flex items-center gap-2">
                        
                                                    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex  bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&amp;]:border-e-0 [:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-[1px] dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-0 dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-s-[1px] [:is([data-flux-button-group]&gt;&amp;:not(:first-child),_[data-flux-button-group]_:not(:first-child)&gt;&amp;)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)] *:transition-opacity [&amp;[data-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-flux-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-loading]&gt;[data-flux-loading-indicator]]:opacity-100 [&amp;[data-flux-loading]&gt;[data-flux-loading-indicator]]:opacity-100 data-loading:pointer-events-none data-flux-loading:pointer-events-none  cursor-pointer px-4 py-2 text-sm font-medium" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" wire:target="nextStep" wire:loading.attr="data-flux-loading" wire:click="nextStep">
        <div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
                <svg class="shrink-0 [:where(&amp;)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
    <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
    <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
                    </div>
        
        
                    
            
            <span>Kitas žingsnis</span>
    </button>
                                            </div>
                </div>
            </form>
        </div>

                    <div class="absolute top-0 end-0 mt-4 me-4">
                <ui-close data-flux-modal-close >
    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md w-8 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white      text-zinc-400! hover:text-zinc-800! dark:text-zinc-500! dark:hover:text-white!" data-flux-button="data-flux-button" aria-label="Close modal">
        <svg class="shrink-0 [:where(&amp;)]:size-5" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"/>
</svg>
    </button>
</ui-close>
            </div>
            </dialog>
</ui-modal>
</div>
        </div>
    </div>

            </div>
    </nav>

    
    
            <div wire:key="lw-3449780231-1" wire:snapshot="{&quot;data&quot;:{&quot;areaStatus&quot;:null},&quot;memo&quot;:{&quot;id&quot;:&quot;i4MWwUCTPuLshi9hbxNJ&quot;,&quot;name&quot;:&quot;area-status-banner&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;6e7b19f13540e39fbbe0708a66d7a73d9526f830ee4a27795d46b244c9eb9b63&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;listeners&quot;:[&quot;areaChanged&quot;]}" wire:id="i4MWwUCTPuLshi9hbxNJ" wire:name="area-status-banner">
</div>
            
            <main>
                <div class="py-2">
        <div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
            <div wire:key="lw-3124301730-0" wire:snapshot="{&quot;data&quot;:{&quot;geoJsonData&quot;:null},&quot;memo&quot;:{&quot;id&quot;:&quot;zxLwsqFHiyYdm6PoKNMr&quot;,&quot;name&quot;:&quot;why-us&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;e114decd1434be0791ae7084f410007681b0f1000c81dd47688aff6dcf041cd4&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;listeners&quot;:[&quot;areaChanged&quot;]}" wire:id="zxLwsqFHiyYdm6PoKNMr" wire:name="why-us"
    id="why-us-carousel"
    class="relative z-20 w-full"
    x-data="{
        activeSlide: 0,
        totalSlides: 2,
        autoplayInterval: null,
        init() {
            this.startAutoplay()
        },
        next() {
            this.activeSlide = (this.activeSlide + 1) % this.totalSlides
        },
        prev() {
            this.activeSlide =
                (this.activeSlide - 1 + this.totalSlides) % this.totalSlides
        },
        goTo(index) {
            this.activeSlide = index
        },
        startAutoplay() {
            this.autoplayInterval = setInterval(() => this.next(), 7000)
        },
        stopAutoplay() {
            clearInterval(this.autoplayInterval)
        },
    }"
    x-on:mouseenter="stopAutoplay()"
    x-on:mouseleave="startAutoplay()"
>
    <!-- Carousel wrapper -->
    <div class="relative h-56 overflow-hidden rounded-lg md:h-96">
        <!-- Slide 1 -->
        <div
            class="absolute inset-0 transition-opacity duration-700 ease-in-out"
            x-show="activeSlide === 0"
            x-transition:enter="transition duration-700 ease-out"
            x-transition:enter-start="opacity-0"
            x-transition:enter-end="opacity-100"
            x-transition:leave="transition duration-700 ease-in"
            x-transition:leave-start="opacity-100"
            x-transition:leave-end="opacity-0"
        >
            <img
                src="/img/why-us/more-than-one-restaurant.png"
                class="absolute top-1/2 left-1/2 block w-full -translate-x-1/2 -translate-y-1/2"
                alt="..."
            />
            <!-- Text Overlay -->
            <div class="absolute left-0 flex h-full w-1/3 items-center justify-center">
                <p
                    class="text-right text-[4vw] leading-none font-bold text-black sm:text-[3vw] md:text-[4vw] lg:text-[4vw] xl:text-[3vw] 2xl:text-[2vw]"
                >
                    Vienu metu užsisakykite iš kelių restoranų ar parduotuvių ir maistas bus pristatytas tuo pačiu metu vieno kurjerio.
                </p>
            </div>
        </div>

        <!-- Slide 2 -->
        <div
            class="absolute inset-0 transition-opacity duration-700 ease-in-out"
            x-show="activeSlide === 1"
            x-transition:enter="transition duration-700 ease-out"
            x-transition:enter-start="opacity-0"
            x-transition:enter-end="opacity-100"
            x-transition:leave="transition duration-700 ease-in"
            x-transition:leave-start="opacity-100"
            x-transition:leave-end="opacity-0"
        >
            <img
                src="/img/why-us/order-together.png"
                class="absolute top-1/2 left-1/2 block w-full -translate-x-1/2 -translate-y-1/2"
                alt="..."
            />
            <!-- Two Overlays -->
            <div class="absolute flex w-full">
                <!-- Left Overlay -->
                <div class="flex h-full w-1/2 items-end justify-end">
                    <p
                        class="shadow-stroke-white text-right text-[4vw] leading-tight font-bold text-black sm:text-[4vw] md:text-[4vw] lg:text-[4vw] xl:text-[3.5vw] 2xl:text-[3vw]"
                    >
                        Užsisakykite vienu metu su draugais.
                    </p>
                </div>
                <!-- Right Overlay -->
                <div class="flex h-full w-1/2 items-end justify-start">
                    <p
                        class="shadow-stroke-black text-left text-[8vw] leading-tight font-bold text-red-500 sm:text-[6vw] md:text-[5vw] lg:text-[4vw] xl:text-[3.5vw] 2xl:text-[3vw]"
                    >
                        Nelaukite eilėje.
                    </p>
                </div>
            </div>
        </div>
    </div>

    <!-- Slider indicators -->
    <div
        class="absolute bottom-5 left-1/2 z-30 flex -translate-x-1/2 space-x-3 rtl:space-x-reverse"
    >
        <template x-for="(slide, index) in totalSlides" :key="index">
            <button
                type="button"
                class="h-3 w-3 rounded-full transition-colors duration-300"
                :class="activeSlide === index ? 'bg-white dark:bg-gray-800' : 'bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800'"
                :aria-current="activeSlide === index"
                :aria-label="'Slide ' + (index + 1)"
                x-on:click="goTo(index)"
            ></button>
        </template>
    </div>

    <!-- Slider controls -->
    <button
        type="button"
        class="absolute start-0 top-0 z-30 flex h-full cursor-pointer items-center justify-center px-4 focus:outline-none"
        x-on:click="prev()"
    >
        <span
            class="inline-flex h-10 w-10 items-center justify-center rounded-full bg-white/30 hover:bg-white/50 focus:ring-4 focus:ring-white focus:outline-none dark:bg-gray-800/30 dark:hover:bg-gray-800/60 dark:focus:ring-gray-800/70"
        >
            <svg
                class="h-4 w-4 text-white rtl:rotate-180 dark:text-gray-800"
                aria-hidden="true"
                xmlns="http://www.w3.org/2000/svg"
                fill="none"
                viewBox="0 0 6 10"
            >
                <path
                    stroke="currentColor"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    stroke-width="2"
                    d="M5 1 1 5l4 4"
                />
            </svg>
            <span class="sr-only">Previous</span>
        </span>
    </button>
    <button
        type="button"
        class="absolute end-0 top-0 z-30 flex h-full cursor-pointer items-center justify-center px-4 focus:outline-none"
        x-on:click="next()"
    >
        <span
            class="inline-flex h-10 w-10 items-center justify-center rounded-full bg-white/30 hover:bg-white/50 focus:ring-4 focus:ring-white focus:outline-none dark:bg-gray-800/30 dark:hover:bg-gray-800/60 dark:focus:ring-gray-800/70"
        >
            <svg
                class="h-4 w-4 text-white rtl:rotate-180 dark:text-gray-800"
                aria-hidden="true"
                xmlns="http://www.w3.org/2000/svg"
                fill="none"
                viewBox="0 0 6 10"
            >
                <path
                    stroke="currentColor"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    stroke-width="2"
                    d="m1 9 4-4-4-4"
                />
            </svg>
            <span class="sr-only">Next</span>
        </span>
    </button>
</div>
        </div>
    </div>

    <div class="py-2">
        <div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
            <div wire:key="lw-3124301730-1" wire:snapshot="{&quot;data&quot;:{&quot;areaSlug&quot;:null,&quot;partnerSlug&quot;:null,&quot;slug2&quot;:null,&quot;area&quot;:null,&quot;partnersAddresses&quot;:[[],{&quot;class&quot;:&quot;Illuminate\\Support\\Collection&quot;,&quot;s&quot;:&quot;clctn&quot;}],&quot;allPartners&quot;:[[],{&quot;class&quot;:&quot;Illuminate\\Support\\Collection&quot;,&quot;s&quot;:&quot;clctn&quot;}],&quot;partner&quot;:null,&quot;show_header&quot;:true,&quot;show_filters&quot;:true,&quot;show_area&quot;:true,&quot;show_description&quot;:true,&quot;show_advertisement&quot;:true,&quot;show_delivery_info&quot;:true,&quot;useContainer&quot;:false,&quot;view&quot;:&quot;partners&quot;,&quot;filteredCount&quot;:0,&quot;totalRestaurantsInArea&quot;:0,&quot;isWelcomeView&quot;:true,&quot;areaComingSoon&quot;:false,&quot;areas&quot;:[null,{&quot;keys&quot;:[1,2,3,4,5,8,12,13,20],&quot;class&quot;:&quot;Illuminate\\Database\\Eloquent\\Collection&quot;,&quot;modelClass&quot;:&quot;App\\Models\\Area&quot;,&quot;s&quot;:&quot;elcln&quot;}],&quot;nearbyPartners&quot;:null,&quot;clientLocation&quot;:null,&quot;isOpen&quot;:false,&quot;isAvailableForPickup&quot;:false,&quot;isServingAlcohol&quot;:false,&quot;acceptsEatingIn&quot;:false,&quot;selectedCuisines&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;cuisineSlugs&quot;:&quot;&quot;,&quot;deliveryTime&quot;:&quot;asap&quot;,&quot;sort_by&quot;:&quot;most_popular&quot;,&quot;topCuisines&quot;:null,&quot;paginators&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}]},&quot;memo&quot;:{&quot;id&quot;:&quot;UAU6e89vFOuzsNbI5Y5R&quot;,&quot;name&quot;:&quot;partner&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:{&quot;delivery-time-filter&quot;:[&quot;div&quot;,&quot;hz1xowRZZX2hFQ0XZoxX&quot;]},&quot;scripts&quot;:[&quot;3328623054-0&quot;],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;0ad5e31f5f692a267ceff35e4bcbe52fe9f44b93c08813760a104c203a199934&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;scripts&quot;:{&quot;3328623054-0&quot;:&quot;    &lt;script&gt;\n        \/\/ When the area is changed (e.g. city selected in AreaSwitcher),\n        \/\/ gently scroll users down to the partners section so they can\n        \/\/ immediately see the loaded restaurants \/ filters.\n        (function () {\n            if (window.__ambaPartnersAreaScrollBound) {\n                return;\n            }\n            window.__ambaPartnersAreaScrollBound = true;\n\n            function bindAreaChangedScroll() {\n                if (typeof Livewire === &#039;undefined&#039; || !Livewire.on) {\n                    return;\n                }\n\n                try {\n                    Livewire.on(&#039;areaChanged&#039;, () =&gt; {\n                        \/\/ Allow Livewire DOM updates to complete first.\n                        setTimeout(() =&gt; {\n                            const target =\n                                document.getElementById(&#039;partners-filters&#039;) ||\n                                document.getElementById(&#039;partners-list&#039;);\n\n                            if (target &amp;&amp; typeof target.scrollIntoView === &#039;function&#039;) {\n                                try {\n                                    target.scrollIntoView({\n                                        behavior: &#039;smooth&#039;,\n                                        block: &#039;start&#039;,\n                                    });\n                                } catch (e) {\n                                    \/\/ Fallback without smooth scrolling if Safari\/WebView complains.\n                                    target.scrollIntoView();\n                                }\n                            }\n                        }, 400);\n                    });\n                } catch (e) {\n                    console.warn(&#039;Partners: Failed to bind areaChanged scroll listener&#039;, e);\n                }\n            }\n\n            if (document.readyState === &#039;loading&#039;) {\n                document.addEventListener(&#039;DOMContentLoaded&#039;, bindAreaChangedScroll);\n            } else {\n                bindAreaChangedScroll();\n            }\n        })();\n    &lt;\/script&gt;\n        &quot;},&quot;url&quot;:{&quot;isOpen&quot;:{&quot;as&quot;:&quot;isOpen&quot;,&quot;use&quot;:&quot;push&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:false},&quot;isAvailableForPickup&quot;:{&quot;as&quot;:&quot;isAvailableForPickup&quot;,&quot;use&quot;:&quot;push&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:false},&quot;isServingAlcohol&quot;:{&quot;as&quot;:&quot;isServingAlcohol&quot;,&quot;use&quot;:&quot;push&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:false},&quot;acceptsEatingIn&quot;:{&quot;as&quot;:&quot;acceptsEatingIn&quot;,&quot;use&quot;:&quot;push&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:false},&quot;cuisineSlugs&quot;:{&quot;as&quot;:&quot;cuisines&quot;,&quot;use&quot;:&quot;push&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:&quot;&quot;},&quot;deliveryTime&quot;:{&quot;as&quot;:&quot;deliveryTime&quot;,&quot;use&quot;:&quot;push&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:&quot;asap&quot;},&quot;sort_by&quot;:{&quot;as&quot;:&quot;sort_by&quot;,&quot;use&quot;:&quot;push&quot;,&quot;alwaysShow&quot;:false,&quot;except&quot;:&quot;most_popular&quot;}},&quot;listeners&quot;:[&quot;deliveryTimeSelected&quot;,&quot;areaChanged&quot;,&quot;dismissGeoIpSuggestion&quot;,&quot;clientLocationChanged&quot;,&quot;deliveryAddressSelected&quot;,&quot;orderContextChanged&quot;,&quot;partnerStatusChanged&quot;,&quot;updateAvailability&quot;],&quot;dispatches&quot;:[{&quot;name&quot;:&quot;geoIpAreaDetected&quot;,&quot;params&quot;:[{&quot;areaSlug&quot;:&quot;klaipeda&quot;,&quot;areaName&quot;:&quot;Klaip\u0117da&quot;}]}]}" wire:id="UAU6e89vFOuzsNbI5Y5R" wire:name="partner" class="">
            <div
            data-waiting-for-location
            x-data="{
                geoIpArea: null,
                showSuggestion: false,
                init() {
                    // Listen for GeoIP area detection (from AreaSwitcher or Partners module itself)
                    if (typeof Livewire !== 'undefined') {
                        Livewire.on('geoIpAreaDetected', (data) => {
                            console.log('Partners: Received GeoIP area event:', data);
                            console.log('Partners: Data type:', typeof data, 'Is array:', Array.isArray(data));

                            // Handle both array and object formats
                            let areaData = null;
                            if (Array.isArray(data) && data.length > 0) {
                                console.log('Partners: Data is array, using first element:', data[0]);
                                areaData = data[0];
                            } else if (data && typeof data === 'object' && !Array.isArray(data)) {
                                console.log('Partners: Data is object, using directly:', data);
                                areaData = data;
                            }

                            console.log('Partners: Extracted areaData:', areaData);
                            console.log('Partners: Has areaSlug:', areaData?.areaSlug, 'Has areaName:', areaData?.areaName);

                            if (areaData && areaData.areaSlug && areaData.areaName) {
                                this.geoIpArea = areaData;
                                this.showSuggestion = true;
                                console.log('Partners: ✅ Showing suggestion for area:', areaData.areaName);
                            } else {
                                console.warn('Partners: ❌ Invalid GeoIP data received:', data, 'areaData:', areaData);
                            }
                        });
                    }

                    // Hard fallback: if nothing detected within a reasonable time,
                    // ask AreaSwitcher to use the default area so users don't see
                    // an infinite loading screen (especially on Safari).
                    const fallbackTimeoutMs = 20000;
                    setTimeout(() => {
                        try {
                            if (!this.geoIpArea && typeof Livewire !== 'undefined' && Livewire.dispatch) {
                                console.log('Partners: Fallback timeout reached, using default area via dismissGeoIpSuggestion');
                                Livewire.dispatch('dismissGeoIpSuggestion');
                                // Safety: if still waiting after 2.5s (e.g. Safari iOS event not applied), reload so session/default area is used
                                setTimeout(() => {
                                    if (document.querySelector('[data-waiting-for-location]')) {
                                        console.log('Partners: Fallback reload (still waiting)');
                                        window.location.reload();
                                    }
                                }, 2500);
                            }
                        } catch (e) {
                            console.error('Partners: Error in location fallback timeout', e);
                        }
                    }, fallbackTimeoutMs);
                },
                acceptArea() {
                    console.log('Partners: acceptArea called', { geoIpArea: this.geoIpArea });
                    if (this.geoIpArea) {
                        try {
                            const areaSlug = this.geoIpArea.areaSlug || (this.geoIpArea[0] && this.geoIpArea[0].areaSlug);
                            console.log('Partners: Dispatching acceptGeoIpArea event', { areaSlug: areaSlug, fullData: this.geoIpArea });

                            // Dispatch Livewire event to accept the area
                            if (typeof Livewire !== 'undefined' && Livewire.dispatch) {
                                try {
                                    console.log('Partners: Dispatching acceptGeoIpArea event', { areaSlug });
                                    // Dispatch event - the handleAcceptGeoIpArea listener will catch it
                                    Livewire.dispatch('acceptGeoIpArea', areaSlug);
                                    console.log('Partners: Event dispatched, hiding suggestion');
                                    this.showSuggestion = false;
                                } catch (dispatchError) {
                                    console.error('Partners: Error dispatching event:', dispatchError);
                                    // Fallback: try to find AreaSwitcher component directly
                                    const areaSwitcherElement = document.querySelector('[wire\\:id]');
                                    if (areaSwitcherElement) {
                                        const wireId = areaSwitcherElement.getAttribute('wire:id');
                                        if (wireId && Livewire.find) {
                                            const component = Livewire.find(wireId);
                                            if (component && typeof component.acceptGeoIpArea === 'function') {
                                                component.acceptGeoIpArea(areaSlug);
                                                this.showSuggestion = false;
                                            }
                                        }
                                    }
                                }
                            } else {
                                console.error('Partners: Livewire not available');
                            }
                        } catch(e) {
                            console.error('Partners: Error accepting GeoIP area:', e);
                        }
                    } else {
                        console.warn('Partners: No geoIpArea data available');
                    }
                },
                dismissSuggestion() {
                    // User rejected GeoIP suggestion - open AreaSwitcher modal without setting default area
                    this.showSuggestion = false;
                    // Note: Not dispatching 'dismissGeoIpSuggestion' to avoid setting default area
                    // Open AreaSwitcher modal for manual area selection
                    if (window.Flux && window.Flux.modal) {
                        window.Flux.modal('area-switcher-modal').show();
                    }
                }
            }"
        >
            <div class="flex min-h-[60vh] flex-col items-center justify-center gap-4">
                <!-- GeoIP Suggestion - shown in Partners module when received from AreaSwitcher -->
                <div
                    x-show="showSuggestion && geoIpArea"
                    x-cloak
                    class="w-full max-w-md"
                >
                    <div class="flex items-center justify-end gap-2 rounded-lg border-2 border-orange-500 bg-orange-50 px-4 py-3 dark:border-orange-400 dark:bg-orange-900/20">
                        <span class="flex-1 text-right text-lg font-semibold text-orange-900 dark:text-orange-100">
                            Jūsų vieta: <span x-text="geoIpArea?.areaName"></span>?
                        </span>
                        <div class="relative h-6 w-6 shrink-0">
                            <svg class="h-6 w-6 text-orange-600 dark:text-orange-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" />
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z" />
                            </svg>
                        </div>
                        <div class="flex shrink-0 gap-2">
                            <button
                                @click.stop="acceptArea()"
                                class="rounded-md bg-orange-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-orange-700 cursor-pointer"
                            >
                                Taip
                            </button>
                            <button
                                @click.stop="dismissSuggestion()"
                                class="rounded-md border border-orange-300 bg-white px-4 py-2 text-sm font-medium text-orange-700 transition-colors hover:bg-orange-50 dark:border-orange-600 dark:bg-gray-800 dark:text-orange-300 dark:hover:bg-gray-700 cursor-pointer"
                            >
                                Ne
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Detecting location message -->
                <div class="flex w-full items-center justify-end gap-2 px-4">
                    <span class="flex-1 text-right text-2xl font-bold text-gray-800 dark:text-white">
                        Nustatoma vieta...
                    </span>
                    <div class="relative h-6 w-6 shrink-0">
                        <svg
                            xmlns="http://www.w3.org/2000/svg"
                            fill="none"
                            viewBox="0 0 24 24"
                            stroke-width="1.5"
                            stroke="currentColor"
                            class="h-6 w-6 animate-pulse text-orange-600"
                        >
                            <path
                                stroke-linecap="round"
                                stroke-linejoin="round"
                                d="M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
                            />
                            <path
                                stroke-linecap="round"
                                stroke-linejoin="round"
                                d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"
                            />
                        </svg>
                        <span class="absolute inset-0 flex items-center justify-center">
                            <span class="h-2.5 w-2.5 animate-ping rounded-full bg-orange-600 opacity-75"></span>
                        </span>
                    </div>
                </div>
            </div>
        </div>
    
    
    
    <!-- Filters Modal -->
    <ui-modal  data-flux-modal>
    
    <dialog
        wire:ignore.self 
        class="p-6 [:where(&amp;)]:max-w-xl [:where(&amp;)]:min-w-xs shadow-lg rounded-xl bg-white dark:bg-zinc-800 ring ring-black/5 dark:ring-zinc-700 shadow-lg rounded-xl max-w-4xl"
         data-modal="filters-modal"                         x-data="fluxModal('filters-modal', 'UAU6e89vFOuzsNbI5Y5R')"
                x-on:modal-show.document="handleShow($event)"
        x-on:modal-close.document="handleClose($event)"
    >
        <!-- Close Button -->
        <button
            type="button"
            x-on:click="$flux.modal('filters-modal').close()"
            class="absolute right-4 top-4 z-20 flex h-8 w-8 cursor-pointer shrink-0 items-center justify-center rounded-lg bg-white/80 backdrop-blur-sm text-gray-500 shadow-sm hover:bg-white hover:text-gray-700 dark:bg-gray-800/80 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white"
        >
            <svg class="h-5 w-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    stroke-width="2"
                    d="M6 18L18 6M6 6l12 12"
                />
            </svg>
        </button>

        <div class="space-y-6">
            <div class="flex items-center gap-2">
                <div class="font-medium [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white text-sm [&amp;:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&amp;]:mt-2" data-flux-heading>Filtrai ir rūšiavimas</div>
            </div>

            <form class="space-y-6">
                <!-- Sort By - Only show for list view, not map view -->
                                    <div class="space-y-3">
                        <div class="flex items-center gap-2">
                            <svg class="shrink-0 [:where(&amp;)]:size-6 h-4 w-4 text-gray-600 dark:text-gray-400" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
  <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"/>
</svg>

                                    <div class="text-sm [:where(&amp;)]:text-zinc-500 [:where(&amp;)]:dark:text-white/70 text-gray-900 dark:text-white" data-flux-subheading>
    Rūšiuoti
</div>
                        </div>
                        <div class="space-y-2">
                            <ui-radio-group class="*:data-flux-field:mb-3 [&amp;&gt;[data-flux-field]:has(&gt;[data-flux-description])]:mb-4 [&amp;&gt;[data-flux-field]:last-child]:mb-0! [&_ui-radio]:cursor-pointer [&_label]:cursor-pointer [&_[data-flux-label]]:cursor-pointer [&_span]:cursor-pointer" wire:model.live="sort_by"  data-flux-radio-group>
        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 grid gap-x-3 gap-y-1.5 has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto] has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr] [&amp;&gt;[data-flux-control]~[data-flux-description]]:row-start-2 [&amp;&gt;[data-flux-control]~[data-flux-description]]:col-start-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:col-span-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:mt-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:row-start-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:col-start-2" data-flux-field>
    <ui-radio class="flex size-[1.125rem] rounded-full mt-px outline-offset-2" value="most_popular" label="Populiariausi" data-flux-control data-flux-radio tabindex="-1">
        <div class="shrink-0 size-[1.125rem] rounded-full text-sm text-zinc-700 dark:text-zinc-800 shadow-xs [ui-radio[disabled]_&amp;]:opacity-75 [ui-radio[data-checked][disabled]_&amp;]:opacity-50 [ui-radio[disabled]_&amp;]:shadow-none [ui-radio[data-checked]_&amp;]:shadow-none flex justify-center items-center [ui-radio[data-checked]_&amp;&gt;div]:block border border-zinc-300 dark:border-white/10 [ui-radio[disabled]_&amp;]:border-zinc-200 dark:[ui-radio[disabled]_&amp;]:border-white/5 [ui-radio[data-checked]_&amp;]:border-transparent data-indeterminate:border-transparent [ui-radio[data-checked]_&amp;]:[ui-radio[disabled]_&amp;]:border-transparent data-indeterminate:border-transparent [print-color-adjust:exact] bg-white dark:bg-white/10 [ui-radio[data-checked]_&amp;]:bg-[var(--color-accent)] hover:[ui-radio[data-checked]_&amp;]:bg-(--color-accent) focus:[ui-radio[data-checked]_&amp;]:bg-(--color-accent)" data-flux-radio-indicator>
    <div class="hidden size-2 rounded-full bg-[var(--color-accent-foreground)]"></div>
</div>
    </ui-radio>

                    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Populiariausi

    
    
    </ui-label>
        
        
        <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>

                                <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 grid gap-x-3 gap-y-1.5 has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto] has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr] [&amp;&gt;[data-flux-control]~[data-flux-description]]:row-start-2 [&amp;&gt;[data-flux-control]~[data-flux-description]]:col-start-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:col-span-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:mt-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:row-start-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:col-start-2" data-flux-field>
    <ui-radio class="flex size-[1.125rem] rounded-full mt-px outline-offset-2" value="recommended" label="Labiausiai rekomenduojami" data-flux-control data-flux-radio tabindex="-1">
        <div class="shrink-0 size-[1.125rem] rounded-full text-sm text-zinc-700 dark:text-zinc-800 shadow-xs [ui-radio[disabled]_&amp;]:opacity-75 [ui-radio[data-checked][disabled]_&amp;]:opacity-50 [ui-radio[disabled]_&amp;]:shadow-none [ui-radio[data-checked]_&amp;]:shadow-none flex justify-center items-center [ui-radio[data-checked]_&amp;&gt;div]:block border border-zinc-300 dark:border-white/10 [ui-radio[disabled]_&amp;]:border-zinc-200 dark:[ui-radio[disabled]_&amp;]:border-white/5 [ui-radio[data-checked]_&amp;]:border-transparent data-indeterminate:border-transparent [ui-radio[data-checked]_&amp;]:[ui-radio[disabled]_&amp;]:border-transparent data-indeterminate:border-transparent [print-color-adjust:exact] bg-white dark:bg-white/10 [ui-radio[data-checked]_&amp;]:bg-[var(--color-accent)] hover:[ui-radio[data-checked]_&amp;]:bg-(--color-accent) focus:[ui-radio[data-checked]_&amp;]:bg-(--color-accent)" data-flux-radio-indicator>
    <div class="hidden size-2 rounded-full bg-[var(--color-accent-foreground)]"></div>
</div>
    </ui-radio>

                    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Labiausiai rekomenduojami

    
    
    </ui-label>
        
        
        <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>

                                <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 grid gap-x-3 gap-y-1.5 has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto] has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr] [&amp;&gt;[data-flux-control]~[data-flux-description]]:row-start-2 [&amp;&gt;[data-flux-control]~[data-flux-description]]:col-start-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:col-span-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:mt-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:row-start-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:col-start-2" data-flux-field>
    <ui-radio class="flex size-[1.125rem] rounded-full mt-px outline-offset-2" value="delivery_price" label="Pristatymo kaina" data-flux-control data-flux-radio tabindex="-1">
        <div class="shrink-0 size-[1.125rem] rounded-full text-sm text-zinc-700 dark:text-zinc-800 shadow-xs [ui-radio[disabled]_&amp;]:opacity-75 [ui-radio[data-checked][disabled]_&amp;]:opacity-50 [ui-radio[disabled]_&amp;]:shadow-none [ui-radio[data-checked]_&amp;]:shadow-none flex justify-center items-center [ui-radio[data-checked]_&amp;&gt;div]:block border border-zinc-300 dark:border-white/10 [ui-radio[disabled]_&amp;]:border-zinc-200 dark:[ui-radio[disabled]_&amp;]:border-white/5 [ui-radio[data-checked]_&amp;]:border-transparent data-indeterminate:border-transparent [ui-radio[data-checked]_&amp;]:[ui-radio[disabled]_&amp;]:border-transparent data-indeterminate:border-transparent [print-color-adjust:exact] bg-white dark:bg-white/10 [ui-radio[data-checked]_&amp;]:bg-[var(--color-accent)] hover:[ui-radio[data-checked]_&amp;]:bg-(--color-accent) focus:[ui-radio[data-checked]_&amp;]:bg-(--color-accent)" data-flux-radio-indicator>
    <div class="hidden size-2 rounded-full bg-[var(--color-accent-foreground)]"></div>
</div>
    </ui-radio>

                    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Pristatymo kaina

    
    
    </ui-label>
        
        
        <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>

                                <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 grid gap-x-3 gap-y-1.5 has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto] has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr] [&amp;&gt;[data-flux-control]~[data-flux-description]]:row-start-2 [&amp;&gt;[data-flux-control]~[data-flux-description]]:col-start-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:col-span-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:mt-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:row-start-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:col-start-2" data-flux-field>
    <ui-radio class="flex size-[1.125rem] rounded-full mt-px outline-offset-2" value="delivery_speed" label="Pristatymo greitis" data-flux-control data-flux-radio tabindex="-1">
        <div class="shrink-0 size-[1.125rem] rounded-full text-sm text-zinc-700 dark:text-zinc-800 shadow-xs [ui-radio[disabled]_&amp;]:opacity-75 [ui-radio[data-checked][disabled]_&amp;]:opacity-50 [ui-radio[disabled]_&amp;]:shadow-none [ui-radio[data-checked]_&amp;]:shadow-none flex justify-center items-center [ui-radio[data-checked]_&amp;&gt;div]:block border border-zinc-300 dark:border-white/10 [ui-radio[disabled]_&amp;]:border-zinc-200 dark:[ui-radio[disabled]_&amp;]:border-white/5 [ui-radio[data-checked]_&amp;]:border-transparent data-indeterminate:border-transparent [ui-radio[data-checked]_&amp;]:[ui-radio[disabled]_&amp;]:border-transparent data-indeterminate:border-transparent [print-color-adjust:exact] bg-white dark:bg-white/10 [ui-radio[data-checked]_&amp;]:bg-[var(--color-accent)] hover:[ui-radio[data-checked]_&amp;]:bg-(--color-accent) focus:[ui-radio[data-checked]_&amp;]:bg-(--color-accent)" data-flux-radio-indicator>
    <div class="hidden size-2 rounded-full bg-[var(--color-accent-foreground)]"></div>
</div>
    </ui-radio>

                    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Pristatymo greitis

    
    
    </ui-label>
        
        
        <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>

                                <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 grid gap-x-3 gap-y-1.5 has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto] has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr] [&amp;&gt;[data-flux-control]~[data-flux-description]]:row-start-2 [&amp;&gt;[data-flux-control]~[data-flux-description]]:col-start-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:col-span-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:mt-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:row-start-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:col-start-2" data-flux-field>
    <ui-radio class="flex size-[1.125rem] rounded-full mt-px outline-offset-2 :disabled:opacity-50 :disabled:cursor-not-allowed" value="nearest" label="Artimiausi manęs" disabled="disabled" data-flux-control data-flux-radio tabindex="-1">
        <div class="shrink-0 size-[1.125rem] rounded-full text-sm text-zinc-700 dark:text-zinc-800 shadow-xs [ui-radio[disabled]_&amp;]:opacity-75 [ui-radio[data-checked][disabled]_&amp;]:opacity-50 [ui-radio[disabled]_&amp;]:shadow-none [ui-radio[data-checked]_&amp;]:shadow-none flex justify-center items-center [ui-radio[data-checked]_&amp;&gt;div]:block border border-zinc-300 dark:border-white/10 [ui-radio[disabled]_&amp;]:border-zinc-200 dark:[ui-radio[disabled]_&amp;]:border-white/5 [ui-radio[data-checked]_&amp;]:border-transparent data-indeterminate:border-transparent [ui-radio[data-checked]_&amp;]:[ui-radio[disabled]_&amp;]:border-transparent data-indeterminate:border-transparent [print-color-adjust:exact] bg-white dark:bg-white/10 [ui-radio[data-checked]_&amp;]:bg-[var(--color-accent)] hover:[ui-radio[data-checked]_&amp;]:bg-(--color-accent) focus:[ui-radio[data-checked]_&amp;]:bg-(--color-accent)" data-flux-radio-indicator>
    <div class="hidden size-2 rounded-full bg-[var(--color-accent-foreground)]"></div>
</div>
    </ui-radio>

                    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Artimiausi manęs

    
    
    </ui-label>
        
        
        <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>
    </ui-radio-group>

                                                            <div class="mt-2 text-sm text-orange-600 dark:text-orange-400">
                                    <div class="flex items-center">
                                        <svg class="shrink-0 [:where(&amp;)]:size-6 mr-1 h-4 w-4" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
  <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"/>
</svg>

                                                Pridėkite pristatymo adresą, kad galėtumėte naudoti &quot;Artimiausi manęs&quot; filtrą
                                    </div>
                                </div>
                                                    </div>
                    </div>
                
                <!-- Filters -->
                <div class="space-y-3">
                    <div class="flex items-center gap-2">
                        <svg class="shrink-0 [:where(&amp;)]:size-6 h-4 w-4 text-gray-600 dark:text-gray-400" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
  <path stroke-linecap="round" stroke-linejoin="round" d="M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"/>
</svg>

                                <div class="text-sm [:where(&amp;)]:text-zinc-500 [:where(&amp;)]:dark:text-white/70 text-gray-900 dark:text-white" data-flux-subheading>
    Filtrai
</div>
                    </div>
                    <div class="space-y-2 [&_ui-checkbox]:cursor-pointer [&_label]:cursor-pointer [&_[data-flux-label]]:cursor-pointer [&_span]:cursor-pointer">
                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 grid gap-x-3 gap-y-1.5 has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto] has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr] [&amp;&gt;[data-flux-control]~[data-flux-description]]:row-start-2 [&amp;&gt;[data-flux-control]~[data-flux-description]]:col-start-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:col-span-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:mt-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:row-start-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:col-start-2" data-flux-field>
    <ui-checkbox class="flex size-[1.125rem] rounded-[.3rem] mt-px outline-offset-2" wire:model.live="isOpen" label="Atidaryta"  data-flux-control data-flux-checkbox>
        <div class="shrink-0 size-[1.125rem] rounded-[.3rem] flex justify-center items-center text-sm text-zinc-700 dark:text-zinc-800 shadow-xs [ui-checkbox[disabled]_&amp;]:opacity-75 [ui-checkbox[data-checked][disabled]_&amp;]:opacity-50 [ui-checkbox[disabled]_&amp;]:shadow-none [ui-checkbox[data-checked]_&amp;]:shadow-none [ui-checkbox[data-indeterminate]_&amp;]:shadow-none [ui-checkbox[data-checked]:not([data-indeterminate])_&amp;&gt;svg:first-child]:block [ui-checkbox[data-indeterminate]_&amp;&gt;svg:last-child]:block border border-zinc-300 dark:border-white/10 [ui-checkbox[disabled]_&amp;]:border-zinc-200 dark:[ui-checkbox[disabled]_&amp;]:border-white/5 [ui-checkbox[data-checked]_&amp;]:border-transparent [ui-checkbox[data-indeterminate]_&amp;]:border-transparent [ui-checkbox[disabled][data-checked]_&amp;]:border-transparent [ui-checkbox[disabled][data-indeterminate]_&amp;]:border-transparent [print-color-adjust:exact] bg-white dark:bg-white/10 [ui-checkbox[data-checked]_&amp;]:bg-[var(--color-accent)] hover:[ui-checkbox[data-checked]_&amp;]:bg-(--color-accent) focus:[ui-checkbox[data-checked]_&amp;]:bg-(--color-accent) [ui-checkbox[data-indeterminate]_&amp;]:bg-[var(--color-accent)] hover:[ui-checkbox[data-indeterminate]_&amp;]:bg-(--color-accent) focus:[ui-checkbox[data-indeterminate]_&amp;]:bg-(--color-accent)" data-flux-checkbox-indicator>
    <svg class="shrink-0 [:where(&amp;)]:size-4 hidden text-[var(--color-accent-foreground)]" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z" clip-rule="evenodd"/>
</svg>

            <svg class="shrink-0 [:where(&amp;)]:size-4 hidden text-[var(--color-accent-foreground)]" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M3.75 7.25a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Z"/>
</svg>

        </div>
    </ui-checkbox>

                    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Atidaryta

    
    
    </ui-label>
        
        
        <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>

                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 grid gap-x-3 gap-y-1.5 has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto] has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr] [&amp;&gt;[data-flux-control]~[data-flux-description]]:row-start-2 [&amp;&gt;[data-flux-control]~[data-flux-description]]:col-start-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:col-span-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:mt-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:row-start-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:col-start-2" data-flux-field>
    <ui-checkbox class="flex size-[1.125rem] rounded-[.3rem] mt-px outline-offset-2" wire:model.live="isServingAlcohol" label="Parduoda alkoholį"  data-flux-control data-flux-checkbox>
        <div class="shrink-0 size-[1.125rem] rounded-[.3rem] flex justify-center items-center text-sm text-zinc-700 dark:text-zinc-800 shadow-xs [ui-checkbox[disabled]_&amp;]:opacity-75 [ui-checkbox[data-checked][disabled]_&amp;]:opacity-50 [ui-checkbox[disabled]_&amp;]:shadow-none [ui-checkbox[data-checked]_&amp;]:shadow-none [ui-checkbox[data-indeterminate]_&amp;]:shadow-none [ui-checkbox[data-checked]:not([data-indeterminate])_&amp;&gt;svg:first-child]:block [ui-checkbox[data-indeterminate]_&amp;&gt;svg:last-child]:block border border-zinc-300 dark:border-white/10 [ui-checkbox[disabled]_&amp;]:border-zinc-200 dark:[ui-checkbox[disabled]_&amp;]:border-white/5 [ui-checkbox[data-checked]_&amp;]:border-transparent [ui-checkbox[data-indeterminate]_&amp;]:border-transparent [ui-checkbox[disabled][data-checked]_&amp;]:border-transparent [ui-checkbox[disabled][data-indeterminate]_&amp;]:border-transparent [print-color-adjust:exact] bg-white dark:bg-white/10 [ui-checkbox[data-checked]_&amp;]:bg-[var(--color-accent)] hover:[ui-checkbox[data-checked]_&amp;]:bg-(--color-accent) focus:[ui-checkbox[data-checked]_&amp;]:bg-(--color-accent) [ui-checkbox[data-indeterminate]_&amp;]:bg-[var(--color-accent)] hover:[ui-checkbox[data-indeterminate]_&amp;]:bg-(--color-accent) focus:[ui-checkbox[data-indeterminate]_&amp;]:bg-(--color-accent)" data-flux-checkbox-indicator>
    <svg class="shrink-0 [:where(&amp;)]:size-4 hidden text-[var(--color-accent-foreground)]" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z" clip-rule="evenodd"/>
</svg>

            <svg class="shrink-0 [:where(&amp;)]:size-4 hidden text-[var(--color-accent-foreground)]" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M3.75 7.25a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Z"/>
</svg>

        </div>
    </ui-checkbox>

                    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Parduoda alkoholį

    
    
    </ui-label>
        
        
        <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>

                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 grid gap-x-3 gap-y-1.5 has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto] has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr] [&amp;&gt;[data-flux-control]~[data-flux-description]]:row-start-2 [&amp;&gt;[data-flux-control]~[data-flux-description]]:col-start-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:col-span-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:mt-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:row-start-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:col-start-2" data-flux-field>
    <ui-checkbox class="flex size-[1.125rem] rounded-[.3rem] mt-px outline-offset-2" wire:model.live="isAvailableForPickup" label="Atsiėmimas"  data-flux-control data-flux-checkbox>
        <div class="shrink-0 size-[1.125rem] rounded-[.3rem] flex justify-center items-center text-sm text-zinc-700 dark:text-zinc-800 shadow-xs [ui-checkbox[disabled]_&amp;]:opacity-75 [ui-checkbox[data-checked][disabled]_&amp;]:opacity-50 [ui-checkbox[disabled]_&amp;]:shadow-none [ui-checkbox[data-checked]_&amp;]:shadow-none [ui-checkbox[data-indeterminate]_&amp;]:shadow-none [ui-checkbox[data-checked]:not([data-indeterminate])_&amp;&gt;svg:first-child]:block [ui-checkbox[data-indeterminate]_&amp;&gt;svg:last-child]:block border border-zinc-300 dark:border-white/10 [ui-checkbox[disabled]_&amp;]:border-zinc-200 dark:[ui-checkbox[disabled]_&amp;]:border-white/5 [ui-checkbox[data-checked]_&amp;]:border-transparent [ui-checkbox[data-indeterminate]_&amp;]:border-transparent [ui-checkbox[disabled][data-checked]_&amp;]:border-transparent [ui-checkbox[disabled][data-indeterminate]_&amp;]:border-transparent [print-color-adjust:exact] bg-white dark:bg-white/10 [ui-checkbox[data-checked]_&amp;]:bg-[var(--color-accent)] hover:[ui-checkbox[data-checked]_&amp;]:bg-(--color-accent) focus:[ui-checkbox[data-checked]_&amp;]:bg-(--color-accent) [ui-checkbox[data-indeterminate]_&amp;]:bg-[var(--color-accent)] hover:[ui-checkbox[data-indeterminate]_&amp;]:bg-(--color-accent) focus:[ui-checkbox[data-indeterminate]_&amp;]:bg-(--color-accent)" data-flux-checkbox-indicator>
    <svg class="shrink-0 [:where(&amp;)]:size-4 hidden text-[var(--color-accent-foreground)]" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z" clip-rule="evenodd"/>
</svg>

            <svg class="shrink-0 [:where(&amp;)]:size-4 hidden text-[var(--color-accent-foreground)]" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M3.75 7.25a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Z"/>
</svg>

        </div>
    </ui-checkbox>

                    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Atsiėmimas

    
    
    </ui-label>
        
        
        <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>

                        <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 grid gap-x-3 gap-y-1.5 has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto] has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr] [&amp;&gt;[data-flux-control]~[data-flux-description]]:row-start-2 [&amp;&gt;[data-flux-control]~[data-flux-description]]:col-start-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:col-span-2 [&amp;&gt;[data-flux-control]~[data-flux-error]]:mt-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:row-start-1 [&amp;&gt;[data-flux-label]~[data-flux-control]]:col-start-2" data-flux-field>
    <ui-checkbox class="flex size-[1.125rem] rounded-[.3rem] mt-px outline-offset-2" wire:model.live="acceptsEatingIn" label="Valgymas vietoje"  data-flux-control data-flux-checkbox>
        <div class="shrink-0 size-[1.125rem] rounded-[.3rem] flex justify-center items-center text-sm text-zinc-700 dark:text-zinc-800 shadow-xs [ui-checkbox[disabled]_&amp;]:opacity-75 [ui-checkbox[data-checked][disabled]_&amp;]:opacity-50 [ui-checkbox[disabled]_&amp;]:shadow-none [ui-checkbox[data-checked]_&amp;]:shadow-none [ui-checkbox[data-indeterminate]_&amp;]:shadow-none [ui-checkbox[data-checked]:not([data-indeterminate])_&amp;&gt;svg:first-child]:block [ui-checkbox[data-indeterminate]_&amp;&gt;svg:last-child]:block border border-zinc-300 dark:border-white/10 [ui-checkbox[disabled]_&amp;]:border-zinc-200 dark:[ui-checkbox[disabled]_&amp;]:border-white/5 [ui-checkbox[data-checked]_&amp;]:border-transparent [ui-checkbox[data-indeterminate]_&amp;]:border-transparent [ui-checkbox[disabled][data-checked]_&amp;]:border-transparent [ui-checkbox[disabled][data-indeterminate]_&amp;]:border-transparent [print-color-adjust:exact] bg-white dark:bg-white/10 [ui-checkbox[data-checked]_&amp;]:bg-[var(--color-accent)] hover:[ui-checkbox[data-checked]_&amp;]:bg-(--color-accent) focus:[ui-checkbox[data-checked]_&amp;]:bg-(--color-accent) [ui-checkbox[data-indeterminate]_&amp;]:bg-[var(--color-accent)] hover:[ui-checkbox[data-indeterminate]_&amp;]:bg-(--color-accent) focus:[ui-checkbox[data-indeterminate]_&amp;]:bg-(--color-accent)" data-flux-checkbox-indicator>
    <svg class="shrink-0 [:where(&amp;)]:size-4 hidden text-[var(--color-accent-foreground)]" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z" clip-rule="evenodd"/>
</svg>

            <svg class="shrink-0 [:where(&amp;)]:size-4 hidden text-[var(--color-accent-foreground)]" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M3.75 7.25a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5h-8.5Z"/>
</svg>

        </div>
    </ui-checkbox>

                    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Valgymas vietoje

    
    
    </ui-label>
        
        
        <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>

                    </div>
                </div>

                <!-- Delivery Time Filter -->
                <div class="space-y-3">
                    <div wire:key="delivery-time-filter" wire:snapshot="{&quot;data&quot;:{&quot;content&quot;:[[],{&quot;class&quot;:&quot;Illuminate\\Support\\Collection&quot;,&quot;s&quot;:&quot;clctn&quot;}],&quot;delivery_time&quot;:&quot;asap&quot;,&quot;context&quot;:&quot;area-switcher&quot;,&quot;areaSlug&quot;:null,&quot;model&quot;:&quot;deliveryTime&quot;,&quot;available_times&quot;:[{&quot;asap&quot;:&quot;Kuo grei\u010diau&quot;,&quot;17:30&quot;:&quot;17:30&quot;,&quot;18:00&quot;:&quot;18:00&quot;,&quot;18:30&quot;:&quot;18:30&quot;},{&quot;s&quot;:&quot;arr&quot;}],&quot;earliest_close_time&quot;:&quot;18:57&quot;,&quot;first_slot_time&quot;:&quot;17:30&quot;,&quot;timePickerValue&quot;:&quot;&quot;,&quot;showTimepicker&quot;:false,&quot;hasAfterMidnightSlots&quot;:false,&quot;isSharedCartNonLeader&quot;:false,&quot;sharedCartUuid&quot;:null,&quot;timeLabel&quot;:&quot;Dirba iki&quot;,&quot;selectTimeLabel&quot;:&quot;Pasirinkite pristatymo laik\u0105&quot;},&quot;memo&quot;:{&quot;id&quot;:&quot;hz1xowRZZX2hFQ0XZoxX&quot;,&quot;name&quot;:&quot;delivery-time&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;attributes&quot;:{&quot;wire:model.live&quot;:&quot;deliveryTime&quot;},&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;43b470b92d6a39179ad286ffdbba9300b8a101658632678d6bf136554a4d61b6&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;listeners&quot;:[&quot;leaderDeliveryTimeChanged&quot;,&quot;product-removed&quot;,&quot;orderContextChanged&quot;,&quot;areaChanged&quot;,&quot;deliveryTimeSelected&quot;,&quot;clientLocationChanged&quot;,&quot;clearDeliveryTime&quot;]}" wire:id="hz1xowRZZX2hFQ0XZoxX" wire:name="delivery-time" class="relative z-10 [&_[data-flux-control]]:cursor-pointer [&_button]:cursor-pointer [&_label]:cursor-pointer ">
            <ui-field class="min-w-0 [&amp;:not(:has([data-flux-field])):has([data-flux-control][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-radio-group][disabled])&gt;[data-flux-label]]:opacity-50 [&amp;:has(&gt;[data-flux-checkbox-group][disabled])&gt;[data-flux-label]]:opacity-50 block *:data-flux-label:mb-3 [&amp;&gt;[data-flux-label]:has(+[data-flux-description])]:mb-2 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mt-0 [&amp;&gt;[data-flux-label]+[data-flux-description]]:mb-3 [&amp;&gt;*:not([data-flux-label])+[data-flux-description]]:mt-3" data-flux-field>
    <ui-label class="inline-flex items-center text-sm font-medium  [:where(&amp;)]:text-zinc-800 [:where(&amp;)]:dark:text-white [&amp;:has([data-flux-label-trailing])]:flex" data-flux-label>
    Dirba iki

    
    
    </ui-label>
        
        
        <ui-time-picker
        class="block min-w-0 border-0 p-0 bg-transparent" wire:model.live.self="timePickerValue" min="17:30" max="18:57" interval="30" time-format="24-hour" label="Dirba iki" aria-label="Pasirinkite pristatymo laiką"
        data-flux-control
        data-flux-time-picker
                                        wire:model.live.self="timePickerValue" min="17:30" max="18:57" interval="30" time-format="24-hour" label="Dirba iki" aria-label="Pasirinkite pristatymo laiką"
    >
        <ui-time-picker-trigger>
                    <button type="button" class="group/select-button cursor-default py-2 overflow-hidden flex items-center shadow-xs bg-white dark:bg-white/10 dark:disabled:bg-white/[7%] disabled:shadow-none h-10 text-base sm:text-sm rounded-lg px-3 block w-full border border-zinc-200 border-b-zinc-300/80 dark:border-white/10"  data-flux-group-target data-flux-time-picker-button>
    <svg class="shrink-0 [:where(&amp;)]:size-5 me-2 text-zinc-300 [[disabled]_&]:text-zinc-200! dark:text-white/60 dark:[[disabled]_&]:text-white/40!" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm.75-13a.75.75 0 0 0-1.5 0v5c0 .414.336.75.75.75h4a.75.75 0 0 0 0-1.5h-3.25V5Z" clip-rule="evenodd"/>
</svg>

        
            <ui-selected-time x-ignore wire:ignore class="truncate flex gap-2 text-start flex-1 text-zinc-700 [[disabled]_&]:text-zinc-500 dark:text-zinc-300 dark:[[disabled]_&]:text-zinc-400">
    <template name="placeholder">
        <span class="text-zinc-400 [[disabled]_&]:text-zinc-400/70 dark:text-zinc-400 dark:[[disabled]_&]:text-zinc-500" data-flux-time-picker-placeholder>
            Kuo greičiau
        </span>
    </template>

    <template name="time">
        <div dir="auto" class="truncate"><slot></slot></div>
    </template>
</ui-selected-time>    
            <div data-flux-button="data-flux-button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md w-8 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-500 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-white      cursor-pointer ms-2 -me-2 [[data-flux-time-picker-button]:has([data-flux-time-picker-placeholder])_&]:hidden [[data-flux-time-picker]:has([disabled])_&]:hidden" tabindex="-1" aria-label="Clear time" x-on:click.prevent.stop="$el.closest('ui-time-picker').clear()">
        <svg class="shrink-0 [:where(&amp;)]:size-4" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"/>
</svg>
    </div>
    
    <svg class="shrink-0 [:where(&amp;)]:size-5 ms-2 -me-1 text-zinc-300 [[data-flux-time-picker-button]:hover_&]:text-zinc-800 [[disabled]_&]:text-zinc-200! dark:text-white/60 dark:[[data-flux-time-picker-button]:hover_&]:text-white dark:[[disabled]_&]:text-white/40!" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/>
</svg>

        </button>
                </ui-time-picker-trigger>

        <ui-time-picker-options popover="manual" tabindex="-1" wire:ignore class="[:where(&amp;)]:min-w-48 [:where(&amp;)]:max-h-[20rem] p-[.3125rem] scroll-py-[.3125rem] rounded-lg shadow-xs border border-zinc-200 dark:border-zinc-600 bg-white dark:bg-zinc-700">
            <template name="option">
                <button type="button" tabindex="-1" class="w-full px-1 py-1.5 rounded-lg flex items-center justify-start gap-2 text-sm text-zinc-800 dark:text-white data-active:bg-zinc-100 dark:data-active:bg-zinc-600 disabled:text-zinc-400 disabled:pointer-events-none disabled:cursor-default [[readonly]_&]:pointer-events-none [[readonly]_&]:cursor-default [[readonly]_&]:bg-transparent">
                    <div class="w-6 shrink-0" data-checked>
                        <svg class="shrink-0 [:where(&amp;)]:size-5 hidden [ui-time-picker-options>[data-selected]_&]:block" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path fill-rule="evenodd" d="M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z" clip-rule="evenodd"/>
</svg>

                            </div>
                    
                    <div dir="ltr" class="tabular-nums">
                        <slot></slot>
                    </div>
                </button>
            </template>
        </ui-time-picker-options>
    </ui-time-picker>

                <div role="alert" aria-live="polite" aria-atomic="true" class="mt-3 text-sm font-medium text-red-500 dark:text-red-400 hidden" data-flux-error>
    </div>
</ui-field>
    </div>
                </div>
            </form>

            
            
        </div>

                    <div class="absolute top-0 end-0 mt-4 me-4">
                <ui-close data-flux-modal-close >
    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md w-8 inline-flex  bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white      text-zinc-400! hover:text-zinc-800! dark:text-zinc-500! dark:hover:text-white!" data-flux-button="data-flux-button" aria-label="Close modal">
        <svg class="shrink-0 [:where(&amp;)]:size-5" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
  <path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"/>
</svg>
    </button>
</ui-close>
            </div>
            </dialog>
</ui-modal>

    
        </div>
        </div>
    </div>

    <div wire:key="lw-3124301730-2" wire:snapshot="{&quot;data&quot;:{&quot;finalTotalAmount&quot;:0,&quot;cartTotalWithTip&quot;:0,&quot;subtotalAmount&quot;:0,&quot;tipAmount&quot;:0,&quot;tipPercentage&quot;:null,&quot;driver&quot;:&quot;redis&quot;,&quot;tableServiceTips&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;userPaymentTotals&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;deliveryFeeSplit&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;tipSplit&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;availableCredits&quot;:null,&quot;totalCreditAmount&quot;:0,&quot;appliedCreditAmount&quot;:0,&quot;cartModel&quot;:null,&quot;cartName&quot;:&quot;&quot;,&quot;sharedCartUuid&quot;:&quot;&quot;,&quot;shareableCartLink&quot;:&quot;&quot;,&quot;isCurrentUserLeader&quot;:false,&quot;areAllUsersReady&quot;:false,&quot;userJoinedFlash&quot;:false,&quot;isAccordionExpanded&quot;:false,&quot;shouldShowShareLink&quot;:false,&quot;modalProductId&quot;:null,&quot;modalPartnerId&quot;:null,&quot;modalType&quot;:null,&quot;modalCartItemId&quot;:null,&quot;modalOrderId&quot;:null,&quot;modalCartItemData&quot;:null,&quot;modalVersionMismatch&quot;:false,&quot;modalQueue&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;currentModalIndex&quot;:0,&quot;modalTimestamp&quot;:0,&quot;isModalWizard&quot;:false,&quot;wizardAcceptedItems&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;isSharedCart&quot;:false,&quot;isNamedCart&quot;:false,&quot;namedCarts&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;sharedCartUsers&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;splitItemId&quot;:null,&quot;isOrderPending&quot;:false,&quot;lastOrderConfirmedAt&quot;:null,&quot;canProceedToPayment&quot;:true,&quot;orderContext&quot;:&quot;delivery&quot;,&quot;paymentOption&quot;:&quot;separately&quot;,&quot;selectedPaymentMethod&quot;:null,&quot;pendingSeparatePaymentOrder&quot;:null,&quot;currentUserPendingPayment&quot;:null,&quot;recaptchaToken&quot;:&quot;&quot;,&quot;deliveryFee&quot;:0,&quot;deliveryTime&quot;:&quot;asap&quot;,&quot;deliveryAddress&quot;:null,&quot;deliveryHints&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;hints&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;orderStatuses&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;isTakeawayEnabled&quot;:true,&quot;isTakeawayDisabled&quot;:false,&quot;cartContent&quot;:[[],{&quot;class&quot;:&quot;Illuminate\\Support\\Collection&quot;,&quot;s&quot;:&quot;clctn&quot;}],&quot;cartPartners&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;allOrders&quot;:null,&quot;orderAgainPage&quot;:1,&quot;orderAgainPerPage&quot;:2,&quot;orderAgainTotalPages&quot;:1,&quot;allPartners&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;cartModelPartners&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;minimumDeliveryRequirements&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;eatingInValidation&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;distanceValidation&quot;:[{&quot;no_address&quot;:[{&quot;partner_name&quot;:&quot;Nenustatytas pristatymo adresas&quot;,&quot;distance_km&quot;:0,&quot;max_distance_km&quot;:0,&quot;message&quot;:&quot;Nustatykite pristatymo adres\u0105, kad patikrintum\u0117te atstumo reikalavimus&quot;},{&quot;s&quot;:&quot;arr&quot;}]},{&quot;s&quot;:&quot;arr&quot;}],&quot;apiFailureValidation&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;unavailableItemsValidation&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;guestValidation&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;globalMinimumOrderValidation&quot;:[{&quot;current_total&quot;:0,&quot;minimum_required&quot;:10,&quot;shortfall&quot;:10},{&quot;s&quot;:&quot;arr&quot;}],&quot;allProducts&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;allProductChoices&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;allIngredients&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;selectedChoices&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;productRecommendationIds&quot;:[[],{&quot;s&quot;:&quot;arr&quot;}],&quot;currentRouteName&quot;:&quot;home&quot;,&quot;newGuestName&quot;:&quot;&quot;,&quot;editingGuestId&quot;:null,&quot;showShareModal&quot;:false},&quot;memo&quot;:{&quot;id&quot;:&quot;0fc1YpgYFnC9vafHRx3I&quot;,&quot;name&quot;:&quot;cart&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;627aa01880ef5ab3ed0e324711d58bf874aceefd163e605d8a01d8d555023299&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;listeners&quot;:[&quot;product-added&quot;,&quot;product-updated&quot;,&quot;product-updated-light&quot;,&quot;deliveryTimeSelected&quot;,&quot;deliveryAddressSelected&quot;,&quot;cartUpdated&quot;,&quot;cart-totals-updated&quot;,&quot;cartUsersHere&quot;,&quot;cartUserJoined&quot;,&quot;cartUserLeft&quot;,&quot;cartReplacedGuestWithUser&quot;,&quot;cartReadinessUpdated&quot;,&quot;cartLeaderUpdated&quot;,&quot;cartPaymentOptionUpdated&quot;,&quot;cartUserKicked&quot;,&quot;cartUserRenamed&quot;,&quot;orderConfirmed&quot;,&quot;renameGuest&quot;,&quot;orderContextChanged&quot;,&quot;payment-method-changed&quot;,&quot;tableOrderConfirmed&quot;,&quot;splitCart&quot;,&quot;product-removed&quot;,&quot;couponApplied&quot;,&quot;couponRemoved&quot;,&quot;tip-updated&quot;,&quot;table-tips-updated&quot;,&quot;refresh-cart-component&quot;,&quot;disableTakeAway&quot;,&quot;CartItemAdded&quot;,&quot;CartItemRemoved&quot;,&quot;CartItemQuantityChanged&quot;,&quot;CartUsersUpdated&quot;,&quot;add-order-again&quot;,&quot;add-order-item-again&quot;,&quot;sharedCartDeliveryUpdated&quot;,&quot;cartDeliverySettingsUpdated&quot;,&quot;cartLeaderAddressChanged&quot;,&quot;cartLeaderAddressesUpdated&quot;,&quot;cartLeaderDeliveryTimeChanged&quot;,&quot;cartLeaderPaymentMethodChanged&quot;,&quot;openProductModal&quot;,&quot;modalClosed&quot;,&quot;itemAddedFromModal&quot;,&quot;wizardAddToCart&quot;,&quot;wizardSkipItem&quot;,&quot;broadcastUserLeft&quot;,&quot;handleJoinSharedCart&quot;,&quot;leaveTableService&quot;,&quot;openDeliverySplitModal&quot;,&quot;updateDeliveryFeeSplit&quot;,&quot;updateTipSplit&quot;],&quot;dispatches&quot;:[{&quot;name&quot;:&quot;disableTakeAway&quot;,&quot;params&quot;:[true]},{&quot;name&quot;:&quot;disableTakeAway&quot;,&quot;params&quot;:[true]}]}" wire:id="0fc1YpgYFnC9vafHRx3I" wire:name="cart"
    x-data="{
        isCheckoutPage:
            false,
        isPartnerPage:
            false,
        isProfilePage:
            false,
        isDesktop: window.innerWidth >= 1024,
        init() {
            // Check if we're on profile page (match navigation-menu pattern)
            const path = window.location.pathname
            this.isProfilePage =
                path.startsWith('/user/profile') ||
                path === '/profile' ||
                path.includes('/profile')

            // Watch window resize to update isDesktop
            window.addEventListener('resize', () => {
                const wasDesktop = this.isDesktop
                this.isDesktop = window.innerWidth >= 1024

                // If switching from desktop to mobile on partner page, close cart
                if (
                    wasDesktop &&
                    ! this.isDesktop &&
                    this.isPartnerPage &&
                    ! this.isProfilePage
                ) {
                    if (Alpine.store('cartDrawer')) {
                        Alpine.store('cartDrawer').open = false
                    }
                }
            })

            // Initialize global cart drawer state FIRST
            // On partner pages, start opened on desktop (lg+)
            // On profile pages, ALWAYS start closed
            const startOpened =
                ! this.isProfilePage && this.isPartnerPage && this.isDesktop

            // Ensure store exists before setting
            if (! Alpine.store('cartDrawer')) {
                Alpine.store('cartDrawer', { open: false })
            }
            Alpine.store('cartDrawer').open = startOpened

            // Listen for navigation to update cart state
            window.addEventListener('livewire:navigated', () => {
                try {
                    const path = window.location.pathname
                    this.isCheckoutPage =
                        path.includes('/checkout') ||
                        path.includes('/table-checkout')
                    // Match navigation-menu pattern exactly
                    const wasProfilePage = this.isProfilePage
                    this.isProfilePage =
                        path.startsWith('/user/profile') ||
                        path === '/profile' ||
                        path.includes('/profile')
                    const wasPartnerPage = this.isPartnerPage
                    this.isPartnerPage =
                        path.includes('/partner/') ||
                        path.match(/^\/[^\/]+\/[^\/]+$/)

                    // Ensure store exists
                    if (! Alpine.store('cartDrawer')) {
                        Alpine.store('cartDrawer', { open: false })
                    }

                    // On profile pages, ALWAYS close the cart drawer when navigating TO profile
                    // This prevents the cart from appearing when navigating to profile
                    if (this.isProfilePage && ! wasProfilePage) {
                        // Just navigated TO profile page - close it
                        Alpine.store('cartDrawer').open = false
                    }
                    // On partner pages, open on desktop only
                    else if (this.isPartnerPage && ! this.isProfilePage) {
                        // Only auto-open on desktop, not on mobile
                        if (this.isDesktop) {
                            Alpine.store('cartDrawer').open = true
                        } else {
                            Alpine.store('cartDrawer').open = false
                        }
                    }
                    // When leaving partner page (and not going to profile), close if it was auto-opened
                    else if (
                        wasPartnerPage &&
                        ! this.isPartnerPage &&
                        ! this.isProfilePage
                    ) {
                        // Only close if it was auto-opened (desktop size)
                        if (this.isDesktop) {
                            Alpine.store('cartDrawer').open = false
                        }
                    }
                } catch (e) {
                    console.warn('Error updating cart state on navigation:', e)
                }
            })
        },
    }"
>
    <aside
        wire:ignore.self
        id="cart-drawer"
        aria-label="Šoninis meniu"
        x-bind:inert="
            (typeof isCheckoutPage !== 'undefined' && isCheckoutPage) ||
            (typeof isPartnerPage !== 'undefined' && isPartnerPage)
                ? false
                : ! $store.cartDrawer?.open
        "
        x-cloak
        style="visibility: hidden"
        x-init="
            // Hide initially to prevent flash, then show after Alpine is ready
            $nextTick(() => {
                $el.style.visibility = 'visible'
            })
        "
        class="fixed top-0 right-0 z-40 flex h-screen w-[315px] flex-col border-l bg-white transition-transform duration-300 ease-in-out dark:border-gray-700 dark:bg-gray-800"
        :class="{
            'translate-x-0': (typeof isCheckoutPage !== 'undefined' && isCheckoutPage) || ((typeof isPartnerPage !== 'undefined' && isPartnerPage && !isProfilePage) && isDesktop) || ($store.cartDrawer && $store.cartDrawer.open),
            'translate-x-full': !(typeof isCheckoutPage !== 'undefined' && isCheckoutPage) && !((typeof isPartnerPage !== 'undefined' && isPartnerPage && !isProfilePage) && isDesktop) && (!$store.cartDrawer || !$store.cartDrawer.open)
        }"
    >
        <!-- Cart Header Close menu -->
        <h5
            class="p-4 text-base font-semibold text-gray-500 dark:text-gray-400"
            x-show="!isCheckoutPage"
            x-cloak
        >
            Krepšelis
        </h5>
        <button
            type="button"
            x-on:click="
                if (Alpine.store('cartDrawer')) {
                    Alpine.store('cartDrawer').open = false
                }
            "
            aria-controls="cart-drawer"
            class="absolute end-2.5 top-2.5 inline-flex h-8 w-8 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white"
            x-show="isProfilePage || (! isCheckoutPage && (! isPartnerPage || ! isDesktop))"
            x-cloak
            id="cart-drawer-toggle"
        >
            <svg
                class="h-3 w-3"
                aria-hidden="true"
                xmlns="http://www.w3.org/2000/svg"
                fill="none"
                viewBox="0 0 14 14"
            >
                <path
                    stroke="currentColor"
                    stroke-linecap="round"
                    stroke-linejoin="round"
                    stroke-width="2"
                    d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
                />
            </svg>
            <span class="sr-only">Close menu</span>
        </button>

        <!-- Cart Content -->
        <div id="named-cart-content" class="grow overflow-y-auto pl-0.5">
                            <div
                    wire:key="empty-cart-message"
                    class="flex flex-col items-center justify-center space-y-2 rounded-lg p-4 py-4 text-gray-700 dark:text-gray-300"
                >
                    <svg
                        xmlns="http://www.w3.org/2000/svg"
                        fill="none"
                        viewBox="0 0 24 24"
                        stroke-width="1.5"
                        stroke="currentColor"
                        class="h-8 w-8"
                    >
                        <path
                            stroke-linecap="round"
                            stroke-linejoin="round"
                            d="M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 0 0-16.536-1.84M7.5 14.25 5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm12.75 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"
                        />
                    </svg>
                    <span class="text-lg font-semibold">Jūsų krepšelis yra tuščias.</span>
                </div>
                                                                                            </div>

        <!-- Sticky Footer Section -->
        <div class="sticky bottom-0 bg-white dark:bg-gray-800">
            <!-- Shared Cart Accordion or Named Cart Include (shown to all users in shared carts) -->
            
            <!-- Item Total and Pay Button -->
                    </div>
        
        <!-- Desktop cart icon -->
        <template x-teleport="#cart-icon-button-container">
            <div
                x-show="!isCheckoutPage"
                x-cloak
                class="flex items-center"
            >
                <button
                    x-on:click="
                        if (! Alpine.store('cartDrawer')) {
                            Alpine.store('cartDrawer', { open: false })
                        }
                        Alpine.store('cartDrawer').open = ! Alpine.store('cartDrawer').open
                    "
                    class="relative inline-flex h-10 w-10 items-center justify-center rounded-md text-gray-400 transition-all duration-150 ease-in-out hover:bg-gray-100 hover:text-gray-500 focus:bg-gray-100 focus:text-gray-500 focus:outline-hidden cursor-pointer dark:text-gray-500 dark:hover:bg-gray-900 dark:hover:text-gray-400 dark:focus:bg-gray-900 dark:focus:text-gray-400 hover:scale-105"
                >
                    
                    <svg
                        class="h-6 w-6 text-gray-400 dark:text-gray-500"
                        fill="none"
                        stroke="currentColor"
                        stroke-width="2"
                        viewBox="0 0 24 24"
                        xmlns="http://www.w3.org/2000/svg"
                    >
                        <path
                            d="M5.00014 14H18.1359C19.1487 14 19.6551 14 20.0582 13.8112C20.4134 13.6448 20.7118 13.3777 20.9163 13.0432C21.1485 12.6633 21.2044 12.16 21.3163 11.1534L21.9013 5.88835C21.9355 5.58088 21.9525 5.42715 21.9031 5.30816C21.8597 5.20366 21.7821 5.11697 21.683 5.06228C21.5702 5 21.4155 5 21.1062 5H4.50014M2 2H3.24844C3.51306 2 3.64537 2 3.74889 2.05032C3.84002 2.09463 3.91554 2.16557 3.96544 2.25376C4.02212 2.35394 4.03037 2.48599 4.04688 2.7501L4.95312 17.2499C4.96963 17.514 4.97788 17.6461 5.03456 17.7462C5.08446 17.8344 5.15998 17.9054 5.25111 17.9497C5.35463 18 5.48694 18 5.75156 18H19M7.5 21.5H7.51M16.5 21.5H16.51M8 21.5C8 21.7761 7.77614 22 7.5 22C7.22386 22 7 21.7761 7 21.5C7 21.2239 7.22386 21 7.5 21C7.77614 21 8 21.2239 8 21.5ZM17 21.5C17 21.7761 16.7761 22 16.5 22C16.2239 22 16 21.7761 16 21.5C16 21.2239 16.2239 21 16.5 21C16.7761 21 17 21.2239 17 21.5Z"
                        />
                    </svg>
                                    </button>
            </div>
        </template>

        <!-- Mobile cart icon -->
        <template x-teleport="#mobile-cart-icon-container">
            <div
                x-show="!isCheckoutPage"
                x-cloak
                class="items-center flex"
            >
                <button
                    x-on:click="
                        if (! Alpine.store('cartDrawer')) {
                            Alpine.store('cartDrawer', { open: false })
                        }
                        Alpine.store('cartDrawer').open = ! Alpine.store('cartDrawer').open
                    "
                    class="relative inline-flex h-10 w-10 items-center justify-center rounded-md text-gray-400 transition-all duration-150 ease-in-out hover:bg-gray-100 hover:text-gray-500 focus:bg-gray-100 focus:text-gray-500 focus:outline-hidden cursor-pointer dark:text-gray-500 dark:hover:bg-gray-900 dark:hover:text-gray-400 dark:focus:bg-gray-900 dark:focus:text-gray-400 hover:scale-105"
                >
                    
                    <svg
                        class="h-6 w-6 text-gray-400 dark:text-gray-500"
                        fill="none"
                        stroke="currentColor"
                        stroke-width="2"
                        viewBox="0 0 24 24"
                        xmlns="http://www.w3.org/2000/svg"
                    >
                        <path
                            d="M5.00014 14H18.1359C19.1487 14 19.6551 14 20.0582 13.8112C20.4134 13.6448 20.7118 13.3777 20.9163 13.0432C21.1485 12.6633 21.2044 12.16 21.3163 11.1534L21.9013 5.88835C21.9355 5.58088 21.9525 5.42715 21.9031 5.30816C21.8597 5.20366 21.7821 5.11697 21.683 5.06228C21.5702 5 21.4155 5 21.1062 5H4.50014M2 2H3.24844C3.51306 2 3.64537 2 3.74889 2.05032C3.84002 2.09463 3.91554 2.16557 3.96544 2.25376C4.02212 2.35394 4.03037 2.48599 4.04688 2.7501L4.95312 17.2499C4.96963 17.514 4.97788 17.6461 5.03456 17.7462C5.08446 17.8344 5.15998 17.9054 5.25111 17.9497C5.35463 18 5.48694 18 5.75156 18H19M7.5 21.5H7.51M16.5 21.5H16.51M8 21.5C8 21.7761 7.77614 22 7.5 22C7.22386 22 7 21.7761 7 21.5C7 21.2239 7.22386 21 7.5 21C7.77614 21 8 21.2239 8 21.5ZM17 21.5C17 21.7761 16.7761 22 16.5 22C16.2239 22 16 21.7761 16 21.5C16 21.2239 16.2239 21 16.5 21C16.7761 21 17 21.2239 17 21.5Z"
                        />
                    </svg>
                                    </button>
            </div>
        </template>
    </aside>

    
    
    </div>
            </main>
        </div>
        <footer class="bg-white dark:bg-gray-900">
    <div
        class="lg:mr-[314px] mx-auto w-full max-w-7xl px-3 py-3 sm:px-4 sm:py-5 lg:py-8"
    >
        <div class="md:flex md:justify-between">
            <div class="mb-3 md:mb-0">
                                    <a href="https://amba.lt/index.php">
                        <div class="inline-block block h-8 w-auto sm:h-12 sm:w-auto">
    <svg viewBox="0 0 120 60" xmlns="http://www.w3.org/2000/svg" class="block h-full w-auto" style="height: 100%; width: auto;">
    <style>
        @font-face {
            font-family: 'Pacifico';
            src: url('/storage/fonts/Pacifico-Regular.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        svg {
            --color-top: yellow;
            --color-middle: green;
            --color-bottom: red;
        }
    </style>

    <defs>
        <clipPath id="textClip">
            <text x="0" y="48" font-size="52" font-family="'Pacifico', cursive" font-weight="bold">
                amba
            </text>
        </clipPath>
    </defs>

    <path
        clip-path="url(#textClip)"
        fill="var(--color-top)"
        id="stripeTop"
        d="M 0,0 L 120,0 L 120,22 Q 90,22 60,22 T 0,22 Z"
    >
        <animate
            attributeName="d"
            dur="3s"
            repeatCount="indefinite"
            values="M 0,0 L 120,0 L 120,22 Q 90,22 60,22 T 0,22 Z;M 0,0 L 120,0 L 120,18 Q 90,18 60,18 T 0,18 Z;M 0,0 L 120,0 L 120,22 Q 90,22 60,22 T 0,22 Z"
        />
    </path>

    <path
        clip-path="url(#textClip)"
        fill="var(--color-middle)"
        id="stripeMid"
        d="M 0,20 Q 30,20 60,20 T 120,20 L 120,42 Q 90,42 60,42 T 0,42 Z"
    >
        <animate
            attributeName="d"
            dur="3s"
            repeatCount="indefinite"
            values="M 0,20 Q 30,20 60,20 T 120,20 L 120,42 Q 90,42 60,42 T 0,42 Z;M 0,18 Q 30,18 60,18 T 120,18 L 120,44 Q 90,44 60,44 T 0,44 Z;M 0,20 Q 30,20 60,20 T 120,20 L 120,42 Q 90,42 60,42 T 0,42 Z"
        />
    </path>

    <path
        clip-path="url(#textClip)"
        fill="var(--color-bottom)"
        id="stripeBot"
        d="M 0,40 Q 30,40 60,40 T 120,40 L 120,62 L 0,62 Z"
    >
        <animate
            attributeName="d"
            dur="3s"
            repeatCount="indefinite"
            values="M 0,40 Q 30,40 60,40 T 120,40 L 120,62 L 0,62 Z;M 0,44 Q 30,44 60,44 T 120,44 L 120,62 L 0,62 Z;M 0,40 Q 30,40 60,40 T 120,40 L 120,62 L 0,62 Z"
        />
    </path>
</svg>
</div>
                    </a>
                
                
                
                
                            </div>
            <div class="grid gap-x-2 gap-y-3 sm:gap-6 grid-cols-3">
                <div class="min-w-0">
                    <h2 class="mb-1 text-[10px] font-semibold leading-tight text-gray-900 uppercase tracking-wide dark:text-white sm:mb-4 sm:text-sm">
                        <span class="sm:hidden">Pagalba ir informacija</span>
                        <span class="hidden sm:inline">Pagalba ir informacija</span>
                    </h2>
                    <ul class="space-y-0.5 text-xs font-medium text-gray-500 dark:text-gray-400 sm:space-y-0 sm:text-base sm:[&_li]:mb-4 sm:[&_li:last-child]:mb-0">
                        <li><a href="https://amba.lt/index.php/faq" class="hover:underline">DUK</a></li>
                        <li><a href="https://amba.lt/index.php/contact" class="hover:underline">Kontaktai</a></li>
                        <li><a href="https://amba.lt/index.php/about" class="hover:underline">Apie mus</a></li>
                    </ul>
                </div>

                                    <div class="min-w-0">
                        <h2 class="mb-1 text-[10px] font-semibold leading-tight text-gray-900 uppercase tracking-wide dark:text-white sm:mb-4 sm:text-sm">
                            Darbas su mumis
                        </h2>
                        <ul class="space-y-0.5 text-xs font-medium text-gray-500 dark:text-gray-400 sm:space-y-0 sm:text-base sm:[&_li]:mb-4 sm:[&_li:last-child]:mb-0">
                            <li><a href="https://amba.lt/index.php/for-couriers" class="hover:underline">Kurjeriams</a></li>
                            <li><a href="https://amba.lt/index.php/for-merchants" class="hover:underline">Restoranams ir parduotuvėms</a></li>
                            <li><a href="https://amba.lt/index.php/careers" class="hover:underline">Darbo pasiūlymai</a></li>
                        </ul>
                    </div>
                
                <div class="min-w-0">
                    <h2 class="mb-1 text-[10px] font-semibold leading-tight text-gray-900 uppercase tracking-wide dark:text-white sm:mb-4 sm:text-sm">
                        <span class="sm:hidden">Teisinė informacija</span>
                        <span class="hidden sm:inline">Teisinė informacija</span>
                    </h2>
                    <ul class="space-y-0.5 text-xs font-medium text-gray-500 dark:text-gray-400 sm:space-y-0 sm:text-base sm:[&_li]:mb-4 sm:[&_li:last-child]:mb-0">
                        <li><a href="https://amba.lt/index.php/privacy-policy" class="hover:underline">Privatumo politika</a></li>
                        <li><a href="https://amba.lt/index.php/terms-of-service" class="hover:underline">Sąlygos ir nuostatos</a></li>
                        <li><a href="https://amba.lt/index.php/cookies-policy" class="hover:underline">Slapukų politika</a></li>
                    </ul>
                </div>
            </div>
        </div>

        <hr class="my-3 border-gray-200 sm:mx-auto sm:my-6 lg:my-8 dark:border-gray-700" />

        <div class="sm:flex sm:items-center sm:justify-between">
            <span class="text-[10px] text-gray-500 sm:text-center sm:text-sm dark:text-gray-400">
                © 2026
                <a href="https://amba.lt/index.php" class="hover:underline">
                    amba
                </a>
                <span class="mx-1">·</span>
                Visos teisės saugomos.
                <span class="mx-1">·</span>
                <button
                    type="button"
                    class="cursor-pointer bg-transparent p-0 text-gray-500 hover:underline dark:text-gray-400"
                    onclick="typeof Livewire !== 'undefined' && Livewire.dispatch('gdpr-open-settings')"
                >
                    Slapukų nuostatos
                </button>
            </span>
            <div class="mt-2 flex items-center gap-3 sm:mt-0 sm:gap-5 lg:justify-start">
                                    <a
                        href="https://www.facebook.com/food.amba.lt"
                        target="_blank"
                        rel="noopener noreferrer"
                        class="text-gray-500 hover:text-gray-900 dark:hover:text-white"
                        aria-label="Facebook"
                    >
                        <svg
                            class="h-5 w-5"
                            aria-hidden="true"
                            xmlns="http://www.w3.org/2000/svg"
                            fill="currentColor"
                            viewBox="0 0 8 19"
                        >
                            <path
                                fill-rule="evenodd"
                                d="M6.135 3H8V0H6.135a4.147 4.147 0 0 0-4.142 4.142V6H0v3h2v9.938h3V9h2.021l.592-3H5V3.591A.6.6 0 0 1 5.592 3h.543Z"
                                clip-rule="evenodd"
                            />
                        </svg>
                        <span class="sr-only">Facebook page</span>
                    </a>
                
                                    <a
                        href="https://www.instagram.com/food.amba.lt/"
                        target="_blank"
                        rel="noopener noreferrer"
                        class="text-gray-500 hover:text-gray-900 dark:hover:text-white"
                        aria-label="Instagram"
                    >
                        <svg
                            class="h-5 w-5"
                            aria-hidden="true"
                            xmlns="http://www.w3.org/2000/svg"
                            fill="currentColor"
                            viewBox="0 0 24 24"
                        >
                            <path
                                fill-rule="evenodd"
                                d="M12.315 2c2.43 0 2.784.013 3.808.06 1.064.049 1.791.218 2.427.465a4.902 4.902 0 011.772 1.153 4.902 4.902 0 011.153 1.772c.247.636.416 1.363.465 2.427.048 1.067.06 1.407.06 4.123v.08c0 2.643-.012 2.987-.06 4.043-.049 1.064-.218 1.791-.465 2.427a4.902 4.902 0 01-1.153 1.772 4.902 4.902 0 01-1.772 1.153c-.636.247-1.363.416-2.427.465-1.067.048-1.407.06-4.123.06h-.08c-2.643 0-2.987-.012-4.043-.06-1.064-.049-1.791-.218-2.427-.465a4.902 4.902 0 01-1.772-1.153 4.902 4.902 0 01-1.153-1.772c-.247-.636-.416-1.363-.465-2.427-.047-1.024-.06-1.379-.06-3.808v-.63c0-2.43.013-2.784.06-3.808.049-1.064.218-1.791.465-2.427a4.902 4.902 0 011.153-1.772A4.902 4.902 0 015.45 2.525c.636-.247 1.363-.416 2.427-.465C8.901 2.013 9.256 2 11.685 2h.63zm-.081 1.802h-.468c-2.456 0-2.784.011-3.807.058-.975.045-1.504.207-1.857.344-.467.182-.8.398-1.15.748-.35.35-.566.683-.748 1.15-.137.353-.3.882-.344 1.857-.047 1.023-.058 1.351-.058 3.807v.468c0 2.456.011 2.784.058 3.807.045.975.207 1.504.344 1.857.182.467.398.8.748 1.15.35.35.683.566 1.15.748.353.137.882.3 1.857.344 1.054.048 1.37.058 4.041.058h.08c2.597 0 2.917-.01 3.96-.058.976-.045 1.505-.207 1.858-.344.466-.182.8-.398 1.15-.748.35-.35.566-.683.748-1.15.137-.353.3-.882.344-1.857.048-1.055.058-1.37.058-4.041v-.08c0-2.597-.01-2.917-.058-3.96-.045-.976-.207-1.505-.344-1.858a3.097 3.097 0 00-.748-1.15 3.098 3.098 0 00-1.15-.748c-.353-.137-.882-.3-1.857-.344-1.023-.047-1.351-.058-3.807-.058zM12 6.865a5.135 5.135 0 110 10.27 5.135 5.135 0 010-10.27zm0 1.802a3.333 3.333 0 100 6.666 3.333 3.333 0 000-6.666zm5.338-3.205a1.2 1.2 0 110 2.4 1.2 1.2 0 010-2.4z"
                                clip-rule="evenodd"
                            />
                        </svg>
                        <span class="sr-only">Instagram page</span>
                    </a>
                
                
                            </div>
        </div>
    </div>
</footer>

        <div x-persist="fcm-token-manager">
            <div wire:key="lw-3449780231-2" wire:snapshot="{&quot;data&quot;:[],&quot;memo&quot;:{&quot;id&quot;:&quot;gE8F4guFfEPyFsEf4aPC&quot;,&quot;name&quot;:&quot;fcm-token-manager&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;390e42407bcc81243a903653e85029d7dcedb2e2ec00b576d26262cc52be06b9&quot;}" wire:effects="{&quot;partials&quot;:[]}" wire:id="gE8F4guFfEPyFsEf4aPC" wire:name="fcm-token-manager" id="fcm-token-manager" style="display: none;">
    
</div>
        </div>

        <script type="module">
            // Firebase FCM Token Registration (Global if permission granted)
            // Works for both authenticated users and guests
            (async function() {
                // Prevent multiple initializations across navigation
                if (window.fcmInitialized) {
                    return;
                }
                window.fcmInitialized = true;

                if (!('Notification' in window) || !('serviceWorker' in navigator)) {
                    return;
                }

                // Initialize FCM - it will request permission if needed
                if ('Notification' in window && 'serviceWorker' in navigator) {
                    try {
                        // Wait for app.js to load and expose firebaseModule
                        async function waitForFirebaseModule(maxAttempts = 50) {
                            for (let i = 0; i < maxAttempts; i++) {
                                if (window.firebaseModule && typeof window.firebaseModule.initializeFCM === 'function') {
                                    return window.firebaseModule;
                                }
                                await new Promise(resolve => setTimeout(resolve, 100));
                            }
                            return null;
                        }

                        const firebaseModule = await waitForFirebaseModule();
                        if (!firebaseModule) {
                            console.error('[FCM] initializeFCM not available after waiting. Make sure app.js is loaded.');
                            return;
                        }

                        const { initializeFCM } = firebaseModule;

                        const vapidKey = 'BFFJf13DcFsvI6UII6uKM1b0OdobwfKI14MUGIAFcJq47b2JV3MZjUvZWVURdi8YYIlzXCOtcZIdRl8EYz30vJ0';

                        function sendTokenToLivewire(token) {
                            // Find the FcmTokenManager component specifically
                            const managerElement = document.querySelector('#fcm-token-manager[wire\\:id]');
                            if (managerElement) {
                                const componentId = managerElement.getAttribute('wire:id');
                                if (typeof Livewire !== 'undefined' && Livewire.find) {
                                    const component = Livewire.find(componentId);
                                    if (component) {
                                        component.call('saveFcmToken', token);
                                    } else {
                                        setTimeout(() => sendTokenToLivewire(token), 500);
                                    }
                                } else {
                                    setTimeout(() => sendTokenToLivewire(token), 500);
                                }
                            } else {
                                setTimeout(() => sendTokenToLivewire(token), 500);
                            }
                        }

                        // Wait for Livewire to be ready before initializing
                        function waitForLivewireAndInitialize() {
                            if (typeof Livewire === 'undefined') {
                                document.addEventListener('livewire:init', () => {
                                    initializeFCM(vapidKey, sendTokenToLivewire);
                                });
                            } else {
                                setTimeout(() => {
                                    initializeFCM(vapidKey, sendTokenToLivewire);
                                }, 100);
                            }
                        }

                        if (document.readyState === 'loading') {
                            document.addEventListener('DOMContentLoaded', waitForLivewireAndInitialize);
                        } else {
                            waitForLivewireAndInitialize();
                        }
                    } catch (error) {
                        // Silently fail
                    }
                }
            })();
        </script>

        <div x-persist="gdpr-banner">
            <div wire:key="lw-3449780231-3" wire:snapshot="{&quot;data&quot;:{&quot;showModal&quot;:false,&quot;marketingCookies&quot;:false,&quot;functionalCookies&quot;:false,&quot;performanceCookies&quot;:false},&quot;memo&quot;:{&quot;id&quot;:&quot;8XWGrrVvwbfK5aIqx4MK&quot;,&quot;name&quot;:&quot;gdpr&quot;,&quot;path&quot;:&quot;\/&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;release&quot;:&quot;a-a-a&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;lt&quot;,&quot;islands&quot;:[]},&quot;checksum&quot;:&quot;2bdb30153c42611ec0a37022fda5801fa6657757ea3429a92d9adf8f83f5ef8f&quot;}" wire:effects="{&quot;partials&quot;:[],&quot;listeners&quot;:[&quot;gdpr-open-settings&quot;]}" wire:id="8XWGrrVvwbfK5aIqx4MK" wire:name="gdpr">
                        <div
                id="gdpr-banner"
                class="fixed inset-x-0 bottom-0 z-50 bg-white shadow-lg dark:bg-gray-800"
            >
            <div
                class="mx-auto flex max-w-7xl flex-wrap items-center justify-between gap-2 px-4 py-3"
            >
                <!-- Text Section -->
                <div class="text-sm text-gray-800 dark:text-gray-200">
                    Mes naudojame slapukus, kad pagerintume jūsų naršymo patirtį, pateiktume personalizuotus skelbimus ar turinį ir analizuotume mūsų srautą. Spustelėdami &quot;Priimti visus&quot;, sutinkate su mūsų slapukų naudojimu.
                </div>

                <!-- Buttons Section -->
                <div class="flex items-center gap-2">
                    <!-- Settings Button -->
                    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md px-3 inline-flex  bg-white hover:bg-zinc-50 dark:bg-zinc-700 dark:hover:bg-zinc-600/75 text-zinc-800 dark:text-white border border-zinc-200 hover:border-zinc-200 border-b-zinc-300/80 dark:border-zinc-600 dark:hover:border-zinc-600 shadow-xs [[data-flux-button-group]_&amp;]:border-s-0 [:is([data-flux-button-group]&gt;&amp;:first-child,_[data-flux-button-group]_:first-child&gt;&amp;)]:border-s-[1px] *:transition-opacity [&amp;[data-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-flux-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-loading]&gt;[data-flux-loading-indicator]]:opacity-100 [&amp;[data-flux-loading]&gt;[data-flux-loading-indicator]]:opacity-100 data-loading:pointer-events-none data-flux-loading:pointer-events-none" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" wire:target="manageSettings" wire:loading.attr="data-flux-loading" wire:click="manageSettings">
        <div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
                <svg class="shrink-0 [:where(&amp;)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
    <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
    <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
                    </div>
        
        
                    
            
            <span><!-- Show settings icon on small screens -->
                            <svg
                                class="h-5 w-5 sm:hidden"
                                xmlns="http://www.w3.org/2000/svg"
                                fill="none"
                                viewBox="0 0 24 24"
                                stroke="currentColor"
                                stroke-width="2"
                            >
                                <path
                                    stroke-linecap="round"
                                    stroke-linejoin="round"
                                    d="M12 15.75a3.75 3.75 0 100-7.5 3.75 3.75 0 000 7.5zm6.364-10.607a9 9 0 11-12.728 0M4.636 3.643A9 9 0 0112 3a9 9 0 017.364 3.643"
                                />
                            </svg>
                            <!-- Show text on larger screens -->
                            <span class="hidden sm:inline">
                                Tvarkyti nustatymus
                            </span></span>
    </button>

                    <!-- Accept All Button -->
                    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md px-3 inline-flex  bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&amp;]:border-e-0 [:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-[1px] dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-e-0 dark:[:is([data-flux-button-group]&gt;&amp;:last-child,_[data-flux-button-group]_:last-child&gt;&amp;)]:border-s-[1px] [:is([data-flux-button-group]&gt;&amp;:not(:first-child),_[data-flux-button-group]_:not(:first-child)&gt;&amp;)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)] *:transition-opacity [&amp;[data-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-flux-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-loading]&gt;[data-flux-loading-indicator]]:opacity-100 [&amp;[data-flux-loading]&gt;[data-flux-loading-indicator]]:opacity-100 data-loading:pointer-events-none data-flux-loading:pointer-events-none" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" wire:target="acceptAll" wire:loading.attr="data-flux-loading" wire:click="acceptAll">
        <div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
                <svg class="shrink-0 [:where(&amp;)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
    <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
    <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
                    </div>
        
        
                    
            
            <span>Priimti visus</span>
    </button>

                    <!-- Reject All Button -->
                    <button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md px-3 inline-flex  bg-white hover:bg-zinc-50 dark:bg-zinc-700 dark:hover:bg-zinc-600/75 text-zinc-800 dark:text-white border border-zinc-200 hover:border-zinc-200 border-b-zinc-300/80 dark:border-zinc-600 dark:hover:border-zinc-600 shadow-xs [[data-flux-button-group]_&amp;]:border-s-0 [:is([data-flux-button-group]&gt;&amp;:first-child,_[data-flux-button-group]_:first-child&gt;&amp;)]:border-s-[1px] *:transition-opacity [&amp;[data-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-flux-loading]&gt;:not([data-flux-loading-indicator])]:opacity-0 [&amp;[data-loading]&gt;[data-flux-loading-indicator]]:opacity-100 [&amp;[data-flux-loading]&gt;[data-flux-loading-indicator]]:opacity-100 data-loading:pointer-events-none data-flux-loading:pointer-events-none" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" wire:target="rejectAll" wire:loading.attr="data-flux-loading" wire:click="rejectAll">
        <div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
                <svg class="shrink-0 [:where(&amp;)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
    <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
    <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
</svg>
                    </div>
        
        
                    
            
            <span>Atmesti visus</span>
    </button>
                </div>
            </div>
        
        <!-- Modal for Cookie Preferences using Flux Modal -->
        
    
                </div>
        </div>

                                                    <script>
            function cartSplitModal() {
                return {
                    // Modal data
                    id: null,
                    productName: '',
                    currentUserId: null,
                    ownerId: null,
                    ownerPercentage: 100,
                    itemCostMinor: 0,
                    currency: 'EUR',
                    sharedUsers: [],

                    // UI state
                    userPercentage: 0,
                    ownerInitialPercentage: null,

                    // Helper to format money in the same way as PHP
                    formatMoney(amount) {
                        if (amount === undefined) return '0.00 ' + this.currency;
                        return new Intl.NumberFormat('lt-LT', {
                            style: 'currency',
                            currency: this.currency,
                            minimumFractionDigits: 2,
                        }).format(amount / 100);
                    },

                    // Initialize modal with data
                    init() {
                        // Listen for open-split-modal events
                        Livewire.on('open-split-modal', (event) => {
                            console.log('Received open-split-modal event:', event);
                            console.log('Event itemId:', event.itemId);
                            console.log('Event modalData:', event.modalData);
                            this.loadModalData(event.modalData);
                            this.openModal(event.itemId);
                        });
                    },

                    // Load modal data from Livewire
                    loadModalData(data) {
                        console.log('Loading modal data for cart item:', data.id, data);

                        // Clear previous data
                        this.id = null;
                        this.productName = '';
                        this.currentUserId = null;
                        this.ownerId = null;
                        this.ownerPercentage = 100;
                        this.itemCostMinor = 0;
                        this.currency = 'EUR';
                        this.sharedUsers = [];
                        this.userPercentage = 0;
                        this.ownerInitialPercentage = null;

                        // Load new data
                        this.id = data.id;
                        this.productName = data.productName;
                        this.currentUserId = data.currentUserId;
                        this.ownerId = data.ownerId;
                        this.ownerPercentage = data.ownerPercentage;
                        this.itemCostMinor = data.itemCostMinor;
                        this.currency = data.currency;
                        this.sharedUsers = data.sharedUsers || [];

                        // Initialize percentages
                        this.initializePercentages();
                    },

                    // Initialize percentages
                    initializePercentages() {
                        // Find current user in shared users
                        let current = this.sharedUsers.find((u) => u.userId === this.currentUserId);

                        // If current user is the owner, ensure they can't go below their current percentage
                        if (this.currentUserId === this.ownerId && current) {
                            this.ownerInitialPercentage = current.percentage;
                        }

                        // If current user is not in sharedUsers, add them with a default percentage
                        if (!current) {
                            let defaultPercentage = 0;
                            if (this.currentUserId === this.ownerId) {
                                defaultPercentage = this.ownerPercentage;
                            }

                            // Generate proper display name (this should match server logic)
                            let displayName = 'User';
                            if (
                                typeof this.currentUserId === 'string' &&
                                this.currentUserId.includes('-')
                            ) {
                                // It's a guest UUID - check if we have nickname data from server
                                if (this.sharedUsers && this.sharedUsers.length > 0) {
                                    const existingUser = this.sharedUsers.find(
                                        (u) => u.userId === this.currentUserId,
                                    );
                                    if (
                                        existingUser &&
                                        existingUser.name &&
                                        !existingUser.name.includes('Guest')
                                    ) {
                                        // Use the nickname from server
                                        displayName = existingUser.name;
                                    } else {
                                        // Fallback to guest format
                                        displayName = 'Guest ' + this.currentUserId.slice(-4);
                                    }
                                } else {
                                    // Fallback to guest format
                                    displayName = 'Guest ' + this.currentUserId.slice(-4);
                                }
                            } else if (typeof this.currentUserId === 'number') {
                                // It's a user ID - we can't get the actual name here, so use generic
                                displayName = 'User ' + this.currentUserId;
                            }

                            // Add translated (You) suffix for current user
                            displayName += ' (Jūs)';

                            current = {
                                userId: this.currentUserId,
                                percentage: defaultPercentage,
                                previewPercentage: defaultPercentage,
                                name: displayName,
                                color: this.generateConsistentColor(this.currentUserId),
                                share: 0,
                            };
                            this.sharedUsers.push(current);
                        }

                        // Make sure all users have previewPercentage set
                        this.sharedUsers.forEach((u) => {
                            if (typeof u.previewPercentage === 'undefined') {
                                u.previewPercentage = u.percentage;
                            }
                            // Don't override names - use the ones from server
                        });

                        // Set the slider value to the current user's actual percentage
                        this.userPercentage = current ? current.percentage : 0;

                        // Apply the server logic to ensure percentages are properly distributed
                        this.applyServerLogicPreview(this.currentUserId, this.userPercentage);

                        // Recalc shares for display
                        this.recalcMonetaryShares();
                    },

                    // Called whenever the slider moves
                    adjustPercentage(event) {
                        let newVal = Math.max(0, Math.min(100, Number(event.target.value)));

                        // If current user is the owner, do not allow going below initial percentage
                        if (
                            this.currentUserId === this.ownerId &&
                            this.ownerInitialPercentage != null
                        ) {
                            newVal = Math.max(newVal, this.ownerInitialPercentage);
                        }

                        this.userPercentage = newVal;

                        // Run the EXACT same logic your server does, but in a "temp" array.
                        this.applyServerLogicPreview(this.currentUserId, newVal);

                        // Then recalc the money shares for display (based on previewPercentage).
                        this.recalcMonetaryShares();
                    },

                    /**
                     * This function replicates your server's "splitCart()" logic on a temporary copy,
                     * then maps the results back into `sharedUsers` as `previewPercentage`.
                     */
                    applyServerLogicPreview(userId, value) {
                        // Create a temp copy of the users
                        let temp = this.sharedUsers.map((u) => {
                            return {
                                userId: u.userId,
                                percentage: u.userId === userId ? value : u.percentage,
                            };
                        });

                        let ownerId = this.ownerId;

                        // If the slider is 100 => sole payer
                        if (value === 100) {
                            temp = [{ userId: userId, percentage: 100 }];
                        } else {
                            // Ensure user is in the array
                            let found = temp.find((t) => t.userId === userId);
                            if (!found) {
                                temp.push({ userId, percentage: value });
                            } else {
                                found.percentage = value;
                            }

                            // Collect non-owner entries
                            let nonOwner = temp.filter((t) => t.userId !== ownerId);
                            let nonOwnerTotal = nonOwner.reduce((sum, t) => sum + t.percentage, 0);

                            if (userId !== ownerId) {
                                // NON-OWNER UPDATING
                                if (nonOwnerTotal > 100) {
                                    let remainder = 100 - value;
                                    let otherTotal = nonOwnerTotal - value;
                                    if (otherTotal > 0) {
                                        for (let t of nonOwner) {
                                            if (t.userId !== userId) {
                                                t.percentage = Math.round(
                                                    (t.percentage * remainder) / otherTotal,
                                                );
                                            }
                                        }
                                    }
                                    temp = temp.filter((t) => t.userId !== ownerId);
                                } else {
                                    let ownerItem = temp.find((t) => t.userId === ownerId);
                                    if (ownerItem) {
                                        ownerItem.percentage = Math.max(100 - nonOwnerTotal, 0);
                                    }
                                }
                            } else {
                                // OWNER UPDATING
                                if (value + nonOwnerTotal > 100) {
                                    let excess = value + nonOwnerTotal - 100;
                                    if (nonOwnerTotal > 0) {
                                        for (let t of nonOwner) {
                                            let reduction = Math.round(
                                                (t.percentage / nonOwnerTotal) * excess,
                                            );
                                            t.percentage = Math.max(t.percentage - reduction, 0);
                                        }
                                    }
                                }
                                nonOwnerTotal = temp
                                    .filter((t) => t.userId !== ownerId)
                                    .reduce((sum, t) => sum + t.percentage, 0);
                                let ownerItem = temp.find((t) => t.userId === ownerId);
                                if (ownerItem) {
                                    ownerItem.percentage = Math.max(100 - nonOwnerTotal, 0);
                                }
                            }

                            // Remove any non-owner with 0% (but keep the owner if 0)
                            temp = temp.filter((t) => {
                                if (t.userId === ownerId) return true;
                                return t.percentage > 0;
                            });
                        }

                        // Map those final percentages back to the main array as `previewPercentage`
                        this.sharedUsers.forEach((u) => {
                            let tMatch = temp.find((t) => t.userId === u.userId);
                            if (tMatch) {
                                u.previewPercentage = tMatch.percentage;
                            } else {
                                u.previewPercentage = 0;
                            }
                        });
                    },

                    // Recalc each user's money share (in minor units) based on `previewPercentage`
                    recalcMonetaryShares() {
                        let nonOwnerSum = 0;
                        for (let u of this.sharedUsers) {
                            if (u.userId !== this.ownerId) {
                                let share = Math.floor(
                                    (this.itemCostMinor * u.previewPercentage) / 100,
                                );
                                u.share = share;
                                nonOwnerSum += share;
                            }
                        }

                        let owner = this.sharedUsers.find((u) => u.userId === this.ownerId);
                        if (owner) {
                            let ownerBase = Math.floor(
                                (this.itemCostMinor * owner.previewPercentage) / 100,
                            );
                            owner.share =
                                ownerBase + (this.itemCostMinor - (ownerBase + nonOwnerSum));
                        }

                        // Force Alpine reactivity by reassigning
                        this.sharedUsers = [...this.sharedUsers];

                        let current = this.sharedUsers.find((u) => u.userId === this.currentUserId);
                        this.userPercentage = current ? current.previewPercentage : 0;
                    },

                    // On Save, dispatch the final user percentage to the server
                    submitSplit() {
                        try {
                            Livewire.dispatch('splitCart', {
                                id: this.id,
                                value: this.userPercentage,
                            });
                        } catch (error) {
                            console.error('Error dispatching to Livewire:', error);
                        }

                        this.closeModal();
                    },

                    // Open the modal
                    openModal(itemId) {
                        window.Flux.modal('cart-split-modal-' + itemId).show();
                    },

                    // Close the modal
                    closeModal() {
                        window.Flux.modal('cart-split-modal-' + this.id).close();
                    },

                    // Helper function to generate a random color for new users
                    generateRandomColor() {
                        const letters = '0123456789ABCDEF';
                        let color = '#';
                        for (let i = 0; i < 6; i++) {
                            color += letters[Math.floor(Math.random() * 16)];
                        }
                        return color;
                    },

                    // Helper function to generate consistent color based on userId (matches server-side crc32)
                    generateConsistentColor(userId) {
                        // CRC32 implementation to match server-side generateColor method
                        function crc32(str) {
                            const table = [];
                            for (let i = 0; i < 256; i++) {
                                let c = i;
                                for (let j = 0; j < 8; j++) {
                                    c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;
                                }
                                table[i] = c;
                            }

                            let crc = 0 ^ -1;
                            for (let i = 0; i < str.length; i++) {
                                crc = (crc >>> 8) ^ table[(crc ^ str.charCodeAt(i)) & 0xff];
                            }
                            return (crc ^ -1) >>> 0;
                        }

                        const hash = crc32(userId);

                        // Extract RGB components using bitwise operations (matches server-side)
                        const red = (hash & 0xff0000) >> 16;
                        const green = (hash & 0x00ff00) >> 8;
                        const blue = hash & 0x0000ff;

                        // Return as hex color
                        return (
                            '#' +
                            red.toString(16).padStart(2, '0') +
                            green.toString(16).padStart(2, '0') +
                            blue.toString(16).padStart(2, '0')
                        );
                    },
                };
            }

            document.addEventListener('livewire:initialized', () => {
                // Handle refresh-cart-component events
                Livewire.on('refresh-cart-component', () => {
                    // Force Livewire to reload the component
                    Livewire.dispatch('refreshFullCart');
                });

                // Handle open delivery split modal
                Livewire.on('open-delivery-split-modal', () => {
                    if (window.Flux && window.Flux.modal) {
                        window.Flux.modal('delivery-split-modal').show();
                    }
                });
            });

            // Initialize Alpine store for cart drawer (global state)
            document.addEventListener('alpine:init', () => {
                if (!Alpine.store('cartDrawer')) {
                    Alpine.store('cartDrawer', { open: false });
                }
            });

            // Close drawer on escape key
            document.addEventListener('keydown', (e) => {
                if (e.key === 'Escape' && Alpine.store('cartDrawer')?.open) {
                    Alpine.store('cartDrawer').open = false;
                }
            });

            // Listen for refresh-cart-totals event
            document.addEventListener('livewire:init', () => {
                Livewire.on('refresh-cart-totals', () => {
                    // Force complete Livewire component refresh
                    const cartComponent = document.querySelector('[wire\\:id]');
                    if (cartComponent) {
                        const componentId = cartComponent.getAttribute('wire:id');
                        const livewireComponent = Livewire.find(componentId);
                        if (livewireComponent) {
                            // Force a complete refresh of the component
                            livewireComponent.$refresh();
                        }
                    }
                });
            });

            // Delivery split modal for shared carts
            function deliverySplitModal() {
                return {
                    sharedUsers: [],
                    deliveryFee: 0,
                    tipAmount: 0,
                    deliveryFeeSplit: {},
                    tipSplit: {},
                    userPercentage: 50,
                    currentUserId: null,

                    init() {
                        // Listen for modal open event to load fresh data
                        Livewire.on('openDeliverySplitModalWithData', (data) => {
                            if (data && data[0]) {
                                this.deliveryFee = data[0].deliveryFee || 0;
                                this.tipAmount = data[0].tipAmount || 0;
                                this.deliveryFeeSplit = data[0].deliveryFeeSplit || {};
                                this.tipSplit = data[0].tipSplit || {};
                                this.loadUsersFromData(data[0].users || []);

                                // Open the modal
                                if (window.Flux && window.Flux.modal) {
                                    window.Flux.modal('delivery-split-modal').show();
                                }
                            }
                        });

                        // Listen for updates
                        window.addEventListener('deliveryFeeUpdated', (e) => {
                            if (e.detail && e.detail.deliveryFee !== undefined) {
                                this.deliveryFee = e.detail.deliveryFee;
                                this.updateShares();
                            }
                        });

                        window.addEventListener('tipAmountUpdated', (e) => {
                            if (e.detail && e.detail.tipAmount !== undefined) {
                                this.tipAmount = e.detail.tipAmount;
                                this.updateShares();
                            }
                        });
                    },

                    loadUsersFromData(usersData) {
                        this.sharedUsers = [];
                        const users = Array.isArray(usersData)
                            ? usersData
                            : Object.values(usersData);

                        users.forEach((user) => {
                            const userId = user.userId || user.id;
                            if (!userId) return;

                            const percentage =
                                this.deliveryFeeSplit[userId] ?? Math.floor(100 / users.length);

                            this.sharedUsers.push({
                                userId: String(userId),
                                name: user.name || 'User',
                                color: user.color || this.generateColor(String(userId)),
                                profilePicture: user.profilePicture || user.profile_picture || null,
                                previewPercentage: percentage,
                                deliveryShare: Math.floor((this.deliveryFee * percentage) / 100),
                                tipShare: Math.floor((this.tipAmount * percentage) / 100),
                            });
                        });

                        // Find current user
                        const currentUserData = this.sharedUsers.find(
                            (u) => u.name.includes('(Jūs)') || u.name.includes('(You)'),
                        );
                        if (currentUserData) {
                            this.currentUserId = currentUserData.userId;
                            this.userPercentage = currentUserData.previewPercentage;
                        } else if (this.sharedUsers.length > 0) {
                            this.currentUserId = this.sharedUsers[0].userId;
                            this.userPercentage = this.sharedUsers[0].previewPercentage;
                        }
                    },

                    adjustPercentage(event) {
                        const newPercentage = parseInt(event.target.value, 10);
                        const otherUsers = this.sharedUsers.filter(
                            (u) => u.userId !== this.currentUserId,
                        );

                        if (otherUsers.length === 0) {
                            this.userPercentage = 100;
                            this.updateShares();
                            return;
                        }

                        const remainingPercentage = 100 - newPercentage;
                        const perUser = Math.floor(remainingPercentage / otherUsers.length);
                        let remainder = remainingPercentage - perUser * otherUsers.length;

                        this.sharedUsers.forEach((user) => {
                            if (user.userId === this.currentUserId) {
                                user.previewPercentage = newPercentage;
                            } else {
                                user.previewPercentage = perUser + (remainder > 0 ? 1 : 0);
                                if (remainder > 0) remainder--;
                            }
                        });

                        this.updateShares();
                    },

                    updateShares() {
                        this.sharedUsers.forEach((user) => {
                            user.deliveryShare = Math.floor(
                                (this.deliveryFee * user.previewPercentage) / 100,
                            );
                            user.tipShare = Math.floor(
                                (this.tipAmount * user.previewPercentage) / 100,
                            );
                        });
                    },

                    generateColor(identifier) {
                        const hash = this.hashCode(identifier);
                        const red = (hash & 0xff0000) >> 16;
                        const green = (hash & 0x00ff00) >> 8;
                        const blue = hash & 0x0000ff;
                        return `#${red.toString(16).padStart(2, '0')}${green.toString(16).padStart(2, '0')}${blue.toString(16).padStart(2, '0')}`;
                    },

                    hashCode(str) {
                        let hash = 0;
                        for (let i = 0; i < str.length; i++) {
                            const char = str.charCodeAt(i);
                            hash = (hash << 5) - hash + char;
                            hash = hash & hash;
                        }
                        return Math.abs(hash);
                    },

                    formatMoney(cents) {
                        return new Intl.NumberFormat('lt-LT', {
                            style: 'currency',
                            currency: 'EUR',
                        }).format(cents / 100);
                    },

                    submitSplit() {
                        const deliverySplit = {};
                        const tipSplit = {};

                        this.sharedUsers.forEach((user) => {
                            deliverySplit[user.userId] = user.previewPercentage;
                            tipSplit[user.userId] = user.previewPercentage;
                        });

                        Livewire.dispatch('updateDeliveryFeeSplit', { split: deliverySplit });
                        Livewire.dispatch('updateTipSplit', { split: tipSplit });
                        window.Flux.modal('delivery-split-modal').close();
                    },
                };
            }
        </script>
        <script>
        // Leave Table Service function
        window.leaveTableService = function() {
            if (confirm('Ar tikrai norite palikti staliuko aptarnavimą? Tai išvalys jūsų dabartinę sesiją ir nukreips į pagrindinį puslapį.')) {
                // Safely dispatch to cart component if it exists
                try {
                    if (typeof Livewire !== 'undefined' && Livewire.dispatchTo) {
                        Livewire.dispatchTo('cart', 'leaveTableService');
                    }
                } catch (e) {
                    // Cart component might not exist on this page, ignore error
                    console.debug('Cart component not found, skipping leaveTableService dispatch');
                }
            }
        };
    </script>
            <script>
                document.addEventListener('DOMContentLoaded', () => {
                    const gdprBanner = document.getElementById('gdpr-banner');
                    const footer = document.querySelector('footer');
                    const body = document.body;

                    // Detect Facebook in-app browser
                    const isFacebookApp =
                        navigator.userAgent.includes('FBAN') || navigator.userAgent.includes('FBAV');
                    const facebookExtraPadding = isFacebookApp ? 80 : 0;

                    function adjustFooterPadding() {
                        let totalPadding = facebookExtraPadding;

                        if (gdprBanner && !gdprBanner.classList.contains('hidden')) {
                            totalPadding += 80; // Add GDPR banner height
                        }

                        footer.style.paddingBottom = `${totalPadding}px`;
                    }

                    adjustFooterPadding();

                    // Adjust padding on window resize
                    window.addEventListener('resize', adjustFooterPadding);

                    // Observe changes to GDPR banner visibility
                    const observer = new MutationObserver(() => {
                        adjustFooterPadding();
                    });

                    if (gdprBanner) {
                        observer.observe(gdprBanner, {
                            attributes: true,
                            attributeFilter: ['class'],
                        });
                    }
                });

                // Google Analytics integration with GDPR consent
                                    // Initialize GA if performance cookies are allowed
                    function initGoogleAnalytics() {
                        // Load gtag script dynamically
                        const script = document.createElement('script');
                        script.async = true;
                        script.src = 'https://www.googletagmanager.com/gtag/js?id=G-R102WHFN5Q';
                        document.head.appendChild(script);

                        // Initialize gtag
                        window.dataLayer = window.dataLayer || [];
                        function gtag(){dataLayer.push(arguments);}
                        window.gtag = gtag;
                        gtag('js', new Date());
                        gtag('config', 'G-R102WHFN5Q');

                        console.log('Google Analytics initialized');
                    }

                    // Disable GA tracking
                    function disableGoogleAnalytics() {
                        // Disable gtag if it exists
                        if (window.gtag) {
                            gtag('config', 'G-R102WHFN5Q', {
                                'allow_google_signals': false,
                                'allow_ad_personalization_signals': false,
                                'allow_ad_features': false
                            });
                        }

                        // Remove GA cookies
                        const cookies = document.cookie.split(';');
                        for (let cookie of cookies) {
                            const eqPos = cookie.indexOf('=');
                            const name = eqPos > -1 ? cookie.substr(0, eqPos).trim() : cookie.trim();
                            if (name.startsWith('_ga') || name.startsWith('_gid') || name.startsWith('_gat')) {
                                document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/';
                            }
                        }

                        console.log('Google Analytics disabled');
                    }

                    // Check if performance cookies are allowed and initialize accordingly
                    
                    
                    // Listen for GDPR consent changes
                    document.addEventListener('livewire:init', () => {
                        Livewire.on('gdprPreferencesSaved', (consent) => {
                            console.log('GDPR consent updated:', consent);

                            if (consent.performance && !window.gtag) {
                                // Enable GA if performance cookies are now allowed
                                initGoogleAnalytics();
                            } else if (!consent.performance && window.gtag) {
                                // Disable GA if performance cookies are no longer allowed
                                disableGoogleAnalytics();
                            }
                        });
                    });
                            </script>
                <script src="https://amba.lt/index.php/livewire-78f430de/livewire.min.js?id=8f29b734"   data-csrf="J6r18pfMVOO2Nc3CedDbB84U3KVTnLlpdTNLCGHk" data-module-url="https://amba.lt/index.php/livewire-78f430de" data-update-uri="https://amba.lt/index.php/livewire-78f430de/update" data-navigate-once="true"></script>
        <script src="https://amba.lt/index.php/flux/flux.min.js?id=2a3483b5" data-navigate-once></script>

        <script>
            document.addEventListener('DOMContentLoaded', function() {
                            });
        </script>
    </body>
</html>
