/*
 * Leo Design – Warenkorb, Kasse, Bestellbestätigung, Mein Konto (ab 1.2.0)
 * Wird nur auf diesen Seiten geladen. Handy zuerst; ab 768px Tablet, ab 1025px Desktop.
 * Farben, Radius und Schriften kommen aus den Variablen in leo-design.css.
 */

/* ==========================================================================
   1. Formularfelder (Kasse, Konto, Gutschein)
   ========================================================================== */
body.leo-design .woocommerce form .form-row {
	box-sizing: border-box;
	margin: 0 0 14px;
	padding: 0;
}

body.leo-design .woocommerce form .form-row > label,
body.leo-design .woocommerce form .form-row legend {
	display: block;
	margin: 0 0 6px;
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

body.leo-design .woocommerce form .form-row .required {
	color: var(--leo-error);
	font-weight: 600;
	text-decoration: none;
}

body.leo-design .woocommerce form .form-row .optional {
	color: var(--leo-muted);
	font-weight: 400;
}

body.leo-design .woocommerce form .input-text,
body.leo-design .woocommerce form select,
body.leo-design .woocommerce form textarea,
body.leo-design .woocommerce .select2-container .select2-selection--single {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--leo-field-line);
	border-radius: var(--leo-radius-sm);
	background-color: #fff;
	box-shadow: none;
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 16px; /* kein Zoom beim Antippen (iOS) */
	line-height: 1.4;
}

body.leo-design .woocommerce form textarea {
	min-height: 96px;
	resize: vertical;
}

body.leo-design .woocommerce form .input-text:focus,
body.leo-design .woocommerce form select:focus,
body.leo-design .woocommerce form textarea:focus,
body.leo-design .woocommerce .select2-container--focus .select2-selection--single,
body.leo-design .woocommerce .select2-container--open .select2-selection--single {
	border-color: var(--leo-accent);
	outline: 2px solid var(--leo-accent);
	outline-offset: 1px;
}

body.leo-design .woocommerce form ::placeholder {
	color: var(--leo-muted);
	opacity: 1;
}

body.leo-design .woocommerce .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 40px 0 14px;
}

body.leo-design .woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0;
	color: var(--leo-text);
	line-height: 1.4;
}

body.leo-design .woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 8px;
	height: 46px;
}

/* Häkchen und Auswahlpunkte */
body.leo-design .woocommerce input[type="checkbox"],
body.leo-design .woocommerce input[type="radio"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--leo-btn);
}

body.leo-design .woocommerce form label.checkbox,
body.leo-design .woocommerce form label.woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: var(--leo-touch);
	margin: 0;
	padding: 12px 0;
	box-sizing: border-box;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	cursor: pointer;
}

/* Fehler direkt am Feld */
body.leo-design .woocommerce form .form-row.woocommerce-invalid .input-text,
body.leo-design .woocommerce form .form-row.woocommerce-invalid select,
body.leo-design .woocommerce form .form-row.woocommerce-invalid .select2-selection--single {
	border-color: var(--leo-error);
	box-shadow: 0 0 0 1px var(--leo-error);
}

body.leo-design .woocommerce form .form-row.woocommerce-invalid > label {
	color: var(--leo-error);
}

body.leo-design .woocommerce form .form-row.woocommerce-validated .input-text,
body.leo-design .woocommerce form .form-row.woocommerce-validated select {
	border-color: var(--leo-field-line);
	box-shadow: none;
}

