/*
 * عابرين — pages/account.css
 * My Account (page-templates/my-account.php + template-parts/account/*):
 * side navigation, content cards, login/register tabs, dashboard stats,
 * orders list cards, order view (items + codes block + totals), edit-account
 * form wrapper with password toggles and the distributor program tab.
 * WooCommerce form fields themselves are restyled in woocommerce.css.
 * Handle: stv-page-account.
 */

/* ===== Layout ===== */
.stv-account {
	padding-block: var(--stv-space-5) var(--stv-space-8);
}

.stv-account > .stv-page-title { margin-block-end: var(--stv-space-5); }

.stv-account__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--stv-space-5);
	align-items: start;
}

.stv-account__content {
	display: flex;
	flex-direction: column;
	gap: var(--stv-space-5);
	min-width: 0;
}

.stv-account__card,
.stv-account__wc {
	padding: var(--stv-space-5);
}

.stv-account__head {
	display: flex;
	flex-direction: column;
	gap: var(--stv-space-1);
	margin-block-end: var(--stv-space-5);
}

.stv-account__title { font-size: var(--stv-font-size-2xl); font-weight: var(--stv-weight-heading); line-height: var(--stv-lh-heading); }

.stv-account__subtitle { color: var(--stv-color-text-muted); }

/* ===== Side navigation ===== */
.stv-account__nav { padding: var(--stv-space-4); }

.stv-account__nav-user {
	display: flex;
	align-items: center;
	gap: var(--stv-space-3);
	padding-block-end: var(--stv-space-4);
	margin-block-end: var(--stv-space-3);
	border-block-end: 1px solid var(--stv-color-border);
}

.stv-account__nav-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--stv-color-primary-soft);
	color: var(--stv-color-primary);
}

.stv-account__nav-avatar-img { width: 100%; height: 100%; object-fit: cover; }

.stv-account__nav-name {
	overflow: hidden;
	font-weight: var(--stv-weight-ui);
	white-space: nowrap;
	text-overflow: ellipsis;
}

.stv-account__nav-list {
	display: flex;
	gap: var(--stv-space-1);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.stv-account__nav-list::-webkit-scrollbar { display: none; }

.stv-account__nav-item { flex: 0 0 auto; }

.stv-account__nav-link {
	display: flex;
	align-items: center;
	gap: var(--stv-space-3);
	padding: var(--stv-space-3);
	border-radius: var(--stv-radius-md);
	color: var(--stv-color-text-muted);
	font-weight: var(--stv-weight-ui);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--stv-transition), color var(--stv-transition);
}

.stv-account__nav-icon { font-size: 20px; }

@media (hover: hover) {
	.stv-account__nav-link:hover { background: var(--stv-color-surface-2); color: var(--stv-color-text); }

	.stv-account__nav-item--logout .stv-account__nav-link:hover { background: var(--stv-color-error-soft); color: var(--stv-color-error); }
}

.stv-account__nav-item.is-active .stv-account__nav-link,
.stv-account__nav-link[aria-current] {
	background: var(--stv-color-primary-soft);
	color: var(--stv-color-primary);
}

.stv-account__nav-link:focus-visible { outline: none; box-shadow: var(--stv-focus-ring); }

/* ===== Login / register ===== */
.stv-account__auth {
	width: 100%;
	max-width: 560px;
	margin-inline: auto;
	padding: var(--stv-space-5);
}

.stv-account__auth-head { margin-block-end: var(--stv-space-5); text-align: center; }

.stv-account__auth-title { font-size: var(--stv-font-size-2xl); font-weight: var(--stv-weight-heading); }

.stv-account__auth-subtitle { margin-block-start: var(--stv-space-1); color: var(--stv-color-text-muted); }

.stv-account__auth-tabs .stv-tabs__list {
	justify-content: center;
	margin-block-end: var(--stv-space-5);
	padding: 4px;
	border: 1px solid var(--stv-color-border);
	border-radius: var(--stv-radius-pill);
	background: var(--stv-color-surface-2);
}

.stv-account__auth-tabs .stv-tabs__tab { flex: 1 1 0; justify-content: center; border-radius: var(--stv-radius-pill); }

.stv-account__auth-tabs .stv-tabs__tab::after { display: none; }

.stv-account__auth-tabs .stv-tabs__tab.is-active,
.stv-account__auth-tabs .stv-tabs__tab[aria-selected="true"] {
	background: var(--stv-color-primary);
	color: var(--stv-color-on-primary);
}

