/*
 * Tunnel d'achat (tunnel.php + modèles woocommerce/cart/* et woocommerce/checkout/*).
 * Maquette : refonte/maquettes/achat/design_handoff_achat/ (« Panier », « Validation commande », « Commande recue »).
 * Sélecteurs préfixés « body #content.tbx-tun » : passent devant « .woocommerce #content … » de WooCommerce.
 */

html body #content.tbx-tun {
	background: #fff !important;
}

body #content.tbx-tun {
	--ink: #0F2A3D;
	--text2: #3E5063;
	--muted: #5A6B7C;
	--navy: #004B76;
	--orange: #CB5223;
	--orange-hover: #B8461C;
	--orange-text: #B2532B;
	--line: #EADFD4;
	--line-soft: #F0E7DE;
	--field: #D8CCC0;
	--soft: #FBF5EF;
	--green: #0E7A40;
	--green-bg: #E8F4EC;
	--red: #B92121;
	--gutter: max(clamp(20px, 5.5vw, 80px), calc((100% - 1280px) / 2)); /* comme l'accueil : contenu centré, 1280 px max */
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}

body #content.tbx-tun *,
body #content.tbx-tun *::before,
body #content.tbx-tun *::after {
	box-sizing: border-box;
}

body #content.tbx-tun a {
	text-decoration: none;
}

body #content.tbx-tun :focus-visible {
	outline: 3px solid var(--navy);
	outline-offset: 2px;
}

body #content.tbx-tun h1,
body #content.tbx-tun h2,
body #content.tbx-tun h3,
body #content.tbx-tun h4 {
	font-family: inherit;
	text-transform: none;
}

html body #content.tbx-tun button,
html body #content.tbx-tun .button {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.tbx-tun-hidden,
body #content.tbx-tun [hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------------------
 * En-tête : titre + étapes
 * ------------------------------------------------------------------------- */

.tbx-tun-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding: 40px var(--gutter);
	background: #F8EBE1;
}

body #content.tbx-tun .tbx-tun-head__title {
	margin: 0;
	color: var(--navy);
	font-size: 44px;
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1;
}

.tbx-tun-steps {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbx-tun-steps__item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.tbx-tun-steps__item + .tbx-tun-steps__item::before {
	content: "";
	width: 48px;
	height: 2px;
	margin-right: 4px;
	border-radius: 1px;
	background: var(--field);
}

.tbx-tun-steps__item.is-done + .tbx-tun-steps__item::before,
.tbx-tun-steps__item.is-current::before {
	background: var(--green);
}

.tbx-tun-steps__item.is-todo::before {
	background: var(--field) !important;
}

.tbx-tun-steps__dot {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 2px solid var(--field);
	border-radius: 50%;
	background: #fff;
	color: var(--muted);
	font-size: 14px;
	font-weight: 800;
}

.is-done .tbx-tun-steps__dot {
	border-color: var(--green);
	background: var(--green);
	color: #fff;
}

.is-current .tbx-tun-steps__dot {
	border-color: var(--orange);
	background: var(--orange);
	color: #fff;
}

.tbx-tun-steps__label {
	color: var(--text2);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.is-current .tbx-tun-steps__label {
	color: var(--ink);
	font-weight: 800;
}

.tbx-tun-head__mobile {
	display: none;
}

/* ---------------------------------------------------------------------------
 * Éléments communs : récapitulatif, bouton principal, réassurance
 * ------------------------------------------------------------------------- */

.tbx-recap {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px;
	border-radius: 32px;
	background: var(--soft);
}

body #content.tbx-tun .tbx-recap__title {
	margin: 0;
	color: var(--navy);
	font-size: 24px;
	font-weight: 900;
	letter-spacing: -.035em;
}

.tbx-recap__rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.tbx-recap__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	color: var(--text2);
	font-size: 16px;
}

.tbx-recap__row dt,
.tbx-recap__row dd {
	margin: 0;
	font-weight: 400;
}

.tbx-recap__row dd {
	color: var(--ink);
	font-weight: 700;
	white-space: nowrap;
}

.tbx-recap__row--discount,
.tbx-recap__row--discount dd {
	color: var(--green);
}

.tbx-recap__row--total {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.tbx-recap__row--total dt {
	color: var(--ink);
	font-size: 18px;
	font-weight: 800;
}

.tbx-recap__row--total dd {
	font-size: 40px;
	font-weight: 900;
	letter-spacing: -.04em;
	line-height: 1;
}

.tbx-recap__vat {
	margin: -8px 0 0;
	color: var(--muted);
	font-size: 13px;
	text-align: right;
}

.tbx-recap__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body #content.tbx-tun a.tbx-recap__go,
body #content.tbx-tun .tbx-pay__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	height: 64px;
	margin: 0;
	padding: 0 8px 0 30px;
	border: 0;
	border-radius: 999px;
	background: var(--orange);
	box-shadow: 0 14px 30px -12px rgba(203, 82, 35, .7);
	color: #fff;
	font-size: 17.5px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	transition: background .2s;
}

body #content.tbx-tun a.tbx-recap__go:hover,
body #content.tbx-tun .tbx-pay__btn:hover {
	background: var(--orange-hover);
	color: #fff;
}

