/*
 * Sola account presentation.
 *
 * The endpoint markup, navigation, forms, notices, and actions remain native
 * WooCommerce. These rules provide the account route with the same quiet,
 * warm, RTL-first canvas as the rest of the storefront.
 */

html body.wp-child-theme-furniture-child.woocommerce-account {
	background: var(--color-white) !important;
}

body.woocommerce-account .site-content,
body.woocommerce-account #primary,
body.woocommerce-account .site-main,
body.woocommerce-account .inside-article,
body.woocommerce-account .entry-content {
	inline-size: 100%;
	max-inline-size: none;
	margin: 0;
	padding: 0;
	background: var(--color-white);
	border: 0;
	box-shadow: none;
}

body.woocommerce-account .site-content > .content-area,
body.woocommerce-account #primary {
	flex: 0 0 100%;
}

body.woocommerce-account .site-content > .widget-area {
	display: none;
}

body.woocommerce-account .entry-header {
	display: none;
}

/* The account content is the only bounded landmark below the shared header. */
body.woocommerce-account .woocommerce {
	direction: rtl;
	display: grid;
	grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
	align-items: start;
	gap: clamp(var(--space-8), 6vw, var(--space-16));
	min-inline-size: 0;
	inline-size: min(calc(100% - (2 * var(--container-gutter))), var(--container-max));
	margin-inline: auto;
	padding-block: clamp(var(--space-8), 7vw, var(--space-16));
}

/* WooCommerce prints this wrapper before the account navigation even when it
 * has no notices. Keep the empty wrapper out of the grid so it cannot consume
 * the navigation track; real notices remain a full-width first row. */
body.woocommerce-account .woocommerce > .woocommerce-notices-wrapper:empty {
	display: none;
}

body.woocommerce-account .woocommerce > .woocommerce-notices-wrapper:not(:empty) {
	grid-column: 1 / -1;
	min-inline-size: 0;
	inline-size: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none;
	grid-column: 1;
	inline-size: 100%;
	max-inline-size: 15rem;
	min-inline-size: 0;
	margin: 0;
	padding-block-start: var(--space-1);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	border-block-start: 1px solid var(--color-border);
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	border-block-end: 1px solid var(--color-border);
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-block-size: 2.75rem;
	min-inline-size: 0;
	padding-block: var(--space-3);
	padding-inline: var(--space-3);
	color: var(--color-ink-soft);
	font-size: var(--font-size-ui);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-height-ui);
	text-align: start;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background-color var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}

body.woocommerce-account .woocommerce-MyAccount-navigation a::after {
	content: "←";
	color: var(--color-ink-soft);
	font-size: 1rem;
	line-height: 1;
	transition: transform var(--motion-fast) var(--motion-ease), color var(--motion-fast) var(--motion-ease);
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: var(--color-surface);
	color: var(--color-ink);
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover::after,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a::after {
	color: var(--color-accent);
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible {
	position: relative;
	z-index: 1;
	background: var(--color-surface);
}

body.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	grid-column: 2;
	inline-size: auto;
	min-inline-size: 0;
	margin: 0;
	color: var(--color-ink);
}

body.woocommerce-account .woocommerce-MyAccount-content > :first-child {
	margin-block-start: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content > :last-child {
	margin-block-end: 0;
}

body.woocommerce-account .sola-account-dashboard__header {
	max-inline-size: 42rem;
	margin-block-end: clamp(var(--space-6), 5vw, var(--space-12));
}

body.woocommerce-account .sola-account-dashboard__eyebrow {
	margin: 0 0 var(--space-2);
	color: var(--color-accent);
	font-size: var(--font-size-ui);
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.04em;
}

body.woocommerce-account .sola-account-dashboard__header h1 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: var(--line-height-heading);
}

body.woocommerce-account .sola-account-dashboard__header p:last-child {
	max-inline-size: 36rem;
	margin-block: var(--space-4) 0;
	color: var(--color-ink-soft);
	font-size: var(--font-size-body-large);
}

body.woocommerce-account .sola-account-dashboard__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
	min-inline-size: 0;
	margin: 0;
}

