/* ── WooCommerce My Account ─────────────────────────────────────────────── */

/* Info notice — same icon+background pattern as the checkout's
   .riedel-checkout__notice--warning, reused here for the read-only address
   book's "contact customer service" message so it reads as an actual
   notice, not plain paragraph text. */
.riedel-account-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--3);
	padding: var(--wp--preset--spacing--4);
	background: var(--wp--preset--color--teal-action-light);
	border: 1px solid var(--wp--preset--color--teal-action-border);
	border-radius: var(--wp--custom--radius--lg);
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--text-primary);
	line-height: 1.5;
	margin: 0 0 var(--wp--preset--spacing--4);
}

.riedel-account-notice svg {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--wp--preset--color--status-stock-low);
}

.riedel-account-notice a {
	color: var(--wp--preset--color--action-primary);
	font-weight: 600;
	text-decoration: underline;
}

.woocommerce-account main.wp-block-group > div {
	max-width: var(--wp--style--global--content-size) !important;
}

/* The parent theme's own #wp--skip-link--target rule is an ID selector, so
   it always outranks the class-based .has-global-padding rule core adds for
   useRootPaddingAwareAlignments — no cascade order can change that without
   editing the parent theme. We override the same ID selector here (equal
   specificity, this file loads after the parent's, so it wins on order) and
   point it at the exact same root-padding custom properties has-global-padding
   uses, so the two are visually and functionally identical. */
.woocommerce-account #wp--skip-link--target {
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
	background: var(--wp--preset--color--surface-secondary);
}

.woocommerce-account .entry-content > .wp-block-shortcode,
.woocommerce-account .wp-block-post-content > .wp-block-shortcode {
	margin-block-start: 0;
}

/* Selector mirrors the parent theme's own account grid rule
   (.woocommerce-account .wp-block-post-content > .woocommerce) so these
   rules match its specificity and win by cascade order — the child
   stylesheet is enqueued after the parent's. */
.woocommerce-account .wp-block-post-content > .woocommerce {
	display: grid;
	max-width: 100% !important;
	grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
	column-gap: var(--wp--preset--spacing--8);
	row-gap: var(--wp--preset--spacing--4);
	padding-top: 30px;
	padding-bottom: 40px;
	margin-top: 0;
	align-items: start;
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .riedel-account-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	align-self: start;
}

.woocommerce-account .wp-block-post-content > .woocommerce > .woocommerce-MyAccount-content {
	grid-column: 2;
	overflow: visible;
}

.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	position: sticky;
	top: 24px;
	padding: 0 !important;
	background: var(--wp--preset--color--surface-default);
	border: 1px solid var(--wp--preset--color--border-default) !important;
	border-radius: var(--wp--custom--radius--lg);
}