.tbx-recap__go-dot,
body #content.tbx-tun .tbx-pay__btn::after {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	color: var(--orange);
	font-size: 19px;
}

body #content.tbx-tun .tbx-pay__btn::after {
	content: "→";
}

body #content.tbx-tun a.tbx-recap__back {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	color: var(--navy);
	font-size: 15px;
	font-weight: 700;
}

.tbx-recap__cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
}

.tbx-recap__cards span {
	padding: 5px 9px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font-size: 11.5px;
	font-weight: 800;
}

.tbx-tun-trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbx-tun-trust li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 16px 18px;
	border-radius: 20px;
	background: var(--soft);
}

.tbx-tun-trust__ico {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--orange);
	font-weight: 900;
}

.tbx-tun-trust li > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tbx-tun-trust strong {
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 800;
}

.tbx-tun-trust li > span:last-child > span {
	color: var(--muted);
	font-size: 13px;
}

body #content.tbx-tun .tbx-tun-trust a {
	color: var(--orange-text);
}

/* Messages WooCommerce (ajout, code appliqué, erreurs) */
body #content.tbx-tun .woocommerce-notices-wrapper:empty {
	display: none;
}

body #content.tbx-tun .woocommerce-message,
body #content.tbx-tun .woocommerce-info,
body #content.tbx-tun .woocommerce-error {
	margin: 0 0 16px;
	padding: 16px 20px 16px 56px;
	border: 1.5px solid var(--line);
	border-radius: 20px;
	background: var(--soft);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
	list-style: none;
}

body #content.tbx-tun .woocommerce-message::before,
body #content.tbx-tun .woocommerce-info::before,
body #content.tbx-tun .woocommerce-error::before {
	top: 16px;
	left: 20px;
	color: var(--navy);
}

body #content.tbx-tun .woocommerce-message {
	border-color: #B9DDC6;
	background: var(--green-bg);
}

body #content.tbx-tun .woocommerce-message::before {
	color: var(--green);
}

body #content.tbx-tun .woocommerce-error {
	border-color: #E7B7B7;
	background: #FBEAEA;
}

body #content.tbx-tun .woocommerce-error::before {
	color: var(--red);
}

body #content.tbx-tun .woocommerce-error li {
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * Panier
 * ------------------------------------------------------------------------- */

body #content.tbx-tun--step-1 > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	gap: 0 48px;
	align-items: start;
	padding: 48px var(--gutter) 72px;
}

body #content.tbx-tun--step-1 > .woocommerce > .woocommerce-notices-wrapper,
body #content.tbx-tun--step-1 > .woocommerce > .cart-empty,
body #content.tbx-tun--step-1 > .woocommerce > .woocommerce-message,
body #content.tbx-tun--step-1 > .woocommerce > .woocommerce-error {
	grid-column: 1 / -1;
}

.tbx-cart {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
	margin: 0;
}

.tbx-cart-side {
	position: sticky;
	top: 24px;
	width: auto !important;
	float: none !important;
}

body #content.tbx-tun .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
}

/* Rappel -20 % */
.tbx-cart-offer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	padding: 16px 16px 16px 28px;
	border-radius: 24px;
	background: var(--navy);
	color: #fff;
}

.tbx-cart-offer__text {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}

.tbx-cart-offer__text strong {
	margin-right: 8px;
	color: #FFD9C4;
	font-size: 24px;
	font-weight: 900;
}

.tbx-cart-offer__code {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tbx-cart-offer__code code {
	padding: 6px 14px;
	border: 2px dashed rgba(255, 255, 255, .55);
	border-radius: 10px;
	background: transparent;
	color: #fff;
	font: 700 20px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .2em;
}

html body #content.tbx-tun .tbx-cart-offer__copy {
	height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--navy);
	font-size: 14.5px;
	font-weight: 700;
}

/* Lignes */
.tbx-cart-list {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 28px;
}

.tbx-cart-list__head {
	display: flex;
	justify-content: space-between;
	padding: 18px 28px;
	background: var(--soft);
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.tbx-cart-item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px 28px;
	border-top: 1px solid var(--line-soft);
}

.tbx-cart-item__media {
	flex: none;
	width: 128px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 14px;
	background: var(--soft);
}

.tbx-cart-item__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.tbx-cart-item__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

.tbx-cart-item__box {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bg);
	color: var(--fg);
	font-size: 12.5px;
	font-weight: 700;
}

.tbx-cart-item__box span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fg);
}

body #content.tbx-tun .tbx-cart-item__name {
	color: var(--ink);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.25;
}

body #content.tbx-tun a.tbx-cart-item__name:hover {
	color: var(--navy);
}

.tbx-cart-item__meta {
	color: var(--text2);
	font-size: 14.5px;
	line-height: 1.45;
}

.tbx-cart-item__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.tbx-cart-item__price {
	color: var(--ink);
	font-size: 24px;
	font-weight: 900;
	letter-spacing: -.03em;
	white-space: nowrap;
}

body #content.tbx-tun .tbx-cart-item .product-remove a.remove {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: auto;
	min-height: 44px;
	border-radius: 0;
	background: none;
	color: var(--orange-text) !important;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body #content.tbx-tun .tbx-cart-item .product-remove a.remove:hover {
	background: none;
	color: var(--orange) !important;
}