body.woocommerce-account .sola-account-dashboard__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-block-size: 9rem;
	min-inline-size: 0;
	padding: var(--space-6);
	border: 1px solid var(--color-border);
	border-radius: 0;
	background: var(--color-white);
	color: var(--color-ink);
	box-shadow: none;
	text-decoration: none;
	transition: border-color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

body.woocommerce-account .sola-account-dashboard__card:hover,
body.woocommerce-account .sola-account-dashboard__card:focus-visible {
	border-color: var(--color-border-strong);
	background: var(--color-surface);
	color: var(--color-ink);
}

body.woocommerce-account .sola-account-dashboard__card:hover {
	transform: translateY(-2px);
}

body.woocommerce-account .sola-account-dashboard__card-title {
	font-size: 1.125rem;
	font-weight: var(--font-weight-semibold);
	line-height: var(--line-height-heading);
}

body.woocommerce-account .sola-account-dashboard__card-description {
	margin-block-start: var(--space-3);
	color: var(--color-ink-soft);
	font-size: var(--font-size-ui);
	line-height: var(--line-height-ui);
	overflow-wrap: anywhere;
}

body.woocommerce-account .sola-account-dashboard__card-arrow {
	margin-block-start: auto;
	color: var(--color-accent);
	font-size: 1.25rem;
	line-height: 1;
}

body.woocommerce-account .sola-account-dashboard__logout {
	display: inline-flex;
	min-block-size: 2.75rem;
	align-items: center;
	margin-block-start: var(--space-8);
	color: var(--color-ink-soft);
	font-size: var(--font-size-ui);
	font-weight: var(--font-weight-semibold);
}

/* Logged-out native login/register forms share the same bounded content rail. */
body.woocommerce-account:not(.logged-in) .woocommerce {
	display: block;
	max-inline-size: 58rem;
}

body.woocommerce-account:not(.logged-in) .u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(var(--space-8), 6vw, var(--space-16));
}

body.woocommerce-account:not(.logged-in) .u-column1,
body.woocommerce-account:not(.logged-in) .u-column2 {
	float: none;
	inline-size: auto;
	margin: 0;
}

/* The opt-in email-code shell is the logged-out entry surface. Native
 * WooCommerce password login remains available on the explicit password
 * subroute, so the two layouts never compete for attention. */
body.woocommerce-account.sola-customer-access-enabled .u-columns.col2-set,
body.woocommerce-account.sola-customer-access-enabled .woocommerce-form-login.login,
body.woocommerce-account.sola-customer-access-enabled .woocommerce-form-register.register,
body.woocommerce-account.sola-customer-access-enabled .woocommerce > h2:has(+ form.woocommerce-form-login.login),
body.woocommerce-account.sola-customer-access-enabled .woocommerce > h2:has(+ form.woocommerce-form-register.register) {
	display: none;
}

body.woocommerce-account .sola-customer-access {
	max-inline-size: 40rem;
	margin-inline: auto;
	padding: clamp(var(--space-6), 4vw, var(--space-8));
	border: 1px solid var(--color-border);
	background: var(--color-white);
	color: var(--color-ink);
}

body.woocommerce-account .sola-customer-access__header {
	max-inline-size: 36rem;
	margin-block-end: var(--space-4);
}

body.woocommerce-account .sola-customer-access__eyebrow {
	margin: 0 0 var(--space-2);
	color: var(--color-accent);
	font-size: var(--font-size-ui);
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.04em;
}

body.woocommerce-account .sola-customer-access__header h1 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: var(--line-height-heading);
}

body.woocommerce-account .sola-customer-access__header p:last-child {
	margin: var(--space-3) 0 0;
	color: var(--color-ink-soft);
	font-size: var(--font-size-body-large);
}

body.woocommerce-account .sola-customer-access__modes {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-4);
	margin-block-end: var(--space-4);
	border-block-end: 1px solid var(--color-border);
}

