/* Selezione checkout + cestino (carrello privato e P.IVA) */

.woocommerce-cart .shop_table .product-remove {
	width: 56px;
}

.woocommerce-cart .vc-cart-item-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.woocommerce-cart .vc-cart-select {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	cursor: pointer;
}

.woocommerce-cart .vc-cart-select__input {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: static !important;
	inset: auto !important;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 1 !important;
	border: 2px solid #44546a !important;
	border-radius: 4px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	pointer-events: auto !important;
	display: inline-block !important;
	vertical-align: middle;
	box-sizing: border-box !important;
}

.woocommerce-cart .vc-cart-select__input:checked {
	background: #0445af !important;
	border-color: #0445af !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.2l3 3.1 6.6-6.6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 14px 14px !important;
}

.woocommerce-cart .vc-cart-select__input:focus-visible {
	outline: 2px solid #04b8d8 !important;
	outline-offset: 2px;
}

.woocommerce-cart-form .cart_item.is-vc-unselected {
	opacity: 0.55;
}

.woocommerce-cart .vc-cart-select-empty {
	margin: 0;
	padding: 8px 0;
	color: #667781;
}

.woocommerce-cart a.remove.vc-cart-trash,
.widget_shopping_cart a.remove.vc-cart-trash,
.astra-cart-drawer a.remove.vc-cart-trash {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #3d4a5c !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	box-sizing: border-box;
}

.woocommerce-cart a.remove.vc-cart-trash:hover,
.woocommerce-cart a.remove.vc-cart-trash:focus-visible,
.widget_shopping_cart a.remove.vc-cart-trash:hover,
.astra-cart-drawer a.remove.vc-cart-trash:hover {
	color: #c62828 !important;
	background: transparent !important;
	outline: none;
}

.woocommerce-cart a.remove.vc-cart-trash .vc-cart-trash__icon,
.widget_shopping_cart a.remove.vc-cart-trash .vc-cart-trash__icon,
.astra-cart-drawer a.remove.vc-cart-trash .vc-cart-trash__icon {
	display: block;
	width: 24px;
	height: 24px;
}

.widget_shopping_cart a.remove.vc-cart-trash,
.astra-cart-drawer a.remove.vc-cart-trash {
	width: 32px !important;
	height: 32px !important;
	color: #3d4a5c !important;
}

.widget_shopping_cart a.remove.vc-cart-trash .vc-cart-trash__icon,
.astra-cart-drawer a.remove.vc-cart-trash .vc-cart-trash__icon {
	width: 20px;
	height: 20px;
}

@media (max-width: 781px) {
	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item,
	.woocommerce-page .woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item {
		display: block !important;
		width: 100%;
		box-sizing: border-box;
		margin: 0 0 16px;
		padding: 12px 14px 14px;
		border: 1px solid #d1d7db !important;
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 1px 3px rgba(17, 27, 33, 0.07);
	}

	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td,
	.woocommerce-page .woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td {
		display: block !important;
		width: 100% !important;
		max-width: 100%;
		border: 0 !important;
		padding: 6px 0 !important;
		text-align: left !important;
		box-sizing: border-box;
	}

	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-remove {
		display: block !important;
		padding: 0 0 10px !important;
		margin: 0 0 4px;
		border-bottom: 1px solid #e8eaed !important;
	}

	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-remove::before,
	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-thumbnail::before,
	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-name::before {
		content: none !important;
		display: none !important;
	}

	.woocommerce-cart .vc-cart-item-actions {
		flex-direction: row;
		justify-content: space-between;
		width: 100%;
	}

	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-thumbnail {
		text-align: center !important;
		padding: 10px 0 8px !important;
	}

	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-thumbnail img {
		float: none !important;
		margin: 0 auto !important;
	}

	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-name {
		text-align: left !important;
		font-weight: 600;
		padding-bottom: 10px !important;
	}

	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-price,
	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-quantity,
	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-subtotal {
		display: flex !important;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		text-align: right !important;
	}

	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-price::before,
	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-quantity::before,
	.woocommerce-cart-form table.shop_table_responsive tbody tr.cart_item td.product-subtotal::before {
		float: none !important;
		content: attr(data-title) ": ";
		font-weight: 700;
		color: #667781;
	}

	.woocommerce-cart-form table.shop_table_responsive tbody tr.actions {
		display: block;
		border: 0;
		padding-top: 4px;
	}
}