/* Code promo */
.tbx-cart-coupon {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tbx-cart-coupon__title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
}

.tbx-cart-coupon__applied {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbx-cart-coupon__applied li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.tbx-cart-coupon__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 6px 0 16px;
	border-radius: 999px;
	background: var(--green-bg);
	color: var(--green);
	font-size: 15px;
	font-weight: 800;
}

body #content.tbx-tun a.tbx-cart-coupon__x,
body #content.tbx-tun a.tbx-co-code__x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fff;
	color: var(--green);
	font-size: 18px;
	line-height: 1;
}

.tbx-cart-coupon__ok {
	color: var(--muted);
	font-size: 14px;
}

.tbx-cart-coupon__form,
.tbx-co-coupon__form {
	display: flex;
	gap: 10px;
	max-width: 480px;
}

body #content.tbx-tun .tbx-cart-coupon__form input,
body #content.tbx-tun .tbx-co-coupon__form input {
	flex: 1;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1.5px solid var(--field);
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
	color: var(--ink);
	font-size: 16px;
}

html body #content.tbx-tun .tbx-cart-coupon__apply,
html body #content.tbx-tun .tbx-co-coupon__apply {
	height: 52px;
	margin: 0;
	padding: 0 24px;
	border: 2px solid var(--navy);
	border-radius: 999px;
	background: #fff;
	color: var(--navy);
	font-size: 15px;
	font-weight: 700;
}

html body #content.tbx-tun .tbx-cart-coupon__apply:hover,
html body #content.tbx-tun .tbx-co-coupon__apply:hover {
	background: #F3F7FA;
	color: var(--navy);
}

.tbx-cart-actions {
	display: none;
}

/* Vous pourriez aussi aimer */
.tbx-tun-more {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 16px var(--gutter) 80px;
}

body #content.tbx-tun .tbx-tun-more__title {
	margin: 0;
	color: var(--navy);
	font-size: 36px;
	font-weight: 900;
	letter-spacing: -.045em;
}

body #content.tbx-tun .tbx-tun-more .tbx-cat {
	background: transparent;
}

body #content.tbx-tun .tbx-tun-more .tbx-cat__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
}

/* Panier vide */
.tbx-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 24px 0 8px;
	text-align: center;
}

.tbx-cart-empty::before {
	display: none !important;
}

.tbx-cart-empty__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: #F8EBE1;
}

body #content.tbx-tun .tbx-cart-empty__title {
	margin: 0;
	color: var(--navy);
	font-size: 48px;
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1.05;
}

.tbx-cart-empty__text {
	max-width: 560px;
	margin: 0;
	color: var(--text2);
	font-size: 17px;
	line-height: 1.6;
}

body #content.tbx-tun a.tbx-cart-empty__btn {
	width: auto;
	min-width: 300px;
}

.tbx-cart-empty__boxes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
	margin-top: 24px;
}

body #content.tbx-tun a.tbx-cart-empty__box {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px;
	border-radius: 24px;
	background: var(--bg);
	text-align: left;
	transition: transform .2s;
}

body #content.tbx-tun a.tbx-cart-empty__box:hover {
	transform: translateY(-3px);
}

.tbx-cart-empty__box-name {
	color: var(--fg);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -.03em;
}

.tbx-cart-empty__box-link {
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 700;
}

.tbx-cart-empty .tbx-cart-offer {
	width: 100%;
	margin-top: 8px;
	text-align: left;
}

/* ---------------------------------------------------------------------------
 * Validation de commande
 * ------------------------------------------------------------------------- */

body #content.tbx-tun--step-2 > .woocommerce {
	padding: 40px var(--gutter) 88px;
}

.tbx-co-top {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: calc(100% - 548px);
	margin-bottom: 16px;
}

body #content.tbx-tun a.tbx-co-back {
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--navy);
	font-size: 15px;
	font-weight: 700;
}

.tbx-co-hello {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border-radius: 20px;
	background: var(--green-bg);
}

.tbx-co-hello__avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	font-size: 18px;
	font-weight: 900;
}

.tbx-co-hello__text {
	flex: 1;
	margin: 0;
	color: var(--ink);
	font-size: 15.5px;
}

body #content.tbx-tun a.tbx-co-hello__out {
	color: var(--green);
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Connexion (clients non connectés) */
.tbx-co-login {
	max-width: calc(100% - 548px);
	margin: 0 0 24px;
	border: 1px solid var(--line);
	border-radius: 20px;
}

.tbx-co-login__head,
.tbx-co-notes__head,
.tbx-co-coupon__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
	padding: 0 22px;
	color: var(--ink);
	font-size: 16px;
	list-style: none;
	cursor: pointer;
}

.tbx-co-login__head::-webkit-details-marker,
.tbx-co-notes__head::-webkit-details-marker,
.tbx-co-coupon__head::-webkit-details-marker {
	display: none;
}

