/**
 * „Mein Konto“ (Zelenka 2026): Navigation, Übersicht, Bestellungen, Bestellansicht, Adressen, Formulare.
 *
 * Markup: woocommerce/myaccount/{navigation,dashboard,orders,view-order,my-address}.php und
 * template-parts/account/*.php; Daten und Texte aus dem Plugin (includes/shop/account.php, tracking.php).
 * Geladen nur auf Kontoseiten (inc/assets.php). Formensprache wie die Danke-Seite: weiße Karten mit
 * 1-px-Linie, Papier-Flächen, schwarze Kreise mit Symbol, Display-Schrift in Versalien, eckige Buttons.
 * Formularfelder, Hinweise und die Anmeldung: shop.css.
 *
 * Gewichte: Display-Schrift über Tokens (Überschriften --zel-fw-heading, Kartentitel --zel-fw-card, Menü 500);
 * fett gesetzter Roboto-Text bleibt 700 wie strong in base.css und auf der Danke-Seite (Roboto hat keinen 600er).
 */

/* ------------------------------------------------------------------ */
/* Aufbau: unter 992 px Leiste über dem Inhalt, darüber Karte links     */
/* ------------------------------------------------------------------ */

.woocommerce-account .zel-content > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.75rem;
	max-width: var(--zel-wide);
	color: var(--zel-anthrazit);
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

@media (min-width: 992px) {
	.woocommerce-account .zel-content > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: 17.5rem minmax(0, 1fr);
		gap: clamp(2.5rem, 4.5vw, 4.5rem);
		align-items: start;
	}
}

.woocommerce-MyAccount-content {
	min-width: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.woocommerce-MyAccount-content a:not([class]) {
	color: var(--zel-braun);
}

/* Überschriften im Inhalt (Seitentitel oben: page.php) */
.woocommerce-MyAccount-content :where(h2, h3, h4),
.woocommerce-MyAccount-content .zel-account-h2 {
	margin: 0 0 1rem;
	color: var(--zel-anthrazit);
	font-family: var(--zel-font-display);
	font-size: 1.75rem;
	font-weight: var(--zel-fw-heading);
	line-height: 1.1;
	letter-spacing: var(--zel-ls-heading);
	text-transform: uppercase;
}

/* Abgemeldet: Überschriften „Anmelden“ und „Neues Kundenkonto anlegen“ (Formulare selbst: shop.css) */
.woocommerce-account #customer_login h2 {
	margin-top: 0;
	color: var(--zel-anthrazit);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

/* ------------------------------------------------------------------ */
/* Navigation                                                          */
/* ------------------------------------------------------------------ */

.zel-account-nav {
	min-width: 0;
}

.zel-account-nav__person {
	display: none;
}

.zel-account-nav__list {
	position: relative;
	display: flex;
	gap: 0.5rem;
	margin: 0 calc(var(--zel-gutter) * -1);
	padding: 0.25rem var(--zel-gutter);
	overflow-x: auto;
	list-style: none;
	scroll-padding-inline: var(--zel-gutter);
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.zel-account-nav__list::-webkit-scrollbar {
	display: none;
}

/* Weich ausblenden, wo es weitergeht (Klassen: assets/js/account.js) */
.zel-account-nav__list.is-scrollable:not(.is-end) {
	-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
	mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent);
}

.zel-account-nav__list.is-scrollable:not(.is-start) {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 3rem);
	mask-image: linear-gradient(to right, transparent, #000 3rem);
}

.zel-account-nav__list.is-scrollable:not(.is-start):not(.is-end) {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
	mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}

.zel-account-nav__list li {
	flex: 0 0 auto;
	margin: 0;
	scroll-snap-align: start;
}

.zel-account-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--zel-hellgrau);
	background: var(--zel-weiss);
	color: var(--zel-anthrazit);
	font-family: var(--zel-font-display);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.zel-account-nav__list a:hover {
	border-color: var(--zel-anthrazit);
	color: var(--zel-schwarz);
}

