/*
 * Mon Équipement Pro — panier, commande et « Mon compte ».
 * Chargé uniquement sur ces pages. Habille les blocs Panier et Commande de WooCommerce
 * (utilisés par défaut) et leurs versions classiques en code court, sans toucher à leur fonctionnement :
 * uniquement des couleurs, polices, bordures et tailles.
 *
 * Le préfixe #page donne la priorité sur les styles des blocs, chargés parfois après le thème.
 */

/* ==================================================================
 * Blocs Panier et Commande
 * ================================================================== */
#page .wp-block-woocommerce-cart,
#page .wp-block-woocommerce-checkout { font-family: var(--body); color: var(--ink); padding-top: 4px; }

/* Titres */
#page .wc-block-cart__totals-title,
#page .wc-block-components-checkout-step__title,
#page .wc-block-components-title,
#page .wc-block-cart .wc-block-cart__empty-cart__title,
#page .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--ink);
}
#page .wc-block-components-checkout-step__title { font-size: 21px; }
#page .wc-block-cart__totals-title { font-size: 15px; letter-spacing: .06em; }
#page .wc-block-components-checkout-step__description { color: var(--ink-2); }

/* Lignes du panier */
#page .wc-block-cart-items { border-bottom: 1px solid var(--line); }
#page .wc-block-cart-items th,
#page .wc-block-cart-items .wc-block-cart-items__header span {
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: .04em;
	color: var(--ink-2);
}
#page .wc-block-cart-items td { border-top: 1px solid var(--line); background: transparent; }
#page .wc-block-components-product-name {
	font-family: var(--body);
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ink);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.3;
}
#page .wc-block-components-product-name:hover { text-decoration: underline; }
#page .wc-block-components-product-metadata,
#page .wc-block-components-product-details { font-size: 12px; color: var(--ink-2); }
#page .wc-block-components-product-details__name { font-weight: 600; color: var(--ink); }
#page .wc-block-cart-item__total .wc-block-components-product-price,
#page .wc-block-cart-item__total .wc-block-components-formatted-money-amount {
	font-family: var(--display);
	font-weight: 700;
	font-size: 19px;
}
#page .wc-block-components-product-price del { color: var(--ink-3); }
#page .wc-block-components-product-price ins { background: none; text-decoration: none; }
#page .wc-block-components-sale-badge {
	background: var(--accent);
	color: var(--accent-ink);
	border: 0;
	border-radius: 9px;
	font-family: var(--mono);
	font-weight: 500;
}
#page .wc-block-cart-item__image img { border: 1px solid var(--line); border-radius: 2px; }

/* Quantité : boutons − / + de 44 px, sans l'habillage des gros boutons. */
#page .wc-block-components-quantity-selector {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	min-height: 44px;
	width: auto;
	display: inline-flex;
}
#page .wc-block-components-quantity-selector::after { border: 0; }
#page .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	font-family: var(--mono);
	font-size: 16px;
	min-height: 42px;
	flex: 0 0 52px;
	width: 52px;
	padding: 0 4px;
	text-align: center;
	border: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
}
#page .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	flex: 0 0 44px;
	min-width: 44px;
	min-height: 42px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--ink);
	font-family: var(--body);
	font-size: 18px;
	text-transform: none;
	letter-spacing: 0;
}
#page .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover { background: var(--plaster-2); color: var(--ink); }
#page .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled { opacity: .35; }

/* Liens-boutons des blocs (retirer, code promo, modifier l'adresse…) : restent des liens. */
#page .wc-block-cart-item__remove-link,
#page .wc-block-components-panel__button,
#page .wc-block-components-totals-coupon-link,
#page .wc-block-components-address-card__edit,
#page .wc-block-components-button.is-link,
#page .wc-block-checkout__login-prompt,
#page .wc-block-components-show-password-button {
	background: transparent;
	border: 0;
	color: var(--ink-2);
	font-family: var(--body);
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	min-height: 0;
	box-shadow: none;
}
#page .wc-block-cart-item__remove-link { font-size: 12px; text-decoration: underline; padding: 6px 0; min-height: 32px; }
#page .wc-block-cart-item__remove-link:hover,
#page .wc-block-components-panel__button:hover,
#page .wc-block-components-address-card__edit:hover { color: var(--ink); background: transparent; }
#page .wc-block-components-panel__button { font-size: 14px; }

