/* Einheitlicher Aufbau der Kontoansicht. */
/* Konto-Layout, Navigation, Bestelltabellen, Login und Passwort (aus style.css übernommen). */
.woocommerce-account .woocommerce-MyAccount-content mark :is(.order-number, .order-date, .order-status) {
	color: var(--theme-color-ink);
	font-weight: 700;
}

/* Mein Konto (My Account) */
.woocommerce-account .woocommerce-form-row.theme-email-validation-field {
	position: relative;
}

.woocommerce-account .woocommerce-form-row.theme-email-validation-field input[aria-invalid=true] {
	border-color: var(--theme-color-danger);
	box-shadow: 0 0 0 2px rgb(192 57 43 / 18%);
}

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: minmax(12rem, 14rem) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	width: auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: .4rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	padding: .85rem 1rem;
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	color: var(--theme-color-ink);
	background: #ffffff;
	box-shadow: 0 1px 3px rgb(0 0 0 / 3%);
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
	font-size: .95rem;
	font-weight: 700;
	text-decoration: none;
	transition: all var(--theme-transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: #f0f7fc;
	border-color: #cbd5e1;
	color: var(--theme-color-blue);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--theme-color-blue) linear-gradient(180deg, #004b8d 0%, #003366 100%) !important;
	color: #ffffff !important;
	border-color: #002244 !important;
	box-shadow: 0 2px 6px rgb(0 34 68 / 25%) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
	content: "";
	display: inline-block;
	width: 1.4rem;
	height: 1rem;
	margin-right: .65rem;
	font-size: 1rem;
	text-align: center;
	opacity: .85;
	background-color: currentColor;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before {
	-webkit-mask-image: var(--theme-icon-house);
	mask-image: var(--theme-icon-house);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before {
	-webkit-mask-image: var(--theme-icon-bag-shopping);
	mask-image: var(--theme-icon-bag-shopping);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a::before {
	-webkit-mask-image: var(--theme-icon-download);
	mask-image: var(--theme-icon-download);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a::before {
	-webkit-mask-image: var(--theme-icon-address-card);
	mask-image: var(--theme-icon-address-card);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before {
	-webkit-mask-image: var(--theme-icon-user-gear);
	mask-image: var(--theme-icon-user-gear);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
	-webkit-mask-image: var(--theme-icon-logout);
	mask-image: var(--theme-icon-logout);
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: #ffffff;
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	box-shadow: var(--theme-card-shadow);
	padding: clamp(1.25rem, 3vw, 2.25rem);
}

.woocommerce-account .woocommerce-MyAccount-content p {
	font-size: 1.05rem;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 1.25rem 0;
}

.woocommerce-account .woocommerce-MyAccount-content a {
	color: var(--theme-color-blue-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
	color: var(--theme-color-blue);
}

.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.my_account_orders {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	background: #ffffff;
	box-shadow: var(--theme-card-shadow);
	margin: 0 0 1.5rem 0;
}

/* Eckrundung an den Zellen: overflow:hidden würde später aufklappende Aktionsmenüs abschneiden. */
.woocommerce-account table.woocommerce-orders-table thead th:first-child,
.woocommerce-account table.my_account_orders thead th:first-child {
	border-top-left-radius: var(--theme-radius-s);
}

.woocommerce-account table.woocommerce-orders-table thead th:last-child,
.woocommerce-account table.my_account_orders thead th:last-child {
	border-top-right-radius: var(--theme-radius-s);
}

.woocommerce-account table.woocommerce-orders-table tbody tr:last-child :is(td, th):last-child,
.woocommerce-account table.my_account_orders tbody tr:last-child :is(td, th):last-child {
	border-bottom-right-radius: var(--theme-radius-s);
}

.woocommerce-account table.woocommerce-orders-table tbody tr:last-child :is(td, th):first-child,
.woocommerce-account table.my_account_orders tbody tr:last-child :is(td, th):first-child {
	border-bottom-left-radius: var(--theme-radius-s);
}

.woocommerce-account table.woocommerce-orders-table thead th,
.woocommerce-account table.my_account_orders thead th {
	padding: 1rem .75rem;
	border: none;
	border-bottom: 1px solid var(--theme-color-line);
	background: #f8fafc;
	color: var(--theme-color-ink);
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
	font-size: .95rem;
	font-weight: 700;
	text-align: left;
}

.woocommerce-account table.woocommerce-orders-table thead th:first-child,
.woocommerce-account table.my_account_orders thead th:first-child {
	padding-left: 1rem;
}

.woocommerce-account table.woocommerce-orders-table thead th:last-child,
.woocommerce-account table.my_account_orders thead th:last-child {
	padding-right: 1rem;
}

.woocommerce-account table.woocommerce-orders-table tbody :is(td, th),
.woocommerce-account table.my_account_orders tbody :is(td, th) {
	padding: 1rem .75rem;
	border: none;
	border-bottom: 1px solid #edf2f7;
	background: transparent;
	color: #334155;
	font-family: "Nunito Regular", Helvetica, Arial, sans-serif;
	font-size: .98rem;
	font-weight: 500;
	vertical-align: middle;
	text-align: left;
}

.woocommerce-account table.woocommerce-orders-table tbody tr:last-child :is(td, th),
.woocommerce-account table.my_account_orders tbody tr:last-child :is(td, th) {
	border-bottom: none;
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
	color: var(--theme-color-blue-dark);
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover {
	color: #0075ad;
	text-decoration: underline;
}

.woocommerce-account .woocommerce-orders-table__cell-order-status {
	color: var(--theme-color-ink);
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
	font-weight: 700;
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
	text-align: center;
}

/* Mobil blendet WooCommerce Zeilenkopfzellen pauschal aus; die Bestellnummer bleibt als Zelle sichtbar. */
@media screen and (max-width: 768px) {
	.woocommerce-account :is(table.woocommerce-orders-table, table.my_account_orders) tbody .woocommerce-orders-table__cell-order-number {
		display: block;
		text-align: right;
	}

	.woocommerce-account :is(table.woocommerce-orders-table, table.my_account_orders) tbody .woocommerce-orders-table__cell-order-number::before {
		content: attr(data-title) ": ";
		float: left;
		margin-right: .5rem;
		font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
		color: #465664;
	}
}

/* Innerhalb der Kontokarte: Bestelldetails liegen direkt im Karteninhalt. */
.woocommerce-account .woocommerce-MyAccount-content section.woocommerce-order-details:not(.mollie-instructions) {
	padding: 0;
	border: none;
	box-shadow: none;
	background: transparent;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address {
	box-shadow: none;
}

.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.5rem;
}

.woocommerce-account .woocommerce-Address {
	background: #f8fafc;
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	padding: 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0;
	color: var(--theme-color-blue-dark);
	font-size: 1.25rem;
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
}

.woocommerce-account .woocommerce-Address-title .edit {
	color: var(--theme-color-blue);
	font-weight: 700;
	text-decoration: underline;
	font-size: .95rem;
}

.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	line-height: 1.6;
	color: #475569;
	font-size: 1rem;
}

.woocommerce-account form.woocommerce-EditAccountForm,
.woocommerce-account form.edit-account {
	display: grid;
	gap: 1.15rem;
}

.woocommerce-account form.woocommerce-EditAccountForm fieldset {
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	padding: 1.25rem 1.5rem;
	margin: 1.25rem 0;
	background: #f8fafc;
}

.woocommerce-account form.woocommerce-EditAccountForm legend {
	padding: 0 .5rem;
	color: var(--theme-color-blue-dark);
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
}

/* Login & Registrierung auf Mein Konto */
.woocommerce-account:not(.logged-in) .entry-content>.woocommerce {
	display: block;
	width: min(100%, 56rem);
	margin-inline: auto;
}

.woocommerce-account:not(.logged-in) .col2-set#customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.woocommerce-account:not(.logged-in) .col2-set#customer_login .col-1,
.woocommerce-account:not(.logged-in) .col2-set#customer_login .col-2,
.woocommerce-account:not(.logged-in) .woocommerce-form-login {
	background: #ffffff;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	box-shadow: var(--theme-card-shadow);
}

.woocommerce-account:not(.logged-in) .entry-content h2 {
	margin: 0 0 1.25rem 0;
	color: var(--theme-color-blue-dark);
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
	font-size: 1.45rem;
	font-weight: 700;
}

/* Aktionzeile: Anmelden-Button und "Angemeldet bleiben" nebeneinander, vertikal zentriert. */
.woocommerce-account:not(.logged-in) .woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme)::before,
.woocommerce-account:not(.logged-in) .woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme)::after {
	display: none;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) .woocommerce-form-login__rememberme,
.woocommerce-account:not(.logged-in) .woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) button[name="login"] {
	margin: 0;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: .5rem;
	cursor: pointer;
	color: #475569;
}

/* Kompakter "Passwort vergessen?"-Link neben dem Passwort-Label. */
form.woocommerce-form-login .theme-login-label-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .25rem .5rem;
}

form.woocommerce-form-login .theme-login-lost-password {
	padding: .2rem 0;
	color: #475569;
	font-size: .875rem;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: .12em;
}

form.woocommerce-form-login .theme-login-lost-password:where(:hover, :focus-visible, :visited) {
	color: #475569;
}

form.woocommerce-form-login .theme-login-lost-password::before {
	content: "(";
}

form.woocommerce-form-login .theme-login-lost-password::after {
	content: ")";
}

/* Passwort vergessen / zurücksetzen – gleiche Breite wie das Loginformular */
form.woocommerce-ResetPassword,
form.lost_reset_password {
	width: 100%;
	margin: 0;
	background: #ffffff;
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	box-shadow: var(--theme-card-shadow);
	padding: clamp(1.5rem, 4vw, 2.25rem);
	display: grid;
	gap: 1.15rem;
}

form.woocommerce-ResetPassword p,
form.lost_reset_password p {
	margin: 0;
	color: #475569;
	font-size: 1.05rem;
	line-height: 1.6;
}

form.woocommerce-ResetPassword .clear,
form.lost_reset_password .clear {
	display: none;
}

form.woocommerce-ResetPassword .form-row,
form.lost_reset_password .form-row {
	float: none !important;
	width: 100% !important;
	margin: 0;
	padding: 0;
}

.woocommerce-account .theme-page-header,
.woocommerce-account .entry-content > .woocommerce {
	width: 100% !important;
}

.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
	width: 100%;
}

/* WooCommerce-Standard-Floats dürfen die beiden Grid-Bereiche nicht verschieben. */
body.site-layout.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
	float: none !important;
	width: auto !important;
	grid-column: 1;
	grid-row: 1;
}