.riedel-account-nav-toggle {
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li{
	padding: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li + li {
	margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:first-child a {
	border-top-left-radius: var(--wp--custom--radius--lg);
	border-top-right-radius: var(--wp--custom--radius--lg);
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child a {
	border-bottom-left-radius: var(--wp--custom--radius--lg);
	border-bottom-right-radius: var(--wp--custom--radius--lg);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	padding-block: 14px;
	padding-inline: var(--wp--preset--spacing--4);
	border-radius: 0;
	border-left: 3px solid transparent;
	color: var(--wp--preset--color--text-primary);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--input);
	font-weight: 500;
	text-decoration: none !important;
	transition: background-color 0.15s, color 0.15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--wp--preset--color--surface-tertiary);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--teal-action-light);
	color: var(--wp--preset--color--action-primary);
	font-weight: 600;
	border-left-color: var(--wp--preset--color--action-primary);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a:hover {
	background: var(--wp--preset--color--teal-action-light);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--wp--preset--color--badge-sale);
}

/* The parent theme adds bootstrap-icons via ::before, with per-endpoint
   modifier classes (e.g. --dashboard, --orders) that carry higher
   specificity than this base rule. !important is required so this wins
   regardless of which endpoint's rule set the icon's content. */
.woocommerce-account .woocommerce-MyAccount-navigation-link a::before {
	content: none !important;
	display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.riedel-account-back-link {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	margin-bottom: var(--wp--preset--spacing--5);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
}

.riedel-account-back-link:hover {
	color: var(--wp--preset--color--action-primary);
}

.riedel-account-back-link svg {
	flex-shrink: 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
	padding-top: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: var(--wp--preset--font-size--4-xl);
	line-height: 1.15;
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .woocommerce-MyAccount-content p,
.woocommerce-account .woocommerce-MyAccount-content li,
.woocommerce-account .woocommerce-MyAccount-content label,
.woocommerce-account .woocommerce-MyAccount-content address {
	color: var(--wp--preset--color--text-tertiary);
}

.woocommerce-account .woocommerce-MyAccount-content > p,
.woocommerce-account .woocommerce-MyAccount-content > div:not(.woocommerce-notices-wrapper):not(.woocommerce-Addresses):not(.riedel-orders),
.woocommerce-account .woocommerce-MyAccount-content > form,
.woocommerce-account .woocommerce-MyAccount-content > section:not(.woocommerce-Addresses) {
	padding: var(--wp--preset--spacing--5);
	background: var(--wp--preset--color--surface-default);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--lg);
}

.woocommerce-account .woocommerce-MyAccount-content > p:not(.woocommerce-info):not(.woocommerce-message):not(.woocommerce-error):not(.woocommerce-NoticeGroup),
.woocommerce-account .woocommerce-MyAccount-content > div + div,
.woocommerce-account .woocommerce-MyAccount-content > form + form,
.woocommerce-account .woocommerce-MyAccount-content > section + section {
	margin-bottom: 20px;
}

.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper > * {
	margin-bottom: 20px;
	padding: 16px 18px;
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: 10px;
	background: var(--wp--preset--color--surface-tertiary);
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .woocommerce-error {
	border-color: color-mix(in srgb, var(--wp--preset--color--status-stock-out, #B91C1C) 35%, var(--wp--preset--color--border-default) 65%);
}

.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-error::before {
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .woocommerce-button:not(.riedel-btn),
.woocommerce-account .button:not(.riedel-btn),
.woocommerce-account button.button:not(.riedel-btn),
.woocommerce-account input.button:not(.riedel-btn),
.woocommerce-account .woocommerce-Button:not(.riedel-btn) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--wp--preset--color--text-primary);
	border-radius: 8px;
	background: var(--wp--preset--color--text-primary);
	color: var(--wp--preset--color--surface-default, #FFFFFF);
	font-size: var(--wp--preset--font-size--input);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.woocommerce-account .woocommerce-button:not(.riedel-btn):hover,
.woocommerce-account .button:not(.riedel-btn):hover,
.woocommerce-account button.button:not(.riedel-btn):hover,
.woocommerce-account input.button:not(.riedel-btn):hover,
.woocommerce-account .woocommerce-Button:not(.riedel-btn):hover {
	background: color-mix(in srgb, var(--wp--preset--color--text-primary) 88%, white 12%);
	border-color: color-mix(in srgb, var(--wp--preset--color--text-primary) 88%, white 12%);
	color: var(--wp--preset--color--surface-default, #FFFFFF);
}

/* Selector matches the parent theme's own button-override chain
   (.woocommerce-MyAccount-content > a.button / button.woocommerce-Button /
   .woocommerce-address-fields button.button) so ours ties on specificity
   and wins by cascade order — the child stylesheet loads after the
   parent's. */
.woocommerce-account .woocommerce-MyAccount-content > a.button,
.woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button:not(.riedel-btn),
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields button.button {
	padding: 10px 18px;
	border-radius: 8px;
	border-color: var(--wp--preset--color--action-primary);
	font-size: var(--wp--preset--font-size--input);
	background-color: var(--wp--preset--color--action-primary);
	color: var(--wp--preset--color--surface-default, #FFFFFF);
}

.woocommerce-account .woocommerce-MyAccount-content > a.button:hover,
.woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button:not(.riedel-btn):hover,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields button.button:hover {
	background-color: var(--wp--preset--color--action-primary-hover);
}

/* The [name] attribute selector bumps specificity above the parent's
   button.woocommerce-Button rule (which sets margin: 20px 0 as a shorthand),
   so this wins without needing !important. */
.woocommerce-account .woocommerce-MyAccount-content button.woocommerce-Button[name="save_account_details"] {
	margin-bottom: 0;
}

.woocommerce-account .woocommerce-button.button-secondary,
.woocommerce-account .button.button-secondary,
.woocommerce-account .woocommerce-Button--view {
	background: var(--wp--preset--color--surface-default);
	border-color: var(--wp--preset--color--border-default);
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .woocommerce-button.button-secondary:hover,
.woocommerce-account .button.button-secondary:hover,
.woocommerce-account .woocommerce-Button--view:hover {
	background: var(--wp--preset--color--surface-tertiary);
	border-color: var(--wp--preset--color--border-default);
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .woocommerce table.shop_table,
.woocommerce-account .woocommerce-orders-table,
.woocommerce-account .woocommerce-table {
	width: 100%;
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: 10px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.woocommerce-account .woocommerce table.shop_table th,
.woocommerce-account .woocommerce table.shop_table td,
.woocommerce-account .woocommerce-orders-table th,
.woocommerce-account .woocommerce-orders-table td,
.woocommerce-account .woocommerce-table th,
.woocommerce-account .woocommerce-table td {
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--5);
	border-bottom: 1px solid var(--wp--preset--color--border-default);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table tbody tr td {
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--5);
}

.woocommerce-account .woocommerce table.shop_table thead th,
.woocommerce-account .woocommerce-orders-table thead th,
.woocommerce-account .woocommerce-table thead th {
	background: var(--wp--preset--color--surface-default);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce-account .woocommerce table.shop_table tbody tr:nth-child(odd) td,
.woocommerce-account .woocommerce-orders-table tbody tr:nth-child(odd) td,
.woocommerce-account .woocommerce-table tbody tr:nth-child(odd) td {
	background: color-mix(in srgb, var(--wp--preset--color--surface-tertiary) 45%, white 55%);
}

.woocommerce-account .woocommerce table.shop_table tbody tr:last-child td,
.woocommerce-account .woocommerce-orders-table tbody tr:last-child td,
.woocommerce-account .woocommerce-table tbody tr:last-child td {
	border-bottom: none;
}

.woocommerce-account .woocommerce table.shop_table a,
.woocommerce-account .woocommerce-orders-table a,
.woocommerce-account .woocommerce-table a,
.woocommerce-account .woocommerce-Address a,
.woocommerce-account .woocommerce-MyAccount-content a {
	color: var(--wp--preset--color--text-primary);
	text-underline-offset: 0.14em;
}

.woocommerce-account .woocommerce table.shop_table a:hover,
.woocommerce-account .woocommerce-orders-table a:hover,
.woocommerce-account .woocommerce-table a:hover,
.woocommerce-account .woocommerce-Address a:hover,
.woocommerce-account .woocommerce-MyAccount-content a:hover {
	color: var(--wp--preset--color--action-primary);
}

.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.col2-set h2 {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
	margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
	margin-bottom: var(--wp--preset--spacing--5);
}

.woocommerce-account .addresses .title .edit {
	margin-bottom: 0;
}

.woocommerce-account .woocommerce-Address,
.woocommerce-account .woocommerce-address-fields,
.woocommerce-account .woocommerce-PaymentMethod,
.woocommerce-account .woocommerce-payment-methods li {
	padding: 24px;
	background: var(--wp--preset--color--surface-default);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: 10px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.col2-set .woocommerce-column,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.col2-set .woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-columns .woocommerce-column,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-columns .woocommerce-Address {
	padding: var(--wp--preset--spacing--5);
}

.woocommerce-account .woocommerce-Address address {
	margin: 0 0 16px;
	color: var(--wp--preset--color--text-secondary);
	line-height: 1.7;
}

/* ── Single order view (Bestelldetails) ──────────────────────────────────── */

/* The generic "> section:not(.woocommerce-Addresses)" card rule above gives
   .woocommerce-order-details its padding/background/border, but only a
   trailing section (the "section + section" sibling rule) gets a
   margin-bottom — .woocommerce-order-details is the first section on this
   page, so without this it sits flush against .woocommerce-customer-details
   below it. */
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-order-details {
	margin-bottom: var(--wp--preset--spacing--5);
}

.woocommerce-account .woocommerce-customer-details {
	margin-top: 24px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details__title {
	padding-bottom: var(--wp--preset--spacing--5);
	margin-bottom: var(--wp--preset--spacing--5);
	border-bottom: 1px solid var(--wp--preset--color--border-default);
}

.woocommerce-account .woocommerce-MyAccount-content mark {
	background: none;
	padding: 0;
	color: var(--wp--preset--color--text-primary);
	font-weight: 600;
}

/* order/order-details-customer.php renders billing/shipping as
   .woocommerce-columns > .woocommerce-column, a different class family from
   the my-address.php endpoint's .woocommerce-Addresses > .woocommerce-Address
   (styled above) — give it the same grid + boxed-card treatment here. */
.woocommerce-account .woocommerce-customer-details .woocommerce-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--5);
	margin: 0;
}

.woocommerce-account .woocommerce-customer-details .woocommerce-column {
	float: none;
	width: auto;
	padding: var(--wp--preset--spacing--5);
	background: var(--wp--preset--color--surface-secondary);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--lg);
}

.woocommerce-account .woocommerce-customer-details .woocommerce-column__title {
	margin: 0 0 var(--wp--preset--spacing--3);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
}

.woocommerce-account .woocommerce-customer-details address {
	margin: 0;
	color: var(--wp--preset--color--text-secondary);
	line-height: 1.7;
}

.woocommerce-page .woocommerce-customer-details address {
	padding: 0;
}

.woocommerce-customer-details > br {
	display: none;
}

.woocommerce-account .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-account .woocommerce-customer-details .woocommerce-customer-details--email {
	margin: var(--wp--preset--spacing--2) 0 0;
}

@media (max-width: 980px) {
	.woocommerce-account .woocommerce-customer-details .woocommerce-columns {
		grid-template-columns: 1fr;
	}
}

/* order/order-details.php + order/order-details-item.php are overridden in
   this theme to output a div/list layout instead of a <table>, so the item
   rows and totals stack cleanly on mobile with no table hacks. */
.woocommerce-account .riedel-order-detail__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--3) 0;
	border-bottom: 1px solid var(--wp--preset--color--border-default);
}

.woocommerce-account .riedel-order-detail__items > .riedel-order-detail__item:first-child {
	padding-top: 0;
}

.woocommerce-account .riedel-order-detail__item-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: break-word;
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .riedel-order-detail__item-name a {
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .riedel-order-detail__item-name a:hover {
	color: var(--wp--preset--color--action-primary);
}

.woocommerce-account .riedel-order-detail__item-name .product-quantity {
	color: var(--wp--preset--color--text-tertiary);
	font-weight: 500;
}

.woocommerce-account .riedel-order-detail__item-name .wc-item-meta {
	margin: var(--wp--preset--spacing--1) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
	color: var(--wp--preset--color--text-tertiary);
}

.woocommerce-account .riedel-order-detail__item-total {
	flex: 0 0 auto;
	text-align: right;
	white-space: nowrap;
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .riedel-order-detail__item-note {
	padding: var(--wp--preset--spacing--3) 0;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--sm);
}

.woocommerce-account .riedel-order-detail__totals {
	margin: var(--wp--preset--spacing--5) 0 0;
	padding-top: var(--wp--preset--spacing--5);
	border-top: 1px solid var(--wp--preset--color--border-default);
}

.woocommerce-account .riedel-order-detail__total-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--2) 0;
}

.woocommerce-account .riedel-order-detail__total-label {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce-account .riedel-order-detail__total-value {
	flex: 0 0 auto;
	margin: 0;
	text-align: right;
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .riedel-order-detail__total-value .shipped_via {
	display: block;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-tertiary);
}

.woocommerce-account .riedel-order-detail__total-row--order_total {
	margin-top: var(--wp--preset--spacing--2);
	padding-top: var(--wp--preset--spacing--3);
	border-top: 1px solid var(--wp--preset--color--border-default);
}

.woocommerce-account .riedel-order-detail__total-row--order_total .riedel-order-detail__total-label,
.woocommerce-account .riedel-order-detail__total-row--order_total .riedel-order-detail__total-value {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .riedel-order-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--3);
	margin-top: var(--wp--preset--spacing--5);
	padding-top: var(--wp--preset--spacing--5);
	border-top: 1px solid var(--wp--preset--color--border-default);
}

.woocommerce-account .woocommerce-MyAccount-content .riedel-order-detail__actions .riedel-btn:not(.button):not(:hover) {
	min-height: 40px;
	font-weight: 600;
	color: var(--wp--preset--color--text-inverse);
}

.woocommerce-account .woocommerce-MyAccount-content .riedel-order-detail__actions .riedel-btn:hover {
	color: var(--wp--preset--color--text-inverse);
	text-decoration: none;
}

@media (max-width: 640px) {
	.woocommerce-account .riedel-order-detail__actions .riedel-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ── Account profile summary & card headers ──────────────────────────────── */

.riedel-account-profile {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--4);
	background: var(--wp--preset--color--surface-default);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--xl);
	text-align: left;
}

.riedel-account-profile__top {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
}

.riedel-account-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--preset--color--action-primary);
	color: var(--wp--preset--color--text-inverse);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	line-height: 1;
	flex: 0 0 auto;
}

.riedel-account-profile__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.riedel-account-profile__name {
	font-size: var(--wp--preset--font-size--md);
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}

.riedel-account-profile__company {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-secondary);
}

.riedel-account-profile__number {
	width: 100%;
	padding-top: var(--wp--preset--spacing--4);
	border-top: 1px solid var(--wp--preset--color--border-default);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-tertiary);
}

.riedel-account-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: var(--wp--preset--spacing--5);
	margin-bottom: var(--wp--preset--spacing--5);
	border-bottom: 1px solid var(--wp--preset--color--border-default);
}

.woocommerce-account .woocommerce-MyAccount-content h2.riedel-account-card-header__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 700;
}