.zel-account-nav__list .is-active a {
	border-color: var(--zel-schwarz);
	background: var(--zel-schwarz);
	color: var(--zel-weiss);
	font-weight: var(--zel-fw-heading);
}

.zel-account-nav__icon {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
}

@media (min-width: 992px) {
	.zel-account-nav {
		position: sticky;
		top: 2rem;
		border: 1px solid var(--zel-hellgrau);
		background: var(--zel-weiss);
	}

	.zel-account-nav__person {
		display: flex;
		align-items: center;
		gap: 0.875rem;
		padding: 1.5rem 1.25rem;
		border-bottom: 1px solid var(--zel-hellgrau);
		background: var(--zel-papier);
	}

	.zel-account-nav__avatar {
		display: inline-flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 3.25rem;
		height: 3.25rem;
		border-radius: 50%;
		background: var(--zel-schwarz);
		color: var(--zel-weiss);
		font-family: var(--zel-font-display);
		font-size: 1.375rem;
		font-weight: var(--zel-fw-heading);
		letter-spacing: 0.02em;
	}

	.zel-account-nav__avatar .zel-icon {
		width: 1.5rem;
		height: 1.5rem;
	}

	.zel-account-nav__who {
		display: flex;
		flex-direction: column;
		gap: 0.125rem;
		min-width: 0;
	}

	.zel-account-nav__name {
		color: var(--zel-schwarz);
		font-family: var(--zel-font-display);
		font-size: 1.375rem;
		font-weight: var(--zel-fw-heading);
		line-height: 1.1;
		text-transform: uppercase;
		overflow-wrap: anywhere;
	}

	.zel-account-nav__mail {
		color: var(--zel-dunkelgrau);
		font-size: 0.8125rem;
		line-height: 1.4;
		overflow-wrap: anywhere;
	}

	.zel-account-nav__list {
		display: block;
		margin: 0;
		padding: 0.625rem;
		overflow: visible;
	}

	.zel-account-nav__list li + li {
		margin-top: 0.125rem;
	}

	.zel-account-nav__list a {
		display: flex;
		gap: 0.875rem;
		width: 100%;
		min-height: 3rem;
		padding: 0.625rem 0.875rem;
		border: 0;
		background: transparent;
		font-size: 1.25rem;
		white-space: normal;
	}

	.zel-account-nav__list a:hover {
		background: var(--zel-papier);
	}

	.zel-account-nav__list .is-active a,
	.zel-account-nav__list .is-active a:hover {
		background: var(--zel-schwarz);
		color: var(--zel-weiss);
	}

	.zel-account-nav__list .woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 0.625rem;
		padding-top: 0.625rem;
		border-top: 1px solid var(--zel-hellgrau);
	}

	.zel-account-nav__list .woocommerce-MyAccount-navigation-link--customer-logout a {
		color: var(--zel-dunkelgrau);
	}
}

/* ------------------------------------------------------------------ */
/* Bausteine: Status, Vorschaubild, Kreis mit Symbol, Buttons          */
/* ------------------------------------------------------------------ */

:is(.zel-status, .zel-order-status, .zel-order-card) {
	--zel-tone: var(--zel-anthrazit);
}

:is(.zel-status--wait, .zel-order-status--wait, .zel-order-card--wait) {
	--zel-tone: var(--zel-braun);
}

:is(.zel-status--done, .zel-order-status--done, .zel-order-card--done) {
	--zel-tone: var(--zel-gruen);
}

:is(.zel-status--muted, .zel-order-status--muted, .zel-order-card--muted) {
	--zel-tone: var(--zel-sand);
}

:is(.zel-status--error, .zel-order-status--error, .zel-order-card--error) {
	--zel-tone: var(--zel-rot);
}

.zel-status {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.3125rem 0.875rem 0.3125rem 0.75rem;
	border: 1px solid var(--zel-hellgrau);
	border-radius: 999px;
	background: var(--zel-weiss);
	color: var(--zel-anthrazit);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	white-space: nowrap;
}

.zel-status::before {
	content: "";
	flex: none;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	background: var(--zel-tone);
}