.tbx-co-login__head strong {
	color: var(--navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tbx-co-login__sign::before {
	content: "+";
	color: var(--orange);
	font-size: 22px;
	font-weight: 700;
}

details[open] > summary .tbx-co-login__sign::before {
	content: "−";
}

.tbx-co-login__body {
	padding: 4px 22px 22px;
}

body #content.tbx-tun .tbx-co-login form.login {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 12px;
	align-items: end;
	margin: 0;
	padding: 0;
	border: 0;
}

body #content.tbx-tun .tbx-co-login form.login > p,
body #content.tbx-tun .tbx-co-login form.login .form-row {
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}

body #content.tbx-tun .tbx-co-login form.login .clear {
	display: none;
}

body #content.tbx-tun .tbx-co-login form.login p:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
}

body #content.tbx-tun .tbx-co-login .lost_password {
	grid-column: 1 / -1;
}

body #content.tbx-tun .tbx-co-login .lost_password a {
	color: var(--orange-text);
	font-size: 14px;
	text-decoration: underline;
}

html body #content.tbx-tun .tbx-co-login .woocommerce-form-login__submit {
	height: 52px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

/* Grille : formulaire | « Votre commande » */
body #content.tbx-tun form.tbx-co {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 500px;
	gap: 48px;
	align-items: start;
	margin: 0;
}

.tbx-co-main {
	min-width: 0;
}

body #content.tbx-tun #customer_details {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: auto;
}

body #content.tbx-tun #customer_details::before,
body #content.tbx-tun #customer_details::after {
	display: none;
}

body #content.tbx-tun .tbx-co-h2 {
	margin: 0 0 18px;
	color: var(--navy);
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -.035em;
}

body #content.tbx-tun .tbx-co-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

body #content.tbx-tun .tbx-co-grid::before,
body #content.tbx-tun .tbx-co-grid::after {
	display: none;
}

body #content.tbx-tun .tbx-co-grid .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
	grid-column: span 6;
}

body #content.tbx-tun .tbx-co-grid .tbx-col-2 { grid-column: span 2; }
body #content.tbx-tun .tbx-co-grid .tbx-col-3 { grid-column: span 3; }
body #content.tbx-tun .tbx-co-grid .tbx-col-4 { grid-column: span 4; }

body #content.tbx-tun .form-row label {
	margin: 0;
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
}

body #content.tbx-tun .form-row label .optional {
	color: var(--muted);
	font-weight: 500;
}

body #content.tbx-tun .form-row abbr.required {
	border: 0;
	color: var(--red);
	text-decoration: none;
}

body #content.tbx-tun .form-row .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

body #content.tbx-tun .form-row input.input-text,
body #content.tbx-tun .form-row select,
body #content.tbx-tun .form-row textarea,
body #content.tbx-tun .tbx-co-login input.input-text {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 1.5px solid var(--field);
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
	color: var(--ink);
	font: 400 16px Inter, system-ui, sans-serif;
}

body #content.tbx-tun .form-row textarea {
	height: auto;
	min-height: 96px;
	padding: 14px 16px;
	resize: vertical;
}

body #content.tbx-tun .form-row input.input-text:focus,
body #content.tbx-tun .form-row select:focus,
body #content.tbx-tun .form-row textarea:focus,
body #content.tbx-tun .tbx-co-login input.input-text:focus,
body #content.tbx-tun .tbx-cart-coupon__form input:focus,
body #content.tbx-tun .tbx-co-coupon__form input:focus {
	border-color: var(--navy);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 75, 118, .18);
}

body #content.tbx-tun .form-row strong:only-child { /* pays unique : « France » en texte */
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 16px;
	border: 1.5px solid var(--line);
	border-radius: 14px;
	background: var(--soft);
	color: var(--ink);
	font-weight: 600;
}

/* Erreurs */
body #content.tbx-tun .form-row.woocommerce-invalid input.input-text,
body #content.tbx-tun .form-row.woocommerce-invalid select {
	border-color: var(--red);
	background: #FFF8F8;
}

body #content.tbx-tun .form-row.woocommerce-invalid label {
	color: var(--ink);
}

body #content.tbx-tun .checkout-inline-error-message {
	margin: 2px 0 0;
	color: var(--red);
	font-size: 13.5px;
	font-weight: 600;
}

body #content.tbx-tun .woocommerce-NoticeGroup-checkout {
	grid-column: 1 / -1;
}

.tbx-co-note {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.tbx-co-notes {
	margin-top: 22px;
	border-top: 1px solid var(--line-soft);
}

.tbx-co-notes__head {
	padding: 0;
	color: var(--navy);
	font-size: 15.5px;
	font-weight: 700;
}

.tbx-co-notes .form-row label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* « Votre commande » */
.tbx-co-side {
	position: sticky;
	top: 24px;
	padding: 28px;
}

.tbx-co-side__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

html body #content.tbx-tun .tbx-co-side__toggle {
	display: none;
}

body #content.tbx-tun #order_review {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: auto;
	float: none;
}

body #content.tbx-tun .tbx-co-review {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	border: 0;
}

.tbx-co-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--line);
	list-style: none;
}