body.leo-design .leo-field-error,
body.leo-design .leo-b2b-apply__form .leo-b2b-apply__error,
body.leo-design .woocommerce form .checkout-inline-error-message {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 6px 0 0;
	color: var(--leo-error);
	font-family: var(--leo-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

body.leo-design .leo-field-error::before,
body.leo-design .leo-b2b-apply__form .leo-b2b-apply__error::before,
body.leo-design .woocommerce form .checkout-inline-error-message::before {
	content: "!";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--leo-error);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

/* Buttons in Warenkorb, Kasse und Konto: ruhig, ohne Versalien */
body.leo-design:where(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .woocommerce .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--leo-touch);
	padding: 8px 18px;
	border: 1px solid var(--leo-text);
	border-radius: var(--leo-radius-sm);
	background: #fff;
	box-shadow: none;
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
}

body.leo-design:where(.woocommerce-cart, .woocommerce-checkout, .woocommerce-account) .woocommerce .button:hover {
	background: var(--leo-text);
	color: #fff;
}

body.leo-design .woocommerce .button.alt,
body.leo-design .woocommerce .checkout-button,
body.leo-design .woocommerce #place_order,
body.leo-design .woocommerce .woocommerce-form-login__submit,
body.leo-design .woocommerce .woocommerce-form-register__submit,
body.leo-design .woocommerce .woocommerce-Button[name="save_account_details"],
body.leo-design .woocommerce .button[name="save_address"] {
	border-color: var(--leo-btn);
	background: var(--leo-btn);
	color: #fff;
}

body.leo-design .woocommerce .button.alt:hover,
body.leo-design .woocommerce .checkout-button:hover,
body.leo-design .woocommerce #place_order:hover,
body.leo-design .woocommerce .woocommerce-form-login__submit:hover,
body.leo-design .woocommerce .woocommerce-form-register__submit:hover,
body.leo-design .woocommerce .woocommerce-Button[name="save_account_details"]:hover,
body.leo-design .woocommerce .button[name="save_address"]:hover {
	border-color: var(--leo-btn-hover);
	background: var(--leo-btn-hover);
	color: #fff;
}

/* ==========================================================================
   2. Summen (Warenkorb-Summenbox und Bestellübersicht der Kasse)
   Zeilen als Flex, damit die Reihenfolge feststeht:
   Zwischensumme · Ersparnis · Gutschein · Versand · Gebühren · MwSt. · Gesamt
   ========================================================================== */
body.leo-design .cart_totals table.shop_table,
body.leo-design table.woocommerce-checkout-review-order-table {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: var(--leo-font);
}

body.leo-design table.woocommerce-checkout-review-order-table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

body.leo-design .cart_totals table.shop_table tbody,
body.leo-design table.woocommerce-checkout-review-order-table tbody,
body.leo-design table.woocommerce-checkout-review-order-table tfoot {
	display: flex;
	flex-direction: column;
}

body.leo-design .cart_totals table.shop_table tr,
body.leo-design table.woocommerce-checkout-review-order-table tr {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	order: 5;
	margin: 0;
	padding: 11px 0;
	border: 0;
	border-bottom: 1px solid var(--leo-line);
	background: none;
}

body.leo-design .cart_totals table.shop_table th,
body.leo-design .cart_totals table.shop_table td,
body.leo-design table.woocommerce-checkout-review-order-table th,
body.leo-design table.woocommerce-checkout-review-order-table td {
	display: block;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

body.leo-design .cart_totals table.shop_table th,
body.leo-design table.woocommerce-checkout-review-order-table tfoot th {
	color: var(--leo-body);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

body.leo-design .cart_totals table.shop_table td,
body.leo-design table.woocommerce-checkout-review-order-table tfoot td {
	margin-left: auto;
	color: var(--leo-text);
	font-weight: 600;
	text-align: right;
}

body.leo-design .cart_totals table.shop_table td::before,
body.leo-design table.woocommerce-checkout-review-order-table td::before {
	content: none !important;
}

body.leo-design .cart_totals table.shop_table .amount,
body.leo-design table.woocommerce-checkout-review-order-table .amount {
	color: inherit;
	font-weight: inherit;
}

/* Reihenfolge */
body.leo-design .cart_totals table.shop_table tr.cart-subtotal,
body.leo-design table.woocommerce-checkout-review-order-table tr.cart-subtotal {
	order: 1;
}

body.leo-design .cart_totals table.shop_table tr.leo-b2b-savings,
body.leo-design table.woocommerce-checkout-review-order-table tr.leo-b2b-savings {
	order: 2;
}

body.leo-design .cart_totals table.shop_table tr.cart-discount,
body.leo-design table.woocommerce-checkout-review-order-table tr.cart-discount {
	order: 3;
}

body.leo-design .cart_totals table.shop_table tr.shipping,
body.leo-design table.woocommerce-checkout-review-order-table tr.shipping {
	order: 4;
}

body.leo-design .cart_totals table.shop_table tr.tax-rate,
body.leo-design .cart_totals table.shop_table tr.tax-total,
body.leo-design table.woocommerce-checkout-review-order-table tr.tax-rate,
body.leo-design table.woocommerce-checkout-review-order-table tr.tax-total {
	order: 6;
}

body.leo-design .cart_totals table.shop_table tr.order-total,
body.leo-design table.woocommerce-checkout-review-order-table tr.order-total {
	order: 7;
	margin-top: -1px;
	padding: 14px 0 0;
	border-top: 2px solid var(--leo-text);
	border-bottom: 0;
}

/* Ersparnis durch Staffelpreise (Leo B2B) in Grün */
body.leo-design .cart_totals table.shop_table tr.leo-b2b-savings th,
body.leo-design .cart_totals table.shop_table tr.leo-b2b-savings td,
body.leo-design table.woocommerce-checkout-review-order-table tr.leo-b2b-savings th,
body.leo-design table.woocommerce-checkout-review-order-table tr.leo-b2b-savings td {
	color: var(--leo-ok);
	font-weight: 600;
}

body.leo-design .cart_totals table.shop_table tr.leo-b2b-savings td::after,
body.leo-design table.woocommerce-checkout-review-order-table tr.leo-b2b-savings td::after {
	content: none;
}

/* Gesamt */
body.leo-design .cart_totals table.shop_table tr.order-total th,
body.leo-design table.woocommerce-checkout-review-order-table tr.order-total th {
	color: var(--leo-text);
	font-size: 16px;
	font-weight: 600;
}

body.leo-design .cart_totals table.shop_table tr.order-total td strong .amount,
body.leo-design table.woocommerce-checkout-review-order-table tr.order-total td strong .amount {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

body.leo-design .cart_totals table.shop_table .includes_tax,
body.leo-design table.woocommerce-checkout-review-order-table .includes_tax {
	display: block;
	margin-top: 2px;
	color: var(--leo-muted);
	font-size: 12px;
	font-weight: 400;
}

/* Versand: Überschrift, darunter die Versandarten als Auswahlkarten */
body.leo-design .cart_totals table.shop_table tr.shipping th,
body.leo-design .cart_totals table.shop_table tr.shipping td,
body.leo-design table.woocommerce-checkout-review-order-table tr.shipping th,
body.leo-design table.woocommerce-checkout-review-order-table tr.shipping td {
	flex: 0 0 100%;
	margin-left: 0;
	font-weight: 400;
	text-align: left;
}

body.leo-design .cart_totals table.shop_table tr.shipping th,
body.leo-design table.woocommerce-checkout-review-order-table tr.shipping th {
	margin-bottom: 4px;
}

body.leo-design .woocommerce ul#shipping_method,
body.leo-design .woocommerce ul.woocommerce-shipping-methods {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.leo-design .woocommerce ul#shipping_method li,
body.leo-design .woocommerce ul.woocommerce-shipping-methods li {
	position: relative;
	margin: 0;
	padding: 0;
	border: 1px solid var(--leo-field-line);
	border-radius: var(--leo-radius-sm);
	background: #fff;
	text-indent: 0;
}

body.leo-design .woocommerce ul#shipping_method li input[type="radio"],
body.leo-design .woocommerce ul.woocommerce-shipping-methods li input[type="radio"] {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
}

body.leo-design .woocommerce ul#shipping_method li label,
body.leo-design .woocommerce ul.woocommerce-shipping-methods li label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2px 12px;
	box-sizing: border-box;
	min-height: 48px;
	margin: 0;
	padding: 8px 14px 8px 46px;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

body.leo-design .woocommerce ul#shipping_method li input[type="hidden"] + label,
body.leo-design .woocommerce ul.woocommerce-shipping-methods li input[type="hidden"] + label {
	padding-left: 14px;
	cursor: default;
}

body.leo-design .woocommerce ul#shipping_method li:has(input[type="hidden"]),
body.leo-design .woocommerce ul.woocommerce-shipping-methods li:has(input[type="hidden"]) {
	border-color: var(--leo-line);
	background: var(--leo-sand);
}

body.leo-design .woocommerce ul#shipping_method li:has(input:checked),
body.leo-design .woocommerce ul.woocommerce-shipping-methods li:has(input:checked) {
	border-color: var(--leo-accent);
	background: var(--leo-sand);
	box-shadow: inset 0 0 0 1px var(--leo-accent);
}

body.leo-design .woocommerce .woocommerce-shipping-destination,
body.leo-design .woocommerce .woocommerce-shipping-contents {
	margin: 8px 0 0;
	color: var(--leo-muted);
	font-size: 13px;
}

body.leo-design .woocommerce .shipping-calculator-button {
	display: inline-flex;
	align-items: center;
	min-height: var(--leo-touch);
	color: var(--leo-price);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Vertrauenszeile */
.leo-trust {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--leo-line);
	list-style: none;
	color: var(--leo-body);
	font-family: var(--leo-font);
	font-size: 13px;
	line-height: 1.4;
	text-align: left;
}

.leo-trust .leo-trust__item {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.leo-trust .leo-icon {
	flex: none;
	color: var(--leo-text);
}

/* ==========================================================================
   3. Warenkorb
   ========================================================================== */
.leo-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	font-family: var(--leo-font);
}

.leo-cart__main,
.leo-cart__side {
	min-width: 0;
	margin: 0;
}

.leo-cart__items {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

/* Position als Karte */
.leo-cart-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	grid-template-areas:
		"img info"
		"foot foot"
		"after after";
	gap: 12px 14px;
	box-sizing: border-box;
	padding: 14px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-card);
}

.leo-cart-item__img {
	grid-area: img;
}

.leo-cart-item__img a {
	display: block;
}

.leo-cart-item__img img {
	display: block;
	width: 72px;
	height: 72px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius-sm);
	background: #fff;
	object-fit: contain;
}

.leo-cart-item__info {
	grid-area: info;
	min-width: 0;
}

.leo-cart-item .leo-cart-item__brand {
	margin: 0 0 2px;
	color: var(--leo-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.4;
	text-transform: uppercase;
}

.leo-cart-item .leo-cart-item__name {
	margin: 0;
	color: var(--leo-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.leo-cart-item .leo-cart-item__name a {
	color: inherit;
	text-decoration: none;
}

.leo-cart-item .leo-cart-item__name a:hover {
	color: var(--leo-price);
}

.leo-cart-item dl.variation {
	margin: 4px 0 0;
	color: var(--leo-muted);
	font-size: 13px;
	line-height: 1.4;
}

.leo-cart-item dl.variation dt,
.leo-cart-item dl.variation dd,
.leo-cart-item dl.variation p {
	display: inline;
	float: none;
	margin: 0;
	padding: 0;
	font-weight: 400;
}

.leo-cart-item dl.variation dd {
	margin-left: 4px;
}

.leo-cart-item dl.variation dd::after {
	content: "";
	display: block;
}

.leo-cart-item .backorder_notification {
	margin: 4px 0 0;
	color: var(--leo-muted);
	font-size: 13px;
}

.leo-cart-item .leo-cart-item__price {
	margin: 6px 0 0;
	color: var(--leo-body);
	font-size: 14px;
	line-height: 1.4;
}

.leo-cart-item .leo-cart-item__price .amount {
	color: var(--leo-text);
	font-weight: 600;
}

.leo-cart-item__price small,
.leo-cart-item__subtotal small {
	color: var(--leo-muted);
	font-size: 12px;
	font-weight: 400;
}

/* „(inkl. MwSt.)“ unter der Zeilensumme, damit die Zeile auf dem Handy nicht überläuft */
.leo-cart-item__subtotal small {
	display: block;
}

.leo-cart-item__foot {
	grid-area: foot;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	min-width: 0;
}

/* Menge −/+ */
body.leo-design .leo-cart-item .quantity {
	display: inline-flex;
	align-items: stretch;
	box-sizing: border-box;
	width: auto;
	height: calc(var(--leo-touch) + 2px); /* 44px innen + Rand */
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--leo-field-line);
	border-radius: var(--leo-radius-sm);
	background: #fff;
}

body.leo-design .leo-cart-item .quantity.hidden,
body.leo-design .leo-cart-item .quantity:has(input[type="hidden"]) {
	display: none;
}

body.leo-design .leo-cart-item .quantity input.qty {
	flex: 0 0 48px;
	box-sizing: border-box;
	width: 48px;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-inline: 1px solid var(--leo-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

body.leo-design .leo-cart-item .quantity input.qty::-webkit-outer-spin-button,
body.leo-design .leo-cart-item .quantity input.qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

body.leo-design .leo-cart-item .quantity .minus,
body.leo-design .leo-cart-item .quantity .plus,
body.leo-design .leo-cart-item .quantity .leo-qtybtn {
	flex: 0 0 var(--leo-touch);
	box-sizing: border-box;
	width: var(--leo-touch);
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

body.leo-design .leo-cart-item .quantity .minus:hover,
body.leo-design .leo-cart-item .quantity .plus:hover,
body.leo-design .leo-cart-item .quantity .leo-qtybtn:hover {
	background: var(--leo-sand);
	color: var(--leo-text);
}

/* Entfernen */
body.leo-design .leo-cart-item .product-remove a.remove {
	position: static;
	display: inline-flex;
	align-items: center;
	width: auto;
	height: auto;
	min-height: var(--leo-touch);
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--leo-muted);
	font-family: var(--leo-font);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.leo-design .leo-cart-item .product-remove a.remove::before,
body.leo-design .leo-cart-item .product-remove a.remove::after {
	content: none;
}

body.leo-design .leo-cart-item .product-remove a.remove:hover {
	background: transparent;
	color: var(--leo-error);
}

.leo-cart-item__subtotal {
	margin-left: auto;
	color: var(--leo-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
	white-space: nowrap;
}

.leo-cart-item__subtotal .amount {
	color: inherit;
	font-weight: inherit;
}

.leo-cart-item__after {
	grid-area: after;
	min-width: 0;
}

/* Staffel-Hinweis von Leo B2B: dezenter Sand-Kasten, Knopf darunter (ab 600px rechts) */
body.leo-design .leo-b2b-tier-hint {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius-sm);
	background: var(--leo-sand);
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 14px;
	line-height: 1.45;
}

body.leo-design .leo-b2b-tier-hint .leo-b2b-tier-hint__text {
	flex: 1 1 auto;
	min-width: 0;
}

body.leo-design .leo-b2b-tier-hint .amount {
	color: inherit;
	font-weight: 600;
}

body.leo-design .leo-b2b-tier-hint .leo-b2b-tier-hint__btn {
	flex: none;
	min-height: var(--leo-touch);
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--leo-text);
	border-radius: var(--leo-radius-sm);
	background: #fff;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	white-space: normal;
}

body.leo-design .leo-b2b-tier-hint .leo-b2b-tier-hint__btn:hover {
	background: var(--leo-text);
	color: #fff;
}

@media (min-width: 600px) {
	body.leo-design .leo-b2b-tier-hint {
		flex-direction: row;
		align-items: center;
		gap: 16px;
	}

	body.leo-design .leo-b2b-tier-hint .leo-b2b-tier-hint__btn {
		white-space: nowrap;
	}
}

/* Palettenhinweis von Leo B2B: Knopf bündig unter dem Text */
body.leo-design .woocommerce-info .leo-b2b-fill-pallet,
body.leo-design .woocommerce-message .leo-b2b-fill-pallet {
	margin: 8px 0 0;
}

/* Gutschein und „Warenkorb aktualisieren“ */
.leo-cart__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
}

.leo-coupon {
	flex: 1 1 280px;
	min-width: 0;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: #fff;
}

.leo-coupon__head {
	display: flex;
	align-items: center;
	min-height: var(--leo-touch);
	padding: 0 14px;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

body.leo-design .leo-coupon__body {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	float: none;
	width: auto;
	margin: 0;
	padding: 0 14px 14px;
}

body.leo-design .leo-coupon__body .input-text {
	flex: 1 1 160px;
	width: auto;
	min-width: 0;
}

body.leo-design .leo-coupon__body .button {
	flex: 1 0 auto;
	min-height: 48px;
}

/* Mit JavaScript aktualisiert sich der Warenkorb nach einer Mengenänderung selbst */
html.leo-cart-auto .leo-cart__update {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

/* Summenbox */
body.leo-design .leo-cart .cart-collaterals,
body.leo-design .leo-cart .cart-collaterals .cart_totals {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
}

body.leo-design .leo-cart .cart_totals {
	box-sizing: border-box;
	padding: 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-card);
	box-shadow: var(--leo-shadow);
}

body.leo-design .leo-cart .cart_totals .cart-totals-inner {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

body.leo-design .leo-cart .cart_totals > h2,
body.leo-design .leo-cart .cart_totals .cart-totals-inner > h2 {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	color: var(--leo-text);
	font-family: var(--leo-font-head);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

body.leo-design .leo-cart .wc-proceed-to-checkout {
	margin: 0;
	padding: 16px 0 0;
}

body.leo-design .leo-cart .wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 10px 18px;
	border-radius: var(--leo-radius);
	font-size: 16px;
}

.leo-cart__cross {
	margin-top: 32px;
}

@media (min-width: 768px) {
	.leo-cart-item {
		grid-template-columns: 88px minmax(0, 1fr) auto;
		grid-template-areas:
			"img info foot"
			"after after after";
		gap: 14px 20px;
		padding: 16px;
	}

	.leo-cart-item__img img {
		width: 88px;
		height: 88px;
	}

	.leo-cart-item__foot {
		align-self: center;
		gap: 16px;
	}

	.leo-cart-item__subtotal {
		order: 2;
		min-width: 104px;
		margin-left: 0;
	}

	.leo-cart-item__remove {
		order: 3;
	}

	body.leo-design .leo-cart .cart_totals {
		padding: 24px;
	}
}

@media (min-width: 1025px) {
	.leo-cart {
		grid-template-columns: minmax(0, 1fr) 380px;
		align-items: start;
		gap: 32px;
	}

	/* Summenbox bleibt beim Scrollen sichtbar; ist sie höher als das Fenster, schaltet JS das ab (.leo-nosticky) */
	.leo-cart__side {
		position: sticky;
		top: var(--leo-sticky-top, 24px);
	}

	.leo-cart__side.leo-nosticky {
		position: static;
	}
}

/* Leerer Warenkorb */
body.leo-design .woocommerce .cart-empty,
body.leo-design .woocommerce .wc-empty-cart-message {
	color: var(--leo-text);
	font-family: var(--leo-font);
}

body.leo-design .woocommerce .return-to-shop .button {
	min-height: 48px;
	border-color: var(--leo-btn);
	background: var(--leo-btn);
	color: #fff;
}

/* ==========================================================================
   4. Kasse
   ========================================================================== */
/* Woodmart setzt form.checkout auf Flex und alle Kinder auf „flex: 1 1 100%; order: -1“.
   Deshalb hier mit hoher Spezifität und !important: Raster, eigene Reihenfolge, keine Flex-Breiten. */
body.leo-design form.checkout.leo-checkout {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 !important;
	align-items: start;
	font-family: var(--leo-font);
}

body.leo-design form.checkout.leo-checkout > * {
	flex: none !important;
	order: 0 !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
}

body.leo-design form.checkout.leo-checkout > .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

.leo-checkout__customer {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	float: none;
	width: auto;
}

.leo-checkout__details,
.leo-checkout__payment {
	margin-bottom: 16px;
}

.leo-step,
.leo-checkout__summary {
	box-sizing: border-box;
	padding: 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-card);
}

.leo-checkout__summary {
	box-shadow: var(--leo-shadow);
}

body.leo-design .leo-step__title,
body.leo-design .leo-checkout__summary-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: var(--leo-text);
	font-family: var(--leo-font-head);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

.leo-step__num {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--leo-text);
	color: #fff;
	font-family: var(--leo-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

/* Abschnitt 3 ohne Zahlungsarten (Bestellung ohne Zahlung) ausblenden */
.leo-step--payment:not(:has(.wc_payment_methods)) {
	display: none;
}

/* Die Überschriften der WooCommerce-Vorlagen ersetzt die nummerierte Überschrift */
body.leo-design .leo-checkout .woocommerce-billing-fields > h3,
body.leo-design .leo-checkout .woocommerce-additional-fields > h3 {
	display: none;
}

body.leo-design .leo-checkout .woocommerce-billing-fields,
body.leo-design .leo-checkout .woocommerce-shipping-fields,
body.leo-design .leo-checkout .woocommerce-additional-fields,
body.leo-design .leo-checkout .woocommerce-account-fields {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Felder: Handy einspaltig, ab 480px Vor-/Nachname usw. nebeneinander */
body.leo-design .leo-checkout .woocommerce-billing-fields__field-wrapper,
body.leo-design .leo-checkout .woocommerce-shipping-fields__field-wrapper,
body.leo-design .leo-checkout .woocommerce-additional-fields__field-wrapper,
body.leo-design .leo-checkout .leo-b2b-delivery {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 12px;
}

body.leo-design .leo-checkout .form-row {
	float: none !important;
	clear: none;
	width: auto !important;
	min-width: 0;
}

body.leo-design .leo-checkout .leo-b2b-delivery > .clear {
	display: none;
}

@media (min-width: 480px) {
	body.leo-design .leo-checkout .woocommerce-billing-fields__field-wrapper,
	body.leo-design .leo-checkout .woocommerce-shipping-fields__field-wrapper,
	body.leo-design .leo-checkout .woocommerce-additional-fields__field-wrapper,
	body.leo-design .leo-checkout .leo-b2b-delivery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.leo-design .leo-checkout .form-row,
	body.leo-design .leo-checkout .leo-b2b-delivery > h3,
	body.leo-design .leo-checkout .leo-b2b-delivery > p {
		grid-column: 1 / -1;
	}

	body.leo-design .leo-checkout .form-row.form-row-first {
		grid-column: 1;
	}

	body.leo-design .leo-checkout .form-row.form-row-last {
		grid-column: 2;
	}
}

/* Abweichende Lieferadresse */
body.leo-design .leo-checkout #ship-to-different-address {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-family: var(--leo-font);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.45;
	text-transform: none;
}

body.leo-design .leo-checkout #ship-to-different-address label {
	font-size: 15px;
}

body.leo-design .leo-checkout .shipping_address {
	margin: 0 0 8px;
}

/* Anlieferung per Spedition (Leo B2B): eigener Kasten */
body.leo-design .leo-checkout .leo-b2b-delivery {
	box-sizing: border-box;
	margin: 8px 0 0;
	padding: 16px 16px 2px;
	border: 1px solid var(--leo-line);
	border-left: 4px solid var(--leo-accent);
	border-radius: var(--leo-radius-sm);
	background: var(--leo-sand);
}

body.leo-design .leo-checkout .leo-b2b-delivery[hidden] {
	display: none !important;
}

body.leo-design .leo-checkout .leo-b2b-delivery > h3 {
	margin: 0 0 4px;
	padding: 0;
	border: 0;
	color: var(--leo-text);
	font-family: var(--leo-font-head);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

body.leo-design .leo-checkout .leo-b2b-delivery .leo-b2b-delivery__intro {
	margin: 0 0 14px;
	color: var(--leo-body);
	font-size: 14px;
	line-height: 1.45;
	opacity: 1;
}

/* Bestellübersicht */
body.leo-design .leo-checkout #order_review {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

body.leo-design table.woocommerce-checkout-review-order-table tr.cart_item {
	flex-wrap: nowrap;
	align-items: flex-start;
	order: 0;
}

body.leo-design table.woocommerce-checkout-review-order-table tbody tr.cart_item:first-child {
	padding-top: 0;
}

body.leo-design table.woocommerce-checkout-review-order-table td.product-name {
	flex: 1 1 auto;
}

body.leo-design table.woocommerce-checkout-review-order-table td.product-total {
	flex: none;
	margin-left: auto;
	color: var(--leo-text);
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}

.leo-review-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.leo-review-item__img {
	flex: none;
	width: 56px;
	height: 56px;
}

.leo-review-item__img img {
	display: block;
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius-sm);
	background: #fff;
	object-fit: contain;
}

.leo-review-item__text {
	display: block;
	min-width: 0;
}

.leo-review-item__name {
	display: block;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.leo-review-item__qty {
	display: block;
	margin-top: 2px;
	color: var(--leo-muted);
	font-size: 13px;
}

.leo-review-item__qty .product-quantity {
	font-weight: 400;
}

.leo-review-item dl.variation {
	margin: 2px 0 0;
	color: var(--leo-muted);
	font-size: 12px;
}

.leo-review-item dl.variation dt,
.leo-review-item dl.variation dd,
.leo-review-item dl.variation p {
	display: inline;
	float: none;
	margin: 0;
	font-weight: 400;
}

/* Zahlungsarten als Auswahlkarten */
body.leo-design .woocommerce-checkout #payment {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

body.leo-design .woocommerce-checkout #payment ul.payment_methods {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

body.leo-design .woocommerce-checkout #payment ul.payment_methods > li {
	position: relative;
	margin: 0;
	padding: 0;
	border: 1px solid var(--leo-field-line);
	border-radius: var(--leo-radius-sm);
	background: #fff;
	list-style: none;
}

body.leo-design .woocommerce-checkout #payment ul.payment_methods > li:has(> input:checked) {
	border-color: var(--leo-accent);
	background: var(--leo-sand);
	box-shadow: inset 0 0 0 1px var(--leo-accent);
}

body.leo-design .woocommerce-checkout #payment ul.payment_methods > li > input[type="radio"] {
	position: absolute;
	top: 14px;
	left: 14px;
}

body.leo-design .woocommerce-checkout #payment ul.payment_methods > li > label {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	min-height: 48px;
	margin: 0;
	padding: 8px 14px 8px 46px;
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
}

body.leo-design .woocommerce-checkout #payment ul.payment_methods > li > label img {
	float: none;
	max-height: 24px;
	width: auto;
	margin: 0 0 0 auto;
}

body.leo-design .woocommerce-checkout #payment div.payment_box {
	margin: 0;
	padding: 0 14px 14px 46px;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--leo-body);
	font-size: 14px;
	line-height: 1.5;
}

body.leo-design .woocommerce-checkout #payment div.payment_box::before,
body.leo-design .woocommerce-checkout #payment div.payment_box::after {
	content: none;
}

