/* Native account presentation; WooCommerce owns forms and authorization. */
.lbm-account {
	margin-block: var(--wp--preset--spacing--space-64) var(--wp--preset--spacing--space-96);
	color: var(--wp--preset--color--body-text);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.lbm-account__intro {
	margin-bottom: var(--wp--preset--spacing--space-48);
	padding-bottom: var(--wp--preset--spacing--space-32);
	border-bottom: 1px solid var(--wp--preset--color--border-neutral);
}

.lbm-account__eyebrow {
	margin: 0 0 var(--wp--preset--spacing--space-12);
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lbm-account h1,
.lbm-account h2,
.lbm-account h3,
.lbm-account h4,
.lbm-account h5,
.lbm-account h6,
.lbm-account legend {
	color: var(--wp--preset--color--burgundy);
	font-family: var(--wp--preset--font-family--jost);
	font-weight: 400;
	line-height: 1.2;
}

.lbm-account__intro h1 {
	margin: 0;
	font-family: var(--wp--preset--font-family--bodoni-moda);
	font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.lbm-account h2,
.lbm-account legend {
	margin: 0 0 var(--wp--preset--spacing--space-24);
	font-size: clamp(1.625rem, 2.5vw, 2.25rem);
}

.lbm-account h3 {
	font-size: var(--wp--preset--font-size--body-large);
}

/* Grid placement follows the native navigation/content source order. */
.lbm-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(13rem, 0.28fr) minmax(0, 1fr);
	align-items: start;
	gap: var(--wp--preset--spacing--space-32) clamp(2rem, 5vw, 5rem);
}

.lbm-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
.lbm-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after {
	display: none;
}

.lbm-account .woocommerce > :is(.woocommerce-notices-wrapper, .woocommerce-error, .woocommerce-message, .woocommerce-info) {
	grid-column: 1 / -1;
}

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

.lbm-account .woocommerce-MyAccount-navigation {
	padding: var(--wp--preset--spacing--space-24);
	border-top: 2px solid var(--wp--preset--color--gold);
	background: var(--wp--preset--color--linen);
}

.lbm-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: var(--wp--preset--spacing--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lbm-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
}

.lbm-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--wp--preset--spacing--space-12) var(--wp--preset--spacing--space-16);
	color: var(--wp--preset--color--body-text);
	font-family: var(--wp--preset--font-family--jost);
	text-decoration: none;
}

.lbm-account .woocommerce-MyAccount-navigation a:hover,
.lbm-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--white);
}

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

.lbm-account .woocommerce-MyAccount-content > p {
	max-width: 64ch;
	margin-bottom: var(--wp--preset--spacing--space-24);
}

.lbm-account .woocommerce-MyAccount-content > p:first-of-type {
	font-size: var(--wp--preset--font-size--body-large);
}

.lbm-account a:not(.button):not(.woocommerce-MyAccount-navigation a) {
	color: var(--wp--preset--color--burgundy);
	text-underline-offset: 0.2em;
}

.lbm-account :is(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--burgundy);
	outline-offset: 4px;
}

/* Native address cards, order addresses and optional registration columns. */
.lbm-account .col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--space-24);
}

.lbm-account .col2-set::before,
.lbm-account .col2-set::after {
	display: none;
}

.lbm-account .col2-set > :is(.col-1, .col-2) {
	float: none;
	width: auto;
	min-width: 0;
}

.lbm-account :is(.woocommerce-Address, .woocommerce-customer-details address) {
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--space-24);
	border: 1px solid var(--wp--preset--color--border-neutral);
	border-radius: 0;
	background: var(--wp--preset--color--linen);
	font-style: normal;
}

.lbm-account .woocommerce-Address-title {
	margin-bottom: var(--wp--preset--spacing--space-24);
}

.lbm-account .woocommerce-Address-title h2 {
	margin-bottom: var(--wp--preset--spacing--space-16);
}

.lbm-account .woocommerce-Address-title .edit {
	float: none;
	font-size: var(--wp--preset--font-size--body);
}

.lbm-account .woocommerce-Address address {
	font-style: normal;
}

/* Shared form tokens preserve native labels and password controls. */
.lbm-account .woocommerce form {
	margin: 0;
	padding: 0;
	border: 0;
}

.lbm-account .woocommerce > :is(.woocommerce-form-login, .woocommerce-ResetPassword) {
	max-width: 42rem;
	padding: clamp(1.25rem, 4vw, 3rem);
	border: 1px solid var(--wp--preset--color--border-neutral);
	background: var(--wp--preset--color--linen);
}

.lbm-account .woocommerce .form-row {
	margin: 0 0 var(--wp--preset--spacing--space-24);
	padding: 0;
}

.lbm-account .woocommerce .form-row label {
	display: block;
	margin-bottom: var(--wp--preset--spacing--space-8);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.5;
}

.lbm-account .woocommerce :is(input.input-text, textarea, select) {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: var(--wp--preset--spacing--space-12) var(--wp--preset--spacing--space-16);
	border: 1px solid var(--wp--preset--color--border-neutral);
	border-radius: 0;
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--body-text);
	font-family: var(--wp--preset--font-family--jost);
	font-size: max(16px, var(--wp--preset--font-size--body));
	line-height: 1.5;
}

.lbm-account .woocommerce .password-input input {
	padding-right: 3rem;
}

.lbm-account .select2-container .select2-selection--single {
	min-height: 48px;
	border: 1px solid var(--wp--preset--color--border-neutral);
	border-radius: 0;
	background: var(--wp--preset--color--background);
}