.tbx-co-item {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.tbx-co-item__media {
	flex: none;
	width: 64px;
	height: 48px;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
}

.tbx-co-item__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.tbx-co-item__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tbx-co-item__name {
	color: var(--ink);
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.3;
}

.tbx-co-item__meta {
	color: var(--fg);
	font-size: 13px;
	font-weight: 700;
}

.tbx-co-item__price {
	color: var(--ink);
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
}

.tbx-co-review .tbx-recap__row--total dd {
	font-size: 36px;
}

.tbx-co-code {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--green-bg);
	color: var(--green);
	font-weight: 800;
}

body #content.tbx-tun a.tbx-co-code__x {
	width: 26px;
	height: 26px;
	margin-left: 4px;
	font-size: 15px;
}

.tbx-co-coupon {
	border-top: 1px solid var(--line);
}

.tbx-co-coupon__head {
	min-height: 52px;
	padding: 0;
	color: var(--navy);
	font-size: 15px;
	font-weight: 700;
}

.tbx-co-coupon__form {
	max-width: none;
}

.tbx-co-coupon__msg {
	margin: 8px 0 0;
	color: var(--green);
	font-size: 13.5px;
	font-weight: 600;
}

.tbx-co-coupon__msg:empty {
	display: none;
}

.tbx-co-coupon__msg.is-error {
	color: var(--red);
}

body #content.tbx-tun .tbx-co-coupon__form input[aria-invalid="true"] {
	border-color: var(--red);
	background: #FFF8F8;
}

/* Paiement */
body #content.tbx-tun #payment.tbx-pay {
	display: flex;
	flex-direction: column;
	gap: 16px;
	border-radius: 0;
	background: transparent;
}

.tbx-pay__title {
	margin: 0;
	padding: 14px 14px 4px;
	font-size: 15px;
	font-weight: 800;
}

body #content.tbx-tun #payment ul.payment_methods {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 6px;
	border: 0;
	border-radius: 22px;
	background: #fff;
	list-style: none;
}

body #content.tbx-tun .tbx-pay__title + ul.payment_methods {
	margin-top: -16px;
	border-radius: 0 0 22px 22px;
}

body #content.tbx-tun .tbx-pay__title {
	border-radius: 22px 22px 0 0;
	background: #fff;
}

body #content.tbx-tun #payment ul.payment_methods > li {
	margin: 0;
	padding: 0 14px;
	border-radius: 16px;
}

body #content.tbx-tun #payment ul.payment_methods > li:has(input:checked) {
	background: #F3F7FA;
}

body #content.tbx-tun #payment ul.payment_methods > li > label {
	display: inline-flex;
	align-items: center;
	min-height: 56px;
	font-size: 15.5px;
	font-weight: 700;
}

body #content.tbx-tun #payment ul.payment_methods > li > input {
	margin: 0 10px 0 0;
	accent-color: var(--navy);
}

body #content.tbx-tun #payment div.payment_box {
	margin: 0 0 12px;
	padding: 14px;
	border-radius: 14px;
	background: #fff;
	color: var(--text2);
	font-size: 14px;
}

body #content.tbx-tun #payment div.payment_box::before {
	display: none;
}

body #content.tbx-tun .tbx-pay__none .woocommerce-info,
body #content.tbx-tun .tbx-pay__none .woocommerce-notice {
	margin: 0;
	padding: 12px 14px;
	border: 0;
	background: transparent;
	color: var(--text2);
	font-size: 14px;
}

body #content.tbx-tun .tbx-pay__none .woocommerce-info::before {
	display: none;
}

body #content.tbx-tun #payment .place-order {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
}

/* Cases obligatoires : lignes cliquables */
body #content.tbx-tun .woocommerce-terms-and-conditions-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body #content.tbx-tun .woocommerce-privacy-policy-text p {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.5;
}

body #content.tbx-tun .woocommerce-privacy-policy-text a,
body #content.tbx-tun .woocommerce-terms-and-conditions-link {
	color: var(--orange-text);
	text-decoration: underline;
}

body #content.tbx-tun .place-order .form-row.validate-required {
	margin: 0;
	padding: 0;
}

body #content.tbx-tun .place-order .form-row.validate-required > label.checkbox {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px 14px 52px;
	border: 2px solid var(--line);
	border-radius: 16px;
	background: #fff;
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

body #content.tbx-tun .place-order .form-row.validate-required > label.checkbox:has(input:checked) {
	border-color: var(--navy);
}

body #content.tbx-tun .place-order .form-row.validate-required input[type="checkbox"] {
	position: absolute;
	top: 15px;
	left: 16px;
	width: 24px;
	height: 24px;
	margin: 0;
	accent-color: var(--navy);
	cursor: pointer;
}

body #content.tbx-tun .place-order .form-row.woocommerce-invalid > label.checkbox {
	border-color: var(--red);
}

body #content.tbx-tun .place-order .form-row.woocommerce-invalid > label.checkbox::after {
	content: "Cochez cette case pour continuer.";
	position: absolute;
	bottom: -22px;
	left: 4px;
	color: var(--red);
	font-size: 13.5px;
	font-weight: 600;
}

body #content.tbx-tun .place-order .form-row.woocommerce-invalid {
	margin-bottom: 22px;
}

.tbx-pay__safe {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	margin: 0;
	color: var(--text2);
	font-size: 13.5px;
}

