.cart-page,.checkout-page{
    background:#fffaf5;
    min-height:70vh;
}

.cart-shell,.checkout-shell{
    display:grid;
    grid-template-columns:1fr 380px;
    gap:28px;
    padding:60px 6vw 90px;
}

.cart-items-panel,.cart-summary-panel,.checkout-form{
    background:white;
    border:1px solid var(--border);
    border-radius:30px;
    padding:24px;
    box-shadow:0 14px 40px rgba(17,17,17,.06);
}

.cart-line{
    display:grid;
    grid-template-columns:70px 1fr auto auto auto;
    gap:14px;
    align-items:center;
    padding:14px 0;
    border-bottom:1px solid var(--border);
}

.cart-line-img{
    width:70px;
    height:70px;
    border-radius:18px;
    background:#fff4e8;
    display:grid;
    place-items:center;
    overflow:hidden;
    font-size:12px;
    color:#b45309;
    font-weight:900;
}

.cart-line-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.cart-line-info strong,.cart-line-info span,.cart-line-info small{
    display:block;
}

.cart-line-info span,.cart-line-info small{
    color:var(--muted);
    margin-top:4px;
}

.cart-line-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.cart-line-actions button,.remove-btn{
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#111;
    color:white;
    cursor:pointer;
}

.remove-btn{
    background:#fee2e2;
    color:#991b1b;
    font-weight:900;
}

.summary-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 0;
    border-bottom:1px solid var(--border);
}

.summary-row.total{
    font-size:20px;
}

.full{
    width:100%;
    margin-top:16px;
}

.btn-light{
    background:#fff7ed;
    color:#111;
    border:1px solid var(--border);
}

.checkout-form label{
    display:block;
    font-weight:900;
    margin:14px 0 8px;
}

.checkout-form input,.checkout-form textarea{
    width:100%;
    border:1px solid var(--border);
    border-radius:16px;
    padding:14px 16px;
    font:inherit;
}

.form-grid.two{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.order-type-options{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.order-type-options label{
    display:flex;
    align-items:center;
    gap:8px;
    background:#fff7ed;
    border:1px solid var(--border);
    border-radius:16px;
    padding:12px 14px;
    margin:0;
}

.order-type-options input{
    width:auto;
}

.checkout-location-result{
    margin-top:12px;
    color:#166534;
    font-weight:800;
}

@media(max-width:900px){
    .cart-shell,.checkout-shell{
        grid-template-columns:1fr;
    }

    .cart-line{
        grid-template-columns:60px 1fr;
    }

    .cart-line-actions{
        grid-column:2;
    }

    .form-grid.two{
        grid-template-columns:1fr;
    }
}

.location-tools{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0;}


/* V8 Google Maps checkout picker */
.map-picker-modal{
    position:relative;
    width:min(1100px,96vw);
    max-height:92vh;
    overflow:auto;
    background:white;
    border-radius:30px;
    box-shadow:0 30px 100px rgba(0,0,0,.35);
    padding:24px;
}

.map-picker-header{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:center;
    margin-bottom:14px;
}

.map-picker-header h2{
    margin:0 0 6px;
    font-size:32px;
    letter-spacing:-.04em;
}

.map-picker-header p{
    margin:0;
    color:var(--muted);
}

.map-search-input{
    width:100%;
    border:1px solid var(--border);
    border-radius:999px;
    padding:14px 18px;
    margin-bottom:14px;
    font:inherit;
}

.checkout-map{
    width:100%;
    height:520px;
    border-radius:24px;
    overflow:hidden;
    border:1px solid var(--border);
    background:#e5e7eb;
}

.map-picker-footer{
    display:flex;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    padding-top:14px;
    color:var(--muted);
    font-weight:800;
}

.selected-location-card{
    margin-top:14px;
    border:1px solid var(--border);
    border-radius:18px;
    padding:14px 16px;
    background:#fff7ed;
}

.selected-location-card strong,
.selected-location-card span,
.selected-location-card a{
    display:block;
    margin-top:4px;
}

.selected-location-card a{
    color:var(--orange);
    font-weight:900;
}

@media(max-width:800px){
    .map-picker-header{
        display:block;
    }

    .checkout-map{
        height:380px;
    }
}