body.leo-design .woocommerce-checkout #payment div.payment_box p:last-child {
	margin-bottom: 0;
}

/* AGB und Kaufen-Button */
body.leo-design .woocommerce-checkout .place-order {
	float: none;
	margin: 16px 0 0;
	padding: 0;
}

body.leo-design .woocommerce-checkout .place-order.leo-is-updating {
	opacity: 0.6;
	pointer-events: none;
}

body.leo-design .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	margin: 0 0 12px;
	color: var(--leo-body);
	font-size: 14px;
	line-height: 1.5;
}

body.leo-design .woocommerce-checkout .woocommerce-privacy-policy-text p {
	margin: 0 0 8px;
	font-size: 13px;
}

body.leo-design .woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a,
body.leo-design.woocommerce-account .woocommerce-privacy-policy-text a {
	color: var(--leo-price);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.leo-design .woocommerce-checkout #place_order {
	display: flex;
	float: none;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 10px 18px;
	border-radius: var(--leo-radius);
	font-size: 16px;
}

/* Gutschein- und Anmelde-Formular über der Kasse */
body.leo-design.woocommerce-checkout form.checkout_coupon,
body.leo-design.woocommerce-checkout form.woocommerce-form-login {
	box-sizing: border-box;
	max-width: none;
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: #fff;
}