body.site-layout.woocommerce-account .woocommerce > .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	grid-column: 2;
	grid-row: 1;
}

@media (max-width: 48rem) {
	body.site-layout.woocommerce-account .woocommerce > :is(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
		grid-column: 1;
		grid-row: auto;
	}
}

/* Adressübersicht: gleich hohe, klar getrennte Karten ohne WooCommerce-Floats. */
body.site-layout.woocommerce-account .woocommerce-Addresses {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

body.site-layout.woocommerce-account .woocommerce-Addresses::before,
body.site-layout.woocommerce-account .woocommerce-Addresses::after {
	display: none !important;
	content: none !important;
}

body.site-layout.woocommerce-account .woocommerce-Addresses > .woocommerce-Address {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

body.site-layout.woocommerce-account .woocommerce-Address-title {
	flex-direction: column;
	align-items: flex-start;
	gap: .75rem;
}

body.site-layout.woocommerce-account .woocommerce-Address-title :is(h2, h3) {
	margin: 0;
	padding: 0;
	color: var(--theme-color-blue-dark);
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

body.site-layout.woocommerce-account .woocommerce-Address-title .edit {
	margin-left: 0;
}

body.site-layout.woocommerce-account .woocommerce-Address address {
	margin: 0;
}

/* Kontodetails und Adressen: zusammengehörige Namensfelder in einer Zeile. */
body.site-layout.woocommerce-account :is(form.woocommerce-EditAccountForm, form.edit-account, form.woocommerce-EditAddressForm, form.edit-address) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.15rem 1.35rem;
}

body.site-layout.woocommerce-account :is(form.woocommerce-EditAccountForm, form.edit-account, form.woocommerce-EditAddressForm, form.edit-address) > .form-row {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

body.site-layout.woocommerce-account :is(form.woocommerce-EditAccountForm, form.edit-account, form.woocommerce-EditAddressForm, form.edit-address) > :is(.form-row-wide, fieldset, p:not(.form-row)) {
	grid-column: 1 / -1;
}

body.site-layout.woocommerce-account :is(form.woocommerce-EditAccountForm, form.edit-account, form.woocommerce-EditAddressForm, form.edit-address) > .clear {
	display: none;
}

body.site-layout.woocommerce-account :is(form.woocommerce-EditAccountForm, form.edit-account, form.woocommerce-EditAddressForm, form.edit-address) fieldset {
	display: grid;
	gap: 1.15rem;
}

body.site-layout.woocommerce-account :is(form.woocommerce-EditAccountForm, form.edit-account, form.woocommerce-EditAddressForm, form.edit-address) fieldset .form-row {
	width: auto !important;
	margin: 0 !important;
}

body.site-layout.woocommerce-account :is(form.woocommerce-EditAccountForm, form.edit-account, form.woocommerce-EditAddressForm, form.edit-address) > p:not(.form-row) {
	margin: .15rem 0 0;
}

@media (max-width: 48rem) {
	body.site-layout.woocommerce-account .woocommerce-Addresses,
	body.site-layout.woocommerce-account :is(form.woocommerce-EditAccountForm, form.edit-account, form.woocommerce-EditAddressForm, form.edit-address) {
		grid-template-columns: 1fr;
	}
}

/* Eigenständige Hinweise zu Bedienungsanleitungen und Partnerprogramm im Konto-Dashboard. */
body.site-layout.woocommerce-account .theme-account-manual,
body.site-layout.woocommerce-account .theme-account-partner {
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr);
	gap: 1rem;
	margin: 1.5rem 0 0;
	padding: .85rem 1.15rem;
	border: 1px solid var(--theme-notice-border);
	border-left: .25rem solid var(--theme-color-blue);
	border-radius: var(--theme-radius-s);
	background: var(--theme-notice-background);
	box-shadow: var(--theme-notice-shadow);
}

body.site-layout.woocommerce-account .theme-account-manual__icon,
body.site-layout.woocommerce-account .theme-account-partner__icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--theme-color-blue);
	font-size: 1.5rem;
	line-height: 1;
}