.zel-status--muted {
	color: var(--zel-dunkelgrau);
}

.zel-status--error {
	color: var(--zel-rot);
}

.zel-thumb {
	position: relative;
	flex: none;
	width: 3.5rem;
	height: 3.5rem;
	margin: 0;
	background: var(--zel-papier);
}

.zel-thumb img,
.zel-thumb .zel-thumb__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zel-thumb__qty {
	position: absolute;
	top: -0.4375rem;
	right: -0.4375rem;
	min-width: 1.375rem;
	height: 1.375rem;
	padding: 0 0.3125rem;
	border: 2px solid var(--zel-weiss);
	border-radius: 999px;
	background: var(--zel-schwarz);
	color: var(--zel-weiss);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.125rem;
	text-align: center;
}

.zel-thumb--more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--zel-anthrazit);
	font-family: var(--zel-font-display);
	font-size: 1.25rem;
	font-weight: var(--zel-fw-heading);
}

/* Schwarzer Kreis mit weißem Symbol (wie „So geht es weiter“ auf der Danke-Seite) */
.zel-account-tile__icon,
.zel-address-card__icon,
.zel-tracking__icon,
.zel-account-empty__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--zel-schwarz);
	color: var(--zel-weiss);
}

.zel-account-tile__icon .zel-icon,
.zel-address-card__icon .zel-icon,
.zel-tracking__icon .zel-icon,
.zel-account-empty__icon .zel-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* Kleine eckige Buttons im Konto (Aktionen, Bearbeiten, Blättern) */
.woocommerce-account .woocommerce a.zel-order-card__action,
.woocommerce-account .woocommerce .zel-order-view__details a.button,
.woocommerce-account .woocommerce .zel-btn.zel-address-card__edit,
.woocommerce-account .woocommerce .zel-account-pagination .zel-btn {
	min-height: 2.75rem;
	margin: 0;
	padding: 0.5rem 1rem;
	border: 2px solid var(--zel-schwarz);
	background: transparent;
	color: var(--zel-schwarz);
	font-size: 1rem;
	font-weight: var(--zel-fw-heading);
	letter-spacing: 0.02em;
	/* Kein Umbruch mitten im Wort (layout.css: „.zel-content a“ mit anywhere) – sonst in WebKit bei 320 px
	   „WIDERRUFE/N“ in der Bestellansicht (Paket 20, W1). */
	overflow-wrap: normal;
}

.woocommerce-account .woocommerce a.zel-order-card__action:hover,
.woocommerce-account .woocommerce .zel-order-view__details a.button:hover,
.woocommerce-account .woocommerce .zel-btn.zel-address-card__edit:hover,
.woocommerce-account .woocommerce .zel-account-pagination .zel-btn:hover {
	background: var(--zel-papier);
	color: var(--zel-schwarz);
}

.woocommerce-account .woocommerce a.zel-order-card__action.is-primary {
	background: var(--zel-schwarz);
	color: var(--zel-weiss);
}

.woocommerce-account .woocommerce a.zel-order-card__action.is-primary:hover {
	border-color: var(--zel-anthrazit);
	background: var(--zel-anthrazit);
	color: var(--zel-weiss);
}

.zel-address-card__edit .zel-icon {
	width: 1rem;
	height: 1rem;
}

/* ------------------------------------------------------------------ */
/* Übersicht                                                           */
/* ------------------------------------------------------------------ */

.zel-account-dash {
	display: grid;
	gap: clamp(2rem, 4vw, 2.75rem);
}

.zel-account-hello__title.zel-account-hello__title {
	margin: 0 0 0.5rem;
	color: var(--zel-anthrazit);
	font-size: clamp(2.25rem, 4vw, 3rem);
	line-height: 1.05;
}

.zel-account-hello__text {
	max-width: 38rem;
	margin: 0;
	color: var(--zel-dunkelgrau);
	font-size: 1.0625rem;
}

.zel-account-section {
	display: grid;
	gap: 1rem;
}

.zel-account-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.woocommerce-MyAccount-content .zel-account-section__title {
	margin: 0;
	font-size: 1.5rem;
}

