/* -------------------------------------------------------
   Panier WooCommerce Blocks — Cristime
   Design premium cohérent avec le checkout.
   ------------------------------------------------------- */

/* -------------------------------------------------------
   1. Sidebar — Récapitulatif
   ------------------------------------------------------- */
.wc-block-cart__sidebar {
	background-color: #fafafa;
	border-radius: 10px;
	padding: 1.5rem !important;
	box-shadow: 0 0 0 1px #e8e8e8;
	border: none;
}

/* Titre "Récapitulatif" */
.wc-block-cart__totals-title {
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 0.5rem;
}

/* -------------------------------------------------------
   2. Lignes totaux — espacement cohérent
   ------------------------------------------------------- */
.wc-block-cart .wc-block-components-totals-wrapper {
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

/* Total final — plus visible */
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.15rem;
	font-weight: 700;
}

/* -------------------------------------------------------
   3. Bouton "Passer commande"
   ------------------------------------------------------- */
.wc-block-cart__submit-button.wp-element-button {
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 1rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	width: 100%;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.wc-block-cart__submit-button.wp-element-button:hover {
	background: #333;
	color: #fff;
}

.wc-block-cart__submit-button.wp-element-button:active {
	transform: scale(0.99);
}

/* -------------------------------------------------------
   4. Images produit — arrondi subtil
   ------------------------------------------------------- */
.wc-block-cart-item__image img {
	border-radius: 6px;
}

/* -------------------------------------------------------
   5. Sélecteur de quantité — épuré
   ------------------------------------------------------- */
.wc-block-cart .wc-block-components-quantity-selector {
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
}

.wc-block-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	border: none;
	font-weight: 600;
}

.wc-block-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	background: transparent;
	border: none;
	color: #666;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.wc-block-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
	color: #1a1a1a;
	background-color: #f0f0f0;
}

/* -------------------------------------------------------
   6. Lien supprimer — discret
   ------------------------------------------------------- */
.wc-block-cart-item__remove-link {
	color: #999;
	font-size: 0.8rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.wc-block-cart-item__remove-link:hover {
	color: #c00;
}

/* -------------------------------------------------------
   7. Code promo — discret, bouton noir
   ------------------------------------------------------- */
.wc-block-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
	font-size: 0.875rem;
	color: #666;
}

.wc-block-cart .wc-block-components-totals-coupon__form {
	align-items: stretch;
}

.wc-block-cart .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button.wp-element-button {
	font-size: 0.85rem;
	padding: 0.5rem 1rem;
	background: #1a1a1a;
	color: #fff;
	border-radius: 5px;
}

/* -------------------------------------------------------
   8. Paiement express — même style que checkout
   ------------------------------------------------------- */
.wc-block-components-express-payment--cart {
	border: none;
	border-radius: 0;
	padding: 0;
	margin-bottom: 1.5rem;
}

.wc-block-components-express-payment--cart .wc-block-components-express-payment__event-buttons {
	gap: 1rem;
}

.wc-block-components-express-payment--cart .wc-block-components-express-payment__title-container {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888;
}

.wc-block-components-express-payment--cart .wc-block-components-express-payment-continue-rule {
	margin-top: 1.25rem;
	color: #999;
	font-size: 0.85rem;
}

.wc-block-components-express-payment--cart .wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment--cart .wc-block-components-express-payment-continue-rule::after {
	border-color: #e5e5e5;
}

/* -------------------------------------------------------
   9. Nom du produit — style soigné
   ------------------------------------------------------- */
.wc-block-cart-item__product .wc-block-components-product-name {
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
}

.wc-block-cart-item__product .wc-block-components-product-name:hover {
	color: #333;
}

/* -------------------------------------------------------
   10. PayPal « Payez en 4 échéances » — espacement
   ------------------------------------------------------- */
.wc-block-cart__sidebar .ppcp-messages {
	margin-top: 1rem;
}

/* -------------------------------------------------------
   11. Responsive
   ------------------------------------------------------- */
@media (max-width: 768px) {
	.wc-block-cart__sidebar {
		padding: 1.5rem;
		border-radius: 8px;
	}

	.wc-block-cart__totals-title {
		font-size: 0.95rem;
	}

	.wc-block-cart__submit-button.wp-element-button {
		padding: 0.875rem 1.5rem;
		font-size: 0.95rem;
	}
}
