/* Masque la méthode de livraison WCFM « Forfait » (redondante : toujours gratuite,
   le vrai frais de livraison est géré par le plugin comme frais dynamique).
   Retirer ce fichier si vous souhaitez réafficher les méthodes de livraison natives. */

/* Étape « Options de livraison » (bloc méthodes d'expédition) */
.wp-block-woocommerce-checkout-shipping-methods-block,
.wc-block-checkout__shipping-method {
	display: none !important;
}

/* Ligne « Forfait GRATUIT » dans le récapitulatif de commande */
.wc-block-components-totals-shipping {
	display: none !important;
}

/* ===== Habillage checkout + page « commande reçue » ===== */

/* Masque le gros titre de page YOOtheme (police fine, hors app) sur ces écrans. */
.woocommerce-checkout .uk-article-title,
.woocommerce-order-received .uk-article-title { display: none; }

/* Bouton « Passer la commande » aux couleurs de la marque. */
.wc-block-components-checkout-place-order-button,
.woocommerce-checkout #place_order {
	background: #0027A0 !important;
	border-radius: 14px !important;
	font-weight: 700 !important;
}

/* --- Page « commande reçue » --- */
/* Notice + titre par défaut remplacés par notre bandeau brandé. */
.woocommerce-order-received .woocommerce-notice--success,
.woocommerce-order-received > .entry-title { display: none; }

.wf-thanks {
	max-width: 640px;
	margin: 6px auto 30px;
	text-align: center;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 20px;
	padding: 34px 26px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}