@media (min-width: 768px) {
	.leo-step,
	.leo-checkout__summary {
		padding: 24px;
	}
}

@media (min-width: 1025px) {
	/* Zwei Spalten: links Details + Zahlung, rechts Bestellübersicht */
	body.leo-design form.checkout.leo-checkout {
		grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
		grid-template-rows: auto auto 1fr;
		column-gap: 32px !important;
	}

	body.leo-design form.checkout.leo-checkout > .woocommerce-NoticeGroup {
		grid-row: 1;
	}

	body.leo-design form.checkout.leo-checkout > .leo-checkout__details {
		grid-row: 2;
		grid-column: 1;
		margin-bottom: 24px;
	}

	.leo-checkout__customer {
		gap: 24px;
	}

	body.leo-design form.checkout.leo-checkout > .leo-checkout__payment {
		grid-row: 3;
		grid-column: 1;
		margin-bottom: 0;
	}

	/* Bestellübersicht mit Kaufen-Button bleibt beim Scrollen sichtbar */
	body.leo-design form.checkout.leo-checkout > .leo-checkout__summary {
		position: sticky;
		top: var(--leo-sticky-top, 24px);
		grid-row: 2 / span 2;
		grid-column: 2;
		align-self: start;
	}

	body.leo-design form.checkout.leo-checkout > .leo-checkout__summary.leo-nosticky {
		position: static;
	}

	/* Viele Positionen: Liste scrollt, Summen und Button bleiben im Blick */
	body.leo-design .leo-checkout__summary:not(.leo-nosticky) table.woocommerce-checkout-review-order-table tbody {
		flex-wrap: nowrap;
		max-height: 312px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

/* ==========================================================================
   4a. Schrittleiste Warenkorb → Kasse → Bestellung abgeschlossen (ab 1.2.1)
   Ersetzt Woodmarts Schrittleiste im dunklen Seitentitel.
   ========================================================================== */
body.leo-steps-on .page-title,
body.leo-steps-on .wd-page-title {
	display: none !important;
}

.leo-steps {
	margin: 0 0 20px;
	font-family: var(--leo-font);
}

.leo-steps .leo-steps__list {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-sand);
	list-style: none;
}

.leo-steps .leo-steps__item {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--leo-muted);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

/* Verbindungslinie zwischen den Schritten */
.leo-steps .leo-steps__item + .leo-steps__item {
	flex: 1 1 auto;
}

.leo-steps .leo-steps__item + .leo-steps__item::before {
	content: "";
	flex: 1 1 12px;
	min-width: 12px;
	height: 2px;
	border-radius: 2px;
	background: var(--leo-line);
}

.leo-steps .leo-steps__item.is-done + .leo-steps__item::before {
	background: var(--leo-accent);
}

.leo-steps .leo-steps__inner {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: var(--leo-touch);
	color: inherit;
	text-decoration: none;
}

.leo-steps a.leo-steps__inner:hover .leo-steps__label {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.leo-steps__num {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	border: 1px solid var(--leo-field-line);
	border-radius: 50%;
	background: #fff;
	color: var(--leo-muted);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.leo-steps__item.is-done {
	color: var(--leo-text);
}

.leo-steps__item.is-done .leo-steps__num {
	border-color: var(--leo-accent);
	color: var(--leo-text);
}

.leo-steps__item.is-current {
	color: var(--leo-text);
	font-weight: 600;
}

.leo-steps__item.is-current .leo-steps__num {
	border-color: var(--leo-text);
	background: var(--leo-text);
	color: #fff;
}

/* Handy: nur der aktuelle Schritt mit Text, die anderen als Zahl */
@media (max-width: 767px) {
	.leo-steps .leo-steps__item:not(.is-current) .leo-steps__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.leo-steps .leo-steps__item:not(.is-current) .leo-steps__inner {
		justify-content: center;
		min-width: var(--leo-touch);
	}

	.leo-steps .leo-steps__item.is-current .leo-steps__label {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.leo-steps .leo-steps__item.is-current,
	.leo-steps .leo-steps__item.is-current .leo-steps__inner {
		min-width: 0;
		flex-shrink: 1;
	}
}

@media (min-width: 768px) {
	.leo-steps {
		margin-bottom: 28px;
	}

	.leo-steps .leo-steps__list {
		gap: 14px;
		padding: 6px 20px;
	}

	.leo-steps .leo-steps__item {
		font-size: 15px;
	}

	.leo-steps .leo-steps__item + .leo-steps__item::before {
		flex-basis: 32px;
	}
}

/* ==========================================================================
   5. Bestellbestätigung und „Bestellung ansehen“
   ========================================================================== */
body.leo-design .woocommerce-order,
body.leo-design .woocommerce-MyAccount-content {
	color: var(--leo-body);
	font-family: var(--leo-font);
}

body.leo-design .woocommerce-order h2,
body.leo-design .woocommerce-MyAccount-content h2,
body.leo-design .woocommerce-MyAccount-content h3 {
	margin: 24px 0 12px;
	color: var(--leo-text);
	font-family: var(--leo-font-head);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

body.leo-design .woocommerce-order ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	margin: 0 0 24px;
	padding: 4px 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-sand);
	list-style: none;
}

body.leo-design .woocommerce-order ul.woocommerce-order-overview li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 12px;
	float: none;
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--leo-line);
	color: var(--leo-body);
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
}

body.leo-design .woocommerce-order ul.woocommerce-order-overview li:last-child {
	border-bottom: 0;
}

body.leo-design .woocommerce-order ul.woocommerce-order-overview li strong {
	display: inline;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

body.leo-design table.woocommerce-table--order-details,
body.leo-design table.leo-b2b-order-info__table {
	width: 100%;
	margin: 0 0 24px;
	border: 1px solid var(--leo-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--leo-radius);
	overflow: hidden;
	font-family: var(--leo-font);
}

body.leo-design table.woocommerce-table--order-details th,
body.leo-design table.woocommerce-table--order-details td,
body.leo-design table.leo-b2b-order-info__table th,
body.leo-design table.leo-b2b-order-info__table td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--leo-line);
	color: var(--leo-text);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

body.leo-design table.woocommerce-table--order-details thead th,
body.leo-design table.leo-b2b-order-info__table th {
	background: var(--leo-sand);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

body.leo-design table.woocommerce-table--order-details td:last-child,
body.leo-design table.woocommerce-table--order-details th:last-child {
	text-align: right;
}

body.leo-design table.woocommerce-table--order-details tr:last-child th,
body.leo-design table.woocommerce-table--order-details tr:last-child td,
body.leo-design table.leo-b2b-order-info__table tr:last-child th,
body.leo-design table.leo-b2b-order-info__table tr:last-child td {
	border-bottom: 0;
}

body.leo-design table.woocommerce-table--order-details tfoot tr:last-child th,
body.leo-design table.woocommerce-table--order-details tfoot tr:last-child td {
	border-top: 2px solid var(--leo-text);
	font-size: 16px;
	font-weight: 700;
}

body.leo-design table.leo-b2b-order-info__table th {
	width: 45%;
}

body.leo-design .woocommerce-customer-details address {
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-sand);
	color: var(--leo-text);
	font-size: 14px;
	font-style: normal;
	line-height: 1.55;
}

/* ==========================================================================
   6. Mein Konto
   ========================================================================== */
body.leo-design .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

body.leo-design .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

body.leo-design .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: var(--leo-touch);
	padding: 8px 14px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius-sm);
	background: #fff;
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

