.app-confirm-open {
    overflow: hidden;
}

.app-confirm-overlay[hidden] {
    display: none !important;
}

.app-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.app-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.app-confirm-dialog {
    position: relative;
    width: min(100%, 31rem);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem 1rem;
    padding: clamp(1rem, 4vw, 1.5rem);
    border: 1px solid var(--pp-border, rgba(255, 255, 255, 0.22));
    border-radius: var(--pp-radius, 14px);
    background: var(--pp-card, #172219);
    color: var(--pp-font, #ffffff);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}

.app-confirm-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--pp-primary, #4f8a4b);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
}

.app-confirm-copy {
    min-width: 0;
}

.app-confirm-copy h2 {
    margin: 0 0 0.45rem;
    color: var(--pp-heading, #ffffff);
    font-size: clamp(1.1rem, 4vw, 1.35rem);
}

.app-confirm-copy p {
    margin: 0;
    color: var(--pp-muted, #d6ded7);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.app-confirm-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.app-confirm-actions .btn {
    min-width: 7.5rem;
    white-space: normal;
}

.app-confirm-accept.is-danger {
    border-color: #c94747 !important;
    background: #b73535 !important;
    color: #ffffff !important;
}

.app-confirm-accept.is-danger:hover,
.app-confirm-accept.is-danger:focus-visible {
    border-color: #e45a5a !important;
    background: #c94747 !important;
}

.photo-upload-file-error {
    display: block;
    margin-top: 0.35rem;
    color: #ffb4b4;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

.photo-upload-file-error[hidden] {
    display: none !important;
}

@media (max-width: 30rem) {
    .app-confirm-dialog {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-confirm-icon {
        margin-inline: auto;
    }

    .app-confirm-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .app-confirm-actions .btn {
        width: 100%;
    }
}