.riedel-account-form-identity {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
	margin-bottom: 0;
}

.riedel-account-form-identity .riedel-account-avatar {
	width: 72px;
	height: 72px;
	font-size: var(--wp--preset--font-size--xl);
}

.riedel-account-form-identity__name {
	font-size: var(--wp--preset--font-size--md);
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}

.riedel-account-addresses {
	margin-top: var(--wp--preset--spacing--6);
}

.riedel-account-form-row-2col {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--4);
}

.riedel-account-form-row-2col .woocommerce-form-row {
	margin-bottom: 0;
}

.woocommerce-account #account_display_name_description {
	color: var(--wp--preset--color--text-tertiary);
	font-size: var(--wp--preset--font-size--sm);
}

@media (max-width: 640px) {
	.riedel-account-form-row-2col {
		grid-template-columns: 1fr;
	}
}

.woocommerce-account .woocommerce form .form-row {
	margin-bottom: 0;
	padding: 0;
}

.woocommerce-account .woocommerce form .form-row label {
	margin-bottom: var(--wp--preset--spacing--2);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 500;
	color: var(--wp--preset--color--text-primary);
}

@media (max-width: 640px) {
	.woocommerce-account .woocommerce form .form-row label {
		margin-bottom: var(--wp--preset--spacing--1);
	}
}

