/**
 * Page panier — boutons, quantité, masquage paiement express.
 */

/* ── Masquer PayPal / carte sur le panier (checkout uniquement ensuite) ── */
.woocommerce-cart .woocommerce-pay-buttons,
.woocommerce-cart .wc-ppcp-cart-payments__container,
.woocommerce-cart .wc_stripe_cart_payment_methods,
.woocommerce-cart .wc-stripe-bnpl-cart-message-container,
.woocommerce-cart .wc-ppcp-cart-or,
.woocommerce-cart .wc-proceed-to-checkout .wc-ppcp-cart-payment-method,
.woocommerce-cart .wc-proceed-to-checkout [id^="wc-ppcp"],
.woocommerce-cart .wc-proceed-to-checkout [id^="wc_stripe"] {
	display: none !important;
}

/* ── Quantité (+ / −) ── */
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity {
	display: inline-block;
	min-width: 120px;
	height: 42px;
	margin: 0;
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	background: #fff;
	position: relative;
	overflow: hidden;
	vertical-align: middle;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity .qty {
	float: none !important;
	display: block;
	width: 100% !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 42px !important;
	border: 0 !important;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	line-height: 40px;
	box-sizing: border-box;
	-moz-appearance: textfield;
	appearance: textfield;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity button.plus,
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity button.minus {
	position: absolute !important;
	top: 0 !important;
	float: none !important;
	width: 40px !important;
	height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #f3f3f3 !important;
	color: #222 !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 40px !important;
	text-align: center;
	cursor: pointer;
	z-index: 2;
	box-shadow: none !important;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity button.minus {
	left: 0 !important;
	right: auto !important;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity button.plus {
	right: 0 !important;
	left: auto !important;
}

.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity button.plus:hover,
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart td.product-quantity > .quantity button.minus:hover {
	background: #fa8400 !important;
	color: #fff !important;
}

/* ── Code promo ── */
.woocommerce-cart .woocommerce-cart-form .bottom-cart .coupon .button,
.woocommerce-cart .woocommerce-cart-form table.shop_table .coupon .button {
	display: inline-block !important;
	background: #fa8400 !important;
	border: none !important;
	border-radius: 25px !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 42px !important;
	height: 42px !important;
	padding: 0 28px !important;
	text-transform: none !important;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(250, 132, 0, 0.35);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-cart .woocommerce-cart-form .bottom-cart .coupon .button:hover,
.woocommerce-cart .woocommerce-cart-form table.shop_table .coupon .button:hover {
	background: #e07800 !important;
	box-shadow: 0 4px 12px rgba(250, 132, 0, 0.4);
}

/* ── Continuer mes achats ── */
.woocommerce-cart .woocommerce-cart-form .bottom-cart > h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

.woocommerce-cart .woocommerce-cart-form .actions .bottom-cart > h2 a,
.woocommerce-cart .woocommerce-cart-form .bottom-cart > h2 a {
	display: inline-block !important;
	background: #fa8400 !important;
	border: none !important;
	border-radius: 25px !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 42px !important;
	height: 42px !important;
	padding: 0 28px !important;
	text-decoration: none !important;
	text-transform: none !important;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(250, 132, 0, 0.35);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-cart .woocommerce-cart-form .actions .bottom-cart > h2 a:hover,
.woocommerce-cart .woocommerce-cart-form .bottom-cart > h2 a:hover {
	background: #e07800 !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(250, 132, 0, 0.4);
}

/* ── Valider la commande ── */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
	padding: 0 24px 28px !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout > a.checkout-button,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout > a.wc-forward {
	display: block !important;
	width: 100% !important;
	padding: 15px 24px !important;
	background: #1a5c02 !important;
	border: none !important;
	border-radius: 50px !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	text-align: center !important;
	text-transform: capitalize !important;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(26, 92, 2, 0.3);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout > a.checkout-button:hover,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout > a.wc-forward:hover {
	background: #227403 !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(34, 116, 3, 0.35);
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout > a.checkout-button::before,
.woocommerce-cart .cart_totals .wc-proceed-to-checkout > a.wc-forward::before {
	display: none !important;
}

/* ── Total TTC + mention TVA (Peeboo : Price-amount en bloc → « dont » coupé) ── */
.woocommerce-cart .cart-collaterals .order-total > div:not(.title) {
	flex: 1;
	min-width: 0;
	text-align: right;
}

.woocommerce-cart .cart-collaterals .mc-cart-order-total-line {
	display: inline-block;
	max-width: 100%;
	text-align: right;
	line-height: 1.45;
}

.woocommerce-cart .cart-collaterals .mc-cart-order-total-line strong,
.woocommerce-cart .cart-collaterals .mc-cart-order-total-line .includes_tax,
.woocommerce-cart .cart-collaterals .mc-cart-order-total-line .woocommerce-Price-amount,
.woocommerce-cart .cart-collaterals .order-total .woocommerce-Price-amount {
	display: inline !important;
	font-size: inherit;
	vertical-align: baseline;
}

.woocommerce-cart .cart-collaterals .order-total .woocommerce-Price-amount.amount {
	font-size: 20px;
	font-weight: 600;
}

.woocommerce-cart .cart-collaterals .mc-cart-order-total-line .includes_tax {
	margin-left: 0.35em;
	font-size: 12px !important;
	font-weight: 400;
	color: #666;
	white-space: nowrap;
}

/* Pas de ligne TVA séparée si le total affiche déjà « dont … TVA » */
.woocommerce-cart .cart-collaterals .shop_table_responsive:has(.includes_tax) .tax-total {
	display: none !important;
}

@media (max-width: 480px) {
	.woocommerce-cart .cart-collaterals .mc-cart-order-total-line {
		display: block;
	}

	.woocommerce-cart .cart-collaterals .mc-cart-order-total-line .includes_tax {
		display: block !important;
		margin: 4px 0 0;
		white-space: normal;
		font-size: 11px !important;
	}
}
