/* Winkelmand op alle schermen. De id's en !important zijn nodig om WooCommerce en het thema te overschrijven. */

/* Lagere banner op een laptop. */
body.woocommerce-cart #stringr-title-container {
	padding-top: 30px;
	padding-bottom: 30px;
}

body.woocommerce-cart #stringr-title-block h1.page-title {
	font-size: 40px;
	line-height: 46px;
}

/* Waardebon kan bij het afrekenen. De knop om bij te werken blijft in de pagina: winkelmand.js gebruikt ze. */
body.woocommerce-cart #boxed-layout-stringr table.cart td.actions {
	display: none;
}

/* Elk product is één blok: foto, naam, prijs, aantal, subtotaal en een duidelijke link om te verwijderen. */
body.woocommerce-cart #boxed-layout-stringr table.cart,
body.woocommerce-cart #boxed-layout-stringr table.cart tbody {
	display: block;
	border: 0;
}

body.woocommerce-cart #boxed-layout-stringr table.cart thead {
	display: none;
}

body.woocommerce-cart #boxed-layout-stringr table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	column-gap: 14px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid #e5e5e5;
	background: none;
}

body.woocommerce-cart #boxed-layout-stringr table.cart tr.cart_item td {
	display: block;
	width: auto;
	padding: 0;
	border: 0;
	background: none;
	text-align: left !important;
}

body.woocommerce-cart #boxed-layout-stringr table.cart tr.cart_item td::before {
	display: none;
}

body.woocommerce-cart #boxed-layout-stringr table.cart td.product-thumbnail {
	grid-column: 1;
	grid-row: 1 / span 4;
	align-self: start;
}

body.woocommerce-cart #boxed-layout-stringr table.cart td.product-thumbnail img {
	display: block;
	width: 72px;
	height: auto;
}

body.woocommerce-cart #boxed-layout-stringr table.cart td.product-name {
	grid-column: 2 / -1;
	grid-row: 1;
	font-size: 16px;
	line-height: 22px;
}

body.woocommerce-cart #boxed-layout-stringr table.cart td.product-price {
	grid-column: 2 / -1;
	grid-row: 2;
	margin-bottom: 8px;
	color: #595959;
	font-size: 14px;
}

body.woocommerce-cart #boxed-layout-stringr table.cart td.product-quantity {
	grid-column: 2;
	grid-row: 3;
}

body.woocommerce-cart #boxed-layout-stringr table.cart td.product-quantity input.qty {
	box-sizing: border-box;
	width: 72px;
	height: 44px;
	margin: 0;
}

body.woocommerce-cart #boxed-layout-stringr table.cart td.product-subtotal {
	grid-column: 3;
	grid-row: 3;
	color: #444;
	font-weight: 600;
	text-align: right !important;
}

body.woocommerce-cart #boxed-layout-stringr table.cart td.product-remove {
	grid-column: 2 / -1;
	grid-row: 4;
}

body.woocommerce-cart #boxed-layout-stringr table.cart td.product-remove a.remove {
	display: inline-block;
	width: auto;
	height: auto;
	padding: 12px 0 0;
	border-radius: 0;
	background: none;
	color: #595959;
	font-size: 14px;
	font-weight: 400;
	line-height: 32px;
	text-decoration: underline;
}

/* Totalen. */
body.woocommerce-cart #boxed-layout-stringr .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	margin-top: 0;
}

/* Eén titel boven producten en totalen, zoals bij het afrekenen. */
body.woocommerce-cart #boxed-layout-stringr .cart_totals h2 {
	display: none;
}

body.woocommerce-cart #boxed-layout-stringr .vuursteen-winkelmand-titel {
	margin: 0 0 4px;
}

body.woocommerce-cart #boxed-layout-stringr form.woocommerce-cart-form {
	margin-bottom: 0;
}

/* De verzendkosten blijven zichtbaar, maar zonder rekenhulp. */
body.woocommerce-cart #boxed-layout-stringr form.woocommerce-shipping-calculator {
	display: none;
}

body.woocommerce-cart #boxed-layout-stringr .woocommerce-shipping-destination {
	margin: 8px 0 0;
	color: #595959;
	font-size: 14px;
	line-height: 20px;
}

body.woocommerce-cart #boxed-layout-stringr .woocommerce-shipping-destination:empty {
	display: none;
}

body.woocommerce-cart #boxed-layout-stringr .vuursteen-verder-winkelen {
	display: block;
	padding: 12px 0;
	color: #595959;
	font-size: 15px;
	text-align: center;
	text-decoration: underline;
}

/* Laptop en groter: producten links, totalen en bestelknop rechts, zodat de knop meteen in beeld staat. */
@media (min-width: 900px) {

	body.woocommerce-cart div.woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 400px;
		column-gap: 48px;
		align-items: start;
	}

	body.woocommerce-cart div.woocommerce > * {
		grid-column: 1 / -1;
	}

	body.woocommerce-cart div.woocommerce > form.woocommerce-cart-form {
		grid-column: 1;
	}

	body.woocommerce-cart div.woocommerce > .cart-collaterals {
		grid-column: 2;
	}

	body.woocommerce-cart #boxed-layout-stringr .cart-collaterals,
	body.woocommerce-cart #boxed-layout-stringr .cart-collaterals .cart_totals {
		margin-top: 0;
		padding-top: 0;
	}

	/* Met een muis zijn kleinere rijen genoeg: zo staat de bestelknop meteen in beeld. */
	body.woocommerce-cart #boxed-layout-stringr .cart_totals #shipping_method label {
		padding: 2px 0;
	}

	body.woocommerce-cart #boxed-layout-stringr table.cart tr.cart_item {
		grid-template-columns: 96px minmax(0, 1fr) auto;
	}

	body.woocommerce-cart #boxed-layout-stringr table.cart td.product-thumbnail img {
		width: 96px;
	}
}
