@if (session()->has('impersonator_id'))
    <div class="sticky top-0 z-[80] flex items-center justify-center gap-3 bg-gradient-to-r from-amber-500 to-amber-400 px-4 py-2.5 text-center text-sm font-semibold text-amber-950">
        <x-icon name="user" class="h-4 w-4 shrink-0" />
        <span>You’re viewing the site as <strong>{{ auth()->user()->name }}</strong>.</span>
        <a href="{{ route('impersonate.leave') }}"
           class="inline-flex items-center gap-1.5 rounded-full bg-amber-950 px-3 py-1 text-xs font-bold text-amber-50 transition hover:bg-amber-900">
            <x-icon name="arrow-left" class="h-3.5 w-3.5" /> Return to admin
        </a>
    </div>
@endif