.woocommerce-account .woocommerce form input.input-text,
.woocommerce-account .woocommerce form select,
.woocommerce-account .woocommerce form textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: 8px;
	background: var(--wp--preset--color--surface-default);
	color: var(--wp--preset--color--text-primary);
	box-shadow: none;
}

.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row select,
.woocommerce-page form .form-row textarea.input-text {
	font-size: var(--wp--preset--font-size--base);
}

.woocommerce-account .woocommerce form textarea {
	min-height: 120px;
}

.woocommerce-account .woocommerce form input.input-text:focus,
.woocommerce-account .woocommerce form select:focus,
.woocommerce-account .woocommerce form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--text-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--text-primary) 10%, transparent);
}

.woocommerce-account button.show-password-input {
	background-color: var(--wp--preset--color--surface-tertiary);
	padding: 0;
}

.woocommerce-account .select2-container--default .select2-selection--single,
.woocommerce-account .select2-container--default .select2-selection--multiple {
	min-height: 46px;
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: 8px;
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px;
	padding-left: 14px;
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

/* Selector matches the parent theme's own
   .woocommerce-EditAccountForm fieldset chain (3 classes + element) so ours
   ties on specificity and wins by cascade order — the child stylesheet
   loads after the parent's. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
	margin-top: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--5) var(--wp--preset--spacing--6) var(--wp--preset--spacing--6);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: 10px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
	padding: 0 8px;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}

@media (max-width: 640px) {
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
		padding-inline: var(--wp--preset--spacing--4);
	}
}

.woocommerce-account .woocommerce-pagination {
	margin-top: 20px;
}

.woocommerce-account .woocommerce-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-pagination .page-numbers a,
.woocommerce-account .woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: 8px;
	background: var(--wp--preset--color--surface-default);
	text-decoration: none;
}

.woocommerce-account .woocommerce-pagination .page-numbers .current {
	background: var(--wp--preset--color--text-primary);
	border-color: var(--wp--preset--color--text-primary);
	color: var(--wp--preset--color--action-primary);
}

@media (max-width: 980px) {
	.woocommerce-account .wp-block-post-content > .woocommerce {
		grid-template-columns: 1fr;
		row-gap: var(--wp--preset--spacing--6);
		column-gap: 0;
	}

	.woocommerce-account .wp-block-post-content > .woocommerce > .woocommerce-MyAccount-content {
		grid-column: 1;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		position: static;
	}

	.riedel-account-nav-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding-block: 14px;
		padding-inline: var(--wp--preset--spacing--4);
		background: transparent;
		border: none;
		color: var(--wp--preset--color--text-primary);
		font-size: var(--wp--preset--font-size--input);
		font-weight: 600;
		cursor: pointer;
	}

	.riedel-account-nav-toggle__icon {
		flex: 0 0 auto;
		color: var(--wp--preset--color--text-tertiary);
		transition: transform 0.15s;
	}

	.riedel-account-nav-toggle[aria-expanded="true"] .riedel-account-nav-toggle__icon {
		transform: rotate(180deg);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: none;
		flex-direction: column;
		gap: 0;
		border-top: 1px solid var(--wp--preset--color--border-default);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul.is-open {
		display: flex;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li + li {
		margin-top: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li:first-child a,
	.woocommerce-account .woocommerce-MyAccount-navigation li:last-child a {
		border-radius: 0;
	}

	.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 1300px) {
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
		flex-direction: column;
		gap: var(--wp--preset--spacing--3);
	}
}

@media (max-width: 640px) {
	.woocommerce-account .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce-MyAccount-content > p,
	.woocommerce-account .woocommerce-MyAccount-content > div:not(.woocommerce-notices-wrapper):not(.woocommerce-Addresses),
	.woocommerce-account .woocommerce-MyAccount-content > form,
	.woocommerce-account .woocommerce-MyAccount-content > section:not(.woocommerce-Addresses),
	.woocommerce-account .woocommerce-Address,
	.woocommerce-account .woocommerce-address-fields,
	.woocommerce-account .woocommerce-PaymentMethod,
	.woocommerce-account .woocommerce-payment-methods li {
		padding: 18px;
	}

	.woocommerce-account .woocommerce table.shop_table,
	.woocommerce-account .woocommerce-orders-table,
	.woocommerce-account .woocommerce-table {
		display: block;
		overflow-x: auto;
	}

	.woocommerce-account .woocommerce table.shop_table th,
	.woocommerce-account .woocommerce table.shop_table td,
	.woocommerce-account .woocommerce-orders-table th,
	.woocommerce-account .woocommerce-orders-table td,
	.woocommerce-account .woocommerce-table th,
	.woocommerce-account .woocommerce-table td {
		padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--3);
		white-space: nowrap;
	}
}

/* ── Account page title ──────────────────────────────────────────────────── */

.woocommerce-account h1.riedel-account-page-title {
	margin: 0 0 var(--wp--preset--spacing--6);
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--wp--preset--color--text-primary);
}

