.cart-page {
    width:90%;
    max-width:1280px;
    margin:45px auto 75px;
}
.cart-table {
    width:100%;
    table-layout:auto;
    border-collapse:collapse;
    background:white;
    text-align:left;
    border:1px solid var(--line);
}
.cart-table th {
    font-size:12px;
    font-weight:600;
    background:#e9efe6;
    padding:16px 20px;
    color:#50645c;
}
.cart-table td {
    padding:24px 20px;
    border-bottom:1px solid var(--line);
    vertical-align:middle;
}
.cart-table tbody tr {
    transition:background .2s;
}
.cart-table tbody tr:hover {
    background:#fdfcf6;
}
.cart-table th:first-child,.cart-table__check {
    width:1%;
    white-space:nowrap;
}
.cart-table th:nth-child(2),.cart-table__image {
    width:1%;
    white-space:nowrap;
    text-align:center;
}
.cart-table__image a {
    display:inline-block;
    width:96px;
    height:88px;
}
.cart-table__image img {
    width:100%;
    height:100%;
    object-fit:contain;
    transition:transform .2s;
}
.cart-table__image a:hover img {
    transform:scale(1.06);
}
.cart-table__description h2 {
    font-size:20px;
    line-height:1.4;
    font-weight:600;
    overflow-wrap:anywhere;
    margin-bottom:7px;
}
.cart-table__description h2 a:hover {
    color:var(--teal);
}
.cart-table .number-prefix {
    color:var(--gold-dark);
    font-size:.75em;
}
.cart-table__description p {
    margin-top:6px;
    overflow-wrap:anywhere;
}
.cart-table__description .cart-note {
    white-space:pre-line;
    font-size:12px;
    color:var(--muted);
    line-height:1.8;
}
.cart-table__makes {
    font-size:12px;
    line-height:1.8;
    overflow-wrap:anywhere;
}
.cart-table__quantity label {
    font-size:0;
}
.cart-table__quantity input {
    display:block;
    width:82px;
    height:44px;
    padding:9px 10px;
    border:1px solid var(--line);
    background:white;
    font-size:14px;
}
.cart-checkbox {
    display:inline-flex;
    position:relative;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    cursor:pointer;
}
.cart-select-title {
    display:inline-block;
    margin-left:10px;
    vertical-align:top;
    line-height:22px;
}
.cart-checkbox input {
    position:absolute;
    inset:0;
    width:22px;
    height:22px;
    opacity:0;
    cursor:pointer;
    z-index:1;
}
.cart-checkbox span {
    width:20px;
    height:20px;
    border:1px solid #9cafa3;
    background:white;
    position:relative;
}
.cart-checkbox input:checked+span,.cart-checkbox input:indeterminate+span {
    background:var(--teal);
    border-color:var(--teal);
}
.cart-checkbox input:checked+span::after {
    content:"";
    position:absolute;
    width:5px;
    height:10px;
    left:6px;
    top:2px;
    border-right:2px solid white;
    border-bottom:2px solid white;
    transform:rotate(45deg);
}
.cart-checkbox input:indeterminate+span::after {
    content:"";
    position:absolute;
    left:4px;
    top:8px;
    width:10px;
    height:2px;
    background:white;
    transform:none;
    border:0;
}
.cart-checkbox:hover span {
    border-color:var(--gold);
}
.cart-checkbox input:focus-visible+span {
    outline:2px solid var(--gold);
    outline-offset:3px;
}
.cart-checkbox input:disabled+span {
    opacity:.5;
}
.cart-actions {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-top:28px;
}
.cart-actions>div {
    display:flex;
    gap:12px;
}
.cart-actions button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:46px;
    padding:11px 22px;
    border:1px solid #b7c6ba;
    background:transparent;
    transition:background .2s,color .2s;
}
.cart-actions button:hover {
    background:#dce5da;
    color:var(--ink);
}
.cart-actions>[data-checkout] {
    background:var(--gold);
    border-color:var(--gold);
    color:var(--ink);
    font-weight:600;
}
.cart-actions>[data-checkout]:hover {
    background:var(--gold-dark);
    color:white;
}
.cart-empty {
    text-align:center;
    padding:65px 20px;
    border:1px solid var(--line);
    background:white;
}
.cart-empty h2 {
    font-size:23px;
    margin-bottom:24px;
}
.cart-empty>a {
    display:inline-block;
    background:var(--gold);
    padding:12px 25px;
    transition:background .2s,color .2s;
}
.cart-empty>a:hover {
    background:var(--gold-dark);
    color:white;
}
@media(min-width:901px) {
    .cart-table th:nth-child(n+3),
    .cart-table td:nth-child(n+3) {
        width:33.333333%;
    }
}
@media(max-width:1100px) {
    .cart-table th {
        padding:14px 12px;
    }
    .cart-table td {
        padding:20px 12px;
    }
    .cart-table__image a {
        width:90px;
        height:84px;
    }
}
@media(max-width:900px) {
    .cart-table {
        display:block;
        background:none;
        border:0;
    }
    .cart-table thead {
        display:block;
    }
    .cart-table thead tr {
        display:block;
    }
    .cart-table th {
        display:none;
    }
    .cart-table th:first-child {
        display:block;
        width:100%;
        padding:12px 18px;
    }
    .cart-table tbody {
        display:block;
    }
    .cart-table tbody tr {
        display:flex;
        flex-wrap:wrap;
        background:white;
        border:1px solid var(--line);
        margin-top:15px;
        padding:18px;
        gap:15px;
    }
    .cart-table td {
        display:block;
        padding:0;
        border:0;
    }
    .cart-table__check {
        flex:0 0 100%;
        width:100%;
    }
    .cart-table__image {
        width:130px;
    }
    .cart-table__image a {
        width:130px;
        height:110px;
    }
    .cart-table__description {
        flex:1;
        min-width:0;
    }
    .cart-table__makes {
        flex:0 0 100%;
        width:100%;
        padding-top:8px !important;
    }
    .cart-table__makes::before {
        content:attr(data-label);
        display:block;
        font-weight:600;
        font-size:12px;
        color:var(--muted);
        margin-bottom:4px;
    }
    .cart-table__quantity {
        flex:0 0 100%;
        width:100%;
    }
    .cart-table__quantity label {
        display:flex;
        align-items:center;
        gap:15px;
        font-size:13px;
    }
    .cart-actions {
        flex-direction:column;
        align-items:stretch;
    }
    .cart-actions>div>button {
        flex:1;
    }
    .cart-actions>[data-checkout] {
        width:100%;
    }
}
@media(max-width:640px) {
    .cart-page {
        width:calc(100% - 36px);
        margin:30px auto 45px;
    }
    .cart-table tbody tr {
        display:flex;
        flex-direction:column;
        gap:18px;
    }
    .cart-table td {
        width:100%;
        flex:auto;
    }
    .cart-table__image a {
        width:100%;
        height:150px;
    }
    .cart-table__description h2 {
        font-size:21px;
    }
    .cart-table__makes {
        padding-top:0 !important;
    }
    .cart-actions>div {
        flex-direction:column;
    }
    .cart-actions button {
        min-height:48px;
    }
}
