/*
 * Styles for the partner view in "Mein Konto".
 *
 * Deviation from PLAN.md, which put this in the child theme: the rules are tied to
 * our own endpoint slug and our own markup, so they belong with the code that
 * generates them and stay versioned in this repository. Only genuinely
 * theme-level styling should live in the child theme.
 *
 * Kept deliberately plain: Woodmart supplies the surrounding look, and every
 * colour here is a neutral that does not fight the theme.
 */

/* Nav icon for the new account endpoint. Woodmart derives icons from the standard
   WooCommerce class, so a new endpoint gets none until it is named.
   Drawn as an inline SVG mask rather than a glyph from the theme font: the font's
   codepoints are not documented, and guessing one would render a wrong symbol or
   an empty box. currentColor keeps it in step with the theme's link colour. */
.woocommerce-MyAccount-navigation-link--personalisierung > a::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.5em;
	vertical-align: -0.125em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H5v18h14V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H5v18h14V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.enerix-pers-gruppe {
	margin-bottom: 2.5em;
}

.enerix-pers-gruppe__titel {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 0.75em;
}

.enerix-pers-anzahl {
	font-size: 0.75em;
	font-weight: 400;
	padding: 0.1em 0.5em;
	border-radius: 999px;
	background: rgba(127, 127, 127, 0.15);
}

.enerix-pers-liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.enerix-pers-eintrag {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em 1em;
	padding: 0.75em 0;
	border-bottom: 1px solid rgba(127, 127, 127, 0.2);
}

/* Overdue entries carry no extra accent: the status badge and the red "seit X Tagen
   fällig" text already say it twice. A third marker would be decoration. */

.enerix-pers-eintrag__link {
	flex: 1 1 16em;
	text-decoration: none;
}

.enerix-pers-eintrag__name {
	display: block;
	font-weight: 600;
}

.enerix-pers-eintrag__meta,
.enerix-pers-feld__hinweis,
.enerix-pers-runden__datum {
	font-size: 0.85em;
	opacity: 0.7;
}

.enerix-pers-badge {
	display: inline-block;
	font-size: 0.8em;
	line-height: 1.4;
	padding: 0.15em 0.6em;
	border-radius: 3px;
	background: rgba(127, 127, 127, 0.15);
	white-space: nowrap;
}

.enerix-pers-badge--daten_offen,
.enerix-pers-badge--vorschau_gesendet {
	background: rgba(34, 113, 177, 0.15);
}

.enerix-pers-badge--abnahme_ueberfaellig,
.enerix-pers-badge--storniert {
	background: rgba(179, 45, 46, 0.15);
}

.enerix-pers-badge--abgenommen,
.enerix-pers-badge--versandbereit,
.enerix-pers-badge--versendet {
	background: rgba(0, 124, 66, 0.15);
}

.enerix-pers-frist {
	font-size: 0.85em;
	opacity: 0.8;
}

.enerix-pers-frist--ueberfaellig {
	color: #b32d2e;
	font-weight: 600;
	opacity: 1;
}

/* Callouts are carried by the tint alone. The lead-in sentence in the markup is
   already bold, which does the emphasis a border bar would otherwise do. */
.enerix-pers-hinweis {
	padding: 0.75em 1em;
	margin: 1em 0;
	border-radius: 3px;
	background: rgba(34, 113, 177, 0.09);
}

.enerix-pers-hinweis--warnung {
	background: rgba(179, 45, 46, 0.09);
}

.enerix-pers-block {
	margin: 2em 0;
	padding-top: 1em;
	border-top: 1px solid rgba(127, 127, 127, 0.2);
}

.enerix-pers-form {
	margin: 1em 0;
}

.enerix-pers-feld {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	max-width: 34em;
}

.enerix-pers-tabelle {
	width: 100%;
	max-width: 44em;
}

.enerix-pers-tabelle th {
	text-align: left;
	font-weight: 600;
	vertical-align: top;
	width: 12em;
	padding-right: 1em;
}

.enerix-pers-runden {
	margin: 0;
	padding-left: 1.2em;
}

.enerix-pers-runden > li {
	margin-bottom: 1em;
}

.enerix-pers-runden blockquote {
	margin: 0.4em 0 0;
	padding-left: 0.8em;
	border-left: 2px solid rgba(127, 127, 127, 0.35);
	font-style: normal;
}

.enerix-pers-zurueck {
	font-size: 0.9em;
}

@media (max-width: 600px) {
	.enerix-pers-tabelle th {
		width: auto;
		display: block;
		padding-right: 0;
	}

	.enerix-pers-tabelle td {
		display: block;
		margin-bottom: 0.6em;
	}
}