/* ── Orders: tabs ────────────────────────────────────────────────────────── */

.riedel-orders-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: var(--wp--preset--spacing--5);
	padding: 6px;
	background: var(--wp--preset--color--surface-default);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--lg);
}

.riedel-orders-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: none;
	border-radius: var(--wp--custom--radius--md);
	background: transparent;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--input);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.riedel-orders-tabs__tab:hover {
	background: var(--wp--preset--color--surface-tertiary);
	color: var(--wp--preset--color--text-primary);
}

.riedel-orders-tabs__tab.is-active {
	background: var(--wp--preset--color--teal-action-light);
	color: var(--wp--preset--color--action-primary);
}

.riedel-orders-tabs__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--preset--color--surface-tertiary);
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1;
}

.riedel-orders-tabs__tab.is-active .riedel-orders-tabs__count {
	background: var(--wp--preset--color--action-primary);
	color: var(--wp--preset--color--text-inverse);
}

/* ── Orders: cards ───────────────────────────────────────────────────────── */

.riedel-orders-panel {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--5);
}

.riedel-orders-panel[hidden] {
	display: none;
}

.riedel-order-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--6);
	background: var(--wp--preset--color--surface-default);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--lg);
}

.riedel-order-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--4);
}

.riedel-order-card__heading {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.woocommerce-account .woocommerce-MyAccount-content h3.riedel-order-card__number {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	color: var(--wp--preset--color--text-primary);
}

.riedel-order-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-tertiary);
}