.zel-account-more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--zel-schwarz);
	font-size: 0.9375rem;
	font-weight: 500;
}

.zel-account-more .zel-icon {
	width: 1rem;
	height: 1rem;
}

.zel-account-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zel-account-tiles li {
	margin: 0;
}

.zel-account-tile {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	height: 100%;
	padding: 1.25rem;
	border: 1px solid var(--zel-hellgrau);
	background: var(--zel-weiss);
	color: var(--zel-anthrazit);
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.zel-account-tile:hover {
	border-color: var(--zel-anthrazit);
	background: var(--zel-papier);
	text-decoration: none;
}

.zel-account-tile__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.zel-account-tile__title {
	color: var(--zel-schwarz);
	font-family: var(--zel-font-display);
	font-size: 1.375rem;
	font-weight: var(--zel-fw-card);
	line-height: 1.1;
	text-transform: uppercase;
}

.zel-account-tile__text {
	color: var(--zel-dunkelgrau);
	font-size: 0.875rem;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.zel-account-tile__arrow {
	display: inline-flex;
	color: var(--zel-schwarz);
	transition: transform 0.2s ease;
}

.zel-account-tile__arrow .zel-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.zel-account-tile:hover .zel-account-tile__arrow {
	transform: translateX(0.25rem);
}

/* Hinweis „Vertrag widerrufen“ (Plugin, woocommerce_account_dashboard): Button hervorgehoben wie im Fußbereich,
   nur dunkel auf Weiß (layout.css setzt .zel-withdraw-link weiß für den Fußbereich) */
.zel-account-dash .zel-account-withdraw {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin: 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--zel-hellgrau);
	color: var(--zel-dunkelgrau);
	font-size: 0.9375rem;
}

.zel-account-withdraw .zel-withdraw-link--light {
	min-height: 2.75rem;
	border-color: var(--zel-schwarz);
	color: var(--zel-schwarz);
	text-decoration: none;
}

.zel-account-withdraw .zel-withdraw-link--light:hover {
	background: var(--zel-papier);
}

/* Leer: noch keine Bestellung */
.zel-account-empty {
	display: grid;
	justify-items: start;
	gap: 1rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--zel-papier);
}

.zel-account-empty__text {
	max-width: 34rem;
	margin: 0;
	font-size: 1.0625rem;
}

/* ------------------------------------------------------------------ */
/* Bestellungen: Karten                                                */
/* ------------------------------------------------------------------ */

.zel-orders {
	display: grid;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zel-orders__item {
	margin: 0;
}

.zel-order-card {
	display: grid;
	gap: 0.875rem;
	padding: clamp(1.125rem, 2.5vw, 1.5rem);
	border: 1px solid var(--zel-hellgrau);
	border-left: 4px solid var(--zel-tone);
	background: var(--zel-weiss);
	transition: border-color 0.2s ease;
}

.zel-order-card:hover {
	border-top-color: var(--zel-anthrazit);
	border-right-color: var(--zel-anthrazit);
	border-bottom-color: var(--zel-anthrazit);
}

.zel-order-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.woocommerce-MyAccount-content .zel-order-card__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: var(--zel-fw-card);
}

.zel-order-card__link {
	color: inherit;
	text-decoration: none;
}

.zel-order-card__link:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.zel-order-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0;
	color: var(--zel-dunkelgrau);
	font-size: 0.9375rem;
}

.zel-order-card__total {
	color: var(--zel-schwarz);
}

.zel-order-card__extra {
	margin: 0;
	font-size: 0.875rem;
}

.zel-order-card__extra-label {
	color: var(--zel-dunkelgrau);
}

.zel-order-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.zel-order-card__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0.4375rem 0.4375rem 0 0;
	list-style: none;
}

.zel-order-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-left: auto;
}

@media (max-width: 575.98px) {
	.zel-order-card__actions {
		width: 100%;
		margin-left: 0;
	}

	.woocommerce-account .woocommerce a.zel-order-card__action {
		flex: 1 1 auto;
	}
}

