/* ============================================================
   Modal de confirmare - SAGA by Kaufland
   Design unificat: Inter, colturi rotunjite, overlay blur.
   ============================================================ */

.cm-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 18, 30, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.cm-overlay.cm-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cm-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 18, 30, 0.28), 0 4px 14px rgba(15, 18, 30, 0.12);
    padding: 28px 28px 22px;
    text-align: center;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    transform: translateY(14px) scale(0.96);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.cm-overlay.cm-open .cm-card {
    transform: translateY(0) scale(1);
}

.cm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.cm-icon.cm-danger {
    background: #fdecec;
    color: #d93025;
}

.cm-icon.cm-warning {
    background: #fff4e0;
    color: #e08a00;
}

.cm-icon.cm-info {
    background: #e8f0fe;
    color: #1a73e8;
}

.cm-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #16182b;
    letter-spacing: -0.01em;
}

.cm-message {
    margin: 0 0 24px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #5a5f73;
    word-break: break-word;
}

.cm-actions {
    display: flex;
    gap: 10px;
}

.cm-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.cm-btn:active {
    transform: scale(0.97);
}

.cm-btn-cancel {
    background: #f1f2f7;
    color: #3c4054;
}

.cm-btn-cancel:hover {
    background: #e4e6ef;
}

.cm-btn-confirm {
    color: #ffffff;
    background: #1a73e8;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
}

.cm-btn-confirm:hover {
    background: #1663c7;
}

.cm-btn-confirm.cm-danger {
    background: #d93025;
    box-shadow: 0 4px 14px rgba(217, 48, 37, 0.35);
}

.cm-btn-confirm.cm-danger:hover {
    background: #b9261c;
}

.cm-btn-confirm.cm-warning {
    background: #e08a00;
    box-shadow: 0 4px 14px rgba(224, 138, 0, 0.35);
}

.cm-btn-confirm.cm-warning:hover {
    background: #c27700;
}

@media (max-width: 480px) {
    .cm-actions {
        flex-direction: column-reverse;
    }
}