/* Récapitulatif : encadré blanc à bordure jaune (encadré prix de la maquette). */
#page .wp-block-woocommerce-cart-totals-block,
#page .wp-block-woocommerce-checkout-order-summary-block {
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	padding: 4px 16px 16px;
}
#page .wc-block-components-totals-wrapper { border-top-color: var(--line); }
#page .wc-block-components-totals-item { font-size: 14px; color: var(--ink); }
#page .wc-block-components-totals-item__description { color: var(--ink-2); font-size: 12.5px; }
#page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
#page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--display);
	font-size: 23px;
	font-weight: 700;
	text-transform: uppercase;
}
#page .wc-block-components-totals-footer-item-tax { font-family: var(--mono); font-size: 11px; color: var(--ink-2); text-transform: none; }

/* Boutons des blocs : encre, jaune au survol ; bouton final en jaune. */
#page .wc-block-components-button:not(.is-link) {
	min-height: 48px;
	background: var(--ink);
	color: var(--plaster);
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	font-family: var(--display);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: 17px;
	box-shadow: none;
	text-decoration: none;
}
#page .wc-block-components-button:not(.is-link):hover,
#page .wc-block-components-button:not(.is-link):focus-visible {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}
#page .wc-block-cart__submit-button.wc-block-components-button:not(.is-link),
#page .wc-block-components-checkout-place-order-button.wc-block-components-button:not(.is-link) {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
	font-size: 18px;
	min-height: 52px;
}
#page .wc-block-cart__submit-button.wc-block-components-button:not(.is-link):hover,
#page .wc-block-components-checkout-place-order-button.wc-block-components-button:not(.is-link):hover,
#page .wc-block-cart__submit-button.wc-block-components-button:not(.is-link):focus-visible,
#page .wc-block-components-checkout-place-order-button.wc-block-components-button:not(.is-link):focus-visible {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--plaster);
}
#page .wc-block-components-button:not(.is-link):focus { box-shadow: none; outline: 2px solid var(--brand); outline-offset: 2px; }
#page .wc-block-components-checkout-return-to-cart-button { color: var(--ink-2); font-weight: 500; }

/* Champs des blocs : cadre de la charte, 16 px. */
#page .wc-block-components-text-input input[type="text"],
#page .wc-block-components-text-input input[type="email"],
#page .wc-block-components-text-input input[type="tel"],
#page .wc-block-components-text-input input[type="number"],
#page .wc-block-components-text-input input[type="password"],
#page .wc-block-components-text-input input[type="url"],
#page .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
#page .wc-blocks-components-select .wc-blocks-components-select__select,
#page .wc-block-components-textarea,
#page .wc-block-components-form .wc-block-components-text-input input {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	box-shadow: none;
	outline: 0;
}
#page .wc-block-components-text-input input:focus,
#page .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
#page .wc-blocks-components-select .wc-blocks-components-select__select:focus,
#page .wc-block-components-textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
	outline: 0;
}
#page .wc-block-components-text-input label,
#page .wc-blocks-components-select .wc-blocks-components-select__label,
#page .wc-block-components-combobox .wc-block-components-combobox-control label.components-base-control__label { color: var(--ink-2); }
#page .wc-block-components-text-input.has-error input,
#page .wc-block-components-validation-error { border-color: var(--err); color: var(--err); }

/* Cases et boutons radio */
#page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	border: 1px solid var(--ink-3);
	border-radius: 2px;
	background: var(--card);
	width: 20px;
	height: 20px;
	min-height: 0;
}
#page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
#page .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--plaster); }
#page .wc-block-components-radio-control__input { border-color: var(--ink-3); min-height: 0; }
#page .wc-block-components-radio-control__input:checked { border-color: var(--ink); }
#page .wc-block-components-radio-control__input:checked::before { background: var(--ink); }
#page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
#page .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--accent);
	border-radius: var(--radius);
}
#page .wc-block-components-radio-control__label { font-weight: 600; color: var(--ink); }
#page .wc-block-components-radio-control__secondary-label { font-family: var(--display); font-weight: 700; font-size: 16px; }
#page .wc-block-components-radio-control__description,
#page .wc-block-components-radio-control__secondary-description { color: var(--ink-2); }