.lbm-account .select2-container .select2-selection__rendered {
	padding: var(--wp--preset--spacing--space-12) var(--wp--preset--spacing--space-16);
	color: var(--wp--preset--color--body-text);
	line-height: 1.5;
}

.lbm-account .select2-container .select2-selection__arrow {
	height: 100%;
}

.lbm-account .select2-container .select2-selection:focus-visible {
	outline: 2px solid var(--wp--preset--color--burgundy);
	outline-offset: 4px;
}

.lbm-account .woocommerce .show-password-input {
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--burgundy);
}

.lbm-account .woocommerce input:is([type="checkbox"], [type="radio"]) {
	accent-color: var(--wp--preset--color--burgundy);
}

.lbm-account .woocommerce fieldset {
	min-width: 0;
	margin: var(--wp--preset--spacing--space-32) 0;
	padding: var(--wp--preset--spacing--space-24);
	border: 1px solid var(--wp--preset--color--border-neutral);
}

.lbm-account .woocommerce legend {
	padding-inline: var(--wp--preset--spacing--space-8);
}

.lbm-account .woocommerce :is(.woocommerce-form-login__rememberme, .woocommerce-form-login__submit) {
	float: none;
	margin-block: var(--wp--preset--spacing--space-8);
}

.lbm-account .woocommerce :is(.button, button[type="submit"]):not(.show-password-input) {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	max-width: 100%;
	margin: var(--wp--preset--spacing--space-4) var(--wp--preset--spacing--space-8) var(--wp--preset--spacing--space-4) 0;
	padding: var(--wp--custom--button--padding-block) clamp(var(--wp--preset--spacing--space-16), calc(13.38px + 0.6987vw), var(--wp--preset--spacing--space-24));
	border: 1px solid var(--wp--preset--color--burgundy);
	border-radius: 0;
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	white-space: normal;
}

.lbm-account .woocommerce :is(.button, button[type="submit"]):not(.show-password-input):is(:hover, :focus-visible) {
	border-color: var(--wp--preset--color--burgundy-deep);
	background: var(--wp--preset--color--burgundy-deep);
	color: var(--wp--preset--color--white);
}

.lbm-account .woocommerce :is(.button, button[type="submit"]):disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.lbm-account .woocommerce table.shop_table {
	width: 100%;
	margin: 0 0 var(--wp--preset--spacing--space-32);
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--jost);
	text-align: left;
}

.lbm-account .woocommerce table.shop_table :is(th, td) {
	padding: var(--wp--preset--spacing--space-16);
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border-neutral);
	font-weight: 400;
	vertical-align: top;
}

.lbm-account .woocommerce table.shop_table thead {
	background: var(--wp--preset--color--linen);
}

.lbm-account .woocommerce table.shop_table thead th {
	color: var(--wp--preset--color--burgundy);
	font-weight: 500;
}

.lbm-account .woocommerce :is(.woocommerce-pagination, .order-again) {
	margin-top: var(--wp--preset--spacing--space-24);
}

@media (max-width: 1023px) {

	.lbm-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
	}

	.lbm-account .woocommerce-MyAccount-navigation ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {

	.lbm-account .col2-set {
		grid-template-columns: minmax(0, 1fr);
	}

	.lbm-account .woocommerce-MyAccount-navigation {
		padding: var(--wp--preset--spacing--space-12);
	}

	.lbm-account .woocommerce-MyAccount-navigation ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lbm-account .woocommerce-MyAccount-navigation a {
		padding: var(--wp--preset--spacing--space-12);
	}

	.lbm-account .woocommerce :is(.form-row-first, .form-row-last) {
		float: none;
		width: 100%;
	}

	/* Keep the native table semantics/headers; each row becomes a visual card. */
	.lbm-account .woocommerce table.shop_table_responsive {
		display: block;
	}

	.lbm-account .woocommerce table.shop_table_responsive thead {
		position: absolute;
		display: table-header-group;
		width: 1px;
		height: 1px;
		clip-path: inset(50%);
		overflow: hidden;
	}

	.lbm-account .woocommerce table.shop_table_responsive tbody {
		display: block;
	}

	.lbm-account .woocommerce table.shop_table_responsive tr {
		display: block;
		margin-bottom: var(--wp--preset--spacing--space-24);
		padding: var(--wp--preset--spacing--space-16);
		border: 1px solid var(--wp--preset--color--border-neutral);
		background: var(--wp--preset--color--linen);
	}

	.lbm-account .woocommerce table.shop_table_responsive tr :is(th, td) {
		display: block;
		padding: var(--wp--preset--spacing--space-8) 0;
		text-align: left;
	}

	.lbm-account .woocommerce table.shop_table_responsive :is(th, td)[data-title]::before {
		float: none;
		display: block;
		margin-bottom: var(--wp--preset--spacing--space-4);
		color: var(--wp--preset--color--text-muted);
		font-size: var(--wp--preset--font-size--label);
		content: attr(data-title);
	}

	.lbm-account .woocommerce table.shop_table_responsive .woocommerce-orders-table__cell-order-number::before,
	.lbm-account .woocommerce table.shop_table_responsive .woocommerce-orders-table__cell-order-actions::before,
	.lbm-account .woocommerce table.shop_table_responsive .payment-method-actions::before,
	.lbm-account .woocommerce table.shop_table_responsive .download-actions::before {
		content: none;
	}

	.lbm-account .woocommerce table.woocommerce-table--order-details :is(th, td) {
		padding: var(--wp--preset--spacing--space-12) var(--wp--preset--spacing--space-4);
	}
}