.stv-account__auth-target .woocommerce-form,
.stv-account__wc-login .woocommerce-form {
	margin: 0;
	padding: 0;
	border: 0;
}

.stv-account__auth-target:empty { display: none; }

/* WooCommerce prints both forms once inside the source wrapper; account.js
   moves them into the tab targets, so the emptied source disappears */
body.stv-js .stv-account__wc-login:empty,
.stv-account__wc-login.is-moved {
	display: none;
}

.stv-account__wc-login { display: flex; flex-direction: column; gap: var(--stv-space-5); }

.stv-account__wc-login .u-columns,
.stv-account__wc-login .col2-set {
	display: grid;
	gap: var(--stv-space-5);
}

.stv-account__wc-login .col-1,
.stv-account__wc-login .col-2 {
	width: auto;
	float: none; /* WooCommerce col-1/col-2 float reset */
}

/* The forms themselves, wherever account.js put them (tab panels or the source block) */
.stv-account__auth .woocommerce-form-login .form-row,
.stv-account__auth .woocommerce-form-register .form-row { margin-block-end: var(--stv-space-4); }
.stv-account__auth .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: var(--stv-space-2); margin-block-end: var(--stv-space-3); font-weight: var(--stv-weight-body); cursor: pointer; }
.stv-account__auth .woocommerce-form-login__submit,
.stv-account__auth .woocommerce-form-register__submit { width: 100%; }
.stv-account__auth .woocommerce-LostPassword { margin-block-start: var(--stv-space-1); }
.stv-account__auth-single { margin-block-start: var(--stv-space-2); }
.stv-account__auth-tabs .stv-tabs__panel { padding-block-start: var(--stv-space-1); } /* the pill tab list already has its own bottom margin */

.stv-account__proof {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--stv-space-2);
	margin-block-start: var(--stv-space-5);
	font-size: var(--stv-font-size-xs);
	color: var(--stv-color-text-muted);
	text-align: center;
}

.stv-account__proof .stv-icon { font-size: 16px; color: var(--stv-color-success); }

.stv-account__auth-guest {
	margin-block-start: var(--stv-space-3);
	font-size: var(--stv-font-size-sm);
	color: var(--stv-color-text-muted);
	text-align: center;
}

/* ===== Dashboard ===== */
.stv-account__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stv-space-3); }

.stv-account__stat {
	display: flex;
	flex-direction: column;
	gap: var(--stv-space-2);
	padding: var(--stv-space-4);
}

.stv-account__stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--stv-radius-md);
	background: var(--stv-color-primary-soft);
	color: var(--stv-color-primary);
}

.stv-account__stat-value { font-size: var(--stv-font-size-2xl); font-weight: var(--stv-weight-heading); line-height: 1.2; }

.stv-account__stat-label { font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }

.stv-account__stat-date { font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }

.stv-account__shortcuts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--stv-space-3);
	margin-block-start: var(--stv-space-5);
}

.stv-account__wc-dashboard { margin-block-start: var(--stv-space-5); color: var(--stv-color-text-muted); }

.stv-account__wc-dashboard:empty { display: none; }

/* ===== Orders list ===== */
.stv-orders {
	display: flex;
	flex-direction: column;
	gap: var(--stv-space-3);
	list-style: none;
}

.stv-order-card { padding: var(--stv-space-4) var(--stv-space-5); }

.stv-order-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--stv-space-2);
	margin-block-end: var(--stv-space-3);
}

.stv-order-card__number {
	font-size: var(--stv-font-size-lg);
	font-weight: var(--stv-weight-heading);
	color: var(--stv-color-text);
	text-decoration: none;
}

@media (hover: hover) {
	.stv-order-card__number:hover { color: var(--stv-color-primary); }
}

.stv-order-card__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--stv-space-2) var(--stv-space-4);
	font-size: var(--stv-font-size-xs);
}

.stv-order-card__meta-row dt { color: var(--stv-color-text-muted); }

.stv-order-card__meta-row dd { font-size: var(--stv-font-size-sm); font-weight: var(--stv-weight-ui); }

.stv-order-card__meta-row--total dd { color: var(--stv-color-price); }

.stv-order-card__items { margin-block-start: var(--stv-space-3); font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); }

.stv-order-card__more { color: var(--stv-color-text-muted); }

.stv-order-card__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--stv-space-2);
	margin-block-start: var(--stv-space-4);
}

.stv-account__pagination { margin-block-start: var(--stv-space-5); }

/* ===== Order view ===== */
.stv-order-view__head { gap: var(--stv-space-3); }

.stv-order-view__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--stv-space-3);
}

