/* ==========================================================================
   Yunova — Revamp 2026, tunnel de vente (panier, commande, compte) — préversion ?revamp=1
   Habillage uniquement : aucun champ, étape ni comportement modifiés.
   ========================================================================== */

/* Champs WooCommerce communs */
body.yx-page-cart .woocommerce input.input-text,
body.yx-page-checkout .woocommerce input.input-text,
body.yx-page-checkout .woocommerce select,
body.yx-page-checkout .woocommerce textarea,
body.yx-page-checkout .select2-container .select2-selection,
body.yx-page-my-account .woocommerce input.input-text {
	border: 1.5px solid var(--yx-line) !important; border-radius: 14px !important; background: var(--yx-bg) !important;
	min-height: 50px; padding: 12px 16px !important; font-size: 15px !important; color: var(--yx-ink) !important;
	box-shadow: none !important; font-family: var(--yx-font) !important;
}
body.yx-page-checkout .select2-container .select2-selection { display: flex !important; align-items: center; height: 50px !important; padding: 0 12px !important; }
body.yx-page-checkout .select2-container .select2-selection__arrow { height: 48px !important; right: 10px !important; }
body.yx-page-cart .woocommerce input.input-text:focus, body.yx-page-checkout .woocommerce input.input-text:focus,
body.yx-page-my-account .woocommerce input.input-text:focus { border-color: var(--yx-blue) !important; background: #fff !important; outline: none; }
body.yx-page-checkout .woocommerce label, body.yx-page-my-account .woocommerce label {
	font-size: 13.5px !important; font-weight: 600 !important; color: var(--yx-ink) !important; margin-bottom: 6px !important;
}
body.yx-page-checkout .woocommerce .required { color: var(--yx-blue) !important; text-decoration: none; }

/* Boutons principaux */
html body.yx-page-cart .woocommerce a.checkout-button,
html body.yx-page-cart .woocommerce button.button,
html body.yx-page-checkout .woocommerce button.button,
html body.yx-page-checkout .woocommerce a.button,
html body.yx-page-checkout #place_order,
html body.yx-page-my-account .woocommerce button.button {
	background: var(--yx-ink) !important; color: #fff !important; border: 0 !important; border-radius: 99px !important;
	font-family: var(--yx-font) !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0 !important;
	text-transform: none !important; padding: 14px 28px !important; line-height: 1.2 !important; transition: background .2s, transform .2s;
}
html body.yx-page-cart .woocommerce a.checkout-button::after, html body.yx-page-cart .woocommerce button.button::after,
html body.yx-page-checkout .woocommerce button.button::after, html body.yx-page-checkout .woocommerce a.button::after,
html body.yx-page-my-account .woocommerce button.button::after { display: none !important; }
html body.yx-page-cart .woocommerce a.checkout-button:hover, html body.yx-page-checkout #place_order:hover,
html body.yx-page-my-account .woocommerce button.button:hover { background: var(--yx-blue) !important; transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   Panier
   -------------------------------------------------------------------------- */
body.yx-page-cart .yx-cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin: 20px 0 40px; }
body.yx-page-cart .yx-cart .cart-collaterals { width: 100% !important; float: none !important; position: sticky; top: 170px; }
body.yx-page-cart .yx-cart .cart_totals { width: 100% !important; float: none !important; background: var(--yx-ink); border-radius: var(--yx-radius); padding: 30px !important; }
body.yx-page-cart .cart_totals h2 { font-size: 22px !important; font-weight: 800 !important; color: #fff !important; margin: 0 0 14px !important; padding: 0 !important; }
body.yx-page-cart .cart_totals table.shop_table { border: 0 !important; background: none !important; margin: 0 0 18px !important; }
body.yx-page-cart .cart_totals table.shop_table th, body.yx-page-cart .cart_totals table.shop_table td {
	background: none !important; border: 0 !important; border-top: 1px solid rgba(255, 255, 255, .12) !important;
	color: rgba(255, 255, 255, .8) !important; padding: 14px 0 !important; font-size: 15px !important;
}
body.yx-page-cart .cart_totals table.shop_table td { text-align: right !important; }
body.yx-page-cart .cart_totals table.shop_table td * { color: inherit !important; }
body.yx-page-cart .cart_totals .order-total th, body.yx-page-cart .cart_totals .order-total td,
body.yx-page-cart .cart_totals .order-total strong { color: #fff !important; font-size: 20px !important; font-weight: 800 !important; }
body.yx-page-cart .cart_totals .order-total small { display: block; font-size: 12px !important; font-weight: 400 !important; color: rgba(255, 255, 255, .6) !important; }
html body.yx-page-cart .cart_totals a.checkout-button { display: block !important; width: 100% !important; text-align: center; background: var(--yx-blue) !important; padding: 17px !important; font-size: 16px !important; }
html body.yx-page-cart .cart_totals a.checkout-button:hover { background: #fff !important; color: var(--yx-ink) !important; }
body.yx-page-cart .cart_totals .wc-proceed-to-checkout { padding: 0 !important; }
body.yx-page-cart .cart_totals::after {
	content: "Paiements 100 % sécurisés · Envois en France métropolitaine · Port gratuit dès 49 €";
	display: block; margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); text-align: center;
}

body.yx-page-cart table.shop_table.cart { border: 0 !important; border-collapse: separate !important; border-spacing: 0 12px !important; margin: -12px 0 0 !important; background: none !important; }
body.yx-page-cart table.shop_table.cart thead { display: none; }
body.yx-page-cart table.shop_table.cart tr.cart_item td {
	background: #fff !important; border: 1px solid var(--yx-line) !important; border-left: 0 !important; border-right: 0 !important;
	padding: 18px 14px !important; vertical-align: middle !important; font-size: 15px !important; color: var(--yx-ink) !important;
}
body.yx-page-cart table.shop_table.cart tr.cart_item td:first-child { border-left: 1px solid var(--yx-line) !important; border-radius: 20px 0 0 20px; padding-left: 20px !important; }
body.yx-page-cart table.shop_table.cart tr.cart_item td:last-child { border-right: 1px solid var(--yx-line) !important; border-radius: 0 20px 20px 0; padding-right: 22px !important; font-weight: 800; }
body.yx-page-cart td.product-thumbnail img { width: 72px !important; height: 72px !important; object-fit: contain; background: var(--yx-bg); border-radius: 14px; padding: 6px; }
body.yx-page-cart td.product-name a { font-size: 17px !important; font-weight: 800 !important; color: var(--yx-ink) !important; }
body.yx-page-cart td.product-remove a.remove {
	width: 32px !important; height: 32px !important; line-height: 30px !important; border-radius: 50% !important; font-size: 20px !important;
	color: var(--yx-muted) !important; background: var(--yx-bg) !important; text-align: center;
}
body.yx-page-cart td.product-remove a.remove:hover { color: #fff !important; background: #e24b4a !important; }
body.yx-page-cart td.product-quantity input.qty { width: 76px !important; border-radius: 99px !important; text-align: center; font-weight: 700 !important; min-height: 44px; }
body.yx-page-cart table.shop_table.cart td.actions { background: none !important; border: 0 !important; padding: 8px 0 0 !important; }
body.yx-page-cart td.actions .coupon { display: flex !important; gap: 10px; align-items: center; float: none !important; }
body.yx-page-cart td.actions .coupon input#coupon_code { width: 220px !important; border-radius: 99px !important; margin: 0 !important; }
html body.yx-page-cart td.actions .coupon button.button { background: #fff !important; color: var(--yx-ink) !important; border: 1.5px solid var(--yx-line) !important; padding: 13px 22px !important; margin: 0 !important; width: auto !important; }
html body.yx-page-cart td.actions > button[name=update_cart] { background: none !important; color: var(--yx-muted) !important; padding: 13px 4px !important; float: right; }
html body.yx-page-cart td.actions > button[name=update_cart]:not([disabled]) { color: var(--yx-blue) !important; }

/* Ventes croisées sous le panier : même grille que la page produits */
body.yx-page-cart .woo-shop-section { margin-top: 10px; }

/* Messages WooCommerce (article supprimé / annuler, panier vide, erreurs) : cartes au lieu des bandeaux bleus du thème.
   Le panier est remplacé en AJAX après une suppression : ces règles ne dépendent d'aucun habillage posé en JS. */
body.yx-page-cart .woocommerce-notices-wrapper:not(:empty),
body.yx-page-checkout .woocommerce-notices-wrapper:not(:empty) { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
body.yx-page-cart .woocommerce .woocommerce-message,
body.yx-page-cart .woocommerce .woocommerce-info,
body.yx-page-cart .woocommerce .woocommerce-error,
body.yx-page-checkout .woocommerce-notices-wrapper .woocommerce-message,
body.yx-page-checkout .woocommerce-notices-wrapper .woocommerce-info,
body.yx-page-checkout .woocommerce .woocommerce-error {
	position: relative; display: block; margin: 0 !important; padding: 16px 22px 16px 54px !important;
	background: #fff !important; color: var(--yx-ink) !important; border: 1.5px solid var(--yx-line) !important; border-radius: 18px !important;
	font-family: var(--yx-font) !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.5 !important; box-shadow: none !important;
}
body.yx-page-cart .woocommerce .woocommerce-message::before,
body.yx-page-cart .woocommerce .woocommerce-info::before,
body.yx-page-cart .woocommerce .woocommerce-error::before,
body.yx-page-checkout .woocommerce-notices-wrapper .woocommerce-message::before,
body.yx-page-checkout .woocommerce-notices-wrapper .woocommerce-info::before,
body.yx-page-checkout .woocommerce .woocommerce-error::before {
	content: "" !important; display: block !important; position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
	background: var(--yx-mint) !important; color: transparent !important; font-size: 0 !important;
	-webkit-mask: none; mask: none;
}
body.yx-page-cart .woocommerce .woocommerce-message { border-color: color-mix(in srgb, var(--yx-mint) 45%, var(--yx-line)) !important; }
body.yx-page-cart .woocommerce .woocommerce-info::before, body.yx-page-checkout .woocommerce-notices-wrapper .woocommerce-info::before { background: var(--yx-blue) !important; }
body.yx-page-cart .woocommerce .woocommerce-error, body.yx-page-checkout .woocommerce .woocommerce-error { border-color: #f1b8b7 !important; }
body.yx-page-cart .woocommerce .woocommerce-error::before, body.yx-page-checkout .woocommerce .woocommerce-error::before { background: #e24b4a !important; }
body.yx-page-cart .woocommerce .woocommerce-error li, body.yx-page-checkout .woocommerce .woocommerce-error li { list-style: none !important; margin: 0 !important; padding: 0 !important; color: inherit !important; }
body.yx-page-cart .woocommerce .woocommerce-message a,
body.yx-page-cart .woocommerce .woocommerce-info a,
body.yx-page-checkout .woocommerce-notices-wrapper a { color: var(--yx-blue) !important; font-weight: 700 !important; text-decoration: none !important; margin-left: 4px; }
body.yx-page-cart .woocommerce .woocommerce-message a.button,
body.yx-page-cart .woocommerce .woocommerce-message a.restore-item { background: none !important; padding: 0 !important; border: 0 !important; }

/* Panier vide : grande carte centrée, puis la grille produits du thème en dessous */
body.yx-page-cart .woocommerce .cart-empty.woocommerce-info {
	padding: 74px 24px 34px !important; text-align: center; font-size: 19px !important; font-weight: 800 !important;
	background: var(--yx-bg) !important; border: 0 !important; border-radius: var(--yx-radius) !important; margin: 0 0 30px !important;
}
body.yx-page-cart .woocommerce .cart-empty.woocommerce-info::before {
	left: 50%; top: 26px; width: 34px; height: 34px; margin: 0 0 0 -17px; border-radius: 0; background: var(--yx-ink) !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7L6 7z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.yx-page-cart .woocommerce .wc-empty-cart-message:empty { display: none; }

/* --------------------------------------------------------------------------
   Commande
   -------------------------------------------------------------------------- */
body.yx-page-checkout .yx-checkout-top { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 26px; }
body.yx-page-checkout .fs-free-shipping-notice-and-button-wrapper {
	display: flex !important; align-items: center; justify-content: space-between; gap: 16px; margin: 0 !important;
	background: color-mix(in srgb, var(--yx-mint) 14%, #fff) !important; border: 0 !important; border-radius: 18px !important; padding: 16px 22px !important;
}
body.yx-page-checkout .fs-free-shipping-notice-text, body.yx-page-checkout .fs-free-shipping-notice-text * {
	color: #3e5c0c !important; font-size: 15px !important; font-weight: 700 !important; background: none !important;
}
html body.yx-page-checkout .fs-free-shipping-notice-and-button-wrapper a.button {
	background: #fff !important; color: var(--yx-ink) !important; padding: 10px 18px !important; font-size: 13.5px !important; white-space: nowrap;
}
body.yx-page-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
body.yx-page-checkout .woocommerce-form-login-toggle .woocommerce-info {
	background: var(--yx-bg) !important; color: var(--yx-text) !important; border: 0 !important; border-radius: 18px !important;
	padding: 14px 22px !important; margin: 0 !important; font-size: 14.5px !important;
}
body.yx-page-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none !important; }
body.yx-page-checkout .woocommerce-form-coupon-toggle a { color: var(--yx-blue) !important; font-weight: 700; }
body.yx-page-checkout form.checkout_coupon { border: 1px solid var(--yx-line) !important; border-radius: 18px !important; padding: 18px 22px !important; margin: 0 !important; }

/* Étapes */
body.yx-page-checkout #wizard .steps { margin: 0 0 26px !important; }
body.yx-page-checkout #wizard .steps ul {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 !important; padding: 6px !important;
	background: var(--yx-bg); border-radius: 99px; list-style: none !important;
}
body.yx-page-checkout #wizard .steps ul li { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; background: none !important; }
body.yx-page-checkout #wizard .steps ul li::before, body.yx-page-checkout #wizard .steps ul li::after,
body.yx-page-checkout #wizard .steps ul li a::before, body.yx-page-checkout #wizard .steps ul li a::after { display: none !important; }
body.yx-page-checkout #wizard .steps ul li a {
	display: flex !important; align-items: center; justify-content: center; gap: 10px; margin: 0 !important;
	padding: 12px 10px !important; border-radius: 99px !important; background: none !important; border: 0 !important;
	font-size: 14.5px !important; font-weight: 600 !important; color: var(--yx-muted) !important; text-align: center;
}
body.yx-page-checkout #wizard .steps ul li a .number {
	display: inline-flex !important; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none;
	border-radius: 50% !important; background: #fff !important; border: 1.5px solid var(--yx-line) !important;
	color: var(--yx-muted) !important; font-size: 13px !important; font-weight: 800 !important; position: static !important; margin: 0 !important;
}
body.yx-page-checkout #wizard .steps ul li.current a { background: var(--yx-ink) !important; color: #fff !important; box-shadow: var(--yx-shadow); }
body.yx-page-checkout #wizard .steps ul li.current a .number {
	background: var(--yx-blue) !important; border-color: var(--yx-blue) !important; color: #fff !important;
}
body.yx-page-checkout #wizard .steps ul li.done a { color: var(--yx-ink) !important; }
body.yx-page-checkout #wizard .steps ul li.done a .number {
	background: var(--yx-mint) !important; border-color: var(--yx-mint) !important; color: #fff !important;
}

body.yx-page-checkout #wizard .steps .audible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Panneaux d'étape */
body.yx-page-checkout #wizard .content { background: none !important; border: 0 !important; min-height: 0 !important; overflow: visible !important; }
body.yx-page-checkout #wizard .content > .body.current:not(.login-step) {
	background: #fff; border: 1px solid var(--yx-line); border-radius: var(--yx-radius); padding: 36px 40px !important;
	position: relative !important; width: 100% !important; height: auto !important; float: none;
}
body.yx-page-checkout #wizard .content > h1.title { display: none !important; }
body.yx-page-checkout #wizard .content > .body h3 {
	font-size: 22px !important; font-weight: 800 !important; color: var(--yx-ink) !important; margin: 0 0 20px !important; padding: 0 !important; letter-spacing: -.01em;
}
body.yx-page-checkout #wizard .form-row { margin: 0 0 16px !important; padding: 0 !important; }

/* Étape 1 : connexion / nouveau client — cosmétique seulement (tailles et positions du thème inchangées) */
body.yx-page-checkout #wizard .login-step form.login,
body.yx-page-checkout #wizard .login-step .cusregister { border: 1.5px solid var(--yx-line) !important; border-radius: 22px !important; background: #fff; }
body.yx-page-checkout #wizard .login-step p.login_heading { font-weight: 800 !important; color: var(--yx-ink) !important; }
html body.yx-page-checkout #wizard .login-step form.login button.button { background: var(--yx-blue) !important; padding: 12px 26px !important; }
body.yx-page-checkout #wizard .login-step p.lost_password a { color: var(--yx-blue) !important; }

/* Navigation des étapes — couleurs seulement (tailles du thème : 125×50, bouton de l'étape 1 positionné en JS) */
html body.yx-page-checkout #wizard .actions ul li a { background: var(--yx-ink) !important; color: #fff !important; border: 0 !important; border-radius: 99px !important; font-weight: 700 !important; letter-spacing: 0 !important; }
html body.yx-page-checkout #wizard .actions ul li a:hover { background: var(--yx-blue) !important; letter-spacing: 0 !important; }
html body.yx-page-checkout #wizard .actions ul li.disabled a { background: var(--yx-bg) !important; color: var(--yx-muted) !important; }

/* Étape 4 : récapitulatif et paiement */
body.yx-page-checkout table.woocommerce-checkout-review-order-table { border: 0 !important; border-radius: 18px; overflow: hidden; background: var(--yx-bg) !important; }
body.yx-page-checkout table.woocommerce-checkout-review-order-table th, body.yx-page-checkout table.woocommerce-checkout-review-order-table td {
	border: 0 !important; border-top: 1px solid #fff !important; padding: 14px 18px !important; font-size: 15px !important; color: var(--yx-ink) !important; background: none !important;
}
body.yx-page-checkout table.woocommerce-checkout-review-order-table .order-total th,
body.yx-page-checkout table.woocommerce-checkout-review-order-table .order-total td { font-size: 19px !important; font-weight: 800 !important; background: #fff !important; }
body.yx-page-checkout #payment { background: none !important; border-radius: 0 !important; }
body.yx-page-checkout #payment ul.payment_methods { border: 0 !important; padding: 0 !important; margin: 20px 0 !important; display: flex; flex-direction: column; gap: 10px; }
body.yx-page-checkout #payment ul.payment_methods li {
	list-style: none !important; border: 1.5px solid var(--yx-line); border-radius: 18px; padding: 16px 20px !important; background: #fff; margin: 0 !important;
}
/* Le thème met le libellé en float:left 90 % et la boîte de description à 2-4 em de marge haute : sans dégagement,
   la boîte (fond gris) remontait sur le libellé du moyen choisi (logos CB masqués, choix « chèque » invisible).
   -> ligne radio + libellé en flex, boîte de description dans le flux sous le libellé. */
body.yx-page-checkout #payment ul.payment_methods li { display: flex !important; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 0; cursor: pointer; }
body.yx-page-checkout #payment ul.payment_methods li.active,
body.yx-page-checkout #payment ul.payment_methods li:has(input:checked) { border-color: var(--yx-blue) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--yx-blue) 14%, transparent); }
html body.yx-page-checkout #payment ul.payment_methods li input.input-radio {
	display: inline-block !important; float: none !important; position: static !important; flex: 0 0 auto;
	width: 18px !important; height: 18px !important; margin: 0 !important; accent-color: var(--yx-blue);
}
html body.yx-page-checkout #payment ul.payment_methods li label {
	float: none !important; width: auto !important; flex: 1 1 0; min-width: 0; display: flex !important; align-items: center; flex-wrap: wrap; gap: 10px;
	margin: 0 !important; font-size: 15.5px !important; font-weight: 700 !important; line-height: 1.4 !important; cursor: pointer;
}
html body.yx-page-checkout #payment ul.payment_methods li label img { margin: 0 !important; float: none !important; position: static !important; max-height: 26px !important; width: auto !important; }
html body.yx-page-checkout #payment div.payment_box {
	flex: 0 0 100%; position: static !important; float: none !important; clear: both; top: auto !important; left: auto !important;
	margin: 12px 0 0 !important; padding: 12px 16px !important; font-size: 14px !important; line-height: 1.5 !important;
	background: var(--yx-bg) !important; border-radius: 14px !important; color: var(--yx-text) !important;
}
html body.yx-page-checkout #payment div.payment_box p { margin: 0 !important; padding: 0 !important; }
body.yx-page-checkout #payment div.payment_box::before { display: none !important; }
body.yx-page-checkout #payment .place-order { padding: 0 !important; background: none !important; }
html body.yx-page-checkout #place_order { width: 100% !important; padding: 18px !important; font-size: 17px !important; background: var(--yx-blue) !important; }