body.site-layout.woocommerce-account .theme-account-manual__content,
body.site-layout.woocommerce-account .theme-account-partner__content {
	min-width: 0;
}

body.site-layout.woocommerce-account .theme-account-manual h2,
body.site-layout.woocommerce-account .theme-account-partner h2 {
	margin: 0 0 .25rem;
	padding: 0;
	color: var(--theme-color-blue-dark);
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
}

body.site-layout.woocommerce-account .theme-account-manual p,
body.site-layout.woocommerce-account .theme-account-partner p {
	margin: 0 !important;
	color: #475569;
	font-size: 1rem;
	line-height: 1.6;
}

body.site-layout.woocommerce-account .theme-account-manual__button,
body.site-layout.woocommerce-account .theme-account-partner__button {
	margin-top: .75rem;
	gap: .65rem;
}

@media (max-width: 48rem) {
	body.site-layout.woocommerce-account .theme-account-manual,
	body.site-layout.woocommerce-account .theme-account-partner {
		grid-template-columns: 1fr;
		gap: .5rem;
	}
}

/* Auch Erweiterungen mit eigenen WooCommerce-Buttonklassen folgen der CTA-Basis. */
body.site-layout.woocommerce-account .woocommerce :is(a.button, button.button, input.button, a.woocommerce-button, button.woocommerce-button, input.woocommerce-button, a.woocommerce-Button, button.woocommerce-Button, input.woocommerce-Button, button[type="submit"], input[type="submit"]) {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 3.1rem !important;
	padding: .78rem 1.5rem !important;
	border: 1px solid #002244 !important;
	border-radius: var(--theme-radius-s) !important;
	background: var(--theme-color-blue) linear-gradient(180deg, #004b8d 0%, #003366 100%) !important;
	box-shadow: 0 2px 6px rgb(0 34 68 / 25%), inset 0 1px 0 rgb(255 255 255 / 15%) !important;
	color: #ffffff !important;
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif !important;
	font-weight: 700 !important;
	line-height: 1.2;
	text-decoration: none !important;
	transition: color var(--theme-transition), background var(--theme-transition), border-color var(--theme-transition), box-shadow var(--theme-transition), transform var(--theme-transition);
}

body.site-layout.woocommerce-account .woocommerce :is(a.button, button.button, input.button, a.woocommerce-button, button.woocommerce-button, input.woocommerce-button, a.woocommerce-Button, button.woocommerce-Button, input.woocommerce-Button, button[type="submit"], input[type="submit"]):hover {
	border-color: #001933 !important;
	background: var(--theme-color-blue-dark) linear-gradient(180deg, #005a9e 0%, #002850 100%) !important;
	box-shadow: 0 4px 12px rgb(0 34 68 / 35%), inset 0 1px 0 rgb(255 255 255 / 20%) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}

body.site-layout.woocommerce-account .woocommerce :is(a.button, button.button, input.button, a.woocommerce-button, button.woocommerce-button, input.woocommerce-button, a.woocommerce-Button, button.woocommerce-Button, input.woocommerce-Button, button[type="submit"], input[type="submit"]):focus-visible {
	color: #ffffff !important;
	text-decoration: none !important;
}

/* Auf dunklen Erfolgsmeldungen bleibt die Aktion als kontrastreiche Umkehrung lesbar. */
body.site-layout.woocommerce-account .woocommerce .woocommerce-message :is(a.button, a.woocommerce-button, a.woocommerce-Button) {
	min-height: 2.35rem !important;
	padding: .45rem 1.15rem !important;
	border-color: #ffffff !important;
	background: #ffffff !important;
	box-shadow: 0 2px 5px rgb(0 0 0 / 10%) !important;
	color: var(--theme-color-blue) !important;
}

body.site-layout.woocommerce-account .woocommerce .woocommerce-message :is(a.button, a.woocommerce-button, a.woocommerce-Button):hover {
	background: #eef5fa !important;
	color: #002244 !important;
}

body.site-layout.woocommerce-account .woocommerce .woocommerce-message :is(a.button, a.woocommerce-button, a.woocommerce-Button):focus-visible {
	color: var(--theme-color-blue) !important;
}

@media (max-width: 48rem) {
	body.site-layout.woocommerce-account .theme-account-manual__button {
		display: flex !important;
		width: 100%;
		padding-right: 1.4rem !important;
		padding-left: 1.4rem !important;
		white-space: nowrap;
	}
}

/* Drei-Punkte-Aktionsmenü in den Bestellungen (nativ per details/summary). */
.woocommerce-account .theme-order-actions {
	position: relative;
	display: inline-block;
	text-align: left;
}

.woocommerce-account .theme-order-actions__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 1px solid #c4cdd5;
	border-radius: var(--theme-radius-s);
	background: #ffffff;
	box-shadow: 0 2px 4px rgb(0 0 0 / 4%);
	color: var(--theme-color-ink);
	cursor: pointer;
	list-style: none;
	transition: color var(--theme-transition), background var(--theme-transition), border-color var(--theme-transition), box-shadow var(--theme-transition), transform var(--theme-transition);
}

.woocommerce-account .theme-order-actions__toggle::-webkit-details-marker,
.woocommerce-account .theme-order-actions__toggle::marker {
	display: none;
	content: none;
}

.woocommerce-account .theme-order-actions__toggle::after {
	content: "";
	width: .95rem;
	height: .95rem;
	background-color: currentColor;
	-webkit-mask: var(--theme-icon-ellipsis) center / contain no-repeat;
	mask: var(--theme-icon-ellipsis) center / contain no-repeat;
}

.woocommerce-account .theme-order-actions__toggle:hover {
	border-color: #94a3b8;
	background: #f8fafc;
	box-shadow: 0 4px 8px rgb(0 0 0 / 8%);
	color: #002244;
	transform: translateY(-1px);
}

.woocommerce-account .theme-order-actions[open] .theme-order-actions__toggle {
	border-color: var(--theme-color-blue);
	background: #f0f7fc;
	box-shadow: 0 2px 8px rgb(0 57 115 / 15%);
	color: var(--theme-color-blue-dark);
	transform: none;
}

.woocommerce-account .theme-order-actions__panel {
	position: absolute;
	top: calc(100% + .4rem);
	right: 0;
	z-index: 30;
	min-width: 11.5rem;
	margin: 0;
	padding: .5rem;
	background: #ffffff;
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	box-shadow: 0 .9rem 2rem rgb(16 35 62 / 14%);
}

/* Menü öffnet nach oben, sobald es unten den sichtbaren Bereich verlassen würde. */
.woocommerce-account .theme-order-actions[data-drop-up] .theme-order-actions__panel {
	top: auto;
	bottom: calc(100% + .4rem);
}

/* Fallback ohne JavaScript: in der letzten Zeile direkt nach oben öffnen. */
.woocommerce-account .woocommerce-orders-table tbody tr:last-child .theme-order-actions__panel {
	top: auto;
	bottom: calc(100% + .4rem);
}

.woocommerce-account .theme-order-actions__item {
	display: flex !important;
	align-items: center;
	gap: .6rem;
	min-height: 2.75rem;
	margin: 0;
	padding: .55rem .8rem;
	border-radius: calc(var(--theme-radius-s) - .1rem);
	color: var(--theme-color-ink) !important;
	font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
	font-size: .95rem;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background var(--theme-transition), color var(--theme-transition);
}

.woocommerce-account .theme-order-actions__item::before {
	content: "";
	display: inline-block;
	width: 1.15rem;
	height: .9rem;
	text-align: center;
	background-color: var(--theme-color-blue);
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
}

.woocommerce-account .theme-order-actions__item--view::before {
	-webkit-mask-image: var(--theme-icon-eye);
	mask-image: var(--theme-icon-eye);
}

.woocommerce-account .theme-order-actions__item--pay::before {
	-webkit-mask-image: var(--theme-icon-credit-card);
	mask-image: var(--theme-icon-credit-card);
}

/* Bezahl-Aktion bleibt textlich als Primäraktion hervorgehoben. */
.woocommerce-account .theme-order-actions__item--pay {
	color: var(--theme-color-blue-dark) !important;
}

.woocommerce-account .theme-order-actions__item:hover {
	background: #f0f7fc;
	color: #002244 !important;
	text-decoration: none !important;
}

/* Mobil: Konto-Raster einspaltig. Die Überschreibung muss nach dem Desktop-Grid
 * dieses Moduls stehen, weil base.css mit ihren Mobilregeln vor diesem Modul lädt. */
@media (max-width: 48rem) {
	.woocommerce-account .woocommerce,
	.woocommerce-account:not(.logged-in) .col2-set#customer_login {
		grid-template-columns: 1fr;
	}
}