.stv-order-view__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--stv-space-2) var(--stv-space-5);
	font-size: var(--stv-font-size-sm);
}

.stv-order-view__meta-row { display: flex; gap: var(--stv-space-1); }

.stv-order-view__meta-row dt { color: var(--stv-color-text-muted); }

.stv-order-view__meta-row dd { font-weight: var(--stv-weight-ui); }

.stv-order-view__products { padding: var(--stv-space-5); }

.stv-order-view__heading-sub { margin-block-end: var(--stv-space-4); font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); }

.stv-order-view__items { display: flex; flex-direction: column; list-style: none; }

.stv-order-item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: var(--stv-space-2) var(--stv-space-3);
	align-items: center;
	padding-block: var(--stv-space-3);
	border-block-start: 1px solid var(--stv-color-border);
}

.stv-order-item:first-child { border-block-start: 0; padding-block-start: 0; }

.stv-order-item--gift {
	padding-inline: var(--stv-space-2);
	border: 1px solid var(--stv-color-success);
	border-radius: var(--stv-radius-md);
	background: var(--stv-color-success-soft);
}

.stv-order-item__media { grid-row: span 2; }

.stv-order-item__thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--stv-radius-sm);
	background: var(--stv-color-surface-2);
}

.stv-order-item__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.stv-order-item__name { font-size: var(--stv-font-size-sm); font-weight: var(--stv-weight-ui); }

.stv-order-item__variation,
.stv-order-item__fields {
	font-size: var(--stv-font-size-xs);
	color: var(--stv-color-text-muted);
}

.stv-order-item__fields {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 2px var(--stv-space-2);
}

.stv-order-item__field-label { color: var(--stv-color-text-muted); }

.stv-order-item__field-label::after { content: ":"; margin-inline-end: 2px; }

.stv-order-item__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--stv-space-2);
}

.stv-order-item__delivery { font-size: var(--stv-font-size-xs); color: var(--stv-color-success); }

.stv-order-item__delivery--manual { color: var(--stv-color-warning); }

.stv-order-item__qty { grid-column: 2; font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }

.stv-order-item__total {
	grid-column: 3;
	grid-row: 1 / span 2;
	font-size: var(--stv-font-size-sm);
	font-weight: var(--stv-weight-ui);
	white-space: nowrap;
}

.stv-order-item--gift .stv-order-item__total { color: var(--stv-color-success); }

.stv-order-view__totals {
	display: flex;
	flex-direction: column;
	gap: var(--stv-space-2);
	margin-block-start: var(--stv-space-4);
	padding-block-start: var(--stv-space-4);
	border-block-start: 1px solid var(--stv-color-border);
}

.stv-order-view__totals .stv-summary__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--stv-space-3);
	font-size: var(--stv-font-size-sm);
	color: var(--stv-color-text-muted);
}

.stv-order-view__totals .stv-summary__row[hidden] { display: none; }

.stv-order-view__totals .stv-summary__row dd { font-weight: var(--stv-weight-ui); color: var(--stv-color-text); }

.stv-order-view__totals .stv-summary__row--discount,
.stv-order-view__totals .stv-summary__row--discount dd {
	color: var(--stv-color-success);
}

.stv-order-view__totals .stv-summary__row--total {
	padding-block-start: var(--stv-space-2);
	border-block-start: 1px solid var(--stv-color-border);
	font-size: var(--stv-font-size-lg);
	font-weight: var(--stv-weight-heading);
	color: var(--stv-color-text);
}

.stv-order-view__totals .stv-summary__row--total dd { color: var(--stv-color-price); }

.stv-order-view__note {
	margin-block-start: var(--stv-space-4);
	padding: var(--stv-space-3) var(--stv-space-4);
	border-radius: var(--stv-radius-md);
	background: var(--stv-color-surface-2);
	font-size: var(--stv-font-size-sm);
	color: var(--stv-color-text-muted);
}

.stv-order-view__modules {
	display: flex;
	flex-direction: column;
	gap: var(--stv-space-5);
	margin-block-start: var(--stv-space-5);
}

.stv-order-view__modules:empty { display: none; }

.stv-order-view__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--stv-space-3);
	margin-block-start: var(--stv-space-5);
}

/* Delivered codes block (instant-delivery module) inside the order view */
.stv-codes {
	padding: var(--stv-space-5);
	border: 1px solid var(--stv-color-primary);
	border-radius: var(--stv-radius-lg);
	background: var(--stv-color-surface);
	box-shadow: var(--stv-shadow-glow);
}

