/* ============================================================
 * Recipe move-to-cart — 2025 redesign
 * Pairs with recipe-detail.css for shared tokens
 * ============================================================ */

.rd-cart-form { padding: 0; }
.rd-cart-card {
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: var(--rd-radius-lg);
    padding: 24px 28px 28px;
    box-shadow: var(--rd-shadow);
}
.rd-cart-list {
    list-style: none; padding: 0; margin: 0 0 22px;
}
.rd-cart-item {
    display: grid;
    grid-template-columns: 32px 60px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--rd-border);
}
.rd-cart-item:last-child { border-bottom: 0; }
.rd-cart-check { margin: 0; cursor: pointer; }
.rd-cart-check input[type="checkbox"] {
    appearance: none;
    width: 22px; height: 22px;
    border: 2px solid var(--rd-border);
    border-radius: 6px;
    background: #fff;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: background 0.2s var(--rd-easing), border-color 0.2s var(--rd-easing);
}
.rd-cart-check input[type="checkbox"]:checked {
    background: var(--rd-green);
    border-color: var(--rd-green);
}
.rd-cart-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px; top: 2px;
    width: 6px; height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}
.rd-cart-img {
    width: 60px; height: 60px;
    border-radius: var(--rd-radius-sm);
    background: var(--rd-cream-3);
    border: 1px solid var(--rd-border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.rd-cart-img img { max-width: 80%; max-height: 80%; }
.rd-cart-text { line-height: 1.2; }
.rd-cart-brand {
    font-size: 11px; color: var(--rd-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin: 0;
}
.rd-cart-name {
    font-size: 14px; font-weight: 600;
    color: var(--rd-ink);
    margin: 2px 0 0;
}
.rd-cart-qty {
    font-size: 12px; font-weight: 700;
    color: var(--rd-green);
    background: var(--rd-cream-3);
    padding: 6px 10px;
    border-radius: var(--rd-radius-pill);
}

/* Legacy override kept */
.checkbox-design input[type="checkbox"] ~ span:before {
    border-right: 2px solid var(--rd-green);
    border-bottom: 2px solid var(--rd-green);
}

@media (max-width: 700px) {
    .rd-cart-item { grid-template-columns: 28px 50px 1fr; }
    .rd-cart-qty { grid-column: 2 / -1; justify-self: end; }
}