body.woocommerce-account .sola-customer-access__mode-link {
	display: inline-flex;
	min-block-size: 2.75rem;
	align-items: center;
	padding-block: var(--space-2);
	color: var(--color-ink-soft);
	font-size: var(--font-size-ui);
	font-weight: var(--font-weight-semibold);
	text-decoration: none;
	border-block-end: 2px solid transparent;
}

body.woocommerce-account .sola-customer-access__mode-link:hover,
body.woocommerce-account .sola-customer-access__mode-link:focus-visible,
body.woocommerce-account .sola-customer-access__mode-link.is-active {
	color: var(--color-ink);
	border-block-end-color: var(--color-accent);
}

body.woocommerce-account .sola-customer-access__status {
	min-block-size: 0;
	margin-block-end: var(--space-3);
	color: var(--color-ink-soft);
	font-size: var(--font-size-ui);
}

body.woocommerce-account .sola-customer-access__status:empty {
	display: none;
}

body.woocommerce-account .sola-customer-access__status.is-error {
	color: var(--color-error);
}

body.woocommerce-account .sola-customer-access__status.is-success {
	color: var(--color-success);
}

/* Customer-access actions are deliberately crisp; preserve the shared
 * dimensions, focus outline, and touch targets while removing inherited
 * directional button rounding. */
body.woocommerce-account .sola-customer-access .sola-button {
	border-radius: 0;
}

body.woocommerce-account .sola-customer-access__panel-title {
	margin: 0 0 var(--space-4);
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	line-height: var(--line-height-heading);
}

body.woocommerce-account .sola-customer-access__panel-title:focus {
	outline: var(--focus-width) solid var(--focus-color);
	outline-offset: var(--focus-offset);
}

body.woocommerce-account .sola-customer-access__field {
	margin-block-end: var(--space-4);
}

body.woocommerce-account .sola-customer-access__field label {
	display: block;
	margin-block-end: var(--space-2);
	font-size: var(--font-size-ui);
	font-weight: var(--font-weight-semibold);
}

body.woocommerce-account .sola-customer-access__field input {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 3rem;
	margin: 0;
	padding-block: var(--space-3);
	padding-inline: var(--space-3);
	border: 1px solid var(--color-border-strong);
	border-radius: 0;
	background: var(--color-white);
	color: var(--color-ink);
	font-size: 1rem;
}

body.woocommerce-account .sola-customer-access__field input:focus-visible {
	outline: 3px solid var(--focus-color);
	outline-offset: 2px;
}

body.woocommerce-account .sola-customer-access__field input[dir="ltr"] {
	direction: ltr;
	text-align: start;
	unicode-bidi: plaintext;
}

/* Keep the verification code as one visible native field. This preserves the
 * browser caret, selection, keyboard editing, paste and one-time-code autofill
 * semantics inside the Hebrew account surface. */
body.woocommerce-account .sola-customer-access__code-input-wrap {
	direction: ltr;
	unicode-bidi: isolate;
	inline-size: min(100%, 20ch);
	margin-inline-start: auto;
}

body.woocommerce-account .sola-customer-access__field input.sola-customer-access__code-input {
	min-block-size: 3.5rem;
	padding-inline: var(--space-4);
	font-size: 1.25rem;
	font-variant-numeric: tabular-nums;
	text-align: start;
	caret-color: var(--color-accent);
	unicode-bidi: isolate;
}

body.woocommerce-account .sola-customer-access__code-input:disabled {
	background: var(--color-surface);
	color: var(--color-ink-soft);
	cursor: not-allowed;
	opacity: 0.65;
}

body.woocommerce-account .sola-customer-access__help,
body.woocommerce-account .sola-customer-access__cooldown {
	margin: var(--space-2) 0 0;
	color: var(--color-ink-soft);
	font-size: var(--font-size-ui);
	line-height: var(--line-height-ui);
}

body.woocommerce-account .sola-customer-access__submit {
	inline-size: 100%;
	min-block-size: 3rem;
	justify-content: center;
}