.riedel-order-card__total {
	flex: 0 0 auto;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 700;
	color: var(--wp--preset--color--action-primary);
	white-space: nowrap;
}

.riedel-order-card__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
}

.riedel-order-card__delivery {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-secondary);
}

.riedel-order-card__delivery strong {
	color: var(--wp--preset--color--text-primary);
	font-weight: 600;
}

.riedel-order-card__items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
	padding-top: var(--wp--preset--spacing--4);
	border-top: 1px solid var(--wp--preset--color--border-default);
}

.riedel-order-card__thumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	overflow: hidden;
	background: var(--wp--preset--color--surface-secondary);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--md);
}

.riedel-order-card__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.riedel-order-card__items-more {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-secondary);
}

.riedel-order-card__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--wp--preset--spacing--3);
	padding-top: var(--wp--preset--spacing--4);
	border-top: 1px solid var(--wp--preset--color--border-default);
}

/* .riedel-btn is the global CTA class. These account-scoped rules only exist
   to out-specify .woocommerce-account .woocommerce-MyAccount-content a (0,2,1),
   which otherwise recolors the button text and its hover state. */
.woocommerce-account .woocommerce-MyAccount-content .riedel-order-card__actions .riedel-btn {
	min-height: 40px;
	color: var(--wp--preset--color--text-inverse);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content .riedel-order-card__actions .riedel-btn:hover {
	color: var(--wp--preset--color--text-inverse);
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content .riedel-order-card__actions .riedel-btn.riedel-order-card__action:not(.button):not(:hover) {
	color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content .riedel-order-card__actions .riedel-btn--white.riedel-order-card__action:not(.button):not(:hover) {
	border: 1px solid var(--wp--preset--color--border-strong);
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account .woocommerce-MyAccount-content .riedel-order-card__actions .riedel-btn--white:hover {
	background: var(--wp--preset--color--surface-tertiary);
	border: 1px solid var(--wp--preset--color--border-strong);
	color: var(--wp--preset--color--text-primary);
}

.riedel-orders-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--6);
	text-align: center;
	color: var(--wp--preset--color--text-tertiary);
	background: var(--wp--preset--color--surface-default);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--xl);
}

.riedel-orders-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	margin-bottom: var(--wp--preset--spacing--2);
	border-radius: var(--wp--custom--radius--full);
	background: var(--wp--preset--color--teal-action-light);
	color: var(--wp--preset--color--action-primary);
}

.riedel-orders-empty__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--md);
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}

.riedel-orders-empty__text {
	max-width: 34rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--input);
	line-height: 1.6;
	color: var(--wp--preset--color--text-tertiary);
}

.riedel-orders-empty__cta {
	margin-top: var(--wp--preset--spacing--2);
}

/* .riedel-btn is the global CTA class. These account-scoped rules only exist
   to out-specify .woocommerce-account .woocommerce-MyAccount-content a (0,2,1),
   which otherwise recolors the button text and its hover state. */