/* --------------------------------------------------------------------------
   Compte client (non connecté : connexion)
   -------------------------------------------------------------------------- */
body.yx-page-my-account .product-section, body.yx-page-my-account .et_pb_text_0 { text-align: left !important; }
body.yx-page-my-account .et_pb_text_0 .product-section,
body.yx-page-my-account .et_pb_text_0 .product-section * {
	font-size: clamp(36px, 4.2vw, 60px) !important; font-weight: 800 !important; letter-spacing: -.035em !important; line-height: 1.04 !important;
	color: var(--yx-ink) !important; background: none !important;
}
body.yx-page-my-account .et_pb_text_0 .product-section *::first-letter { background: none !important; color: inherit !important; padding: 0 !important; font-size: inherit !important; }
body.yx-page-my-account .et_pb_row_0 { padding: 40px 0 8px !important; }
body.yx-page-my-account .et_pb_text_1 .woocommerce { max-width: 520px; }
body.yx-page-my-account .et_pb_text_1 .woocommerce > h2 { font-size: 24px !important; font-weight: 800 !important; color: var(--yx-ink) !important; margin: 10px 0 16px !important; }
body.yx-page-my-account form.woocommerce-form-login {
	border: 1px solid var(--yx-line) !important; border-radius: var(--yx-radius) !important; padding: 34px !important; margin: 0 0 40px !important; background: #fff;
}
html body.yx-page-my-account form.woocommerce-form-login button.button { width: 100% !important; margin: 8px 0 0 !important; padding: 16px !important; }
body.yx-page-my-account .woocommerce-LostPassword a, body.yx-page-my-account .lost_password a { color: var(--yx-blue) !important; font-weight: 600; }
/* Compte connecté : navigation latérale en pastilles */
body.yx-page-my-account .woocommerce-MyAccount-navigation ul { list-style: none !important; padding: 0 !important; display: flex; flex-direction: column; gap: 4px; }
body.yx-page-my-account .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 16px; border-radius: 12px; color: var(--yx-text) !important; font-weight: 600; }
body.yx-page-my-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--yx-ink); color: #fff !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
	body.yx-page-cart .yx-cart { grid-template-columns: minmax(0, 1fr); }
	body.yx-page-cart .yx-cart .cart-collaterals { position: static; }
}
@media (max-width: 767px) {
	body.yx-page-checkout #wizard .steps ul { grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 18px; }
	body.yx-page-checkout #wizard .steps ul li a { flex-direction: column; gap: 4px; font-size: 11px !important; padding: 8px 4px !important; border-radius: 14px !important; }
	body.yx-page-checkout #wizard .content > .body.current:not(.login-step) { padding: 22px 18px !important; }
	body.yx-page-checkout .fs-free-shipping-notice-and-button-wrapper { flex-direction: column; align-items: flex-start; }
	body.yx-page-cart table.shop_table.cart, body.yx-page-cart table.shop_table.cart tbody { display: block !important; }
	html body.yx-page-cart table.shop_table.cart tr.cart_item {
		display: grid !important; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img name del" "img qty sub";
		column-gap: 12px; row-gap: 8px; align-items: center; background: #fff; border: 1px solid var(--yx-line); border-radius: 20px; padding: 14px; margin-bottom: 12px;
	}
	html body.yx-page-cart table.shop_table.cart tr.cart_item td:nth-child(n) {
		display: block !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; background: none !important; text-align: left !important; width: auto !important;
	}
	html body.yx-page-cart table.shop_table.cart tr.cart_item td::before { display: none !important; }
	html body.yx-page-cart table.shop_table.cart tr.cart_item td.product-thumbnail:nth-child(n) { grid-area: img; display: block !important; }
	html body.yx-page-cart table.shop_table.cart tr.cart_item td.product-name:nth-child(n) { grid-area: name; }
	html body.yx-page-cart table.shop_table.cart tr.cart_item td.product-remove:nth-child(n) { grid-area: del; }
	html body.yx-page-cart table.shop_table.cart tr.cart_item td.product-price:nth-child(n) { display: none !important; }
	html body.yx-page-cart table.shop_table.cart tr.cart_item td.product-quantity:nth-child(n) { grid-area: qty; }
	html body.yx-page-cart table.shop_table.cart tr.cart_item td.product-subtotal:nth-child(n) { grid-area: sub; text-align: right !important; }
	html body.yx-page-cart table.shop_table.cart tr:not(.cart_item) { display: block !important; }
	html body.yx-page-cart table.shop_table.cart td.actions { display: block !important; }
	body.yx-page-cart td.actions .coupon { flex-direction: column; align-items: stretch; }
	body.yx-page-cart td.actions .coupon input#coupon_code { width: 100% !important; }
}