body.woocommerce-account .sola-customer-access__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-4);
	margin-block-start: var(--space-4);
}

body.woocommerce-account .sola-customer-access__actions .sola-button {
	min-block-size: 3rem;
}

body.woocommerce-account .sola-customer-access__actions .sola-button:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

body.woocommerce-account .sola-customer-access__result {
	padding: var(--space-4);
	border-block-start: 1px solid var(--color-border);
	border-block-end: 1px solid var(--color-border);
}

body.woocommerce-account .sola-customer-access__result dl {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: var(--space-2) var(--space-4);
	margin: 0;
}

body.woocommerce-account .sola-customer-access__result dt {
	color: var(--color-ink-soft);
	font-weight: var(--font-weight-semibold);
}

body.woocommerce-account .sola-customer-access__result dd {
	margin: 0;
	text-align: start;
}

body.woocommerce-account .sola-customer-access__result ul {
	grid-column: 1 / -1;
	margin: var(--space-2) 0 0;
	padding-inline-start: 1.25rem;
}

body.woocommerce-account .sola-customer-access__support,
body.woocommerce-account .sola-customer-access__password-fallback {
	display: inline-flex;
	min-block-size: 3rem;
	align-items: center;
	margin-block-start: var(--space-4);
	color: var(--color-link);
	font-weight: var(--font-weight-semibold);
}

body.woocommerce-account .sola-customer-access__noscript {
	margin-block-start: var(--space-4);
	color: var(--color-error);
}

body.woocommerce-account .sola-customer-access [hidden] {
	display: none !important;
}

@media (max-width: 60rem) {
	body.woocommerce-account .woocommerce {
	grid-template-columns: minmax(11rem, 13rem) minmax(0, 1fr);
	gap: var(--space-8) var(--space-6);
	}

	body.woocommerce-account .sola-account-dashboard__cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 47.99rem) {
	body.woocommerce-account .woocommerce,
	body.woocommerce-account:not(.logged-in) .woocommerce {
	inline-size: min(calc(100% - (2 * var(--container-gutter))), 42rem);
	padding-block: var(--space-6) var(--space-12);
	}

	body.woocommerce-account .woocommerce {
	grid-template-columns: 1fr;
	gap: var(--space-6);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation {
	grid-column: 1;
	inline-size: 100%;
	max-inline-size: none;
	padding-block-start: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--space-4);
	min-inline-size: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li,
	body.woocommerce-account .woocommerce-MyAccount-navigation a {
	min-inline-size: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-content {
	grid-column: 1;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation a {
	padding-inline: var(--space-2);
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li:nth-last-child(-n + 2) {
	border-block-end: 0;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation li:nth-child(odd):last-child {
	border-block-end: 1px solid var(--color-border);
	}

	body.woocommerce-account .sola-account-dashboard__header {
	margin-block-end: var(--space-6);
	}

	body.woocommerce-account .sola-account-dashboard__header h1 {
	font-size: clamp(1.75rem, 8vw, 2.5rem);
	}

	body.woocommerce-account .sola-account-dashboard__cards {
	grid-template-columns: 1fr;
	}

	body.woocommerce-account:not(.logged-in) .u-columns.col2-set {
	grid-template-columns: 1fr;
	gap: var(--space-8);
	}

	body.woocommerce-account .sola-customer-access {
	padding-inline: 0;
	border-inline: 0;
	}

	body.woocommerce-account .sola-customer-access__modes {
	margin-block-end: var(--space-6);
	}

	body.woocommerce-account .sola-customer-access__result dl {
	grid-template-columns: 1fr;
	gap: var(--space-1);
	}

	body.woocommerce-account .sola-customer-access__result dd {
	margin-block-end: var(--space-3);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.woocommerce-account .sola-account-dashboard__card,
	body.woocommerce-account .sola-account-dashboard__card:hover,
	body.woocommerce-account .woocommerce-MyAccount-navigation a,
	body.woocommerce-account .woocommerce-MyAccount-navigation a::after {
	transition: none;
	transform: none;
	}
}
