<x-ui.modal>
    <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.cancel_title') }}</h3>
            <p class="mt-1 text-sm text-muted">{{ __('settings.cancel_body') }}</p>
        </div>
    </div>

    <ul class="mt-4 space-y-1.5 text-sm text-body">
        <li class="flex items-start gap-2"><x-ui.icon name="check" class="mt-0.5 size-4 shrink-0 text-muted" />{{ __('settings.cancel_point_term') }}</li>
        <li class="flex items-start gap-2"><x-ui.icon name="check" class="mt-0.5 size-4 shrink-0 text-muted" />{{ __('settings.cancel_point_export') }}</li>
        <li class="flex items-start gap-2"><x-ui.icon name="alert-triangle" class="mt-0.5 size-4 shrink-0 text-warning" />{{ __('settings.cancel_point_irreversible') }}</li>
    </ul>

    <div class="mt-4">
        <label class="text-sm text-body">{{ __('settings.cancel_confirm_label', ['name' => $subdomain]) }}</label>
        <input type="text" wire:model="confirmName" class="mt-1.5 w-full rounded-md border border-line-strong bg-surface px-3 py-2 text-sm text-ink" />
        @error('confirmName')<p class="mt-1 text-xs text-danger">{{ $message }}</p>@enderror
    </div>

    <x-slot:footer>
        <div class="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="cancelPackage" wire:loading.attr="disabled">
            {{ __('settings.cancel_confirm') }}
        </x-ui.button>
        </div>
    </x-slot:footer>
</x-ui.modal>