body.leo-design .woocommerce-MyAccount-navigation li a:hover {
	border-color: var(--leo-accent);
}

body.leo-design .woocommerce-MyAccount-navigation li.is-active a {
	border-color: var(--leo-text);
	background: var(--leo-text);
	color: #fff;
	font-weight: 600;
}

@media (min-width: 1025px) {
	body.leo-design .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 4px;
	}

	body.leo-design .woocommerce-MyAccount-navigation li a {
		border-color: transparent;
	}

	body.leo-design .woocommerce-MyAccount-navigation li.is-active a {
		border-color: var(--leo-line);
		background: var(--leo-sand);
		box-shadow: inset 3px 0 0 var(--leo-accent);
		color: var(--leo-text);
	}
}

/* Dashboard */
.leo-account {
	font-family: var(--leo-font);
}

.leo-account .leo-account__hello {
	margin: 0 0 16px;
	color: var(--leo-body);
	font-size: 15px;
	line-height: 1.5;
}

.leo-account .leo-account__hello strong {
	color: var(--leo-text);
}

.leo-account .leo-account__hello a {
	color: var(--leo-price);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.leo-account__tiles {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.leo-account-tile {
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.leo-account-tile .leo-account-tile__link {
	display: flex;
	align-items: center;
	gap: 14px;
	box-sizing: border-box;
	height: 100%;
	min-height: 76px;
	padding: 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-card);
	color: var(--leo-text);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.leo-account-tile .leo-account-tile__link:hover,
.leo-account-tile .leo-account-tile__link:focus-visible {
	border-color: var(--leo-accent);
	box-shadow: var(--leo-shadow);
	color: var(--leo-text);
}

.leo-account-tile__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--leo-sand);
	color: var(--leo-text);
}

.leo-account-tile__body {
	display: block;
	min-width: 0;
}

.leo-account-tile__title {
	display: block;
	font-family: var(--leo-font-head);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.leo-account-tile__text {
	display: block;
	margin-top: 2px;
	color: var(--leo-muted);
	font-size: 13px;
	line-height: 1.4;
}

/* Woodmarts eigene Dashboard-Kacheln wären doppelt */
body.leo-design .woocommerce-MyAccount-content .wd-my-account-links {
	display: none !important;
}

@media (min-width: 768px) {
	.leo-account__tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.leo-account-tile .leo-account-tile__link {
		flex-direction: column;
		align-items: flex-start;
		padding: 20px;
	}
}

/* Bestellliste: Handy als Karten, ab 768px als Tabelle */
body.leo-design table.woocommerce-orders-table {
	display: block;
	width: 100%;
	margin: 0 0 24px;
	border: 0;
	background: none;
	font-family: var(--leo-font);
}

body.leo-design table.woocommerce-orders-table thead {
	display: none;
}

body.leo-design table.woocommerce-orders-table tbody {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

body.leo-design table.woocommerce-orders-table tbody tr {
	display: block;
	box-sizing: border-box;
	padding: 4px 14px 14px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-card);
}

body.leo-design table.woocommerce-orders-table tbody th,
body.leo-design table.woocommerce-orders-table tbody td {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: auto;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--leo-line);
	background: none;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	text-align: right;
}

body.leo-design table.woocommerce-orders-table tbody th::before,
body.leo-design table.woocommerce-orders-table tbody td::before {
	content: attr(data-title);
	float: none;
	color: var(--leo-body);
	font-weight: 600;
	text-align: left;
}

body.leo-design table.woocommerce-orders-table tbody th a,
body.leo-design table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
	display: inline-flex;
	align-items: center;
	min-height: var(--leo-touch);
	margin: -10px 0;
	color: var(--leo-price);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.leo-design table.woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
	font-weight: 600;
}