.woocommerce-account .woocommerce-MyAccount-content .riedel-orders-empty__cta {
	color: var(--wp--preset--color--text-inverse) !important;
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content .riedel-orders-empty__cta:hover {
	color: var(--wp--preset--color--text-inverse) !important;
	text-decoration: none !important;
}

/* ── Orders: status badges ───────────────────────────────────────────────── */

.riedel-order-status {
	color: var(--wp--preset--color--text-inverse);
}

.riedel-order-status--pending,
.riedel-order-status--processing {
	background: var(--wp--preset--color--teal-action-light);
	color: var(--wp--preset--color--action-primary);
}

.riedel-order-status--on-hold {
	background: color-mix(in srgb, var(--wp--preset--color--status-stock-low) 16%, white 84%);
	color: var(--wp--preset--color--status-stock-low);
}

.riedel-order-status--completed {
	background: color-mix(in srgb, var(--wp--preset--color--status-stock-in) 14%, white 86%);
	color: var(--wp--preset--color--status-stock-in);
}

.riedel-order-status--cancelled,
.riedel-order-status--failed {
	background: color-mix(in srgb, var(--wp--preset--color--status-stock-out) 12%, white 88%);
	color: var(--wp--preset--color--status-stock-out);
}

.riedel-order-status--refunded {
	background: var(--wp--preset--color--surface-tertiary);
	color: var(--wp--preset--color--text-secondary);
}

@media (max-width: 640px) {
	.riedel-order-card {
		padding: var(--wp--preset--spacing--5);
	}

	.riedel-order-card__head {
		flex-direction: column;
		gap: var(--wp--preset--spacing--2);
	}

	.riedel-order-card__actions {
		justify-content: stretch;
	}

	.riedel-order-card__action {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* ── Logged-out My Account / Login ───────────────────────────────────────── */

.woocommerce-account:not(.logged-in) .woocommerce {
	width: 100%;
	max-width: var(--riedel-container-max-width) !important;
	margin: var(--wp--preset--spacing--12) 0 var(--wp--preset--spacing--16);
	padding-top: 0;
	display: block;
}

.woocommerce-account:not(.logged-in) .wp-block-post-content > .woocommerce {
	padding-bottom: 0;
}

.woocommerce-account:not(.logged-in) .wp-block-breadcrumbs {
	display: none;
}

.woocommerce-account:not(.logged-in) h1.riedel-account-page-title {
	max-width: 34rem;
	margin-inline: auto;
	margin-bottom: var(--wp--preset--spacing--6);
	font-size: var(--wp--preset--font-size--display);
}

.woocommerce-account:not(.logged-in) .woocommerce::before {
	display: none;
}

.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account:not(.logged-in) .woocommerce #customer_login h2,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword,
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register {
	max-width: none;
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
}

.woocommerce-account:not(.logged-in) .woocommerce > h2,
.woocommerce-account:not(.logged-in) .woocommerce #customer_login,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword {
	max-width: 34rem;
	margin-left: auto;
	margin-right: auto;
}

/* Narrow, centered notices and confirmation text on logged-out account pages */
.woocommerce-account:not(.logged-in) .woocommerce > :is(.woocommerce-notices-wrapper, .woocommerce-message, .woocommerce-error, .woocommerce-info, .wc-block-components-notice-banner, p) {
	max-width: 34rem;
	margin-left: auto;
	margin-right: auto;
}

.woocommerce-account:not(.logged-in) .woocommerce #customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--6);
	max-width: var(--riedel-container-max-width);
}

.woocommerce-account:not(.logged-in) .woocommerce #customer_login .u-column1,
.woocommerce-account:not(.logged-in) .woocommerce #customer_login .u-column2 {
	float: none;
	width: 100%;
}

.woocommerce-account:not(.logged-in) .woocommerce > h2 {
	margin-bottom: var(--wp--preset--spacing--4);
	padding: 0 0 var(--wp--preset--spacing--3);
	border-width: 0 0 1px;
	border-radius: 0;
	background: transparent;
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: 600;
	line-height: 1.1;
	color: var(--wp--preset--color--text-primary);
	border-color: var(--wp--preset--color--border-default);
	text-align: center;
}

.woocommerce-account:not(.logged-in) .woocommerce #customer_login h2 {
	margin-bottom: var(--wp--preset--spacing--3);
	padding: 0 0 var(--wp--preset--spacing--3);
	border-bottom: 1px solid var(--wp--preset--color--border-default);
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: 600;
	line-height: 1.1;
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword,
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register {
	padding: var(--wp--preset--spacing--8);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--xxl);
	background: var(--wp--preset--color--surface-default);
}

