/**
 * Cart modal — add-to-cart bevestiging overlay
 *
 * @package DarkshopCart
 */

/* ── Overlay ─────────────────────────────────────── */
.dsc-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.dsc-modal.open {
    display: flex;
}

/* ── Box ──────────────────────────────────────────── */
.dsc-modal__box {
    background: #fff;
    border-radius: 14px;
    max-width: 840px;
    width: 94%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: dsc-modal-in 0.3s ease;
    position: relative;
}

@keyframes dsc-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: none; }
}

/* ── Close ────────────────────────────────────────── */
.dsc-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1.5px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border-radius: 50%;
    transition: all 0.2s;
    padding: 0;
}

.dsc-modal__close:hover {
    background: #f5f5f5;
    border-color: #999;
}

.dsc-modal__close svg {
    width: 16px;
    height: 16px;
}

/* ── Columns ──────────────────────────────────────── */
.dsc-modal__cols {
    display: flex;
}

/* ── Left: product ────────────────────────────────── */
.dsc-modal__left {
    flex: 1;
    padding: 32px;
}

.dsc-modal__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.dsc-modal__head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.dsc-modal__product {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.dsc-modal__img {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.dsc-modal__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dsc-modal__info {
    flex: 1;
}

.dsc-modal__name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 4px;
}

.dsc-modal__sku {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.dsc-modal__meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.dsc-modal__price {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
}

.dsc-modal__price del {
    font-size: 16px;
    color: #999;
    font-weight: 400;
    margin-right: 6px;
}

/* ── Buttons ──────────────────────────────────────── */
.dsc-modal__btns {
    display: flex;
    gap: 12px;
}

.dsc-modal__btn {
    flex: 1;
    padding: 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.dsc-modal__btn--go {
    background: #4CAF50;
    color: #fff;
    border: none;
}

.dsc-modal__btn--go:hover {
    background: #43A047;
    color: #fff;
}

.dsc-modal__btn--continue {
    background: #fff;
    color: #1a1a1a;
    border: 1.5px solid #ddd;
}

.dsc-modal__btn--continue:hover {
    border-color: #1a1a1a;
}

.dsc-modal__cart-link {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    margin-top: 12px;
    transition: color 0.2s;
}

.dsc-modal__cart-link:hover {
    color: #1a1a1a;
}

/* ── Right: summary + USPs ────────────────────────── */
.dsc-modal__right {
    width: 300px;
    background: #fafafa;
    border-left: 1px solid #eee;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dsc-modal__summary {
    margin-bottom: 24px;
}

.dsc-modal__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.dsc-modal__free {
    color: #4CAF50;
    font-size: 13px;
    font-weight: 700;
}

.dsc-modal__total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    padding-top: 14px;
    border-top: 1.5px solid #ddd;
}

.dsc-modal__usps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dsc-modal__usp {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dsc-modal__usp svg {
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
    .dsc-modal__cols {
        flex-direction: column;
    }

    .dsc-modal__right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        padding: 20px;
    }

    .dsc-modal__btns {
        flex-direction: column;
    }

    .dsc-modal__img {
        width: 90px;
        height: 90px;
    }

    .dsc-modal__left {
        padding: 20px;
    }
}
