<div class="rounded-lg bg-surface p-6">
    @if ($blocked)
        <div class="flex items-start gap-3">
            <span class="grid size-10 shrink-0 place-items-center rounded-lg bg-warning-bg text-warning">
                <x-ui.icon name="alert-triangle" class="size-5" />
            </span>
            <div class="min-w-0">
                <h3 class="text-base font-semibold text-ink">{{ __('settings.close_blocked_title') }}</h3>
                <p class="mt-1 text-sm text-muted">{{ __('settings.close_blocked') }}</p>
            </div>
        </div>
        <div class="mt-6 flex justify-end">
            <x-ui.button variant="secondary" x-on:click="Livewire.dispatch('closeModal')">{{ __('settings.keep') }}</x-ui.button>
        </div>
    @else
        <div class="flex items-start gap-3">
            <span class="grid size-10 shrink-0 place-items-center rounded-lg bg-danger-bg text-danger">
                <x-ui.icon name="alert-triangle" class="size-5" />
            </span>
            <div class="min-w-0">
                <h3 class="text-base font-semibold text-ink">{{ __('settings.close_title') }}</h3>
                <p class="mt-1 text-sm text-muted">{{ __('settings.close_body') }}</p>
            </div>
        </div>
        <div class="mt-4">
            <label class="text-sm text-body">{{ __('settings.close_confirm_label', ['word' => __('settings.close_keyword')]) }}</label>
            <input type="text" wire:model="confirmWord" class="mt-1.5 w-full rounded-md border border-line-strong bg-surface px-3 py-2 text-sm text-ink" />
            @error('confirmWord')<p class="mt-1 text-xs text-danger">{{ $message }}</p>@enderror
        </div>
        <div class="mt-6 flex justify-end gap-3">
            <x-ui.button variant="secondary" x-on:click="Livewire.dispatch('closeModal')">{{ __('settings.keep') }}</x-ui.button>
            <x-ui.button variant="danger" wire:click="closeAccount" wire:loading.attr="disabled">
                {{ __('settings.close_confirm') }}
            </x-ui.button>
        </div>
    @endif
</div>
