/*
 * Pagina carrello (WooCommerce Cart Block): riordino tipografico e card
 * "Totale carrello" nella palette della pagina prodotto.
 * Caricato solo su is_cart() (vedi functions.php).
 */

body.woocommerce-cart .wp-block-woocommerce-cart {
	font-family: 'Nunito Sans', sans-serif;
	color: #333;
	padding: 20px 0 40px;
}

body.woocommerce-cart .wp-block-woocommerce-cart * {
	font-family: inherit;
}

/* ---------- Elenco prodotti ---------- */

body.woocommerce-cart .wc-block-cart-items__header th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #5A7A3A;
	padding-bottom: 14px;
}
body.woocommerce-cart .wc-block-cart-items__row td {
	border-top: 1px solid #E3E6D3;
	padding-top: 22px;
	padding-bottom: 22px;
}
body.woocommerce-cart .wc-block-cart-item__image img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 2px;
}
body.woocommerce-cart .wc-block-components-product-name {
	font-size: 17px;
	font-weight: 700;
	color: #2E3A22;
	text-decoration: none;
}
body.woocommerce-cart .wc-block-components-product-name:hover {
	color: #5A7A3A;
}
body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price__value {
	font-size: 14px;
	color: #6b6f5e;
}
body.woocommerce-cart .wc-block-components-product-metadata__description {
	font-size: 13px;
	line-height: 1.5;
	color: #6b6f5e;
	margin: 6px 0 12px;
}
body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
	font-size: 17px;
	font-weight: 700;
	color: #2E3A22;
}
body.woocommerce-cart .wc-block-components-quantity-selector {
	border-radius: 2px;
	border-color: #C9CEB3;
	background: #fff;
}
body.woocommerce-cart .wc-block-components-quantity-selector::after {
	border-color: #C9CEB3;
	border-radius: 2px;
}
body.woocommerce-cart .wc-block-cart-item__remove-link {
	color: #8a8f78;
	text-decoration: none;
}
body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
	color: #a00b32;
}

/* ---------- Card "Totale carrello" ---------- */

body.woocommerce-cart .wc-block-cart__sidebar {
	align-self: flex-start;
}
body.woocommerce-cart .wc-block-cart__sidebar > .wp-block-woocommerce-cart-order-summary-block {
	background: #F4F5EC;
	border: 1px solid #E3E6D3;
	border-radius: 2px;
	padding: 24px 24px 8px;
}
body.woocommerce-cart .wc-block-cart__totals-title {
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #5A7A3A;
	padding: 0 0 14px !important;
	border-bottom: 1px solid #C9CEB3 !important;
}
body.woocommerce-cart .wc-block-components-totals-wrapper {
	border-color: #E3E6D3 !important;
	padding: 14px 0;
}
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
	font-family: 'Nunito Sans', sans-serif;
	font-size: 15px;
	color: #333;
}
body.woocommerce-cart .wc-block-components-totals-item__label {
	font-weight: 600;
}

/* Spedizione: stessa evidenza del subtotale, non più testo "fuori stile". */
body.woocommerce-cart .wc-block-components-totals-shipping {
	padding: 14px 0;
}
body.woocommerce-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__description,
body.woocommerce-cart .wc-block-components-totals-shipping__change-address-button,
body.woocommerce-cart .wc-block-components-totals-item__description {
	font-family: 'Nunito Sans', sans-serif !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: #6b6f5e !important;
}
body.woocommerce-cart .wc-block-components-totals-shipping__change-address-button {
	color: #5A7A3A !important;
	text-decoration: underline;
}

/* Totale finale */
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 20px;
	font-weight: 800;
	color: #2E3A22;
}

/* ---------- Pulsante ---------- */

body.woocommerce-cart .wc-block-cart__submit-container {
	padding-bottom: 0;
}
body.woocommerce-cart .wc-block-cart__submit-button {
	background: #5A7A3A !important;
	border: 1px solid #5A7A3A !important;
	color: #fff !important;
	border-radius: 2px;
	font-family: 'Nunito Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 16px 20px;
	transition: background .2s, border-color .2s;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover {
	background: #3F5A26 !important;
	border-color: #3F5A26 !important;
}

@media (max-width: 782px) {
	body.woocommerce-cart .wc-block-cart-item__image img {
		width: 72px;
		height: 72px;
	}
	body.woocommerce-cart .wc-block-cart__sidebar > .wp-block-woocommerce-cart-order-summary-block {
		padding: 18px 18px 4px;
	}
}
