/* Instant Digital Shop — Modern Cart */

.modern-cart {
    padding-top:38px;
    padding-bottom:75px;
}

.modern-cart-heading {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:20px;
    margin-bottom:28px;
}

.modern-cart-eyebrow {
    color:#008e83;
    font-size:12px;
    font-weight:800;
    letter-spacing:1.5px;
}

.modern-cart-heading h1 {
    font-size:clamp(30px,4vw,43px);
    margin:8px 0;
    letter-spacing:-1.2px;
}

.modern-cart-heading p {
    margin:0;
    color:#64748b;
}

.modern-cart-continue {
    color:#0f766e;
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
}

.modern-cart-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) 350px;
    align-items:start;
    gap:24px;
}

.modern-cart-products,
.modern-cart-summary {
    min-width:0;
}

.modern-cart-list-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 3px 12px;
}

.modern-cart-list-heading h2 {
    margin:0;
    font-size:20px;
}

.modern-cart-list-heading span {
    color:#64748b;
    font-size:14px;
}

.modern-cart-product {
    display:grid;
    grid-template-columns:120px minmax(0,1fr) auto;
    gap:20px;
    padding:20px;
    margin-bottom:14px;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:18px;
    box-shadow:0 7px 25px #0f172a05;
}

.modern-cart-image {
    width:120px;
    height:125px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f1f5f9;
    border-radius:12px;
    overflow:hidden;
}

.modern-cart-image img {
    width:100%;
    height:100%;
    object-fit:contain;
}

.modern-cart-image span {
    font-size:48px;
}

.modern-cart-info {
    min-width:0;
}

.modern-cart-product-name {
    display:block;
    font-size:16px;
    line-height:1.5;
    font-weight:800;
    color:#142039;
}

.modern-cart-unit-price {
    margin-top:5px;
    color:#64748b;
    font-size:14px;
}

.modern-cart-stock {
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:9px;
    color:#15803d;
    font-size:12px;
    font-weight:700;
}

.modern-cart-stock-dot {
    width:7px;
    height:7px;
    border-radius:50%;
    background:#22c55e;
}

.modern-cart-out {
    color:#dc2626;
}

.modern-cart-actions {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    margin-top:17px;
}

.modern-cart-quantity-form {
    display:flex;
    align-items:center;
    gap:9px;
    flex-wrap:wrap;
}

.modern-cart-stepper {
    display:flex;
    align-items:center;
    height:40px;
    border:1px solid #d8e1eb;
    border-radius:10px;
    overflow:hidden;
}

.modern-cart-step {
    width:36px;
    height:40px;
    border:0;
    background:#f8fafc;
    color:#142039;
    font-size:19px;
    font-weight:800;
    cursor:pointer;
}

.modern-cart-step:hover {
    background:#e2e8f0;
}

.modern-cart-stepper input {
    width:43px;
    height:40px;
    padding:0;
    border:0;
    border-left:1px solid #e2e8f0;
    border-right:1px solid #e2e8f0;
    text-align:center;
    font:700 14px Arial,sans-serif;
    color:#142039;
    background:white;
    appearance:textfield;
    -moz-appearance:textfield;
}

.modern-cart-stepper input::-webkit-inner-spin-button,
.modern-cart-stepper input::-webkit-outer-spin-button {
    -webkit-appearance:none;
    margin:0;
}

.modern-cart-update {
    height:40px;
    padding:0 15px;
    background:#e8f6f4;
    color:#08776f;
    border:0;
    border-radius:9px;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
}

.modern-cart-update:hover {
    background:#d0eeea;
}

.modern-cart-remove-form {
    margin:0;
}

.modern-cart-remove {
    border:0;
    background:transparent;
    color:#dc2626;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    padding:8px;
}

.modern-cart-line-total {
    text-align:right;
    white-space:nowrap;
}

.modern-cart-line-total small {
    display:block;
    color:#94a3b8;
    font-size:12px;
}

.modern-cart-line-total strong {
    display:block;
    margin-top:5px;
    color:#142039;
    font-size:17px;
}

