<div class="rounded-lg bg-surface p-6">
    <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">{{ __('billing.addon_cancel_title', ['module' => $moduleName]) }}</h3>
            <p class="mt-1 text-sm text-muted">
                {{ $endsAt
                    ? __('billing.addon_cancel_body', ['date' => $endsAt->local()->isoFormat('LL')])
                    : __('billing.addon_cancel_body_now') }}
            </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" />{{ __('billing.addon_cancel_point_term') }}
        </li>
        <li class="flex items-start gap-2">
            <x-ui.icon name="rotate-ccw" class="mt-0.5 size-4 shrink-0 text-muted" />{{ __('billing.addon_cancel_point_undo') }}
        </li>
    </ul>

    <div class="mt-6 flex justify-end gap-3">
        <x-ui.button variant="secondary" x-on:click="Livewire.dispatch('closeModal')">{{ __('billing.addon_cancel_keep') }}</x-ui.button>
        <x-ui.button variant="danger" wire:click="proceed" wire:loading.attr="disabled">
            {{ __('billing.addon_cancel_confirm') }}
        </x-ui.button>
    </div>
</div>
