.cart-table {
    --check-width: 5%;
    --image-width: 18%;
    --makes-width: 26%;
    --quantity-width: 12%;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid var(--color-border);
}
.cart-col-check {
    width: var(--check-width);
}
.cart-col-image {
    width: var(--image-width);
}
.cart-col-makes {
    width: var(--makes-width);
}
.cart-col-quantity {
    width: var(--quantity-width);
}
.cart-table th,
.cart-table td {
    padding: 20px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
}
.cart-table th {
    background: var(--color-muted);
    color: var(--color-ink);
    padding-top: 16px;
    padding-bottom: 16px;
}
.cart-table th:nth-child(2),
.cart-cell-image {
    text-align: center;
}
.cart-cell-image img {
    width: 150px;
    height: 120px;
    object-fit: contain;
    margin: auto;
    transition: opacity .2s;
}
.cart-cell-image a:hover img {
    opacity: .8;
}
.cart-cell-description > a {
    color: var(--color-ink);
    font-weight: 700;
    font-size: 17px;
}
.cart-cell-description > a:hover {
    color: var(--color-primary-hover);
}
.cart-cell-description p {
    margin-top: 6px;
}
.cart-note {
    white-space: pre-line;
    font-size: 12px;
}
.cart-cell-quantity input {
    width: 100%;
    max-width: 90px;
}
.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}
.cart-actions > div {
    display: flex;
    gap: 12px;
}
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--color-muted);
}
.cart-empty p {
    margin-bottom: 24px;
}
#cart-status {
    color: var(--color-primary);
    margin-top: 16px;
}
@media (max-width: 900px) {
    .cart-table,
    .cart-table tbody {
        display: block;
        border: 0;
    }
    .cart-table colgroup {
        display: none;
    }
    .cart-table thead {
        display: block;
        background: var(--color-muted);
    }
    .cart-table thead tr {
        display: flex;
    }
    .cart-table thead th:not(:first-child) {
        display: none;
    }
    .cart-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 18px;
        border: 1px solid var(--color-border);
        margin-top: 16px;
    }
    .cart-table tbody td {
        border: 0;
        padding: 8px;
    }
    .cart-cell-check {
        flex: 0 0 8%;
    }
    .cart-cell-image {
        flex: 0 0 30%;
    }
    .cart-cell-description {
        flex: 0 0 62%;
    }
    .cart-cell-makes {
        flex: 1;
        min-width: 0;
    }
    .cart-cell-quantity {
        flex: 0 0 34%;
        display: flex;
        align-items: center;
        gap: 14px;
    }
    .cart-cell-quantity::before {
        content: attr(data-label);
    }
    .cart-actions {
        flex-wrap: wrap;
    }
}
@media (max-width: 640px) {
    .cart-table tbody tr {
        padding: 10px;
    }
    .cart-cell-description {
        flex-basis: 100%;
    }
    .cart-cell-image {
        flex-basis: 80%;
    }
    .cart-cell-makes,
    .cart-cell-quantity {
        flex-basis: 100%;
    }
    .cart-actions,
    .cart-actions > div {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
}