.tbx-pay__safe span {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ---------------------------------------------------------------------------
 * Commande reçue
 * ------------------------------------------------------------------------- */

body #content.tbx-tun--step-3 > .woocommerce {
	padding: 0;
}

.tbx-ty-head {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 48px var(--gutter);
	background: #F8EBE1;
}

.tbx-ty-head__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.tbx-ty-head__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.tbx-ty-head__pill {
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--green-bg);
	color: var(--green);
	font-size: 14px;
	font-weight: 800;
}

body #content.tbx-tun .tbx-ty-head__title {
	margin: 0;
	color: var(--navy);
	font-size: 64px;
	font-weight: 900;
	letter-spacing: -.05em;
	line-height: 1;
}

.tbx-ty-head__lead {
	margin: 0;
	color: var(--text2);
	font-size: 18px;
	line-height: 1.55;
}

.tbx-ty-head__facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 22px 28px;
	border-radius: 24px;
	background: #fff;
	list-style: none;
}

.tbx-ty-head__facts div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding: 0 16px;
	border-left: 1px solid var(--line-soft);
}

.tbx-ty-head__facts div:first-child {
	padding-left: 0;
	border-left: 0;
}

.tbx-ty-head__facts dt {
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 600;
}

.tbx-ty-head__facts dd {
	margin: 0;
	overflow: hidden;
	color: var(--ink);
	font-size: 19px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbx-ty-body {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding: 56px var(--gutter) 80px;
}

body #content.tbx-tun .tbx-ty-h2 {
	margin: 0 0 20px;
	color: var(--navy);
	font-size: 34px;
	font-weight: 900;
	letter-spacing: -.04em;
}

.tbx-ty-dl__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.tbx-ty-dl__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 28px;
}

.tbx-ty-dl__box {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bg);
	color: var(--fg);
	font-size: 12.5px;
	font-weight: 700;
}

.tbx-ty-dl__box span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fg);
}

body #content.tbx-tun .tbx-ty-dl__name {
	margin: 0;
	color: var(--ink);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.tbx-ty-dl__files {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbx-ty-dl__files li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	margin: 0;
	padding: 7px 7px 7px 16px;
	border-radius: 14px;
	background: var(--soft);
}

.tbx-ty-dl__file {
	min-width: 0;
	overflow: hidden;
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body #content.tbx-tun a.tbx-ty-dl__btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--orange);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

body #content.tbx-tun a.tbx-ty-dl__btn:hover {
	background: var(--orange-hover);
}

body #content.tbx-tun a.tbx-ty-dl__btn--tool {
	background: var(--green);
}

body #content.tbx-tun a.tbx-ty-dl__btn--tool:hover {
	background: #0A5F31;
}

.tbx-ty-next {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tbx-ty-next .tbx-ty-h2 {
	margin-bottom: 0;
}

.tbx-ty-box {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 36px;
	border-radius: 32px;
	background: var(--bg);
}

body #content.tbx-tun .tbx-ty-box__title {
	margin: 0;
	color: var(--fg);
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -.035em;
}

.tbx-ty-box__lead,
.tbx-ty-box__outro {
	max-width: 860px;
	margin: 0;
	color: var(--text2);
	font-size: 16.5px;
	line-height: 1.6;
}

.tbx-ty-box__outro {
	color: var(--ink);
	font-weight: 600;
}

.tbx-ty-box__blocks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 14px;
}

.tbx-ty-box__block {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px;
	border-radius: 22px;
	background: #fff;
}

body #content.tbx-tun .tbx-ty-box__block h4 {
	margin: 0;
	color: var(--ink);
	font-size: 17px;
	font-weight: 800;
}

.tbx-ty-box__block p {
	margin: 0;
	color: var(--text2);
	font-size: 15px;
	line-height: 1.55;
}

.tbx-ty-box__block ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.tbx-ty-box__block li {
	position: relative;
	margin: 0;
	padding-left: 26px;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
}

.tbx-ty-box__block li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--fg);
	font-weight: 900;
}

.tbx-ty-box__note,
.tbx-ty-box__hint {
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--bg);
}

body #content.tbx-tun a.tbx-ty-box__tool {
	align-self: flex-start;
	height: 52px;
	padding: 0 24px;
	font-size: 16px;
}

/* Détail (discret) */
.tbx-ty-details__head {
	margin-bottom: 16px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	list-style: none;
	text-transform: uppercase;
}

.tbx-ty-details__head::-webkit-details-marker {
	display: none;
}

.tbx-ty-details__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 20px;
}

.tbx-ty-card {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 24px;
}

.tbx-ty-card__over {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.tbx-ty-card__items {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--line-soft);
	list-style: none;
}

.tbx-ty-card__items li,
.tbx-ty-card__totals div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	color: var(--ink);
	font-size: 15px;
}

.tbx-ty-card__totals {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.tbx-ty-card__totals dt,
.tbx-ty-card__totals dd {
	margin: 0;
	color: var(--text2);
}

.tbx-ty-card__totals .is-total dt,
.tbx-ty-card__totals .is-total dd {
	color: var(--ink);
	font-weight: 800;
}

.tbx-ty-card__address {
	color: var(--text2);
	font-size: 15px;
	font-style: normal;
	line-height: 1.6;
}

.tbx-ty-account {
	display: flex;
	justify-content: center;
	margin: 0;
}

body #content.tbx-tun .tbx-ty-account a.tbx-recap__go {
	width: auto;
	min-width: 340px;
}

