.cart-table-wrap {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
.cart-table th {
    background: #e9eef0;
    text-align: left;
    white-space: nowrap;
    padding: 14px 18px;
    font-weight: 500;
}
.cart-table td {
    vertical-align: middle;
    padding: 24px 18px;
    border-bottom: 1px solid var(--line);
}
.cart-table th:nth-child(2) {
    text-align: center;
}
.cart-table th:first-child, .cart-table td:first-child {
    width: 1%;
}
.cart-image-cell {
    width: 160px;
}
.cart-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 120px;
    padding: 8px;
    background: white;
}
.cart-image-link img {
    max-height: 100%;
    object-fit: contain;
}
.cart-image-link:hover, .cart-image-link:focus-visible {
    box-shadow: inset 0 0 0 1px var(--accent);
}
.cart-description h2 {
    font-size: 21px;
    margin-bottom: 6px;
}
.cart-description h3 {
    font-size: 15px;
    font-weight: 400;
}
.cart-note {
    white-space: pre-line;
    font-size: 12px;
    color: #738087;
    margin-top: 10px;
}
.cart-brands {
    font-size: 13px;
}
.cart-quantity input {
    width: 95px;
}
.cart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}
.cart-toolbar > .button-row {
    flex-wrap: nowrap;
    min-width: 0;
}
#cart-checkout {
    margin-left: auto;
}
.button.clear-cart-button {
    color: #9b3528;
    border-color: #c59991;
    background: #fbefec;
}
.button.clear-cart-button:hover,
.button.clear-cart-button:focus-visible {
    color: white;
    background: #9b3528;
    border-color: #9b3528;
}
.cart-description, .cart-brands {
    overflow-wrap: anywhere;
}
@media (max-width: 900px) {
    .cart-table, .cart-table thead, .cart-table tbody {
        display: block;
    }
    .cart-table thead th:not(:first-child) {
        display: none;
    }
    .cart-table thead th:first-child {
        display: block;
        width: 100%;
    }
    .cart-table thead .sr-only {
        position: static;
        width: auto;
        height: auto;
        clip-path: none;
        overflow: visible;
    }
    .cart-table thead .checkbox {
        gap: 12px;
    }
    .cart-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        border-bottom: 1px solid var(--line);
        padding: 22px 18px;
        gap: 18px;
    }
    .cart-table td {
        padding: 0;
        border: 0;
        width: auto;
        min-width: 0;
    }
    .cart-table td:first-child {
        flex: 0 0 100%;
    }
    .cart-image-cell {
        flex: 0 0 130px;
    }
    .cart-description {
        flex: 1;
    }
    .cart-brands, .cart-quantity {
        flex: 0 0 100%;
        display: flex;
        align-items: center;
        gap: 20px;
    }
    .cart-brands::before, .cart-quantity::before {
        content: attr(data-label);
        flex: 0 0 100px;
        font-weight: bold;
    }
}
@media (max-width: 640px) {
    .cart-image-cell, .cart-description {
        flex: 0 0 100%;
    }
    .cart-image-link {
        width: min(260px, 100%);
        height: auto;
        aspect-ratio: 1;
    }
    .cart-image-link img {
        width: 100%;
        height: auto;
    }
    .cart-toolbar {
        gap: 8px;
        align-items: stretch;
    }
    .cart-toolbar > .button-row {
        gap: 8px;
        align-items: stretch;
    }
    .cart-toolbar .button {
        padding: 10px 8px;
        gap: 6px;
        justify-content: center;
        font-size: 13px;
        overflow-wrap: anywhere;
    }
}