.modern-cart-summary {
    padding:26px;
    border:1px solid #e2e8f0;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 35px #0f172a08;
    position:sticky;
    top:250px;
}

.modern-cart-summary h2 {
    margin:0 0 25px;
    font-size:21px;
}

.modern-cart-summary-line,
.modern-cart-summary-total {
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:17px;
}

.modern-cart-summary-line {
    font-size:14px;
}

.modern-cart-summary-line span:first-child {
    color:#64748b;
}

.modern-cart-pending {
    color:#64748b;
    font-size:12px;
    text-align:right;
}

.modern-cart-summary-divider {
    height:1px;
    background:#e2e8f0;
    margin:22px 0;
}

.modern-cart-summary-total {
    align-items:center;
    font-size:16px;
    font-weight:800;
}

.modern-cart-summary-total strong {
    font-size:21px;
    white-space:nowrap;
}

.modern-cart-summary-note {
    color:#64748b;
    font-size:13px;
    line-height:1.65;
    margin:18px 0 22px;
}

.modern-cart-primary {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    min-height:50px;
    padding:13px 20px;
    border-radius:11px;
    background:#00ae9e;
    color:#052f2c;
    font-weight:800;
    font-size:14px;
    text-decoration:none;
    text-align:center;
    transition:background .2s,transform .2s;
}

.modern-cart-primary:hover {
    background:#009c8e;
    color:white;
    transform:translateY(-1px);
}

.modern-cart-secondary {
    display:block;
    padding:14px;
    text-align:center;
    font-size:13px;
    font-weight:700;
    color:#334155;
}

.modern-cart-reassurance {
    display:flex;
    gap:9px;
    align-items:flex-start;
    padding-top:18px;
    margin-top:5px;
    border-top:1px solid #e2e8f0;
    color:#64748b;
    font-size:12px;
    line-height:1.6;
}

.modern-cart-reassurance span {
    color:#059669;
    font-weight:900;
}

.modern-cart-empty {
    max-width:650px;
    margin:25px auto;
    padding:55px 25px;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:20px;
    text-align:center;
}

.modern-cart-empty-icon {
    font-size:55px;
}

.modern-cart-empty h2 {
    font-size:24px;
}

.modern-cart-empty p {
    color:#64748b;
    margin-bottom:25px;
}

.modern-cart-empty .modern-cart-primary {
    max-width:230px;
    margin:auto;
}

@media(max-width:1050px) {
    .modern-cart-layout {
        grid-template-columns:minmax(0,1fr) 300px;
        gap:15px;
    }

    .modern-cart-product {
        grid-template-columns:95px minmax(0,1fr);
    }

    .modern-cart-image {
        width:95px;
        height:105px;
    }

    .modern-cart-line-total {
        grid-column:2;
        text-align:left;
    }

    .modern-cart-line-total small {
        display:inline;
        margin-right:7px;
    }

    .modern-cart-line-total strong {
        display:inline;
    }
}

@media(max-width:850px) {
    .modern-cart-layout {
        grid-template-columns:1fr;
    }

    .modern-cart-summary {
        position:static;
    }
}

@media(max-width:600px) {
    .modern-cart {
        padding-top:25px;
    }

    .modern-cart-heading {
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
    }

    .modern-cart-heading h1 {
        font-size:30px;
    }

    .modern-cart-product {
        grid-template-columns:82px minmax(0,1fr);
        padding:14px;
        gap:13px;
        border-radius:14px;
    }

    .modern-cart-image {
        width:82px;
        height:95px;
    }

    .modern-cart-product-name {
        font-size:14px;
    }

    .modern-cart-unit-price {
        font-size:12px;
    }

    .modern-cart-actions {
        gap:8px;
    }

    .modern-cart-stepper {
        height:38px;
    }

    .modern-cart-step {
        height:38px;
        width:32px;
    }

    .modern-cart-stepper input {
        height:38px;
        width:37px;
    }

    .modern-cart-update {
        height:38px;
        padding:0 12px;
    }

    .modern-cart-summary {
        padding:20px;
    }

    .modern-cart-summary-total strong {
        font-size:19px;
    }
}