/* v1.42 : étape 1 — on garde la hauteur d'origine du bloc connexion (le thème place le bouton « nouveau client » en absolu par rapport à cette hauteur) */
body.yx-page-checkout #wizard .login-step form.login { min-height: 445px; }
body.yx-page-checkout #wizard .login-step input.input-text { min-height: 56px !important; }
body.yx-page-checkout table.woocommerce-checkout-review-order-table thead th { background: var(--yx-ink) !important; color: #fff !important; }
/* Compte : bloc « ou / Je suis un nouveau client » sans action (bouton masqué par le thème) */
body.yx-page-my-account .medlogcus, body.yx-page-my-account .et_pb_text_1 .cusregister { display: none !important; }
@media (max-width: 767px) { body.yx-page-checkout #wizard .login-step form.login { min-height: 0; } }
html body.yx-page-checkout #wizard .login-step form.login [type=submit] { border-radius: 99px !important; background: var(--yx-blue) !important; border: 0 !important; font-weight: 700 !important; font-family: var(--yx-font) !important; }
@media (max-width: 767px) {
	html body.yx-page-checkout .woocommerce-form-coupon-toggle { background: none !important; padding: 0 !important; margin: 0 !important; }
	body.yx-page-checkout .et_pb_row.yx-head, body.yx-page-cart .et_pb_row.yx-head { padding-top: 54px !important; }
}

/* v1.58 (14/10/2026, retour Adrien) : étape 1, le bouton « Je n'ai pas encore de profil » touchait le titre « Je suis un nouveau client ».
   Le thème le place en relatif (bottom 782 % / top -95 px) : on le descend par transform (n'altère pas ce calcul) et on agrandit la carte d'autant. */
/* uniquement à l étape 1 : le même lien devient « Suivant » ensuite (le thème retire alors son style inline) */
body.yx-page-checkout #wizard li.my_button > a[style*="bottom"] { transform: translateY(16px); }
body.yx-page-checkout #wizard .login-step .cusregister.newbutton { padding-bottom: 86px !important; }
/* Mobile : le bouton suit déjà le bas de la carte, pas de décalage en plus */
@media (max-width: 767px) { body.yx-page-checkout #wizard li.my_button > a[style*="bottom"] { transform: none; } body.yx-page-checkout #wizard .login-step .cusregister.newbutton { padding-bottom: 91px !important; } }

/* v1.79 (06/11/2026) : iPhone, boutons « Précédent / Suivant » géants (≈ 400 px de haut) par-dessus le formulaire.
   Le thème (CSS inline, max-width 475px) pose `height: -webkit-fill-available !important` sur `.actions.clearfix ul li a` :
   Chrome le lit comme « remplir la ligne flex » (34 px), Safari iOS comme la hauteur du bloc conteneur -> boutons immenses.
   Hauteur explicite ici ; le bouton « Je n'ai pas encore de profil » de l étape 1 garde sa hauteur inline (55px !important, prioritaire). */
@media (max-width: 475px) {
	html body.yx-page-checkout #wizard .actions ul li a { height: auto !important; min-height: 48px; line-height: 1.25 !important; }
}