.zel-account-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* ------------------------------------------------------------------ */
/* Fortschritt: Bestellt → Bezahlt → In Bearbeitung → Versendet        */
/* ------------------------------------------------------------------ */

.zel-progress {
	--zel-progress-dot: 2rem;
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zel-progress__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	padding: 0 0.25rem;
	text-align: center;
}

/* Linie vom vorigen Punkt */
.zel-progress__step + .zel-progress__step::before {
	content: "";
	position: absolute;
	top: calc(var(--zel-progress-dot) / 2 - 1px);
	right: calc(50% + var(--zel-progress-dot) / 2);
	left: calc(-50% + var(--zel-progress-dot) / 2);
	height: 2px;
	background: var(--zel-hellgrau);
}

.zel-progress__step.is-done + .zel-progress__step::before {
	background: var(--zel-gruen);
}

.zel-progress__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--zel-progress-dot);
	height: var(--zel-progress-dot);
	border: 2px solid var(--zel-hellgrau);
	border-radius: 50%;
	background: var(--zel-weiss);
	color: var(--zel-weiss);
}

.zel-progress__dot .zel-icon {
	width: 55%;
	height: 55%;
}

.is-done .zel-progress__dot {
	border-color: var(--zel-gruen);
	background: var(--zel-gruen);
}

.is-current .zel-progress__dot {
	border-color: var(--zel-schwarz);
	background: var(--zel-schwarz);
	box-shadow: inset 0 0 0 0.3125rem var(--zel-weiss);
}

.zel-progress__label {
	color: var(--zel-dunkelgrau);
	font-family: var(--zel-font-display);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.is-done .zel-progress__label,
.is-current .zel-progress__label {
	color: var(--zel-schwarz);
}

.is-current .zel-progress__label {
	font-weight: var(--zel-fw-heading);
}

.zel-progress__date {
	color: var(--zel-dunkelgrau);
	font-size: 0.8125rem;
	line-height: 1.3;
}

.zel-progress--compact {
	--zel-progress-dot: 1.5rem;
	padding: 0.5rem 0 0.25rem;
}

.zel-progress--compact .zel-progress__label {
	font-size: 0.9375rem;
}

.zel-progress--compact .zel-progress__date {
	display: none;
}

@media (max-width: 575.98px) {
	.zel-progress__label {
		font-size: 0.9375rem;
	}

	.zel-progress__date {
		display: none;
	}

	.zel-progress--compact .zel-progress__label {
		font-size: 0.875rem;
	}
}

/* 320 px: „BEARBEITUNG“ ist breiter als ein Schritt und stieß an „OFFEN“ („OFFEN BEARBEITUNG“) – kleiner
   und ohne Sperrung, dann bleibt Luft zum Nachbarn (Paket 20, Befund 26). */
@media (max-width: 359.98px) {
	.zel-progress__label,
	.zel-progress--compact .zel-progress__label {
		font-size: 0.8125rem;
		letter-spacing: 0;
	}
}

/* ------------------------------------------------------------------ */
/* Sendungsverfolgung                                                  */
/* ------------------------------------------------------------------ */

.zel-tracking {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem;
	border-left: 4px solid var(--zel-schwarz);
	background: var(--zel-papier);
}

.zel-tracking__body {
	flex: 1;
	min-width: 0;
}

.zel-tracking__title {
	margin: 0 0 0.5rem;
	color: var(--zel-schwarz);
	font-family: var(--zel-font-display);
	font-size: 1.375rem;
	font-weight: var(--zel-fw-heading);
	line-height: 1.1;
	text-transform: uppercase;
}

.zel-tracking__list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zel-tracking__parcel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin: 0;
}

.zel-tracking__text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
	font-size: 0.9375rem;
}

.zel-tracking__carrier {
	color: var(--zel-schwarz);
}

.zel-tracking__number {
	color: var(--zel-dunkelgrau);
}

.zel-tracking__code {
	display: inline-block;
	max-width: 100%;
	color: var(--zel-schwarz);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.875rem;
	letter-spacing: 0.03em;
	overflow-wrap: anywhere;
	user-select: all;
}

