﻿
/* ===== Confirm dialog (used by any form with data-confirm) ===== */
.cd-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000; /* above the module modal */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(16, 25, 36, .55);
    opacity: 0;
    transition: opacity .15s ease;
}

    .cd-overlay.is-open {
        opacity: 1;
    }

    .cd-overlay[hidden] {
        display: none;
    }

.cd-box {
    width: 100%;
    max-width: 400px;
    padding: 1.75rem 1.5rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(16, 25, 36, .25);
    text-align: center;
    transform: translateY(8px) scale(.98);
    transition: transform .15s ease;
}

.cd-overlay.is-open .cd-box {
    transform: none;
}

.cd-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fde8e6;
    color: #e85347;
    font-size: 1.6rem;
}

.cd-title {
    margin-bottom: .5rem;
}

.cd-message {
    color: #526484;
    margin-bottom: 1.5rem;
}

.cd-actions {
    display: flex;
    gap: .75rem;
}

    .cd-actions .btn {
        flex: 1;
        justify-content: center;
    }