.stv-codes__title {
	display: flex;
	align-items: center;
	gap: var(--stv-space-2);
	margin-block-end: var(--stv-space-4);
	font-size: var(--stv-font-size-xl);
	font-weight: var(--stv-weight-heading);
}

.stv-codes__title .stv-icon { color: var(--stv-color-primary); }

.stv-codes__item + .stv-codes__item { margin-block-start: var(--stv-space-4); padding-block-start: var(--stv-space-4); border-block-start: 1px solid var(--stv-color-border); }

.stv-codes__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--stv-space-2);
	margin-block-end: var(--stv-space-3);
}

.stv-codes__name { font-size: var(--stv-font-size-base); font-weight: var(--stv-weight-ui); }

.stv-codes__qty {
	padding: 2px 8px;
	border-radius: var(--stv-radius-pill);
	background: var(--stv-color-surface-2);
	font-size: var(--stv-font-size-xs);
	color: var(--stv-color-text-muted);
}

.stv-codes__list { display: flex; flex-direction: column; gap: var(--stv-space-2); }

.stv-codes__code { display: flex; align-items: center; gap: var(--stv-space-2); }

.stv-codes__value {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: var(--stv-space-2) var(--stv-space-3);
	border: 1px dashed var(--stv-color-border-strong);
	border-radius: var(--stv-radius-md);
	background: var(--stv-color-surface-2);
	color: var(--stv-color-text);
	font-family: var(--stv-font-family-mono);
	font-size: var(--stv-font-size-lg);
	letter-spacing: .08em;
	text-align: start;
}

.stv-codes__steps {
	display: inline-block;
	margin-block-start: var(--stv-space-2);
	font-size: var(--stv-font-size-sm);
	color: var(--stv-color-primary);
}

.stv-codes__manual,
.stv-codes__pending {
	padding: var(--stv-space-3) var(--stv-space-4);
	border-radius: var(--stv-radius-md);
	font-size: var(--stv-font-size-sm);
}

.stv-codes__manual { background: var(--stv-color-warning-soft); color: var(--stv-color-warning); }

.stv-codes__pending { background: var(--stv-color-info-soft); color: var(--stv-color-info); }

/* ===== Edit account ===== */
.stv-account__edit { padding: var(--stv-space-5); }

.stv-account__edit .stv-account__wc-edit { margin-block-start: var(--stv-space-2); padding: 0; }

.stv-account__wc-edit .woocommerce-EditAccountForm fieldset { margin-block-start: var(--stv-space-5); padding-block-start: var(--stv-space-4); border-block-start: 1px solid var(--stv-color-border); }

/* The legend floats so it reads as the box title instead of cutting the border; the first row clears it */
.stv-account__wc-edit .woocommerce-EditAccountForm legend { float: inline-start; width: 100%; margin-block-end: var(--stv-space-3); padding: 0; font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); }

.stv-account__wc-edit .woocommerce-EditAccountForm legend + * { clear: both; }

.stv-account__wc-edit .woocommerce-EditAccountForm .woocommerce-Button { width: 100%; }

@media (min-width: 600px) {
	.stv-account__wc-edit .woocommerce-EditAccountForm .woocommerce-Button { width: auto; min-width: 200px; }
}

/* Password visibility toggle injected by account.js */
.stv-password-wrap { position: relative; }

.stv-password-wrap input:not([type="checkbox"]):not([type="radio"]) { padding-inline-end: 52px; } /* beats the WooCommerce field padding (woocommerce.css) */

.stv-password-toggle {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	transform: translateY(-50%);
	border-radius: var(--stv-radius-sm);
	color: var(--stv-color-text-muted);
	transition: background-color var(--stv-transition), color var(--stv-transition);
}

@media (hover: hover) {
	.stv-password-toggle:hover { background: var(--stv-color-surface-3); color: var(--stv-color-text); }
}

.stv-password-toggle:focus-visible { outline: none; box-shadow: var(--stv-focus-ring); }

.stv-password-toggle .stv-icon { font-size: 20px; }

.stv-password-toggle .stv-icon--eye-off,
.stv-password-toggle[aria-pressed="true"] .stv-icon--eye,
.stv-password-toggle.is-visible .stv-icon--eye {
	display: none;
}

.stv-password-toggle[aria-pressed="true"] .stv-icon--eye-off,
.stv-password-toggle.is-visible .stv-icon--eye-off {
	display: inline-block;
}

.stv-account form.is-submitting,
.stv-account form.is-loading {
	opacity: .7;
	pointer-events: none;
}

