/* Même structure Bootstrap et même palette que les modales du site. */
#as-confirmation {
    z-index: 13040 !important;
    width: 100%;
    max-height: none;
    background: transparent;
}

.modal-backdrop.as-confirmation-backdrop {
    z-index: 13030 !important;
}

#as-confirmation .modal-dialog {
    width: auto;
    max-width: 540px;
    margin: 16px auto;
    min-height: calc(100% - 32px);
}

#as-confirmation .modal-content {
    padding: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border-radius: 10px;
}

.site-public #as-confirmation .modal-content {
    background: var(--as-header);
    color: #fff;
    border: 1px solid var(--as-muted);
}

#as-confirmation .modal-header,
#as-confirmation .modal-footer {
    flex: 0 0 auto;
    padding: 16px 20px;
    background: transparent;
}

#as-confirmation .modal-title {
    color: inherit;
    font-size: 1.25rem;
    font-weight: 600;
}

#as-confirmation .close {
    color: inherit;
    text-shadow: none;
    opacity: 1;
}

#as-confirmation .modal-body {
    overflow-y: auto;
    padding: 20px;
}

#as-confirmation-message {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.6;
    color: inherit;
}

#as-confirmation .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
}

#as-confirmation .btn {
    height: auto;
    min-height: 44px;
    margin: 0;
    white-space: normal;
}

#as-confirmation button:focus-visible {
    outline: 2px solid var(--as-blue-light, var(--as-cyan));
    outline-offset: 3px;
}

@media (max-width: 575px) {
    #as-confirmation .modal-dialog { margin: 8px; min-height: calc(100% - 16px); }
    #as-confirmation .modal-content { max-height: calc(100dvh - 16px); }
}
