@media only screen and (max-width: 767px) {
    #top.woocommerce-cart .woocommerce {
        max-width: 100%;
        overflow-x: hidden;
    }

    #top.woocommerce-cart table.shop_table.cart {
        display: block;
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
        border-width: 0;
        overflow: visible;
    }

    #top.woocommerce-cart table.shop_table.cart thead {
        display: none;
    }

    #top.woocommerce-cart table.shop_table.cart tbody,
    #top.woocommerce-cart table.shop_table.cart tr,
    #top.woocommerce-cart table.shop_table.cart td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    #top.woocommerce-cart table.shop_table.cart tr.cart_item {
        display: grid;
        grid-template-columns: 22px 72px minmax(0, 1fr);
        grid-template-areas:
            "remove thumbnail name"
            "remove thumbnail price"
            "remove thumbnail quantity"
            "remove thumbnail subtotal";
        column-gap: 10px;
        row-gap: 8px;
        padding: 16px 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #top.woocommerce-cart table.shop_table.cart tr.cart_item td {
        min-width: 0;
        padding: 0;
        border-width: 0;
        text-align: left;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-remove {
        grid-area: remove;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
        margin: 0;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-thumbnail {
        grid-area: thumbnail;
        display: block !important;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-thumbnail a,
    #top.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
        display: block !important;
        width: 72px;
        max-width: 72px;
        height: auto;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-name {
        grid-area: name;
        border-left-width: 0;
        font-size: 16px;
        line-height: 1.25;
        text-align: left;
        overflow-wrap: anywhere;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-price,
    #top.woocommerce-cart table.shop_table.cart td.product-tax {
        grid-area: price;
        font-size: 15px;
        line-height: 1.45;
        text-align: left;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-price ul,
    #top.woocommerce-cart table.shop_table.cart td.product-price li {
        margin: 0;
        padding: 0;
        list-style: none;
        text-indent: 0;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-price label,
    #top.woocommerce-cart table.shop_table.cart td.product-price .amount,
    #top.woocommerce-cart table.shop_table.cart td.product-price .subscription-details {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-quantity {
        grid-area: quantity;
        display: block !important;
        text-align: left;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-quantity .quantity {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        float: none;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-quantity .quantity input.minus,
    #top.woocommerce-cart table.shop_table.cart td.product-quantity .quantity input.plus {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        padding: 0;
        margin: 0;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-quantity .quantity input.qty {
        flex: 0 0 42px;
        width: 42px;
        height: 38px;
        min-width: 42px;
        margin: 0;
        text-align: center;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-subtotal {
        grid-area: subtotal;
        display: block !important;
        font-size: 15px;
        text-align: left;
    }

    #top.woocommerce-cart table.shop_table.cart td.actions {
        display: block;
        width: 100%;
        padding: 14px 12px;
        border-width: 0;
        text-align: left;
        overflow: visible;
    }

    #top.woocommerce-cart table.shop_table.cart td.actions .coupon {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        float: none;
    }

    #top.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text,
    #top.woocommerce-cart table.shop_table.cart td.actions .coupon .button,
    #top.woocommerce-cart table.shop_table.cart td.actions > .button {
        width: 100%;
        margin: 0;
    }
}

@media only screen and (max-width: 379px) {
    #top.woocommerce-cart table.shop_table.cart tr.cart_item {
        grid-template-columns: 20px 60px minmax(0, 1fr);
        column-gap: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    #top.woocommerce-cart table.shop_table.cart td.product-thumbnail a,
    #top.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
        width: 60px;
        max-width: 60px;
    }
}