/* WooCommerce's own show-password icon is replaced by the theme toggle */
.stv-account .show-password-input { display: none; }

/* ===== Distributor program ===== */
.stv-distributor__status { padding: var(--stv-space-5); border-inline-start: 4px solid var(--stv-color-warning); }

.stv-distributor__status--pending { border-inline-start-color: var(--stv-color-warning); background: var(--stv-color-warning-soft); }

.stv-distributor__status--approved { border-inline-start-color: var(--stv-color-success); background: var(--stv-color-success-soft); }

.stv-distributor__status--rejected { border-inline-start-color: var(--stv-color-error); background: var(--stv-color-error-soft); }

.stv-distributor__status-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--stv-space-3);
	margin-block-end: var(--stv-space-3);
}

.stv-distributor__status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--stv-color-surface);
}

.stv-distributor__status--pending .stv-distributor__status-icon { color: var(--stv-color-warning); }

.stv-distributor__status--approved .stv-distributor__status-icon { color: var(--stv-color-success); }

.stv-distributor__status--rejected .stv-distributor__status-icon { color: var(--stv-color-error); }

.stv-distributor__status-title { font-size: var(--stv-font-size-xl); font-weight: var(--stv-weight-heading); }

.stv-distributor__status-text { color: var(--stv-color-text); }

.stv-distributor__note {
	margin-block-start: var(--stv-space-3);
	padding: var(--stv-space-3) var(--stv-space-4);
	border-radius: var(--stv-radius-md);
	background: var(--stv-color-surface);
	font-size: var(--stv-font-size-sm);
}

.stv-distributor__note-label { margin-inline-end: var(--stv-space-1); }

.stv-distributor__welcome { margin-block-start: var(--stv-space-4); }

.stv-distributor__contact { margin-block-start: var(--stv-space-4); }

.stv-distributor__data-title { margin-block: var(--stv-space-5) var(--stv-space-3); font-size: var(--stv-font-size-base); font-weight: var(--stv-weight-ui); }

.stv-distributor__data { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stv-space-2) var(--stv-space-4); }

.stv-distributor__data-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--stv-space-2) var(--stv-space-3);
	border-radius: var(--stv-radius-sm);
	background: var(--stv-color-surface);
	font-size: var(--stv-font-size-sm);
}

.stv-distributor__data-row dt { font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }

.stv-distributor__data-row dd { font-weight: var(--stv-weight-ui); }

.stv-distributor__data-row--note { grid-column: 1 / -1; }

.stv-distributor__apply { padding: var(--stv-space-5); }

.stv-distributor__form-title { font-size: var(--stv-font-size-xl); font-weight: var(--stv-weight-heading); }

.stv-distributor__form-intro { margin-block: var(--stv-space-1) var(--stv-space-5); color: var(--stv-color-text-muted); }

.stv-distributor__form { display: flex; flex-direction: column; gap: var(--stv-space-4); }

.stv-distributor__form-user { font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }

.stv-phone-field { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: var(--stv-space-2); }

.stv-phone-field__number { direction: ltr; text-align: start; }

/* ===== Breakpoints ===== */
@media (min-width: 600px) {
	.stv-account__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.stv-account__auth { padding: var(--stv-space-6); }

	.stv-account__wc-login .u-columns,
	.stv-account__wc-login .col2-set {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stv-order-card__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }

	.stv-distributor__data { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.stv-account__layout { grid-template-columns: 260px minmax(0, 1fr); gap: var(--stv-space-6); }

	.stv-account__nav { position: sticky; top: calc(var(--stv-adminbar-height, 0px) + var(--stv-header-height) + var(--stv-header-offset) + var(--stv-topbar-height, 0px) + var(--stv-store-notice-height, 0px) + var(--stv-space-4)); }

	.stv-account__nav-list { flex-direction: column; overflow: visible; }

	.stv-account__nav-item { flex: 0 0 auto; }

	.stv-account__nav-link { white-space: normal; }

	.stv-account__nav-item--logout { margin-block-start: var(--stv-space-2); padding-block-start: var(--stv-space-2); border-block-start: 1px solid var(--stv-color-border); }

	.stv-account__card,
	.stv-account__wc,
	.stv-account__edit,
	.stv-order-view__products,
	.stv-distributor__apply {
		padding: var(--stv-space-6);
	}
}

/* Phones: the dashboard's profile card already shows the avatar, name and tier */
@media (max-width: 899px) {
	.stv-account--dashboard .stv-account__nav-user { display: none; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
	.stv-account__nav-link,
	.stv-password-toggle {
		transition: none;
	}
}
