/**
 * Editorial customer dashboard layered over WooCommerce's native My Account.
 * Endpoints, forms, tables, nonces, validation, and permissions stay native.
 */

.woocommerce-account {
	background: #f3f1ec;
}

.woocommerce-account .site-main.container {
	width: min(calc(100% - 2rem), 82rem);
	padding-block: clamp(3.25rem, 7vw, 6.5rem);
}

.woocommerce-account .page-content,
.woocommerce-account .entry-content,
.woocommerce-account .woocommerce-MyAccount-content {
	min-width: 0;
}

.woocommerce-account .entry-header {
	max-width: 58rem;
	margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.woocommerce-account .entry-header h1 {
	margin-bottom: 0;
	font-size: clamp(3rem, 8vw, 5.8rem);
	font-weight: 650;
}

.woocommerce-account .entry-header h1::after {
	width: 5rem;
	height: 2px;
	margin-top: 1.25rem;
}

/* Authenticated account shell */
.logged-in.woocommerce-account .entry-content > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

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

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

.woocommerce-account .woocommerce-MyAccount-navigation {
	border-top: 3px solid var(--peach);
	background: #171614;
	color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0.45rem 0;
	border: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li,
.woocommerce-account .woocommerce-MyAccount-navigation li + li {
	position: relative;
	margin: 0;
	border: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	min-height: 3.25rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.8rem 1.2rem;
	color: #d6d1cb;
	font-size: 0.82rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease, padding 160ms ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a::after {
	color: #d58a43;
	content: "\2192";
	font-size: 0.95rem;
	opacity: 0;
	transform: translateX(-0.25rem);
	transition: opacity 160ms ease, transform 160ms ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	padding-inline-start: 1.4rem;
	background: rgba(255, 255, 255, 0.065);
	color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover::after,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible::after,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a::after {
	opacity: 1;
	transform: translateX(0);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active::before {
	position: absolute;
	top: 0.55rem;
	bottom: 0.55rem;
	left: 0;
	width: 3px;
	background: var(--peach);
	content: "";
}

.woocommerce-account .woocommerce-MyAccount-content {
	padding: clamp(1.35rem, 3vw, 2.25rem);
	border: 1px solid #d7d0c8;
	background: #faf8f4;
}

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

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
	font-size: clamp(1rem, 2vw, 1.12rem);
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
	color: #a95e1d;
	font-weight: 680;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-order-details__title,
.woocommerce-account .woocommerce-column__title {
	margin-bottom: 1.25rem;
	font-size: clamp(1.55rem, 3vw, 2.2rem);
	font-weight: 650;
	letter-spacing: -0.035em;
}

/* Dashboard shortcuts */
.bm-account-shortcuts {
	margin-top: clamp(2.25rem, 5vw, 3.75rem);
	padding-top: 2rem;
	border-top: 1px solid #d7d0c8;
}

.bm-account-section-heading > p {
	margin: 0 0 0.45rem;
	color: #b96b22;
	font-size: 0.69rem;
	font-weight: 750;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.bm-account-section-heading h2 {
	margin: 0 0 1.35rem;
}

.bm-account-shortcuts__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	border-top: 1px solid #d7d0c8;
}

.woocommerce-account .woocommerce-MyAccount-content .bm-account-shortcut {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.35rem 1rem;
	min-height: 8rem;
	align-content: center;
	padding: 1.25rem 2.75rem 1.25rem 0;
	border-bottom: 1px solid #d7d0c8;
	color: var(--charcoal);
	text-decoration: none;
	transition: padding 180ms ease, background-color 180ms ease;
}

.bm-account-shortcut strong,
.bm-account-shortcut span {
	grid-column: 1;
}

.bm-account-shortcut strong {
	color: var(--black);
	font-size: 1rem;
	font-weight: 750;
}

.bm-account-shortcut span {
	color: #6b635c;
	font-size: 0.84rem;
	font-weight: 450;
	line-height: 1.55;
}

.bm-account-shortcut em {
	position: absolute;
	top: 50%;
	right: 0.4rem;
	color: #b96b22;
	font-size: 1.25rem;
	font-style: normal;
	transform: translateY(-50%);
}

.woocommerce-account .woocommerce-MyAccount-content .bm-account-shortcut:hover,
.woocommerce-account .woocommerce-MyAccount-content .bm-account-shortcut:focus-visible {
	padding-inline-start: 0.8rem;
	background: #f3efe8;
	text-decoration: none;
}

/* Orders, downloads, and order details */
.woocommerce-account table.shop_table,
.woocommerce-account table.my_account_orders {
	margin: 0;
	border: 0;
	background: transparent;
}

.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
	padding: 1rem 0.8rem;
	border: 0;
	border-bottom: 1px solid #d9d2ca;
}

.woocommerce-account table.shop_table thead th {
	background: transparent;
	color: #746c64;
	font-size: 0.67rem;
	font-weight: 750;
	letter-spacing: 0.11em;
}

.woocommerce-account table.shop_table td:first-child,
.woocommerce-account table.shop_table th:first-child {
	padding-inline-start: 0;
}

.woocommerce-account table.shop_table td:last-child,
.woocommerce-account table.shop_table th:last-child {
	padding-inline-end: 0;
}

.woocommerce-account table.my_account_orders .button {
	min-height: 2.65rem;
	padding: 0.55rem 0.85rem;
	font-size: 0.75rem;
}

.bm-order-status {
	display: inline-flex;
	min-height: 1.85rem;
	align-items: center;
	padding: 0.25rem 0.55rem;
	border: 1px solid #d3cbc2;
	background: #f5f1eb;
	color: #5f5750;
	font-size: 0.69rem;
	font-weight: 750;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.bm-order-status--completed,
.bm-order-status--processing {
	border-color: #a8b997;
	background: #eef3e8;
	color: #3d5f32;
}

.bm-order-status--on-hold,
.bm-order-status--pending {
	border-color: #dfbd8b;
	background: #fff5e7;
	color: #88551e;
}

.bm-order-status--cancelled,
.bm-order-status--failed,
.bm-order-status--refunded {
	border-color: #d5a9a5;
	background: #f9eceb;
	color: #8d2f29;
}

.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details {
	margin-top: clamp(2rem, 5vw, 3.5rem);
}

.woocommerce-account .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 1.5rem 0 2rem;
	padding: 0;
	border: 1px solid #d7d0c8;
	list-style: none;
}

.woocommerce-account .woocommerce-order-overview li {
	margin: 0;
	padding: 1rem;
	border: 0;
	border-bottom: 1px solid #d7d0c8;
	color: #746c64;
	font-size: 0.67rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.woocommerce-account .woocommerce-order-overview li strong {
	margin-top: 0.4rem;
	color: var(--black);
	font-size: 0.92rem;
	letter-spacing: 0;
	text-transform: none;
}

/* Addresses */
.woocommerce-account .u-columns.woocommerce-Addresses,
.woocommerce-account .woocommerce-columns--addresses {
	display: grid !important;
	width: 100% !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)) !important;
	gap: clamp(1rem, 2vw, 1.4rem) !important;
	margin-top: 1.75rem;
}

.woocommerce-account .u-columns.woocommerce-Addresses::before,
.woocommerce-account .u-columns.woocommerce-Addresses::after,
.woocommerce-account .woocommerce-columns--addresses::before,
.woocommerce-account .woocommerce-columns--addresses::after {
	display: none !important;
	content: none !important;
}

.woocommerce-account .woocommerce-Address,
.woocommerce-account .woocommerce-column--billing-address,
.woocommerce-account .woocommerce-column--shipping-address {
	display: flex;
	width: 100% !important;
	min-width: 0;
	min-height: 15rem;
	padding: clamp(1.35rem, 3vw, 1.8rem);
	float: none !important;
	flex-direction: column;
	border: 1px solid #d7d0c8;
	border-top: 3px solid var(--peach);
	box-sizing: border-box;
	background: #fff;
	box-shadow: 0 0.8rem 1.8rem rgba(45, 35, 25, 0.055);
}

.woocommerce-account .addresses .title,
.woocommerce-account .woocommerce-Address-title {
	display: block;
	margin: 0 0 1.5rem;
}

.woocommerce-account .addresses .title h2,
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .addresses .title h3,
.woocommerce-account .woocommerce-Address-title h3 {
	max-width: 15ch;
	margin: 0 0 0.9rem;
	float: none !important;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	font-weight: 680;
	letter-spacing: -0.035em;
	line-height: 1.15;
	overflow-wrap: normal;
	word-break: normal;
}

.woocommerce-account .addresses .title .edit,
.woocommerce-account .woocommerce-Address-title .edit {
	display: inline-flex;
	width: fit-content;
	min-height: 2.7rem;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.85rem;
	border: 1px solid #d58a43;
	color: #9d5518;
	font-size: 0.72rem;
	font-weight: 750;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 160ms ease, color 160ms ease;
}

.woocommerce-account .addresses .title .edit:hover,
.woocommerce-account .addresses .title .edit:focus-visible,
.woocommerce-account .woocommerce-Address-title .edit:hover,
.woocommerce-account .woocommerce-Address-title .edit:focus-visible {
	background: var(--peach);
	color: #fff;
	text-decoration: none;
}

.woocommerce-account address {
	margin: auto 0 0;
	padding: 0;
	border: 0;
	color: #5f5851;
	font-size: 0.94rem;
	font-style: normal;
	line-height: 1.7;
}

/* Account, address, login, and password forms */
.woocommerce-account form.woocommerce-EditAccountForm,
.woocommerce-account form.woocommerce-address-fields,
.woocommerce-account form.woocommerce-ResetPassword,
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

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

.woocommerce-account form .form-row label {
	display: block;
	margin-bottom: 0.42rem;
	color: #423d38;
	font-size: 0.78rem;
	font-weight: 720;
}

.woocommerce-account form .form-row input.input-text,
.woocommerce-account form .form-row textarea,
.woocommerce-account form .form-row select,
.woocommerce-account .select2-container .select2-selection--single {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.75rem 0.85rem;
	border: 1px solid #bdb5ad;
	background: #fff;
	box-shadow: none;
}

.woocommerce-account form fieldset {
	margin: 2rem 0 1.25rem;
	padding: 1.35rem;
	border: 1px solid #d7d0c8;
}

.woocommerce-account form fieldset legend {
	padding-inline: 0.45rem;
	color: var(--black);
	font-size: 1rem;
	font-weight: 750;
}

.woocommerce-account form button.button,
.woocommerce-account form input.button {
	min-height: 3.25rem;
	margin-top: 0.35rem;
}

/* Logged-out account */
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
	display: block;
	max-width: 42rem;
}

.woocommerce-account:not(.logged-in) .woocommerce h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.8rem, 4vw, 2.65rem);
	font-weight: 650;
	letter-spacing: -0.04em;
}