body.leo-design table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: stretch;
	gap: 8px;
	padding: 14px 0 0;
	border-bottom: 0;
}

body.leo-design table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions::before {
	content: none;
}

body.leo-design table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button {
	flex: 1 1 120px;
	margin: 0;
}

@media (min-width: 768px) {
	body.leo-design table.woocommerce-orders-table {
		display: table;
		border: 1px solid var(--leo-line);
		border-collapse: separate;
		border-spacing: 0;
		border-radius: var(--leo-radius);
		overflow: hidden;
	}

	body.leo-design table.woocommerce-orders-table thead {
		display: table-header-group;
	}

	body.leo-design table.woocommerce-orders-table tbody {
		display: table-row-group;
	}

	body.leo-design table.woocommerce-orders-table tbody tr {
		display: table-row;
		padding: 0;
		border: 0;
		border-radius: 0;
	}

	body.leo-design table.woocommerce-orders-table thead th {
		padding: 12px 14px;
		border: 0;
		border-bottom: 1px solid var(--leo-line);
		background: var(--leo-sand);
		color: var(--leo-text);
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0;
		text-align: left;
		text-transform: none;
	}

	body.leo-design table.woocommerce-orders-table tbody th,
	body.leo-design table.woocommerce-orders-table tbody td {
		display: table-cell;
		padding: 12px 14px;
		text-align: left;
		vertical-align: middle;
	}

	body.leo-design table.woocommerce-orders-table tbody th::before,
	body.leo-design table.woocommerce-orders-table tbody td::before {
		content: none;
	}

	body.leo-design table.woocommerce-orders-table tbody tr:last-child th,
	body.leo-design table.woocommerce-orders-table tbody tr:last-child td {
		border-bottom: 0;
	}

	body.leo-design table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
		display: table-cell;
		padding: 8px 14px;
		border-bottom: 1px solid var(--leo-line);
		text-align: right;
		white-space: nowrap;
	}

	body.leo-design table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions .button {
		margin: 2px 0 2px 6px;
	}
}

