/* ── "Added to cart" confirmation modal ─────────────────────────── */
.dz-cm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.dz-cm-overlay.dz-cm-open {
    display: flex;
    animation: dzCmFade 0.15s ease;
}

@keyframes dzCmFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dz-cm-modal {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
    padding: 24px;
    animation: dzCmPop 0.2s ease;
}

@keyframes dzCmPop {
    from { transform: scale(0.92) translateY(8px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.dz-cm-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: none;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
}

.dz-cm-close:hover {
    color: #334155;
}

.dz-cm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dz-cm-check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.dz-cm-title {
    font-size: 17px;
    font-weight: 800;
    color: #111;
}

.dz-cm-sub {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 1px;
}

.dz-cm-product {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 18px;
}

.dz-cm-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
}

.dz-cm-product-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dz-cm-product-meta {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

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

.dz-cm-btn-continue {
    flex: 1;
    padding: 12px;
    border: 1.5px solid var(--diilzo-primary, #7c3aed);
    background: #fff;
    color: var(--diilzo-primary, #7c3aed);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.dz-cm-btn-continue:hover {
    background: rgba(124, 58, 237, 0.06);
}

.dz-cm-btn-cart {
    flex: 1;
    padding: 12px;
    border: none;
    background: var(--diilzo-primary, #7c3aed);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}

.dz-cm-btn-cart:hover {
    background: #6d28d9;
    color: #fff;
}

@media (max-width: 480px) {
    .dz-cm-modal {
        padding: 18px;
    }

    .dz-cm-actions {
        flex-direction: column-reverse;
    }
}