/* Messages des blocs */
#page .wc-block-components-notice-banner {
	background: var(--card);
	color: var(--ink);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
}
#page .wc-block-components-notice-banner.is-success { border-left-color: var(--ok); }
#page .wc-block-components-notice-banner.is-error { border-left-color: var(--err); }
#page .wc-block-components-notice-banner > svg { background: var(--ink); fill: var(--plaster); }
#page .wc-block-components-notice-banner.is-error > svg { background: var(--err); }
#page .wc-block-components-notice-banner.is-success > svg { background: var(--ok); }

/* Lien « Demander un devis » ajouté par l'extension Espace PRO sous le bouton du panier */
#page .bdb-lien-devis { font-size: 13px; }

/* Panier vide */
#page .wc-block-cart__empty-cart__title::before { background: var(--ink-3); }

/* ==================================================================
 * Versions classiques (codes courts [woocommerce_cart] et [woocommerce_checkout])
 * ================================================================== */
#page table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); border-collapse: separate; }
#page table.shop_table th {
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 14px;
	color: var(--ink);
	background: var(--plaster-2);
	border-bottom: 2px solid var(--accent);
}
#page table.shop_table td { border-top: 1px solid var(--line); color: var(--ink); background: transparent; }
#page table.shop_table td.product-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
#page table.shop_table .product-remove a.remove { color: var(--ink-2); font-size: 20px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
#page table.shop_table .product-remove a.remove:hover { background: var(--plaster-2); color: var(--err); }
#page table.cart td.actions .coupon .input-text { min-height: 44px; }
#page table.cart .quantity .qty { width: 84px; font-family: var(--mono); text-align: center; }
#page .cart-collaterals .cart_totals,
#page .woocommerce-checkout-review-order {
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	padding: 16px;
}
#page .cart-collaterals .cart_totals h2 { font-size: 21px; }
#page .cart_totals .order-total th, #page .cart_totals .order-total td,
#page .woocommerce-checkout-review-order-table .order-total th,
#page .woocommerce-checkout-review-order-table .order-total td {
	font-family: var(--display);
	font-size: 23px;
	font-weight: 700;
}
#page .wc-proceed-to-checkout .checkout-button, #page #place_order { min-height: 52px; font-size: 18px; width: 100%; }
#page .woocommerce-checkout h3, #page #order_review_heading { font-size: 21px; }
#page form.checkout .form-row label { color: var(--ink-2); font-weight: 500; }
#page form.checkout .form-row .required { color: var(--err); text-decoration: none; }
#page #payment { background: var(--plaster); border-radius: var(--radius); }
#page #payment .payment_methods { border-bottom-color: var(--line); }
#page #payment .payment_methods li { background: transparent; }
#page #payment .payment_box { background: var(--card); color: var(--ink-2); }
#page .select2-container--default .select2-selection--single {
	min-height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
}
#page .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; color: var(--ink); font-size: 16px; }
#page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }

/* ==================================================================
 * Mon compte
 * ================================================================== */
#page .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
}
#page .woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid var(--line); margin: 0; padding: 0; position: relative; }
#page .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: 0; }
#page .woocommerce-MyAccount-navigation ul li a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 14px;
	font-family: var(--display);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 16px;
	color: var(--ink-2);
	text-decoration: none;
}
#page .woocommerce-MyAccount-navigation ul li a::before { display: none; }
#page .woocommerce-MyAccount-navigation ul li a:hover { background: var(--plaster-2); color: var(--ink); }
#page .woocommerce-MyAccount-navigation ul li.is-active a { color: var(--ink); box-shadow: inset 4px 0 0 var(--accent); }
#page .woocommerce-MyAccount-content h2, #page .woocommerce-MyAccount-content h3 { font-size: 21px; }
#page .woocommerce-form-login, #page .woocommerce-form-register, #page .woocommerce-ResetPassword {
	border: 1px solid var(--line);
	background: var(--card);
	border-radius: var(--radius);
	padding: 18px;
}
#page .u-columns h2 { font-size: 21px; }
#page .woocommerce-orders-table .button { min-height: 36px; font-size: 13px; padding: 6px 12px; }