/* Adressen im Konto */
body.leo-design .woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

body.leo-design .woocommerce-MyAccount-content .woocommerce-Addresses::before,
body.leo-design .woocommerce-MyAccount-content .woocommerce-Addresses::after {
	content: none;
}

body.leo-design .woocommerce-MyAccount-content .woocommerce-Address {
	float: none;
	width: auto;
	max-width: none;
	box-sizing: border-box;
	padding: 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-card);
}

body.leo-design .woocommerce-MyAccount-content .woocommerce-Address-title h2,
body.leo-design .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	margin: 0 0 8px;
}

body.leo-design .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	display: inline-flex;
	align-items: center;
	min-height: var(--leo-touch);
	color: var(--leo-price);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.leo-design .woocommerce-MyAccount-content address {
	color: var(--leo-text);
	font-size: 14px;
	font-style: normal;
	line-height: 1.55;
}

@media (min-width: 768px) {
	body.leo-design .woocommerce-MyAccount-content .woocommerce-Addresses {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Anmelden und Registrieren */
body.leo-design.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	width: auto;
	margin: 0;
}

body.leo-design.woocommerce-account #customer_login::before,
body.leo-design.woocommerce-account #customer_login::after {
	content: none;
}

body.leo-design.woocommerce-account #customer_login > div {
	float: none;
	width: auto;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 0;
}

body.leo-design.woocommerce-account form.woocommerce-form-login,
body.leo-design.woocommerce-account form.woocommerce-form-register,
body.leo-design.woocommerce-account form.woocommerce-ResetPassword {
	box-sizing: border-box;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-card);
	font-family: var(--leo-font);
}

body.leo-design.woocommerce-account #customer_login h2,
body.leo-design.woocommerce-account .wd-login-title {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--leo-text);
	font-family: var(--leo-font-head);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

body.leo-design.woocommerce-account .woocommerce-form-login__submit,
body.leo-design.woocommerce-account .woocommerce-form-register__submit {
	display: flex;
	float: none;
	width: 100%;
	min-height: 48px;
	margin: 4px 0 0;
}

body.leo-design.woocommerce-account .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: var(--leo-touch);
	margin: 0 0 8px;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 500;
}

body.leo-design.woocommerce-account .lost_password,
body.leo-design.woocommerce-account .woocommerce-LostPassword {
	margin: 4px 0 0;
}

body.leo-design.woocommerce-account .lost_password a,
body.leo-design.woocommerce-account .woocommerce-LostPassword a {
	display: inline-flex;
	align-items: center;
	min-height: var(--leo-touch);
	color: var(--leo-price);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.leo-design.woocommerce-account .woocommerce-privacy-policy-text,
body.leo-design.woocommerce-account form.woocommerce-form-register > p:not(.form-row) {
	color: var(--leo-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* Passwort anzeigen: Touch-Ziel 44px */
body.leo-design .woocommerce form .password-input {
	position: relative;
	display: block;
}

body.leo-design .woocommerce form .show-password-input {
	position: absolute;
	top: 2px;
	right: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--leo-touch);
	height: var(--leo-touch);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--leo-muted);
}

@media (min-width: 768px) {
	body.leo-design.woocommerce-account #customer_login.u-columns,
	body.leo-design.woocommerce-account #customer_login.col2-set {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	body.leo-design.woocommerce-account form.woocommerce-form-login,
	body.leo-design.woocommerce-account form.woocommerce-form-register,
	body.leo-design.woocommerce-account form.woocommerce-ResetPassword {
		padding: 24px;
	}
}

/* ==========================================================================
   7. Kauf auf Rechnung (Leo B2B ab 1.7.0)
   Antragsformular [leo_rechnungskauf_antrag], Hinweis in der Kasse,
   Box im Kundenkonto, Zahlungshinweis auf der Bestellbestätigung.
   ========================================================================== */

/* Vorteilsleiste über dem Formular */
.leo-apply {
	max-width: 860px;
	font-family: var(--leo-font);
}

.leo-apply-benefits {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-sand);
	list-style: none;
}

.leo-apply-benefits .leo-apply-benefits__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.leo-apply-benefits__check {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--leo-ok);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

/* Formular als Karte, Felder im Raster */
body.leo-design .leo-b2b-apply__form {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 16px;
	box-sizing: border-box;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-card);
	font-family: var(--leo-font);
}

body.leo-design .leo-b2b-apply__form > * {
	grid-column: 1 / -1;
	min-width: 0;
}

body.leo-design .leo-b2b-apply__form .leo-apply-heading {
	margin: 20px 0 14px;
	padding: 20px 0 0;
	border: 0;
	border-top: 1px solid var(--leo-line);
	color: var(--leo-text);
	font-family: var(--leo-font-head);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

body.leo-design .leo-b2b-apply__form .leo-apply-heading:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row {
	margin: 0 0 14px;
	padding: 0;
}

body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row > label {
	display: block;
	margin: 0 0 6px;
	color: var(--leo-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

body.leo-design .leo-b2b-apply__form .required {
	color: var(--leo-error);
	font-weight: 600;
	text-decoration: none;
}

body.leo-design .leo-b2b-apply__form input.input-text,
body.leo-design .leo-b2b-apply__form select {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--leo-field-line);
	border-radius: var(--leo-radius-sm);
	background-color: #fff;
	box-shadow: none;
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 16px;
	line-height: 1.4;
}

body.leo-design .leo-b2b-apply__form input.input-text[readonly] {
	background-color: var(--leo-sand);
	color: var(--leo-body);
}

body.leo-design .leo-b2b-apply__form input.input-text:focus,
body.leo-design .leo-b2b-apply__form select:focus {
	border-color: var(--leo-accent);
	outline: 2px solid var(--leo-accent);
	outline-offset: 1px;
}

/* Fehler am Feld */
body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row.has-error > label {
	border: 0;
	color: var(--leo-error);
}

body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row.has-error input.input-text,
body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row.has-error select {
	border-color: var(--leo-error);
	box-shadow: 0 0 0 1px var(--leo-error);
	color: var(--leo-text);
}

body.leo-design .leo-b2b-apply .leo-b2b-apply__errors {
	margin: 0 0 16px;
}

body.leo-design .leo-b2b-apply .leo-b2b-apply__errors li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Bestätigung „Unternehmer“ */
body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--b2b {
	margin-top: 4px;
}

body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--b2b > label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	box-sizing: border-box;
	min-height: var(--leo-touch);
	margin: 0;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	cursor: pointer;
}

body.leo-design .leo-b2b-apply__form input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--leo-btn);
}