.zel-btn.zel-tracking__link {
	min-height: 2.75rem;
	padding: 0.625rem 1.125rem;
	font-size: 1.0625rem;
}

.zel-tracking__link .zel-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.zel-tracking--compact {
	align-items: center;
	padding: 0.875rem 1rem;
}

.zel-tracking--compact .zel-tracking__icon {
	width: 2.25rem;
	height: 2.25rem;
}

.zel-tracking--compact .zel-tracking__icon .zel-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* ------------------------------------------------------------------ */
/* Eine Bestellung: Statuskarte, Nachrichten, Details                  */
/* ------------------------------------------------------------------ */

.zel-account-back {
	margin: 0 0 1rem;
}

.zel-account-back__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 2.75rem;
	color: var(--zel-schwarz);
	font-weight: 500;
	text-decoration: none;
}

.zel-account-back__link:hover {
	text-decoration: underline;
}

.zel-account-back .zel-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.zel-order-status {
	display: grid;
	gap: 1.75rem;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--zel-hellgrau);
	border-top: 4px solid var(--zel-tone);
	background: var(--zel-weiss);
}

.zel-order-status__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.woocommerce-MyAccount-content .zel-order-status__title {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.zel-order-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 1px;
	margin: 0;
	border: 1px solid var(--zel-hellgrau);
	background: var(--zel-hellgrau);
}

.zel-order-facts__item {
	padding: 0.875rem 1.125rem;
	background: var(--zel-papier);
}

