/*
 * Carrello (woocommerce/cart/cart.php): righe a scheda, quantità con +/-, coupon, totali.
 *
 * Ex <style> inline in cart.php (2026-10, fase 2c del riordino): stesse regole, tolte quelle
 * commentate o senza elementi corrispondenti. Stampato solo nella pagina carrello, subito dopo
 * bonvini-custom.css (vedi bonvini_print_custom_css()), quindi con la stessa precedenza di prima.
 * Prodotti a quantità fissa e focus da tastiera: bonvini-custom.css, sezioni 6 e 7.
 */

/* Codice promozionale */
#coupon_code {
	text-align: center;
}

/* Immagine a sinistra */
ul .product-thumbnail img {
	max-width: none;
	height: 100%;
	width: 100%;
	object-fit: contain;
}

/* Elenco dei prodotti: niente puntini */
ul.woocommerce-cart-form__contents {
	list-style: none;
	padding-left: 0;
}

/* Riga prodotto */
li.woocommerce-cart-form__cart-item {
	background-color: #f4f4f4;
	padding: 1rem 0;
	margin-bottom: 1rem;
}

ul .product-quantity .quantity {
	display: block;
	float: left;
}

/* Totali "sticky" a destra: i contenitori devono avere overflow visibile */
#content {
	overflow: visible;
}
.woocommerce {
	max-width: none !important;
}
.cart-collaterals {
	position: sticky;
	display: inline-block;
	vertical-align: top;
	top: 0;
	width: 400px !important;
}
.cart_totals {
	float: left;
	width: 100% !important;
}

.product-name.col {
	margin-bottom: 1rem; /* ex <p>: stesso margine di prima (2026-10-05) */
	letter-spacing: -0.01rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.flex-col-c {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.posted_in.prod_cat_bonvini {
	align-self: flex-start;
}
.product_title a {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
	font-weight: 500;
	color: #000000;
}
.product_title a:hover {
	text-decoration: none;
}

/* Pulsanti +/- della quantità */
.wc-bonvini-add-to-cart-plus,
.wc-bonvini-add-to-cart-minus {
	height: 2.5rem;
	width: 2.5rem;
	border: 1px solid #000000;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ffffff;
}
.wc-bonvini-add-to-cart-plus button,
.wc-bonvini-add-to-cart-minus button {
	border: none;
	background-color: transparent;
	outline: none;
	color: #68af80;
	font-weight: 600;
}

.product-quantity {
	display: flex;
	align-items: center;
	justify-content: center;
}
.input-text.qty.text {
	height: 2.5rem;
	outline: none;
	border-left: none;
	border-right: none;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
}

/* Rimuovi (X) */
.woocommerce .cart a.remove {
	color: #68af80 !important;
	border-radius: 50%;
	border: 1px solid #68af80;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 1.5rem;
	width: 1.5rem;
	line-height: 1.5rem;
	font-size: 1.5rem;
}
.woocommerce .cart a.remove:hover {
	background-color: #68af80;
	color: #ffffff !important;
}

/* Aggiorna carrello e coupon distanziati (2026-10-19): prima i tre pulsanti erano attaccati. */
.woocommerce-cart-form button[name="update_cart"] {
	margin: 1.5rem 0 0;
}
.woocommerce-cart-form .coupon {
	margin-top: 2rem;
}

/* Coupon */
#coupon_code,
#apply_coupon {
	width: 100%;
	outline: none;
	font-size: 1rem;
	line-height: 2.5rem;
	padding: 0.25rem 0.5rem;
	margin-bottom: 0.75rem;
	border: 1px solid #bfbfbf;
}
#apply_coupon {
	color: #68af80;
	background: #fff;
}
#apply_coupon:hover {
	color: #ffffff;
	background: #68af80;
	border: 1px solid #68af80;
}

/* Totali */
.cart_totals > h2 {
	display: none;
}

.cart-collaterals {
	margin-top: 3rem;
}

table.shop_table tbody .cart-subtotal th {
	font-weight: 400;
}
table.shop_table tbody tr.order-total {
	background-color: #f4f4f4;
}
.wc-proceed-to-checkout a.checkout-button {
	width: 100%;
	outline: none;
	font-size: 1rem;
	line-height: 2.5rem;
	padding: 0.5rem !important;
	margin-bottom: 0.5rem;
	border: 1px solid #bfbfbf;
	background: #68af80 !important;
	color: #fff;
}

.product-name {
	justify-content: center;
	display: flex;
	flex-direction: column;
}