.woocommerce-account:not(.logged-in).woocommerce-lost-password .woocommerce > .woocommerce-ResetPassword,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login,
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--5);
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .form-row,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword .form-row,
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register .form-row {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	margin-bottom: 0;
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .form-row label,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword .form-row label,
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register .form-row label {
	margin-bottom: 0;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 500;
	color: var(--wp--preset--color--text-primary);
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .form-row .password-input,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword .form-row .password-input,
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register .form-row .password-input {
	position: relative;
	display: block;
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .input-text,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword .input-text,
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register .input-text {
	min-height: var(--wp--preset--spacing--12);
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
	border: 1px solid var(--wp--preset--color--border-default);
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface-default);
	color: var(--wp--preset--color--text-primary);
	font-size: var(--wp--preset--font-size--input);
	box-shadow: none;
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .input-text:focus,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword .input-text:focus,
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register .input-text:focus {
	outline: none;
	border-color: var(--wp--preset--color--action-primary);
	box-shadow: 0 0 0 var(--wp--preset--spacing--1) color-mix(in srgb, var(--wp--preset--color--action-primary) 16%, transparent);
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .show-password-input,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword .show-password-input {
	right: var(--wp--preset--spacing--4);
	top: 50%;
	transform: translateY(-50%);
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	margin: 0;
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--text-secondary);
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .woocommerce-form-login__rememberme input {
	margin: 0;
	accent-color: var(--wp--preset--color--action-primary);
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .riedel-btn,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword .riedel-btn,
.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register .riedel-btn {
	align-self: flex-start;
}

.woocommerce-account:not(.logged-in).woocommerce-lost-password .woocommerce .woocommerce-ResetPassword button.woocommerce-Button:not(:hover),
.woocommerce-account:not(.logged-in).woocommerce-lost-password .woocommerce .woocommerce-ResetPassword .woocommerce-button:not(:hover),
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login button.woocommerce-Button:not(:hover),
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .woocommerce-button:not(:hover) {
	background-color: var(--wp--preset--color--action-primary);
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .lost_password,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword .woocommerce-Button + p {
	margin: 0;
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .lost_password a,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword a {
	color: var(--wp--preset--color--text-secondary);
	text-decoration: none;
}

.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login .lost_password a:hover,
.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword a:hover {
	color: var(--wp--preset--color--action-primary);
}

.riedel-login-note {
	margin: 0;
	padding-top: var(--wp--preset--spacing--5);
	border-top: 1px solid var(--wp--preset--color--border-default);
	font-size: var(--wp--preset--font-size--base);
	color: var(--wp--preset--color--text-secondary);
}

.riedel-login-note a {
	color: var(--wp--preset--color--action-primary);
	text-decoration: none;
}

.riedel-login-note a:hover {
	text-decoration: underline;
}

@media (max-width: 980px) {
	.woocommerce-account:not(.logged-in) .woocommerce {
		margin: var(--wp--preset--spacing--10) 0 var(--wp--preset--spacing--12);
	}

	.woocommerce-account:not(.logged-in) .woocommerce #customer_login {
		grid-template-columns: 1fr;
		max-width: 34rem;
	}
}

@media (max-width: 640px) {
	.woocommerce-account:not(.logged-in) .woocommerce {
		margin: var(--wp--preset--spacing--8) 0 var(--wp--preset--spacing--10);
	}

	.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-form-login,
	.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-ResetPassword,
	.woocommerce-account:not(.logged-in) .woocommerce .woocommerce-form-register {
		padding: var(--wp--preset--spacing--5);
	}

	.woocommerce-account:not(.logged-in) h1.riedel-account-page-title,
	.woocommerce-account:not(.logged-in) .woocommerce > h2 {
		font-size: var(--wp--preset--font-size--3-xl);
	}
}

/* Dashboard landing: "In Lieferung" orders + link to the full orders list. */
.riedel-dashboard__header {
	margin-bottom: var(--wp--preset--spacing--5); /* 20px */
}

/* The header aligns the "all orders" link in its own row, so drop the
   standalone bottom margin the shared back-link class carries. */
.riedel-dashboard__all-link {
	margin-bottom: 0;
}

.riedel-dashboard__orders {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--5);
}

/* Quick-action tiles: repeat last order / Nachbestellen / Favoritenlisten. */
.riedel-dashboard__actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--wp--preset--spacing--4);
	margin-bottom: var(--wp--preset--spacing--5);
}

.riedel-dashboard__action {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: var(--wp--preset--spacing--4);
	background: var(--wp--preset--color--action-primary);
	border: 1px solid var(--wp--preset--color--action-primary);
	border-radius: var(--wp--custom--radius--lg);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	color: var(--wp--preset--color--text-inverse) !important;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.riedel-dashboard__action:hover {
	background: var(--wp--preset--color--action-primary-hover);
	border-color: var(--wp--preset--color--action-primary-hover);
	color: var(--wp--preset--color--text-inverse);
	text-decoration: none !important;
}

.riedel-dashboard__repeat-btn.riedel-dashboard__repeat-btn--loading,
.riedel-dashboard__repeat-btn:disabled {
	opacity: 0.6;
	cursor: default;
	pointer-events: none;
}

.riedel-dashboard__repeat-btn--loading .riedel-dashboard__action-label {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
}

.riedel-dashboard__repeat-btn--loading .riedel-dashboard__action-label::before {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: var(--wp--preset--color--text-inverse);
	border-radius: var(--wp--custom--radius--full);
	animation: riedel-dashboard-spin 0.6s linear infinite;
}

@keyframes riedel-dashboard-spin {
	to {
		transform: rotate(360deg);
	}
}