/* Wearseraiah — My Account (login + dashboard + endpoints) */

/* ------------------------------------------------------------------ */
/* Page shell                                                           */
/* ------------------------------------------------------------------ */

body.woocommerce-account,
body.woocommerce-account .wp-site-blocks {
	background: var(--wp--preset--color--base, #F7F3EB);
}

body.woocommerce-account main.wp-block-group,
body.woocommerce-account main.wsr-account-page {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

/*
 * Account shell — break out of contentSize (760) onto the wide rail.
 * page-my-account.html drops constrained layout; this still hardens
 * against residual shortcode / editor wrappers.
 */
body.woocommerce-account main.wsr-account-page,
body.woocommerce-account main.wsr-account-page > .entry-content,
body.woocommerce-account main.wsr-account-page > .wp-block-post-content {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}


body.woocommerce-account .woocommerce {
	width: 100%;
	max-width: var(--wsr-wide-size, 1320px);
	margin-inline: auto;
	padding-inline: var(--wsr-rail-pad, 1.5rem);
	box-sizing: border-box;
}

body.woocommerce-account .wsr-account {
	width: 100%;
}


/* ------------------------------------------------------------------ */
/* Notices                                                              */
/* Root cause notes:                                                    */
/* 1) Empty .woocommerce-notices-wrapper still got margin → top gap.    */
/* 2) WC designs .wc-forward inside banners as a floated TEXT link      */
/*    (transparent, underline). Our global account .button rules were   */
/*    restyling those into fat solid CTAs → tall, awkward banners.      */
/* 3) WC svg { height:100% } stretches with align-items:stretch.        */
/* ------------------------------------------------------------------ */

/* Collapse empty wrapper so it cannot invent top whitespace. */
body.woocommerce-account .woocommerce-notices-wrapper:empty {
	display: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-account .woocommerce-notices-wrapper:not(:empty) {
	margin: 0 0 1rem;
}

/* Classic (non-block) notices */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce .woocommerce-message,
body.woocommerce-account .woocommerce .woocommerce-info,
body.woocommerce-account .woocommerce .woocommerce-error {
	display: block;
	margin: 0 0 0.85rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wp--preset--color--sand, #DDD2BE);
	border-top: 2px solid var(--wp--preset--color--gold, #C9BDA4);
	border-radius: 0;
	background: var(--wp--preset--color--surface, #EFE8DB);
	color: var(--wp--preset--color--ink, #3A3228);
	box-shadow: none;
	list-style: none !important;
	font-size: 0.9375rem;
	line-height: 1.55;
}

body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce .woocommerce-message::before,
body.woocommerce-account .woocommerce .woocommerce-info::before,
body.woocommerce-account .woocommerce .woocommerce-error::before {
	content: none !important;
	display: none !important;
}

body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce .woocommerce-error {
	border-top-color: #A85A4A;
	background: color-mix(in srgb, var(--wp--preset--color--surface, #EFE8DB) 88%, #A85A4A 12%);
}

/* Classic notice action = text link, not solid button */
body.woocommerce-account .woocommerce-message .button,
body.woocommerce-account .woocommerce-info .button,
body.woocommerce-account .woocommerce-error .button,
body.woocommerce-account .woocommerce .woocommerce-message .button,
body.woocommerce-account .woocommerce .woocommerce-info .button,
body.woocommerce-account .woocommerce-message a.button,
body.woocommerce-account .woocommerce-info a.button {
	float: right;
	display: inline !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 0 0 1.25rem !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--ink, #3A3228) !important;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif) !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em !important;
	line-height: 1.55 !important;
	text-transform: uppercase !important;
	text-decoration: underline !important;
	text-underline-offset: 0.2em;
	opacity: 0.8;
}

body.woocommerce-account .woocommerce-message .button:hover,
body.woocommerce-account .woocommerce-info .button:hover,
body.woocommerce-account .woocommerce-error .button:hover,
body.woocommerce-account .woocommerce .woocommerce-message .button:hover,
body.woocommerce-account .woocommerce .woocommerce-info .button:hover {
	background: transparent !important;
	border: 0 !important;
	color: var(--wp--preset--color--bronze, #A08F6E) !important;
	opacity: 1;
}

/*
 * Block notice banners — keep WC's own layout contract:
 * flex row, svg + content; .wc-forward floats right as text link.
 */
body.woocommerce-account .wc-block-components-notice-banner,
body.woocommerce-account .woocommerce-MyAccount-content .wc-block-components-notice-banner {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center !important; /* not stretch — kills svg height:100% blowout */
	align-content: center;
	gap: 0.75rem;
	box-sizing: border-box;
	margin: 0 0 0.85rem !important;
	padding: 0.85rem 1rem !important;
	border: 1px solid var(--wp--preset--color--sand, #DDD2BE) !important;
	border-top: 2px solid var(--wp--preset--color--gold, #C9BDA4) !important;
	border-radius: 0 !important;
	background: var(--wp--preset--color--surface, #EFE8DB) !important;
	color: var(--wp--preset--color--ink, #3A3228) !important;
	box-shadow: none !important;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
}

body.woocommerce-account .wc-block-components-notice-banner.is-error {
	border-top-color: #A85A4A !important;
	background: color-mix(in srgb, var(--wp--preset--color--surface, #EFE8DB) 88%, #A85A4A 12%) !important;
}

/* Fixed icon size — override WC height:100% + is-info blue */
body.woocommerce-account .wc-block-components-notice-banner > svg,
body.woocommerce-account .wc-block-components-notice-banner.is-info > svg,
body.woocommerce-account .wc-block-components-notice-banner.is-success > svg,
body.woocommerce-account .wc-block-components-notice-banner.is-warning > svg,
body.woocommerce-account .wc-block-components-notice-banner.is-error > svg {
	flex: 0 0 1.25rem !important;
	align-self: center !important;
	width: 1.25rem !important;
	height: 1.25rem !important;
	min-width: 1.25rem;
	min-height: 1.25rem;
	max-width: 1.25rem;
	max-height: 1.25rem;
	padding: 2px !important;
	box-sizing: border-box;
	background-color: var(--wp--preset--color--ink, #3A3228) !important;
	fill: var(--wp--preset--color--base, #F7F3EB) !important;
	color: var(--wp--preset--color--base, #F7F3EB) !important;
	border-radius: 50%;
}

body.woocommerce-account .wc-block-components-notice-banner > svg path {
	fill: var(--wp--preset--color--base, #F7F3EB) !important;
}

/* Content stays block so float:right on .wc-forward works as WC designed */
body.woocommerce-account .wc-block-components-notice-banner > .wc-block-components-notice-banner__content {
	display: block !important;
	flex: 1 1 auto;
	align-self: center;
	min-width: 0;
	margin: 0;
	padding: 0 !important;
	color: var(--wp--preset--color--ink, #3A3228);
	font-size: 0.9375rem;
	line-height: 1.55;
	overflow: auto; /* contain the float */
}

/*
 * Notice action links — MUST beat global account .button rules.
 * Match WC store-notices: transparent, no chrome, float right, underline.
 */
body.woocommerce-account .wc-block-components-notice-banner .wc-forward,
body.woocommerce-account .wc-block-components-notice-banner a.wc-forward,
body.woocommerce-account .wc-block-components-notice-banner .button.wc-forward,
body.woocommerce-account .wc-block-components-notice-banner a.button,
body.woocommerce-account .wc-block-components-notice-banner .woocommerce-Button,
body.woocommerce-account .wc-block-components-notice-banner__content .wc-forward,
body.woocommerce-account .wc-block-components-notice-banner__content a.button,
body.woocommerce-account .wc-block-components-notice-banner__content .button {
	appearance: none !important;
	float: right !important;
	display: inline !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0.1rem 0 0.1rem 1.25rem !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--ink, #3A3228) !important;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif) !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em !important;
	line-height: 1.55 !important;
	text-transform: uppercase !important;
	text-decoration: underline !important;
	text-underline-offset: 0.22em;
	text-align: inherit !important;
	white-space: normal !important;
	opacity: 0.85;
	cursor: pointer;
	order: initial !important;
	flex: initial !important;
}

body.woocommerce-account .wc-block-components-notice-banner .wc-forward:hover,
body.woocommerce-account .wc-block-components-notice-banner a.wc-forward:hover,
body.woocommerce-account .wc-block-components-notice-banner .button.wc-forward:hover,
body.woocommerce-account .wc-block-components-notice-banner a.button:hover,
body.woocommerce-account .wc-block-components-notice-banner__content .button:hover {
	background: transparent !important;
	border: 0 !important;
	color: var(--wp--preset--color--bronze, #A08F6E) !important;
	opacity: 1;
	text-decoration: none !important;
}

/* Dismiss X (if present) — keep tiny, not a CTA */
body.woocommerce-account .wc-block-components-notice-banner > .wc-block-components-button {
	flex: 0 0 1rem !important;
	width: 1rem !important;
	height: 1rem !important;
	min-height: 0 !important;
	min-width: 0 !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--muted, #756B58) !important;
	opacity: 0.65;
}



/* ------------------------------------------------------------------ */
/* Logged-out auth (login / register / lost password)                   */
/* ------------------------------------------------------------------ */

.wsr-account-auth {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	width: min(100%, 26.5rem);
	margin-inline: auto;
}

.wsr-account-auth--split {
	width: min(100%, 56rem);
	grid-template-columns: 1fr;
}

@media (min-width: 860px) {
	.wsr-account-auth--split {
		grid-template-columns: 1fr 1fr;
		align-items: start;
		gap: 2rem;
	}
}

.wsr-account-auth__panel {
	background: var(--wp--preset--color--surface, #EFE8DB);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand, #DDD2BE) 80%, transparent);
	padding: clamp(2rem, 4vw, 2.75rem);
}

.wsr-account-auth__header {
	margin-bottom: 2rem;
	text-align: center;
}

.wsr-account-auth__eyebrow,
.wsr-account-dashboard__eyebrow,
.wsr-account__nav-label {
	margin: 0 0 0.65rem;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: var(--wp--preset--font-size--tiny, 0.6875rem);
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold, #C9BDA4);
}

.wsr-account-auth__title,
.wsr-account-dashboard__title {
	margin: 0 0 0.65rem;
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: clamp(1.85rem, 2.6vw, 2.35rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.12;
	color: var(--wp--preset--color--ink, #3A3228);
}

.wsr-account-auth__lede,
.wsr-account-dashboard__lede,
.wsr-account-auth__hint {
	margin: 0;
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	line-height: 1.65;
	color: var(--wp--preset--color--muted, #756B58);
}

.wsr-account-auth__form {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
}

.wsr-account-auth__form .form-row,
.wsr-account-auth__form .woocommerce-form-row {
	display: block;
	width: 100%;
	margin: 0 0 1.15rem;
	padding: 0;
	float: none;
}

.wsr-account-auth__form label,
body.woocommerce-account .woocommerce form .form-row label {
	display: block;
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink, #3A3228);
}

body.woocommerce-account .woocommerce form .form-row label .required,
.wsr-account-auth__form label .required {
	color: var(--wp--preset--color--bronze, #A08F6E);
	text-decoration: none;
	border: 0;
}

/* Inputs — full-width luxury fields */
body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-account .woocommerce form .form-row select,
body.woocommerce-account .woocommerce input.input-text,
body.woocommerce-account .woocommerce textarea,
body.woocommerce-account .woocommerce select,
.wsr-account-auth__form .input-text {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 3.15rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--wp--preset--color--sand, #DDD2BE);
	border-radius: 0;
	background: var(--wp--preset--color--base, #F7F3EB);
	color: var(--wp--preset--color--ink, #3A3228);
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.9375rem;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: none;
}

body.woocommerce-account .woocommerce form .form-row input.input-text:hover,
body.woocommerce-account .woocommerce form .form-row textarea:hover,
body.woocommerce-account .woocommerce form .form-row select:hover,
.wsr-account-auth__form .input-text:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--gold, #C9BDA4) 70%, var(--wp--preset--color--sand, #DDD2BE));
}

body.woocommerce-account .woocommerce form .form-row input.input-text:focus,
body.woocommerce-account .woocommerce form .form-row textarea:focus,
body.woocommerce-account .woocommerce form .form-row select:focus,
.wsr-account-auth__form .input-text:focus {
	outline: none;
	border-color: var(--wp--preset--color--ink, #3A3228);
	box-shadow: 0 0 0 1px var(--wp--preset--color--ink, #3A3228);
}

/* Password field wrapper — WC injects .password-input */
.wsr-account-auth__form .password-input,
body.woocommerce-account .woocommerce form .password-input {
	display: block;
	position: relative;
	width: 100%;
}

.wsr-account-auth__form .password-input input.input-text,
body.woocommerce-account .woocommerce form .password-input input.input-text {
	padding-right: 2.75rem;
}

/* Show password toggle — tone to palette */
body.woocommerce-account .woocommerce form .show-password-input,
body.woocommerce-account .woocommerce form .show-password-input::after {
	color: var(--wp--preset--color--muted, #756B58);
}

/* Meta row: remember me left / lost password right */
.wsr-account-auth__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	width: 100%;
	margin: 0.15rem 0 1.35rem;
}

.wsr-account-auth__meta .woocommerce-form-login__rememberme,
body.woocommerce-account .wsr-account-auth__meta .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
	color: var(--wp--preset--color--muted, #756B58);
	cursor: pointer;
}

.wsr-account-auth__meta .woocommerce-form-login__rememberme span {
	letter-spacing: 0;
	text-transform: none;
}

.wsr-account-auth__meta .wsr-account-auth__lost,
.wsr-account-auth__meta .lost_password {
	margin: 0;
	text-align: right;
}

body.woocommerce-account .woocommerce-form__input-checkbox,
.wsr-account-auth__form input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	min-height: 0;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var(--wp--preset--color--ink, #3A3228);
	border-radius: 0;
	cursor: pointer;
}

/* Primary buttons on account */
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce input.button,
body.woocommerce-account .woocommerce #respond input#submit,
.wsr-account-auth__form .button,
.wsr-account .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.15rem;
	padding: 0.9rem 1.75rem;
	border: 1px solid var(--wp--preset--color--ink, #3A3228);
	border-radius: 0;
	background: var(--wp--preset--color--ink, #3A3228);
	color: var(--wp--preset--color--base, #F7F3EB);
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce input.button:hover,
.wsr-account-auth__form .button:hover,
.wsr-account .button:hover {
	background: var(--wp--preset--color--bronze, #A08F6E);
	border-color: var(--wp--preset--color--bronze, #A08F6E);
	color: var(--wp--preset--color--base, #F7F3EB);
}

/* Full-width login / register CTA */
.wsr-account-auth__actions {
	display: block;
	width: 100%;
	margin: 0 !important;
	padding: 0;
}

.wsr-account-auth__actions .button,
.wsr-account-auth__form .woocommerce-form-login__submit,
.wsr-account-auth__form .woocommerce-form-register__submit {
	display: flex;
	width: 100%;
	min-width: 0;
}

.wsr-account-auth__lost a,
body.woocommerce-account .woocommerce-LostPassword a {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #756B58);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: color 0.2s ease, background-size 0.25s ease;
}

.wsr-account-auth__lost a:hover,
body.woocommerce-account .woocommerce-LostPassword a:hover {
	color: var(--wp--preset--color--ink, #3A3228);
	background-size: 100% 1px;
}

/* Kill WC default blue outline / white card on login */
body.woocommerce-account #customer_login > .u-column1,
body.woocommerce-account #customer_login > .u-column2,
body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register {
	border: 0;
	padding: 0;
	margin: 0;
	background: transparent;
}


/* ------------------------------------------------------------------ */
/* Logged-in account layout                                             */
/* ------------------------------------------------------------------ */

.wsr-account {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	align-items: stretch;
	min-height: min(70vh, 44rem);
}

@media (min-width: 900px) {
	.wsr-account {
		grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr);
		gap: clamp(2.5rem, 4.5vw, 3.75rem);
	}
}

/* Nav / sidebar */
.wsr-account__nav,
body.woocommerce-account .woocommerce-MyAccount-navigation {
	display: flex;
	flex-direction: column;
	width: 100%;
	float: none;
	margin: 0;
}

@media (min-width: 900px) {
	.wsr-account__nav,
	body.woocommerce-account .woocommerce-MyAccount-navigation {
		min-height: 100%;
		padding: 1.75rem 1.5rem 2rem;
		background: var(--wp--preset--color--surface, #EFE8DB);
		border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand, #DDD2BE) 85%, transparent);
	}
}

.wsr-account__nav-head {
	display: none;
}

@media (min-width: 900px) {
	.wsr-account__nav-head {
		display: block;
		margin-bottom: 1.75rem;
		padding-bottom: 1.35rem;
		border-bottom: 1px solid var(--wp--preset--color--sand, #DDD2BE);
	}
}

.wsr-account__nav-label {
	margin: 0 0 0.45rem;
}

.wsr-account__nav-user {
	margin: 0;
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--wp--preset--color--ink, #3A3228);
}

.wsr-account__nav-list,
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: nowrap;
	flex-direction: row;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--sand, #DDD2BE) transparent;
	border-bottom: 1px solid var(--wp--preset--color--sand, #DDD2BE);
}

@media (min-width: 900px) {
	.wsr-account__nav-list,
	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: column;
		gap: 0.2rem;
		overflow: visible;
		border-bottom: 0;
		padding: 0;
	}
}

.wsr-account__nav-list li,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
	flex: 0 0 auto;
}

.wsr-account__nav-list a,
body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	padding: 0.95rem 1rem;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--muted, #756B58);
	white-space: nowrap;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 900px) {
	.wsr-account__nav-list a,
	body.woocommerce-account .woocommerce-MyAccount-navigation a {
		padding: 0.95rem 1rem;
		white-space: normal;
		border-bottom: 0;
		border-left: 2px solid transparent;
	}

	.wsr-account__nav-list a:hover,
	body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
		background: color-mix(in srgb, var(--wp--preset--color--base, #F7F3EB) 70%, transparent);
		color: var(--wp--preset--color--ink, #3A3228);
	}
}

.wsr-account__nav-list a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	color: var(--wp--preset--color--ink, #3A3228);
}

.wsr-account__nav-list li.is-active a,
.wsr-account__nav-list a[aria-current="page"],
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
	color: var(--wp--preset--color--ink, #3A3228);
	border-bottom-color: var(--wp--preset--color--gold, #C9BDA4);
}

@media (min-width: 900px) {
	.wsr-account__nav-list li.is-active a,
	.wsr-account__nav-list a[aria-current="page"],
	body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
	body.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
		border-bottom-color: transparent;
		border-left-color: var(--wp--preset--color--gold, #C9BDA4);
		background: color-mix(in srgb, var(--wp--preset--color--base, #F7F3EB) 85%, transparent);
	}
}

/* Content column */
.wsr-account__content,
body.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.wsr-account__content > p,
.wsr-account__content > h2,
.wsr-account__content > h3 {
	color: var(--wp--preset--color--ink, #3A3228);
}

.wsr-account__content a:not(.button):not(.wsr-account-dashboard__card-link):not(.wsr-account-dashboard__order-link) {
	color: var(--wp--preset--color--ink, #3A3228);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	transition: color 0.2s ease, background-size 0.25s ease;
}

.wsr-account__content a:not(.button):not(.wsr-account-dashboard__card-link):not(.wsr-account-dashboard__order-link):hover {
	color: var(--wp--preset--color--bronze, #A08F6E);
	background-size: 100% 1px;
}

/* ------------------------------------------------------------------ */
/* Dashboard                                                            */
/* ------------------------------------------------------------------ */

.wsr-account-dashboard {
	display: flex;
	flex-direction: column;
	gap: clamp(1.75rem, 3vw, 2.5rem);
}

.wsr-account-dashboard__header {
	display: grid;
	gap: 1rem 2rem;
	margin: 0;
	padding: 0 0 1.75rem;
	border-bottom: 1px solid var(--wp--preset--color--sand, #DDD2BE);
}

@media (min-width: 720px) {
	.wsr-account-dashboard__header {
		grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 0.8fr);
		align-items: end;
	}
}

.wsr-account-dashboard__intro-block {
	min-width: 0;
}

.wsr-account-dashboard__switch {
	margin: 0.45rem 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #756B58);
}

.wsr-account-dashboard__switch a {
	color: var(--wp--preset--color--ink, #3A3228);
	font-weight: 500;
}

.wsr-account-dashboard__lede {
	max-width: 22rem;
	margin: 0;
}

@media (min-width: 720px) {
	.wsr-account-dashboard__lede {
		text-align: right;
		justify-self: end;
	}
}


.wsr-account-dashboard__section {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.wsr-account-dashboard__section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}

.wsr-account-dashboard__section-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold, #C9BDA4);
}

.wsr-account-dashboard__section-link {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, #756B58);
}

.wsr-account-dashboard__cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: stretch;
}

@media (min-width: 720px) {
	.wsr-account-dashboard__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.wsr-account-dashboard__card {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
	height: 100%;
}

/*
 * Card internals: flex column so the arrow pins to the bottom and all
 * three cards share one row height (grid stretch + height:100%).
 */
.wsr-account-dashboard__card-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	min-height: 11rem;
	padding: 1.35rem 1.25rem 1.2rem;
	background: var(--wp--preset--color--surface, #EFE8DB);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand, #DDD2BE) 85%, transparent);
	box-sizing: border-box;
	text-decoration: none !important;
	background-image: none !important;
	transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.wsr-account-dashboard__card-link:hover {
	border-color: var(--wp--preset--color--gold, #C9BDA4);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px color-mix(in srgb, var(--wp--preset--color--ink, #3A3228) 6%, transparent);
	background-size: 0 !important;
}

.wsr-account-dashboard__card-index {
	display: block;
	margin: 0 0 0.85rem;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--gold, #C9BDA4);
}

.wsr-account-dashboard__card-body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	flex: 1 1 auto;
	min-width: 0;
}

.wsr-account-dashboard__card-label {
	display: block;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink, #3A3228);
}

.wsr-account-dashboard__card-text {
	display: block;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--wp--preset--color--muted, #756B58);
}

.wsr-account-dashboard__card-arrow {
	display: block;
	margin-top: auto;
	padding-top: 1.15rem;
	align-self: flex-end;
	font-size: 1rem;
	line-height: 1;
	color: var(--wp--preset--color--bronze, #A08F6E);
	transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.wsr-account-dashboard__card-link:hover .wsr-account-dashboard__card-arrow {
	transform: translateX(3px);
}

/* Recent orders list */
.wsr-account-dashboard__orders {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand, #DDD2BE) 85%, transparent);
	background: var(--wp--preset--color--surface, #EFE8DB);
}

.wsr-account-dashboard__order {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sand, #DDD2BE) 80%, transparent);
}

.wsr-account-dashboard__order:last-child {
	border-bottom: 0;
}

.wsr-account-dashboard__order-link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.85rem 1.15rem;
	padding: 1.05rem 1.2rem;
	text-decoration: none !important;
	background-image: none !important;
	transition: background-color 0.2s ease;
}

.wsr-account-dashboard__order-link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--base, #F7F3EB) 70%, transparent);
}

.wsr-account-dashboard__order-id {
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink, #3A3228);
}

.wsr-account-dashboard__order-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	min-width: 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #756B58);
}

.wsr-account-dashboard__order-status {
	color: var(--wp--preset--color--bronze, #A08F6E);
}

.wsr-account-dashboard__order-total {
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink, #3A3228);
	white-space: nowrap;
}

/* Empty orders state */
.wsr-account-dashboard__empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--wp--preset--color--surface, #EFE8DB);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand, #DDD2BE) 85%, transparent);
}

.wsr-account-dashboard__empty-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: 1.45rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink, #3A3228);
}

.wsr-account-dashboard__empty-text {
	margin: 0 0 0.35rem;
	max-width: 28rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--wp--preset--color--muted, #756B58);
}

.wsr-account-dashboard__empty-cta {
	margin-top: 0.35rem;
}

@media (max-width: 640px) {
	.wsr-account-dashboard__order-link {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"id total"
			"meta total";
	}

	.wsr-account-dashboard__order-id { grid-area: id; }
	.wsr-account-dashboard__order-meta { grid-area: meta; }
	.wsr-account-dashboard__order-total { grid-area: total; align-self: center; }
}


/* ------------------------------------------------------------------ */
/* Tables (orders, downloads)                                           */
/* ------------------------------------------------------------------ */

body.woocommerce-account table.shop_table,
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce table.my_account_orders {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	border-radius: 0;
}

body.woocommerce-account table.shop_table thead th,
body.woocommerce-account .woocommerce-orders-table thead th {
	padding: 0.75rem 0.85rem;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--sand, #DDD2BE);
	background: transparent;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold, #C9BDA4);
	text-align: left;
}

body.woocommerce-account table.shop_table tbody th,
body.woocommerce-account table.shop_table tbody td,
body.woocommerce-account .woocommerce-orders-table tbody th,
body.woocommerce-account .woocommerce-orders-table tbody td {
	padding: 1rem 0.85rem;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sand, #DDD2BE) 70%, transparent);
	background: transparent;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--ink, #3A3228);
	vertical-align: middle;
}

body.woocommerce-account table.shop_table tbody tr:last-child th,
body.woocommerce-account table.shop_table tbody tr:last-child td {
	border-bottom: 0;
}

body.woocommerce-account table.shop_table .button,
body.woocommerce-account .woocommerce-orders-table .button {
	min-height: 2.35rem;
	padding: 0.55rem 1rem;
	margin: 0.15rem 0.25rem 0.15rem 0;
	font-size: 0.625rem;
}

/* ------------------------------------------------------------------ */
/* Addresses                                                            */
/* ------------------------------------------------------------------ */

body.woocommerce-account .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
body.woocommerce-account .u-columns.addresses,
body.woocommerce-account .col2-set.addresses,
body.woocommerce-account .woocommerce .col2-set.addresses {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
	margin: 1.5rem 0 0;
	width: 100%;
	max-width: none;
}

/* WC col2-set clearfix (::before display:table) steals a grid cell. */
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after,
body.woocommerce-account .col2-set.addresses::before,
body.woocommerce-account .col2-set.addresses::after,
body.woocommerce-account .u-columns.addresses::before,
body.woocommerce-account .u-columns.addresses::after,
body.woocommerce-account .woocommerce .col2-set::before,
body.woocommerce-account .woocommerce .col2-set::after {
	content: none !important;
	display: none !important;
}


@media (min-width: 700px) {
	body.woocommerce-account .woocommerce-Addresses,
	body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
	body.woocommerce-account .u-columns.addresses,
	body.woocommerce-account .col2-set.addresses,
	body.woocommerce-account .woocommerce .col2-set.addresses {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

body.woocommerce-account .woocommerce-Address,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address,
body.woocommerce-account .u-column1.woocommerce-Address,
body.woocommerce-account .u-column2.woocommerce-Address,
body.woocommerce-account .col2-set.addresses .col-1,
body.woocommerce-account .col2-set.addresses .col-2,
body.woocommerce-account .woocommerce .col2-set.addresses .col-1,
body.woocommerce-account .woocommerce .col2-set.addresses .col-2 {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	padding: 1.35rem 1.25rem;
	background: var(--wp--preset--color--surface, #EFE8DB);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand, #DDD2BE) 85%, transparent);
	box-sizing: border-box;
}



body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin: 0 0 0.85rem;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--sand, #DDD2BE);
}

body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink, #3A3228);
}

body.woocommerce-account .woocommerce-Address-title .edit {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, #756B58);
}

body.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--wp--preset--color--muted, #756B58);
}

/* ------------------------------------------------------------------ */
/* Edit account form                                                    */
/* ------------------------------------------------------------------ */

body.woocommerce-account .woocommerce-EditAccountForm fieldset {
	margin: 2rem 0 1.25rem;
	padding: 1.5rem 0 0;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--sand, #DDD2BE);
}

body.woocommerce-account .woocommerce-EditAccountForm legend {
	padding: 0;
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--body, "Jost", sans-serif);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold, #C9BDA4);
}

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

@media (min-width: 640px) {
	body.woocommerce-account .woocommerce-EditAccountForm {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 1.25rem;
	}

	body.woocommerce-account .woocommerce-EditAccountForm .form-row-wide,
	body.woocommerce-account .woocommerce-EditAccountForm fieldset,
	body.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type,
	body.woocommerce-account .woocommerce-EditAccountForm .clear {
		grid-column: 1 / -1;
	}

	body.woocommerce-account .woocommerce-EditAccountForm .form-row-first,
	body.woocommerce-account .woocommerce-EditAccountForm .form-row-last {
		width: auto;
	}
}

body.woocommerce-account .woocommerce-EditAccountForm em,
body.woocommerce-account #account_display_name_description {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.8125rem;
	font-style: normal;
	color: var(--wp--preset--color--muted, #756B58);
}

/* ------------------------------------------------------------------ */
/* Payment methods / misc                                               */
/* ------------------------------------------------------------------ */

body.woocommerce-account .woocommerce-PaymentMethods,
body.woocommerce-account .payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-account .woocommerce-pagination {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* Clear WC float layout leftovers */
body.woocommerce-account .woocommerce-MyAccount-navigation::after,
body.woocommerce-account .woocommerce-MyAccount-content::after,
body.woocommerce-account .woocommerce::after,
body.woocommerce-account .col2-set::after {
	content: none;
	display: none;
}

body.woocommerce-account .col2-set .col-1,
body.woocommerce-account .col2-set .col-2,
body.woocommerce-account .woocommerce .col2-set .col-1,
body.woocommerce-account .woocommerce .col2-set .col-2,
body.woocommerce-account .u-columns .u-column1,
body.woocommerce-account .u-columns .u-column2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}