.zel-order-facts dt {
	color: var(--zel-dunkelgrau);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.zel-order-facts dd {
	margin: 0.25rem 0 0;
	color: var(--zel-schwarz);
	font-weight: 700;
	overflow-wrap: anywhere;
}

/* Vorkasse offen: Anleitung und Bankverbindung */
.zel-order-pay {
	padding: clamp(1.125rem, 2.5vw, 1.5rem);
	border-left: 4px solid var(--zel-braun);
	background: var(--zel-papier);
}

.zel-order-pay > :last-child,
.zel-order-pay .woocommerce-bacs-bank-details > :last-child {
	margin-bottom: 0;
}

.woocommerce-MyAccount-content .zel-order-pay .wc-bacs-bank-details-heading {
	margin-bottom: 0.75rem;
	font-size: 1.375rem;
}

.woocommerce-MyAccount-content .zel-order-pay .wc-bacs-bank-details-account-name {
	margin: 0 0 0.75rem;
	font-family: var(--zel-font-text);
	font-size: 1rem;
	font-weight: 700;
	text-transform: none;
}

.zel-order-pay ul.wc-bacs-bank-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.zel-order-pay ul.wc-bacs-bank-details li {
	margin: 0;
	color: var(--zel-dunkelgrau);
	font-size: 0.875rem;
}

.zel-order-pay ul.wc-bacs-bank-details li strong {
	display: block;
	color: var(--zel-schwarz);
	font-size: 1.0625rem;
	letter-spacing: 0.02em;
	overflow-wrap: anywhere;
}

/* Nachrichten zur Bestellung als Zeitleiste */
.zel-order-updates {
	margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.zel-updates {
	margin: 0 0 0 0.4375rem;
	padding: 0;
	border-left: 2px solid var(--zel-hellgrau);
	list-style: none;
}

.zel-updates__item {
	position: relative;
	margin: 0;
	padding: 0 0 1.5rem 1.5rem;
}

.zel-updates__item:last-child {
	padding-bottom: 0.25rem;
}

.zel-updates__item::before {
	content: "";
	position: absolute;
	top: 0.25rem;
	left: -0.5625rem;
	width: 1rem;
	height: 1rem;
	border: 3px solid var(--zel-weiss);
	border-radius: 50%;
	background: var(--zel-schwarz);
}

.zel-updates__date {
	margin: 0 0 0.25rem;
	color: var(--zel-dunkelgrau);
	font-size: 0.8125rem;
	font-weight: 500;
}

.zel-updates__text p {
	margin: 0 0 0.5rem;
}

.zel-updates__text > :last-child {
	margin-bottom: 0;
}

/* Bestelldetails und Adressen (WooCommerce-Vorlagen order/order-details*.php) – wie die Danke-Seite */
.zel-order-view__details .woocommerce-order-details,
.zel-order-view__details .woocommerce-customer-details {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.zel-order-view__details table.shop_table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.zel-order-view__details table.shop_table th,
.zel-order-view__details table.shop_table td {
	padding: 0.875rem 0.75rem 0.875rem 0;
	border-bottom: 1px solid var(--zel-hellgrau);
	text-align: left;
	vertical-align: top;
}

.zel-order-view__details table.shop_table thead th {
	padding-top: 0;
	border-bottom: var(--zel-dot) dotted var(--zel-anthrazit);
	color: var(--zel-dunkelgrau);
	font-family: var(--zel-font-text);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.zel-order-view__details table.shop_table :is(th, td):last-child {
	padding-right: 0;
	text-align: right;
}

.zel-order-view__details table.shop_table .woocommerce-Price-amount {
	white-space: nowrap;
}

.zel-order-view__details table.shop_table small.shipped_via {
	display: block;
	color: var(--zel-dunkelgrau);
	font-size: 0.8125rem;
}

/* Lange Namen mit Trennstrich statt mitten im Wort („Kerzenbo/x“ bei 320 px, Paket 20, Befund 14); Wörter
   unter zehn Buchstaben („Kerzenbox“, „Propolis“) und kurze Silben am Rand („cand-lelight“) nie trennen. */
.zel-order-view__details table.shop_table td.product-name {
	position: relative;
	height: 4.5rem;
	padding-left: 4.5rem;
	hyphens: auto;
	-webkit-hyphens: auto;
	hyphenate-limit-chars: 10 6 6;
	-webkit-hyphenate-limit-before: 6;
	-webkit-hyphenate-limit-after: 6;
}

.zel-order-view__details .zel-thumb--row {
	position: absolute;
	top: 0.875rem;
	left: 0;
}

/* 320 px: kleineres Vorschaubild, sonst bleiben dem Namen nur ca. 70 px */
@media (max-width: 359.98px) {
	.zel-order-view__details table.shop_table td.product-name {
		padding-left: 3.5rem;
	}

	.zel-order-view__details .zel-thumb--row {
		width: 2.75rem;
		height: 2.75rem;
	}
}

.zel-page-light .zel-order-view__details table.shop_table td.product-name a {
	color: var(--zel-schwarz);
	font-weight: 700;
}

.zel-order-view__details .wc-item-meta {
	margin: 0.375rem 0 0;
	padding: 0;
	color: var(--zel-dunkelgrau);
	font-size: 0.8125rem;
	list-style: none;
}

.zel-order-view__details .wc-item-meta li {
	margin: 0;
}

.zel-order-view__details .wc-item-meta p {
	display: inline;
	margin: 0;
}

.zel-order-view__details table.shop_table tfoot th {
	font-weight: 400;
}

.zel-order-view__details .order-actions--heading {
	vertical-align: middle;
}

.zel-order-view__details td.order-actions--buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
}

.zel-order-view__details .order-again {
	margin: 1.25rem 0 0;
}

.zel-order-view__details .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.25rem;
}

.zel-order-view__details .woocommerce-column {
	width: auto;
	float: none;
}

.woocommerce-MyAccount-content .zel-order-view__details .woocommerce-column__title {
	font-size: 1.5rem;
}

.zel-order-view__details address {
	height: calc(100% - 2.75rem);
	margin: 0;
	padding: 1.25rem;
	border: 1px solid var(--zel-hellgrau);
	background: var(--zel-weiss);
	font-style: normal;
	line-height: 1.6;
}

.zel-order-view__details address p {
	margin: 0.25rem 0 0;
}

/* ------------------------------------------------------------------ */
/* Adressen                                                            */
/* ------------------------------------------------------------------ */

.zel-account-intro {
	max-width: 40rem;
	margin: 0 0 1.5rem;
	color: var(--zel-dunkelgrau);
}

.woocommerce-account .zel-addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.25rem;
}

.zel-address-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid var(--zel-hellgrau);
	background: var(--zel-weiss);
}