.woocommerce-account:not(.logged-in) form.woocommerce-form-login,
.woocommerce-account:not(.logged-in) form.woocommerce-form-register,
.woocommerce-account:not(.logged-in) form.woocommerce-ResetPassword,
.woocommerce-account:not(.logged-in) .lost_reset_password {
	max-width: 38rem;
	padding: clamp(1.35rem, 4vw, 2.25rem);
	border: 1px solid #d7d0c8;
	border-top: 3px solid var(--peach);
	background: #faf8f4;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login__rememberme {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	gap: 0.55rem;
	margin-right: 0.75rem;
}

.woocommerce-account input[type="checkbox"] {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--peach);
}

.woocommerce-account .show-password-input {
	top: 0.85rem;
	right: 0.85rem;
}

.woocommerce-account .woocommerce-LostPassword {
	margin: 1.1rem 0 0;
}

.woocommerce-account .woocommerce-LostPassword a {
	color: #9d5518;
	font-size: 0.84rem;
	font-weight: 700;
}

@media (min-width: 42rem) {
	.bm-account-shortcuts__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.woocommerce-account .woocommerce-MyAccount-content .bm-account-shortcut {
		padding: 1.25rem 2.25rem 1.25rem 1rem;
		border-right: 1px solid #d7d0c8;
	}

	.woocommerce-account .woocommerce-MyAccount-content .bm-account-shortcut:first-child {
		padding-inline-start: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-content .bm-account-shortcut:last-child {
		border-right: 0;
	}

}

@media (min-width: 56rem) {
	.logged-in.woocommerce-account .entry-content > .woocommerce {
		grid-template-columns: minmax(13.5rem, 0.27fr) minmax(0, 0.73fr);
		gap: clamp(2rem, 4vw, 3.25rem);
	}

	.woocommerce-account .woocommerce-order-overview {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 47.99rem) {
	.woocommerce-account .site-main.container {
		width: min(calc(100% - 1.25rem), 82rem);
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		padding: 1.1rem;
	}

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

	.woocommerce-account table.shop_table_responsive tbody tr {
		margin-bottom: 1rem;
		padding: 0.65rem 0;
		border: 1px solid #d7d0c8;
		background: #fff;
	}

	.woocommerce-account table.shop_table_responsive tr td {
		grid-template-columns: minmax(6.5rem, 0.45fr) minmax(0, 0.55fr);
		padding: 0.7rem 0.8rem;
	}

	.woocommerce-account table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions {
		display: block;
		padding-top: 0.9rem;
		text-align: start !important;
	}

	.woocommerce-account table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}

	.woocommerce-account table.my_account_orders .button {
		width: 100%;
	}

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

@media (prefers-reduced-motion: reduce) {
	.woocommerce-account .woocommerce-MyAccount-navigation a,
	.woocommerce-account .woocommerce-MyAccount-navigation a::after,
	.woocommerce-account .bm-account-shortcut {
		transition: none;
	}
}
