.app-confirm {
    width: min(92vw, 30rem);
    max-width: 30rem;
    padding: 0;
    overflow: hidden;
    color: #212529;
    background: #fff;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.28);
    z-index: 2147483647;
}

.app-confirm::backdrop {
    background: rgba(15, 23, 42, 0.58);
}

.app-confirm__panel {
    padding: 1.5rem;
}

.app-confirm__title {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.app-confirm__message {
    margin: 0;
    color: #495057;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.app-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.app-confirm__button {
    min-height: 2.65rem;
    padding: 0.55rem 1rem;
    font: inherit;
    font-weight: 600;
    border: 1px solid #ced4da;
    border-radius: 0.45rem;
    cursor: pointer;
}

.app-confirm__button:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

.app-confirm__cancel {
    color: #343a40;
    background: #fff;
}

.app-confirm__accept {
    color: #fff;
    background: #2e7d32;
    border-color: #2e7d32;
}

.app-confirm__accept--danger {
    background: #b02a37;
    border-color: #b02a37;
}

@media (max-width: 30rem) {
    .app-confirm__actions {
        flex-direction: column-reverse;
    }

    .app-confirm__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-confirm {
        scroll-behavior: auto;
    }
}