/* Absenden */
body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--submit {
	margin: 8px 0 0;
}

body.leo-design .leo-b2b-apply__form #leo-apply-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 10px 24px;
	border: 1px solid var(--leo-btn);
	border-radius: var(--leo-radius);
	background: var(--leo-btn);
	box-shadow: none;
	color: #fff;
	font-family: var(--leo-font);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: none;
	cursor: pointer;
}

body.leo-design .leo-b2b-apply__form #leo-apply-submit:hover {
	border-color: var(--leo-btn-hover);
	background: var(--leo-btn-hover);
	color: #fff;
}

body.leo-design .leo-b2b-apply__form .leo-b2b-apply__note {
	margin: 12px 0 0;
	color: var(--leo-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* Meldungen: Erfolg grün, sonst Sand */
body.leo-design .leo-b2b-apply__message {
	box-sizing: border-box;
	margin: 0 0 16px;
	padding: 16px 18px;
	border: 1px solid var(--leo-line);
	border-left: 4px solid var(--leo-accent);
	border-radius: var(--leo-radius);
	background: var(--leo-sand);
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 15px;
	line-height: 1.5;
}

body.leo-design .leo-b2b-apply__message--success {
	border-color: #cfe5d6;
	border-left-color: var(--leo-ok);
	background: #eef6f0;
	color: #17402a;
}

@media (min-width: 600px) {
	.leo-apply-benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
		padding: 16px 20px;
	}

	body.leo-design .leo-b2b-apply__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 24px;
	}

	/* Nebeneinander: Vor-/Nachname, E-Mail/Telefon, PLZ/Ort, USt-IdNr./Branche */
	body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--first_name,
	body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--email,
	body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--postcode,
	body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--vat_id {
		grid-column: 1;
	}

	body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--last_name,
	body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--phone,
	body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--city,
	body.leo-design .leo-b2b-apply__form .leo-b2b-apply__row--industry {
		grid-column: 2;
	}

	body.leo-design .leo-b2b-apply__form #leo-apply-submit {
		width: auto;
		min-width: 260px;
	}
}

/* Hinweis in der Kasse: dezenter Sand-Kasten mit Akzentkante, Link als Textlink */
body.leo-design .leo-b2b-invoice-hint {
	box-sizing: border-box;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid var(--leo-line);
	border-left: 4px solid var(--leo-accent);
	border-radius: var(--leo-radius-sm);
	background: var(--leo-sand);
	color: var(--leo-text);
	font-family: var(--leo-font);
	font-size: 14px;
	line-height: 1.45;
}

body.leo-design .leo-b2b-invoice-hint a,
body.leo-design .leo-b2b-invoice-account a {
	color: var(--leo-price);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Link im Hinweis: Touch-Ziel 44px, ohne den Kasten höher zu machen */
body.leo-design .leo-b2b-invoice-hint a {
	display: inline-block;
	margin: -12px 0;
	padding: 12px 0;
}

body.leo-design .leo-b2b-invoice-hint--overdue {
	border-left-color: var(--leo-error);
}

/* Mein Konto: Box „Kauf auf Rechnung“ als Kachel */
body.leo-design .leo-b2b-invoice-account {
	box-sizing: border-box;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid var(--leo-line);
	border-radius: var(--leo-radius);
	background: var(--leo-card);
	color: var(--leo-text);
	font-family: var(--leo-font);
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__title {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var(--leo-text);
	font-family: var(--leo-font-head);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__text {
	margin: 0;
	color: var(--leo-body);
	font-size: 14px;
	line-height: 1.5;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__text a {
	display: inline-block;
	padding: 12px 0;
	margin: -12px 0;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0;
	margin: 0;
	padding: 0;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list dd {
	padding-left: 16px;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list dt,
body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list dd {
	margin: 0;
	padding: 9px 0;
	border-top: 1px solid var(--leo-line);
	font-size: 14px;
	line-height: 1.45;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list dt {
	color: var(--leo-body);
	font-weight: 400;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list dd {
	color: var(--leo-text);
	font-weight: 600;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list dt:first-of-type,
body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list dd:first-of-type {
	padding-top: 0;
	border-top: 0;
}

/* Status als Etikett: beantragt = Gold, freigeschaltet = Grün, abgelehnt = Grau */
body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list dd:first-of-type {
	justify-self: end;
	align-self: start;
	padding: 3px 12px;
	border-radius: 999px;
	background: #eef0f1;
	color: #3d4a4f;
	font-size: 13px;
	line-height: 1.5;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__list dt:first-of-type {
	padding-bottom: 12px;
}

body.leo-design .leo-b2b-invoice-account--pending .leo-b2b-invoice-account__list dd:first-of-type {
	background: var(--leo-gold);
	color: var(--leo-text);
}

body.leo-design .leo-b2b-invoice-account--approved .leo-b2b-invoice-account__list dd:first-of-type {
	background: #dcefe3;
	color: #17402a;
}

body.leo-design .leo-b2b-invoice-account .leo-b2b-invoice-account__warning {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-left: 4px solid var(--leo-error);
	border-radius: var(--leo-radius-sm);
	background: #fdeceb;
	color: #5f1410;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

@media (min-width: 768px) {
	body.leo-design .leo-b2b-invoice-account {
		max-width: 460px;
		padding: 20px;
	}
}

/* Zahlungshinweis auf der Bestellbestätigung */
body.leo-design .leo-b2b-invoice-payment {
	box-sizing: border-box;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid var(--leo-line);
	border-left: 4px solid var(--leo-accent);
	border-radius: var(--leo-radius);
	background: var(--leo-sand);
	color: var(--leo-text);
	font-family: var(--leo-font);
}

body.leo-design .leo-b2b-invoice-payment h2 {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: var(--leo-text);
	font-family: var(--leo-font-head);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

body.leo-design .leo-b2b-invoice-payment p {
	margin: 0 0 12px;
	color: var(--leo-text);
	font-size: 15px;
	line-height: 1.5;
}

body.leo-design .leo-b2b-invoice-payment ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.leo-design .leo-b2b-invoice-payment li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 16px;
	margin: 0;
	padding: 9px 0;
	border-top: 1px solid var(--leo-line);
	list-style: none;
	color: var(--leo-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

body.leo-design .leo-b2b-invoice-payment li strong {
	flex: none;
	color: var(--leo-body);
	font-size: 14px;
	font-weight: 400;
}

@media (min-width: 768px) {
	body.leo-design .leo-b2b-invoice-payment {
		max-width: 620px;
		padding: 20px 24px;
	}
}