.wf-thanks__badge {
	width: 64px; height: 64px; margin: 0 auto 14px;
	border-radius: 50%; background: #e6f4ea; color: #1f7a34;
	display: flex; align-items: center; justify-content: center;
}
.wf-thanks__badge svg { width: 34px; height: 34px; }
.wf-thanks__title { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; color: #2D2E33; }
.wf-thanks__sub { margin: 0 0 10px; color: #2D2E33; font-size: 1.02rem; }
.wf-thanks__hint { margin: 0 auto 20px; max-width: 480px; color: #6b7280; font-size: .95rem; line-height: 1.5; }
.wf-thanks__cta {
	display: inline-block; background: #0027A0; color: #fff; text-decoration: none;
	font-weight: 700; padding: 13px 28px; border-radius: 14px;
}
.wf-thanks__cta:hover { filter: brightness(1.08); }

/* Récapitulatif de commande (order-received) : un peu plus aéré/carte. */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
	max-width: 860px; margin-left: auto; margin-right: auto;
}

/* ===== Nettoyage & habillage du checkout classique ===== */

/* Vire les vilaines cases « Zone correspondant au client » (bruit WooCommerce). */
.woocommerce-checkout .woocommerce-message { display: none !important; }

/* Coupon : dé-encadré, discret (plus de gros carré). */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	background: transparent; border: 0; padding: 4px 0; margin: 0 0 10px; font-size: .92rem;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }

/* Champ « type de commande » natif ShipDay masqué : remplacé par le gros toggle en haut. */
#shipday_order_type_field_field { display: none !important; }

/* Toggle Livraison / À emporter — en haut, bien en évidence. */
.wf-co-toggle { display: flex; gap: 12px; max-width: 560px; margin: 4px auto 26px; }
.wf-co-btn {
	flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 2px solid #e0e2e6; background: #fff; color: #2D2E33; border-radius: 16px;
	padding: 17px 12px; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer;
	transition: border-color .12s, background .12s, color .12s;
}
.wf-co-btn svg { width: 1.25em; height: 1.25em; }
.wf-co-btn:hover { border-color: #b9c0e8; }
.wf-co-btn.is-active { border-color: #0027A0; background: #eef1fb; color: #0027A0; }

/* Bouton « Commander » plus grand et bien visible. */
.woocommerce-checkout #place_order {
	width: 100%; font-size: 1.2rem !important; padding: 18px 26px !important;
	background: #0027A0 !important; border-radius: 16px !important; font-weight: 800 !important;
	margin-top: 6px;
}

/* Bandeau de réassurance avant le bouton Commander. */
.wf-reassure-checkout {
	list-style: none; margin: 6px 0 14px; padding: 12px 14px;
	display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
	background: #f2f4f8; border-radius: 12px;
}
.wf-reassure-checkout li { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: #2D2E33; }
.wf-reassure-checkout svg { width: 1.05em; height: 1.05em; color: #0027A0; }

/* ===== Compte client (Mes commandes) plus net ===== */
.woocommerce-account .uk-article-title { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 15px; border-radius: 999px; background: #f2f4f8; text-decoration: none; color: #2D2E33; font-weight: 600; font-size: .9rem; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: #0027A0; color: #fff; }
.woocommerce-account .woocommerce-orders-table a.button, .woocommerce-account .woocommerce-orders-table .button,
.woocommerce-account .woocommerce-MyAccount-content a.button { background: #0027A0 !important; border-radius: 10px !important; color: #fff !important; }
.woocommerce-account .woocommerce-orders-table__cell-order-status { font-weight: 700; }
/* Vire la case « Zone correspondant au client » sur le compte (bruit WooCommerce). */
.woocommerce-account .woocommerce-message { display: none !important; }
/* Secours : masque l'onglet « Support Ticket » du menu compte (si non retiré côté PHP). */
.woocommerce-MyAccount-navigation li[class*="support"],
.woocommerce-MyAccount-navigation li[class*="ticket"] { display: none !important; }

/* ===== Connexion / inscription (front WooCommerce) aux couleurs Livré Malin ===== */
/* Formulaire centré, en carte (uniquement sur la page connexion, invité). */
.woocommerce-account:not(.logged-in) .woocommerce { max-width: 460px; margin: 6px auto 40px; }
.woocommerce-account:not(.logged-in) .woocommerce h2 {
	text-align: center; font-weight: 800; font-size: 1.7rem; color: #2D2E33; margin: 0 0 14px;
}
.woocommerce-form-login, .woocommerce-form-register {
	background: #fff; border: 1px solid #ececec; border-radius: 18px;
	padding: 26px 24px; box-shadow: 0 12px 34px rgba( 0, 0, 0, .06 );
}
.woocommerce-form-login .woocommerce-form-row label,
.woocommerce-form-register .woocommerce-form-row label { font-weight: 600; color: #2D2E33; }
.woocommerce-account .woocommerce-Input.input-text, .woocommerce-account input.input-text {
	width: 100%; border: 1.5px solid #d9d9d9 !important; border-radius: 10px !important;
	padding: 12px 14px !important; font-size: 15px; background: #fff !important; box-shadow: none !important;
}
.woocommerce-account .woocommerce-Input.input-text:focus, .woocommerce-account input.input-text:focus {
	border-color: #0027A0 !important; box-shadow: 0 0 0 3px rgba( 0, 39, 160, .12 ) !important; outline: none;
}
.woocommerce-form-login__submit, .woocommerce-form-register__submit,
.woocommerce-account .woocommerce-form-login .button, .woocommerce-account .woocommerce-form-register .button {
	width: 100%; background: #0027A0 !important; color: #fff !important; border: 0 !important;
	border-radius: 12px !important; font-weight: 800 !important; padding: 14px 20px !important;
	font-size: 1.05rem !important; margin: 6px 0 0; text-shadow: none !important; float: none !important;
}
.woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; color: #555; font-size: .9rem; margin: 2px 0 12px; }
.woocommerce-LostPassword { text-align: center; margin-top: 16px; }
.woocommerce-LostPassword a { color: #0027A0; font-weight: 600; text-decoration: none; }
.woocommerce-LostPassword a:hover { text-decoration: underline; }
/* Page « mot de passe perdu » : même carte. */
.woocommerce-account:not(.logged-in) .woocommerce-ResetPassword {
	max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid #ececec;
	border-radius: 18px; padding: 26px 24px; box-shadow: 0 12px 34px rgba( 0, 0, 0, .06 );
}