.tbx-ty__failed,
.tbx-ty__lost,
.tbx-ty__wait {
	margin: 0;
	padding: 40px var(--gutter);
	color: var(--text2);
	font-size: 17px;
	line-height: 1.6;
}

.tbx-ty__wait {
	padding: 0;
}

.tbx-ty__failed-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

body #content.tbx-tun .tbx-ty__failed-actions a.tbx-recap__go {
	width: auto;
	min-width: 300px;
}

/* ---------------------------------------------------------------------------
 * Écrans moyens
 * ------------------------------------------------------------------------- */

@media (max-width: 1279px) {

	body #content.tbx-tun--step-1 > .woocommerce {
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: 0 32px;
	}

	body #content.tbx-tun form.tbx-co {
		grid-template-columns: minmax(0, 1fr) 420px;
		gap: 32px;
	}

	.tbx-co-top,
	.tbx-co-login {
		max-width: calc(100% - 452px);
	}

	.tbx-tun-trust {
		grid-template-columns: minmax(0, 1fr);
	}

	body #content.tbx-tun .tbx-tun-more .tbx-cat__grid,
	.tbx-cart-empty__boxes {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	body #content.tbx-tun--step-1 > .woocommerce,
	body #content.tbx-tun form.tbx-co {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.tbx-co-top,
	.tbx-co-login {
		max-width: none;
	}

	.tbx-cart-side,
	.tbx-co-side {
		position: static;
	}

	.tbx-ty-dl__grid,
	.tbx-ty-details__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tbx-ty-head__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 0;
	}

	.tbx-ty-head__facts div:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}
}

/* ---------------------------------------------------------------------------
 * Mobile (< 768 px)
 * ------------------------------------------------------------------------- */

@media (max-width: 767px) {

	.tbx-tun-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		padding: 28px 20px 24px;
	}

	body #content.tbx-tun .tbx-tun-head__title {
		font-size: 32px;
	}

	.tbx-tun-steps {
		gap: 8px;
	}

	.tbx-tun-steps__item + .tbx-tun-steps__item::before {
		width: 24px;
	}

	.tbx-tun-steps__dot {
		width: 30px;
		height: 30px;
	}

	.tbx-tun-steps__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.tbx-tun-head__mobile {
		display: block;
		margin: -6px 0 0;
		color: var(--text2);
		font-size: 14px;
		font-weight: 700;
	}

	body #content.tbx-tun--step-1 > .woocommerce {
		padding: 24px 16px 48px;
	}

	.tbx-cart-offer {
		padding: 16px;
		border-radius: 20px;
	}

	.tbx-cart-offer__text {
		font-size: 15px;
	}

	.tbx-cart-list {
		border-radius: 22px;
	}

	.tbx-cart-list__head {
		display: none;
	}

	.tbx-cart-item {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px 14px;
		align-items: start;
		padding: 16px;
	}

	.tbx-cart-item:first-of-type {
		border-top: 0;
	}

	.tbx-cart-item__media {
		width: 96px;
	}

	body #content.tbx-tun .tbx-cart-item__name {
		font-size: 17px;
	}

	.tbx-cart-item__side {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.tbx-cart-item__price {
		font-size: 20px;
	}

	.tbx-cart-coupon__form {
		max-width: none;
	}

	.tbx-recap {
		padding: 24px 20px;
		border-radius: 24px;
	}

	.tbx-recap__row--total dd {
		font-size: 32px;
	}

	body #content.tbx-tun a.tbx-recap__go,
	body #content.tbx-tun .tbx-pay__btn {
		height: 58px;
		padding: 0 6px 0 22px;
		font-size: 16px;
	}

	.tbx-tun-more {
		padding: 8px 0 48px;
	}

	body #content.tbx-tun .tbx-tun-more__title {
		padding: 0 20px;
		font-size: 26px;
	}

	body #content.tbx-tun .tbx-tun-more .tbx-cat__grid {
		grid-auto-columns: 260px;
		grid-auto-flow: column;
		grid-template-columns: none;
		gap: 14px;
		padding: 0 20px 8px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	body #content.tbx-tun .tbx-cart-empty__title {
		font-size: 32px;
	}

	.tbx-cart-empty__boxes {
		gap: 10px;
	}

	body #content.tbx-tun a.tbx-cart-empty__box {
		padding: 16px;
		border-radius: 20px;
	}

	.tbx-cart-empty__box-name {
		font-size: 17px;
	}

	body #content.tbx-tun a.tbx-cart-empty__btn {
		min-width: 0;
	}

	/* Validation */
	body #content.tbx-tun--step-2 > .woocommerce {
		padding: 16px 16px 48px;
	}

	body #content.tbx-tun .tbx-co-login form.login {
		grid-template-columns: minmax(0, 1fr);
	}

	body #content.tbx-tun .tbx-co-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body #content.tbx-tun .tbx-co-grid .form-row,
	body #content.tbx-tun .tbx-co-grid .tbx-col-2,
	body #content.tbx-tun .tbx-co-grid .tbx-col-3,
	body #content.tbx-tun .tbx-co-grid .tbx-col-4 {
		grid-column: 1 / -1;
	}

	/* Récapitulatif : en haut et replié (le formulaire, le paiement et le bouton suivent) */
	body #content.tbx-tun form.tbx-co {
		display: flex;
		flex-direction: column;
	}

	.tbx-co-side {
		display: contents;
	}

	.tbx-co-side__head {
		order: -1;
		padding: 16px 20px;
		border-radius: 20px;
		background: var(--soft);
	}

	body #content.tbx-tun .tbx-co-side__head .tbx-recap__title {
		font-size: 19px;
	}

	html body #content.tbx-tun .tbx-co-side__toggle {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		color: var(--navy);
		font-size: 14.5px;
		font-weight: 700;
	}

	.tbx-co-side.is-collapsed .tbx-co-review {
		display: none;
	}

	body #content.tbx-tun #order_review {
		padding: 20px;
		border-radius: 24px;
		background: var(--soft);
	}

	.tbx-ty-head {
		padding: 32px 20px;
	}

	body #content.tbx-tun .tbx-ty-head__title {
		font-size: 40px;
	}

	.tbx-ty-head__lead {
		font-size: 16px;
	}

	.tbx-ty-head__facts {
		padding: 18px 20px;
	}

	.tbx-ty-head__facts dd {
		font-size: 16px;
	}

	.tbx-ty-body {
		gap: 40px;
		padding: 36px 16px 56px;
	}

	body #content.tbx-tun .tbx-ty-h2 {
		font-size: 26px;
	}

	.tbx-ty-dl__card {
		padding: 18px;
		border-radius: 22px;
	}

	.tbx-ty-dl__files li {
		flex-wrap: wrap;
		padding: 10px 10px 10px 14px;
	}

	.tbx-ty-box {
		padding: 24px 18px;
		border-radius: 24px;
	}

	.tbx-ty-box__blocks {
		grid-template-columns: minmax(0, 1fr);
	}

	body #content.tbx-tun .tbx-ty-account a.tbx-recap__go {
		min-width: 0;
	}
}