.zel-address-card__head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.875rem;
}

.woocommerce-MyAccount-content .zel-address-card__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: var(--zel-fw-card);
}

.woocommerce-account .zel-address-card .zel-address-card__address {
	flex: 1;
	margin: 0;
	padding: 0;
	background: none;
	font-style: normal;
	line-height: 1.65;
}

.zel-address-card.is-empty .zel-address-card__address {
	color: var(--zel-dunkelgrau);
}

.woocommerce-account .woocommerce .zel-btn.zel-address-card__edit {
	align-self: flex-start;
	gap: 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Formulare: Kontodetails, Adresse bearbeiten                         */
/* ------------------------------------------------------------------ */

.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .woocommerce-address-fields {
	max-width: 44rem;
}

.woocommerce-MyAccount-content form > h2,
.woocommerce-MyAccount-content form > h3 {
	margin-bottom: 1.25rem;
}

/* Vor- und Nachname nebeneinander (shop.css setzt inline-block mit 50 %; mit Zwischenraum bricht das um) */
@media (min-width: 768px) {
	.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
	.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
		display: flex;
		flex-wrap: wrap;
		column-gap: 1rem;
	}

	.woocommerce-MyAccount-content :is(.woocommerce-EditAccountForm, .woocommerce-address-fields__field-wrapper) > * {
		flex: 1 1 100%;
		min-width: 0;
	}

	.woocommerce-MyAccount-content :is(.woocommerce-EditAccountForm, .woocommerce-address-fields__field-wrapper) > :is(.form-row-first, .form-row-last) {
		flex-basis: calc(50% - 0.5rem);
		width: auto;
		margin-right: 0;
	}
}

.woocommerce-EditAccountForm fieldset {
	margin: 2rem 0 1.5rem;
	padding: 1.25rem 1.5rem 0.5rem;
	border: 1px solid var(--zel-hellgrau);
}

.woocommerce-EditAccountForm legend {
	padding: 0 0.5rem;
	color: var(--zel-anthrazit);
	font-family: var(--zel-font-display);
	font-size: 1.375rem;
	font-weight: var(--zel-fw-heading);
	text-transform: uppercase;
}

.woocommerce-EditAccountForm #account_display_name_description,
.woocommerce-EditAccountForm #account_display_name_description em {
	display: block;
	margin-top: 0.375rem;
	color: var(--zel-dunkelgrau);
	font-size: 0.8125rem;
	font-style: normal;
}

/* Länderauswahl (selectWoo) wie die übrigen Felder (base.css): 48 px hoch wie die Textfelder
   (Innenabstand 2 × 0,625rem + Zeile + Rahmen), Weiß wie dort – war 44 px (Paket 20, Befund 29). */
.woocommerce-MyAccount-content .select2-container .select2-selection--single {
	height: 3rem;
	border: 1px solid var(--zel-anthrazit);
	border-radius: 0;
	background: #fff;
}

.woocommerce-MyAccount-content .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 2.5rem 0 0.75rem;
	color: var(--zel-schwarz);
	line-height: calc(3rem - 2px);
}

.woocommerce-MyAccount-content .select2-container .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 0.5rem;
	height: calc(3rem - 2px);
}

.woocommerce-account .select2-dropdown {
	border-color: var(--zel-anthrazit);
	border-radius: 0;
}

.woocommerce-account .select2-container--default .select2-results__option--highlighted[aria-selected],
.woocommerce-account .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--zel-schwarz);
	color: var(--zel-weiss);
}

/* ------------------------------------------------------------------ */
/* Bewegung reduzieren                                                 */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.zel-account-nav__list a,
	.zel-account-tile,
	.zel-account-tile__arrow,
	.zel-order-card {
		transition: none;
	}

	.zel-account-tile:hover .zel-account-tile__arrow {
		transform: none;
	}
}
