/* START Make the cart table responsive */
/* http://css-tricks.com/responsive-data-tables/ */
@media screen and (max-width: 600px) {

/* Force table to not be like tables anymore */
table.shop_table,
table.shop_table thead,
table.shop_table tbody,
table.shop_table th,
table.shop_table td,
table.shop_table tr {
    display: block;
}

.woocommerce #content table.cart a.remove, .woocommerce table.cart a.remove, .woocommerce-page #content table.cart a.remove, .woocommerce-page table.cart a.remove {
    line-height:20px;
}

/* Hide table headers (but not display: none;, for accessibility) */
table.shop_table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

table.shop_table tr {
    /*border: 1px solid #d2d3d3; */
    margin-bottom: 20px;
}

 table.shop_table td {
    /* Behave like a "row" */
    border: 1px solid #d2d3d3;
    position: relative;
    padding-left: 40% !important;
}

table.shop_table {
    border: none;
}

table.shop_table td.product-spacer {
    border-color: #FFF;
    height: 10px;
}

table.shop_table td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 6px;
    left: 6px;
    width: 25%;
    padding-right: 10px;
    white-space: nowrap;
}

/*
Label the data
*/
table.shop_table td.product-remove:before {
    content: "Remove?";
}

table.shop_table td.product-thumbnail:before {
    content: "IMAGE";
}

table.shop_table td.product-name:before {
    content: "Item";
}

table.shop_table td.product-price:before {
    content: "Price";
}

table.shop_table td.product-quantity:before {
    content: "Quantity";
}

table.shop_table td.product-subtotal:before {
    content: "Subtotal";
}

table.shop_table td.product-total:before {
    content: "TOTAL";
}

.quantity,
#content .quantity,
.quantity,
#content .quantity {
    margin: 0;
}

table.cart td.actions,
#content table.cart td.actions {
    text-align: left;
    border:0;
    padding-left: 6px !important;
}

table.cart td.actions .button.alt,
#content table.cart td.actions .button.alt {
    float: left;
    margin-top: 10px;
}

table.cart td.actions div,
#content table.cart td.actions div,
table.cart td.actions input,
#content table.cart td.actions input {
    margin-bottom: 10px;
    width:100%;
}

.cart-collaterals .cart_totals {
    float: left;
    width: 100%;
    text-align: left;
}

.cart-collaterals .cart_totals th,
.cart-collaterals .cart_totals td {
    border:0 !important;
}

.cart-collaterals .cart_totals table tr.cart-subtotal td,
.cart-collaterals .cart_totals table tr.shipping td,
.cart-collaterals .cart_totals table tr.total td {
    padding-left: 6px !important;
}

table.shop_table tr.cart-subtotal td,
table.shop_table tr.shipping td,
table.shop_table tr.total td,
table.shop_table.order_details tfoot th,
table.shop_table.order_details tfoot td {
    padding-left: 6px !important;
    border:0 !important;
}

table.shop_table tbody {
    padding-top: 10px;
}

.col2-set .col-1,
.col2-set .col-1,
.col2-set .col-2,
.col2-set .col-2,
.form-row-first,
.form-row-last,
form .form-row-first,
form .form-row-last {
    float: none;
    width: 100%;
}

.order_details ul,
.order_details ul,
.order_details,
.order_details {
    padding:0;
}

.order_details li,
.order_details li {
    clear: left;
    margin-bottom: 10px;
    border:0;
}

/* make buttons full width, text wide anyway, improves effectiveness */
table.cart td.actions .button,
table.cart td.actions .input-text,
table.cart td.actions input,
table.cart td.actions .button,
table.cart td.actions .input-text,
table.cart td.actions input {
    width: 100%;
}

.woocommerce table.shop_table, .woocommerce-page table.shop_table {
  border:none;
}

/* keep coupon at 50% */
table.cart td.actions .coupon .button,
table.cart td.actions .coupon .input-text,
table.cart td.actions .coupon input,
 td.actions .coupon .button,
td.actions .coupon .input-text,
td.actions .coupon input,
table.cart td.actions .coupon .button,
table.cart td.actions .coupon .input-text,
table.cart td.actions .coupon input,
table.cart td.actions .coupon .button,
table.cart td.actions .coupon .input-text,
table.cart td.actions .coupon input {
    width: 48%;
}

/* clean up how coupon inputs display */
table.cart td.actions .coupon,
table.cart td.actions .coupon,
table.cart td.actions .coupon,
table.cart td.actions .coupon {
    margin-top: 1.5em;
}

table.cart td.actions .coupon .input-text,
table.cart td.actions .coupon .input-text,
table.cart td.actions .coupon .input-text,
table.cart td.actions .coupon .input-text {
    margin-bottom: 1em;
}

/* remove cross sells, they interfere with flow between cart and cart totals + shipping calculator */
.cart-collaterals .cross-sells,
.cart-collaterals .cross-sells {
    display: none;
}

}
/* END Make the cart table responsive */