/* ======================================================================
 * Harmonisation des en-têtes (2026-10-09) : version compacte du héros de l accueil pour les pages
 * secondaires — fond crème (isole l'en-tête, retour d'Elsa du 2026-10-09), marges 40/48, pastille blanche,
 * titre 36–50 px, mot orange en capitales, filet orange 72 × 6.
 * ==================================================================== */

.tbx-tun-head,
.tbx-ty-head {
	padding: 40px var(--gutter) 48px;
	border-bottom: 0;
	background: #F8EBE1;
}

body #content.tbx-tun .tbx-tun-head__title,
body #content.tbx-tun .tbx-ty-head__title {
	font-size: clamp(36px, 3.5vw, 50px);
	letter-spacing: -.04em;
	line-height: 1.04;
}

body #content.tbx-tun .tbx-tun-head__title::after,
body #content.tbx-tun .tbx-ty-head__title::after {
	content: "";
	display: block;
	width: 72px;
	height: 6px;
	margin-top: 18px;
	border-radius: 3px;
	background: var(--orange);
}

.tbx-ty-head__facts {
	border: 1px solid var(--line);
}

@media (max-width: 767px) {
	.tbx-tun-head,
	.tbx-ty-head {
		padding: 28px 20px 32px;
	}

	body #content.tbx-tun .tbx-tun-head__title,
	body #content.tbx-tun .tbx-ty-head__title {
		font-size: 34px;
	}

	body #content.tbx-tun .tbx-tun-head__title::after,
	body #content.tbx-tun .tbx-ty-head__title::after {
		width: 56px;
		height: 5px;
	}
}

/* Message d'erreur du code promo (WooCommerce l'affiche sous le champ). */
body #content.tbx-tun .coupon-error-notice,
body #content.tbx-tun .tbx-cart-coupon .woocommerce-error {
	flex-basis: 100%;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--red);
	font-size: 13.5px;
	font-weight: 600;
}

body #content.tbx-tun .coupon-error-notice::before,
body #content.tbx-tun .tbx-cart-coupon .woocommerce-error::before {
	display: none;
}

body #content.tbx-tun .tbx-cart-coupon__form {
	flex-wrap: wrap;
}

body #content.tbx-tun .tbx-cart-coupon__form input.has-error,
body #content.tbx-tun .tbx-cart-coupon__form input[aria-invalid="true"] {
	border-color: var(--red);
	background: #FFF8F8;
}

/* Commande reçue : étapes à droite du titre (le texte ne pousse plus les étapes à la ligne). */
.tbx-ty-head__top {
	flex-wrap: nowrap;
	align-items: center;
}

.tbx-ty-head__text {
	flex: 1 1 0;
	min-width: 0;
}

.tbx-ty-head__top .tbx-tun-steps {
	flex: none;
}

@media (max-width: 1023px) {
	.tbx-ty-head__top {
		flex-wrap: wrap;
	}
}
