/* Account + auth pages. Ported from v1 account.css and auth.css with tokens mapped to v2 (S8). */
/*
 * account.css - My Account (page-unique).
 * 2-col shell, sidebar + user card, dashboard stat cards, quick actions,
 * orders table + status chips, profile tabs, address cards, wishlist grid,
 * view-order detail. Shared tokens/chrome live in theme.css.
 *
 * @package HID_VP_Solution
 */

/* ── 2-column shell ───────────────────────────────────────────────────── */
.account-shell {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 0;
	align-items: start;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-xl);
	overflow: hidden;
	margin: 8px 0 24px;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.account-sidebar,
.woocommerce-MyAccount-navigation.account-sidebar {
	background: var(--surface);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	padding: 0;
	align-self: stretch;
	min-height: 100%;
	/* Override WooCommerce's default .woocommerce-MyAccount-navigation
	   { float:left; width:30% } so the sidebar fills its 260px grid track
	   instead of being squashed (matches .account-main above). */
	width: auto;
	float: none;
}

.sidebar-user {
	padding: 24px 20px 20px;
	border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--cobalt-700);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 12px;
	border: 2px solid var(--ink-200);
}
.sidebar-name {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 800;
	color: var(--text-1);
	margin-bottom: 2px;
	overflow-wrap: break-word;
}
.sidebar-email {
	font-size: 12px;
	color: var(--text-2);
	word-break: break-all;
}
.sidebar-member-since {
	font-size: 11px;
	color: var(--ink-400);
	margin-top: 6px;
}

/* Nav list (re-skins the WC <ul>) */
.account-sidebar .sidebar-nav {
	flex: 1;
	list-style: none;
	margin: 0;
	padding: 10px 0;
}
.account-sidebar .sidebar-nav-item {
	margin: 0;
	padding: 0;
	list-style: none;
}
.account-sidebar .sidebar-nav-item a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 20px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--text-2);
	transition: all var(--fast) var(--ease);
	text-decoration: none;
	border-left: 3px solid transparent;
}
.account-sidebar .sidebar-nav-item a:hover {
	color: var(--text-1);
	background: var(--bg-alt);
}
.account-sidebar .sidebar-nav-item svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
/* WC marks the current item with .is-active (and the endpoint slug). */
.account-sidebar .sidebar-nav-item.is-active > a,
.account-sidebar .sidebar-nav-item a[aria-current="page"] {
	color: var(--cobalt-600);
	background: var(--cobalt-100);
	border-left-color: var(--cobalt-600);
	font-weight: 600;
}
.account-sidebar .sidebar-nav-item--logout a:hover {
	color: var(--red-600);
}

/* ── Main content area ────────────────────────────────────────────────── */
.account-main,
.woocommerce-MyAccount-content.account-main {
	padding: 32px 36px 48px;
	min-width: 0;
	float: none;
	width: auto;
}

.account-page-head {
	margin-bottom: 28px;
}
.account-page-title {
	font-family: var(--font-display);
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--text-1);
	margin: 0 0 4px;
	line-height: 1.15;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.account-page-sub {
	font-size: 13.5px;
	color: var(--text-2);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* ── Stat cards ───────────────────────────────────────────────────────── */
.stat-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}
.stat-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: 20px;
	transition: all var(--fast) var(--ease);
	text-decoration: none;
	display: block;
}
.stat-card:hover {
	border-color: var(--ink-200);
	transform: translateY(-2px);
}
.stat-card-icon {
	width: 40px;
	height: 40px;
	border-radius: var(--r-md);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.stat-card-icon svg { width: 20px; height: 20px; }
.stat-card-icon.blue   { background: var(--cobalt-100); color: var(--cobalt-600); }
.stat-card-icon.green  { background: rgba(0, 196, 140, 0.10); color: var(--green-700); }
.stat-card-icon.gold   { background: rgba(245, 166, 35, 0.10); color: var(--amber-500); }
.stat-card-icon.purple { background: var(--cobalt-100); color: var(--cobalt-700); }
.stat-card-num {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 900;
	color: var(--text-1);
	letter-spacing: -0.5px;
	margin-bottom: 4px;
}
.stat-card-label { font-size: 12.5px; color: var(--text-2); }

/* ── Section cards ────────────────────────────────────────────────────── */
.account-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-xl);
	overflow: hidden;
	margin-bottom: 20px;
}
.account-card-inner { border: 0; }
.account-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--border);
}
.account-card-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 800;
	color: var(--text-1);
	display: flex;
	align-items: center;
	gap: 10px;
}
.account-card-title svg { width: 16px; height: 16px; color: var(--cobalt-600); }
.account-card-action {
	font-size: 12.5px;
	color: var(--cobalt-600);
	font-weight: 500;
	cursor: pointer;
	transition: all var(--fast) var(--ease);
	text-decoration: none;
}
.account-card-action:hover { text-decoration: underline; }
.account-card-body { padding: 22px; }

/* ── Quick actions (dashboard) ────────────────────────────────────────── */
.quick-actions {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.quick-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 12px;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	color: var(--text-2);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: all var(--fast) var(--ease);
}
.quick-action:hover {
	border-color: var(--cobalt-700);
	color: var(--cobalt-600);
	background: var(--cobalt-100);
	transform: translateY(-2px);
}
.quick-action svg { width: 22px; height: 22px; }

/* ── Status chips (orders + view-order) ───────────────────────────────── */
.status-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
}
.status-chip-dot { width: 5px; height: 5px; border-radius: 50%; }
.status-chip.delivered  { background: rgba(0, 196, 140, 0.12); color: var(--green-700); }
.status-chip.delivered  .status-chip-dot { background: var(--green-700); }
.status-chip.processing { background: rgba(245, 166, 35, 0.12); color: var(--amber-500); }
.status-chip.processing .status-chip-dot { background: var(--amber-500); }
.status-chip.shipped    { background: var(--cobalt-100); color: var(--cobalt-600); }
.status-chip.shipped    .status-chip-dot { background: var(--cobalt-600); }
.status-chip.cancelled  { background: var(--red-100); color: var(--red-600); }
.status-chip.cancelled  .status-chip-dot { background: var(--red-600); }

/* ── Orders table ─────────────────────────────────────────────────────── */
.account-orders-card { padding: 8px 22px; }
.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}
.woocommerce-orders-table__header {
	text-align: left;
	padding: 14px 12px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ink-400);
	border-bottom: 1px solid var(--border);
}
.woocommerce-orders-table__cell {
	padding: 16px 12px;
	border-bottom: 1px solid var(--border);
	color: var(--text-2);
	vertical-align: middle;
}
.woocommerce-orders-table__row:last-child .woocommerce-orders-table__cell {
	border-bottom: none;
}
.woocommerce-orders-table__cell-order-number a {
	font-weight: 700;
	color: var(--text-1);
	text-decoration: none;
}
.woocommerce-orders-table__cell-order-number a:hover { color: var(--cobalt-600); }
.woocommerce-orders-table__cell-order-total { color: var(--text-1); font-weight: 600; }
.woocommerce-orders-table__cell-order-actions { text-align: right; white-space: nowrap; }
.woocommerce-orders-table__cell-order-actions .woocommerce-button,
.woocommerce-orders-table__cell-order-actions .button {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 12px;
	margin: 2px 0 2px 6px;
	border-radius: var(--r-sm);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	background: transparent;
	border: 1px solid var(--ink-200);
	color: var(--text-1);
	transition: all var(--fast) var(--ease);
}
.woocommerce-orders-table__cell-order-actions .woocommerce-button:hover,
.woocommerce-orders-table__cell-order-actions .button:hover {
	border-color: var(--cobalt-700);
	color: var(--cobalt-600);
}
.woocommerce-orders-table__cell-order-actions .view {
	background: var(--cobalt-700);
	border-color: var(--cobalt-700);
	color: #fff;
}
.woocommerce-orders-table__cell-order-actions .view:hover {
	background: var(--cobalt-600);
	color: #fff;
}

/* Pagination */
.woocommerce-pagination {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}
.woocommerce-pagination .button {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 16px;
	border-radius: var(--r-sm);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	background: var(--bg-alt);
	border: 1px solid var(--ink-200);
	color: var(--text-1);
	transition: all var(--fast) var(--ease);
}
.woocommerce-pagination .button:hover { border-color: var(--cobalt-700); color: var(--cobalt-600); }

/* Empty state */
.account-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 32px 20px;
	text-align: center;
}
.account-empty svg { width: 42px; height: 42px; color: var(--ink-400); }
.account-empty p { font-size: 14px; color: var(--text-2); margin: 0; }

/* ── Profile tabs ─────────────────────────────────────────────────────── */
.profile-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}
.profile-tab {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 10px 14px;
	font-family: var(--font-body);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-2);
	cursor: pointer;
	transition: all var(--fast) var(--ease);
	margin-bottom: -1px;
}
.profile-tab:hover { color: var(--text-1); }
.profile-tab.is-active {
	color: var(--cobalt-600);
	border-bottom-color: var(--cobalt-600);
}
/* When JS is active, only the selected section shows. Without JS (no
   .js-tabs on the form), all sections remain visible (graceful degrade). */
.js-tabs .profile-section { display: none; }
.js-tabs .profile-section.is-active { display: block; }

/* ── Profile / address form fields ────────────────────────────────────── */
.profile-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}
.profile-form-row.single { grid-template-columns: 1fr; }
.profile-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}
.profile-label,
.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-2);
}
.profile-input,
.woocommerce-EditAccountForm .input-text,
.woocommerce-address-fields .input-text,
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields textarea,
.woocommerce-address-fields select {
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	background: var(--bg-input, var(--bg-alt));
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	color: var(--text-1);
	font-size: 14px;
	font-family: var(--font-body);
	outline: none;
	transition: all var(--fast) var(--ease);
}
.woocommerce-address-fields textarea {
	min-height: 90px;
	padding: 12px 14px;
	line-height: 1.6;
	resize: vertical;
}
.profile-input:focus,
.woocommerce-EditAccountForm .input-text:focus,
.woocommerce-address-fields .input-text:focus,
.woocommerce-address-fields textarea:focus,
.woocommerce-address-fields select:focus {
	border-color: var(--cobalt-700);
	box-shadow: 0 0 0 3px var(--cobalt-100);
}
.woocommerce-EditAccountForm fieldset { border: none; padding: 0; margin: 0; }
.woocommerce-EditAccountForm em,
#account_display_name_description em { font-size: 11.5px; color: var(--text-2); }

/* Notifications */
.notif-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
	cursor: pointer;
	margin: 0;
}
.notif-row:last-child { border-bottom: none; }
.notif-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--text-1); }
.notif-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.notif-checkbox {
	appearance: none;
	-webkit-appearance: none;
	width: 44px;
	height: 24px;
	border-radius: 100px;
	background: var(--bg-alt);
	border: 1px solid var(--ink-200);
	position: relative;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.25s, border-color 0.25s;
	margin: 0;
}
.notif-checkbox::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--text-2);
	transition: transform 0.25s, background 0.25s;
}
.notif-checkbox:checked { background: var(--cobalt-700); border-color: var(--cobalt-700); }
.notif-checkbox:checked::after { transform: translateX(20px); background: #fff; }

/* Save button */
.profile-save-row { margin-top: 4px; }
.profile-save-btn {
	height: 46px;
	padding: 0 28px;
	border-radius: var(--r-md);
	background: var(--cobalt-700);
	color: #fff;
	border: none;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: var(--font-body);
	transition: all var(--fast) var(--ease);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.profile-save-btn:hover { background: var(--cobalt-600); box-shadow: var(--shadow-float); }
.profile-save-btn svg { width: 16px; height: 16px; }

/* ── Address list / cards ─────────────────────────────────────────────── */
.vp-address-list .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
/* WooCommerce core floats these columns to 48% (.col2-set .col-1/.col-2) and its
   .col2-set clearfix injects ::before/::after that become grid items - together
   they render the two address cards half-width and staggered onto separate rows.
   Neutralise both so each fills its grid track. (Same fix as the order-received
   and view-order pages.) */
.vp-address-list .woocommerce-Addresses .col-1,
.vp-address-list .woocommerce-Addresses .col-2 {
	float: none;
	width: auto;
}
.vp-address-list .woocommerce-Addresses::before,
.vp-address-list .woocommerce-Addresses::after {
	content: none;
	display: none;
}
.vp-address-list .woocommerce-Address {
	background: var(--bg-alt);
	border: 1.5px solid var(--border);
	border-radius: var(--r-lg);
	padding: 18px;
	transition: all var(--fast) var(--ease);
}
.vp-address-list .woocommerce-Address:hover { border-color: var(--ink-200); }
.vp-address-list .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}
.vp-address-list .woocommerce-Address-title h2,
.vp-address-list .woocommerce-Address-title h3 {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 800;
	color: var(--text-1);
	margin: 0;
}
.vp-address-list .woocommerce-Address-title .edit {
	font-size: 12px;
	font-weight: 600;
	color: var(--cobalt-600);
	text-decoration: none;
}
.vp-address-list .woocommerce-Address-title .edit:hover { text-decoration: underline; }
.vp-address-list address {
	font-size: 13px;
	color: var(--text-2);
	line-height: 1.6;
	font-style: normal;
}

/* ── Wishlist grid ────────────────────────────────────────────────────── */
.wishlist-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.wishlist-grid .product-name {
	display: block;
	text-decoration: none;
	color: var(--text-1);
}

/* ── View order ───────────────────────────────────────────────────────── */
.vp-order-details .woocommerce-table--order-details,
.vp-order-details table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}
.vp-order-details th,
.vp-order-details td {
	padding: 12px 8px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	color: var(--text-2);
}
.vp-order-details tfoot th,
.vp-order-details tfoot td { color: var(--text-1); }
.vp-order-details a { color: var(--cobalt-600); text-decoration: none; }
.vp-order-details .woocommerce-column__title,
.vp-order-details h2 {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 800;
	color: var(--text-1);
	margin: 18px 0 10px;
}
.vp-order-details .woocommerce-customer-details address {
	font-style: normal;
	font-size: 13px;
	color: var(--text-2);
	line-height: 1.6;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: 14px;
}
.vp-order-details .woocommerce-columns--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
/* WooCommerce core floats the address columns to 48% (.col2-set .col-1/.col-2)
   and its .col2-set clearfix injects ::before/::after that become grid items -
   together they render "Your Address" and "Shipping address" half-width and
   staggered onto separate rows. Neutralise both so each fills its grid track.
   (Same fix as the order-received page.) */
.vp-order-details .woocommerce-columns--2 .col-1,
.vp-order-details .woocommerce-columns--2 .col-2 {
	float: none;
	width: auto;
}
.vp-order-details .woocommerce-columns--2::before,
.vp-order-details .woocommerce-columns--2::after {
	content: none;
	display: none;
}
.woocommerce-OrderUpdates { list-style: none; margin: 0; padding: 0; }
.woocommerce-OrderUpdate { padding: 12px 0; border-bottom: 1px solid var(--border); }
.woocommerce-OrderUpdate:last-child { border-bottom: none; }
.woocommerce-OrderUpdate-meta { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }

/* ── Mobile account menu trigger ──────────────────────────────────────── */
.mobile-account-menu-btn {
	display: none;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-2);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: 0 14px;
	height: 40px;
	cursor: pointer;
	font-family: var(--font-body);
	margin-bottom: 20px;
}
.mobile-account-menu-btn svg { width: 16px; height: 16px; }

.sidebar-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9000;
	background: rgba(0, 0, 0, 0.5);
}
.sidebar-backdrop.open { display: block; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.account-shell { grid-template-columns: 1fr; }
	.account-sidebar,
	.woocommerce-MyAccount-navigation.account-sidebar {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 9001;
		width: min(280px, 90vw);
		min-height: 100vh;
		border-right: 1px solid var(--border);
		box-shadow: 4px 0 32px rgba(0, 0, 0, 0.3);
		overflow-y: auto;
	}
	.account-sidebar.mobile-open,
	.woocommerce-MyAccount-navigation.account-sidebar.mobile-open { display: flex; }
	.mobile-account-menu-btn { display: inline-flex; }
	.account-main,
	.woocommerce-MyAccount-content.account-main { padding: 22px 20px 40px; }
	.quick-actions { grid-template-columns: repeat(2, 1fr); }
	.vp-order-details .woocommerce-columns--2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.stat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.profile-form-row { grid-template-columns: 1fr; }
	.vp-address-list .woocommerce-Addresses { grid-template-columns: 1fr; }
	.account-page-title { font-size: 20px; }
	/* Responsive orders table → stacked cards (WC shop_table_responsive). */
	.woocommerce-orders-table thead { display: none; }
	.woocommerce-orders-table,
	.woocommerce-orders-table tbody,
	.woocommerce-orders-table tr,
	.woocommerce-orders-table td,
	.woocommerce-orders-table th { display: block; width: 100%; }
	.woocommerce-orders-table__row {
		border: 1px solid var(--border);
		border-radius: var(--r-md);
		padding: 8px 12px;
		margin-bottom: 12px;
	}
	.woocommerce-orders-table__cell {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		border-bottom: 1px dashed var(--border);
		padding: 10px 0;
		text-align: right;
	}
	.woocommerce-orders-table__cell::before {
		content: attr(data-title);
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		color: var(--ink-400);
	}
	.woocommerce-orders-table__cell-order-actions { justify-content: flex-end; }
}

/* ── Dashboard preview cards: recent orders + wishlist highlights ── */
.account-card-link {
	margin-left: auto;
	font-size: 13px;
	font-weight: 600;
	color: var(--cobalt-600);
	white-space: nowrap;
}
.account-card-link:hover { text-decoration: underline; }

.dash-empty {
	font-size: 14px;
	color: var(--text-2);
	padding: 4px 0;
}
.dash-empty a { color: var(--cobalt-600); font-weight: 600; }
.dash-empty a:hover { text-decoration: underline; }

.dash-orders { list-style: none; margin: 0; padding: 0; }
.dash-order {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border);
}
.dash-order:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-order:first-child { padding-top: 0; }
.dash-order-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dash-order-id { font-size: 14px; font-weight: 700; color: var(--text-1); }
.dash-order-date { font-size: 12px; color: var(--text-2); }
.dash-order-status {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--bg-alt);
	color: var(--text-2);
	white-space: nowrap;
}
.dash-order-status.is-completed { background: rgba(0, 196, 140, 0.12); color: var(--green-700); }
.dash-order-status.is-processing,
.dash-order-status.is-pending { background: var(--cobalt-100); color: var(--cobalt-600); }
.dash-order-status.is-on-hold { background: rgba(245, 166, 35, 0.12); color: var(--amber-500); }
.dash-order-status.is-cancelled,
.dash-order-status.is-failed,
.dash-order-status.is-refunded { background: rgba(255, 90, 95, 0.12); color: var(--red-600); }
.dash-order-total { font-size: 14px; font-weight: 700; color: var(--text-1); white-space: nowrap; }
.dash-order-view {
	font-size: 13px;
	font-weight: 600;
	color: var(--cobalt-600);
	white-space: nowrap;
}
.dash-order-view:hover { text-decoration: underline; }

.dash-wishlist {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.dash-wish-item { display: block; min-width: 0; }
.dash-wish-thumb {
	aspect-ratio: 1 / 1;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	margin-bottom: 8px;
}
.dash-wish-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-wish-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-1);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 4px;
}
.dash-wish-item:hover .dash-wish-name { color: var(--cobalt-600); }
.dash-wish-price { font-size: 13px; color: var(--text-2); }
.dash-wish-price .amount { font-weight: 700; color: var(--text-1); }

@media (max-width: 640px) {
	.dash-wishlist { grid-template-columns: repeat(2, 1fr); }
	.dash-order { flex-wrap: wrap; gap: 8px 12px; }
	.dash-order-main { flex: 1 1 100%; }
}
/*
 * auth.css - Auth pages (page-unique).
 * Split-screen layout (always-dark brand panel + form panel), login/register/
 * forgot/reset forms, social buttons, password strength. Styles the WC form
 * classes (.woocommerce-form-login, .woocommerce-form-register,
 * .woocommerce-form-lost-password). Shared tokens/chrome live in theme.css.
 *
 * @package HID_VP_Solution
 */

/* ── Two-panel layout (full-bleed within the page container) ──────────── */
.auth-layout {
	display: grid;
	grid-template-columns: 1fr 480px;
	align-items: stretch;
	min-height: clamp(560px, calc(100vh - 220px), 820px);
	/* Break out of the page container's horizontal padding for a full-bleed feel. */
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-top: -24px; /* v2 .page-wc top padding */
	border-top: 1px solid var(--border);
	overflow: hidden;
}
.auth-layout--single { grid-template-columns: 1fr 520px; }

/* ── Left brand panel (ALWAYS DARK) ───────────────────────────────────── */
.auth-brand-panel {
	background: var(--ink-950);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 52px 48px;
}
.auth-brand-glow-1 { display: none; }
.auth-brand-glow-2 { display: none; }
.auth-brand-glow-3 { display: none; }
.auth-brand-logo { position: relative; z-index: 1; }
.auth-brand-logo img { height: 40px; width: auto; }
.auth-brand-content { position: relative; z-index: 1; }
.auth-brand-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 16px;
}
.auth-brand-title {
	font-family: var(--font-display);
	font-size: clamp(28px, 3.5vw, 42px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -1px;
	color: #fff;
	margin-bottom: 20px;
}
.auth-brand-title em { font-style: normal; color: var(--cobalt-400); }
.auth-brand-desc {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.60);
	line-height: 1.7;
	max-width: 340px;
	margin-bottom: 36px;
}
.auth-brand-features { display: flex; flex-direction: column; gap: 12px; }
.auth-feature { display: flex; align-items: center; gap: 12px; }
.auth-feature-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.10);
}
.auth-feature-text { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); font-weight: 500; }
.auth-brand-bottom { position: relative; z-index: 1; min-height: 1px; }

/* ── Right form panel ─────────────────────────────────────────────────── */
.auth-form-panel {
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 24px;
}
.auth-form-area { width: 100%; max-width: 400px; }
/* Login page shows both login + register columns side by side on wide screens. */
.auth-form-area.col2-set {
	max-width: 880px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}
.auth-form-card { width: 100%; max-width: 400px; }
.auth-form-area.col2-set .auth-form-card { max-width: 100%; }

.auth-form-title {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--text-1);
	margin: 0 0 6px;
}
.auth-form-sub {
	font-size: 14px;
	color: var(--text-2);
	margin: 0 0 24px;
	line-height: 1.5;
}
.auth-form-sub a { color: var(--cobalt-600); font-weight: 500; }
.auth-form-sub a:hover { text-decoration: underline; }

.auth-step-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--cobalt-100);
	border: 2px solid var(--cobalt-700);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 16px;
	font-size: 26px;
}

/* Social login (placeholder) buttons */
.social-login-row { display: flex; gap: 10px; margin-bottom: 22px; }
.social-login-btn {
	flex: 1;
	height: 44px;
	border-radius: var(--r-md);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-1);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: var(--font-body);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all var(--fast) var(--ease);
}
.social-login-btn:hover { border-color: var(--ink-200); background: var(--bg-alt); }
.social-login-btn[disabled] { cursor: default; opacity: 0.75; }
.social-login-btn[disabled]:hover { border-color: var(--border); background: var(--surface); }
.social-login-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Divider */
.auth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-divider-line { flex: 1; height: 1px; background: var(--border); }
.auth-divider-text { font-size: 12px; color: var(--text-2); white-space: nowrap; font-weight: 500; }

/* ── Form fields (WC form rows re-skinned) ────────────────────────────── */
.woocommerce-form .form-row,
.auth-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
}
.woocommerce-form label,
.auth-field label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-2);
}
.auth-input,
.woocommerce-form .input-text,
.woocommerce-ResetPassword .input-text {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	color: var(--text-1);
	font-size: 14px;
	font-family: var(--font-body);
	outline: none;
	transition: all var(--fast) var(--ease);
}
.auth-input::placeholder { color: var(--text-2); }
.auth-input:focus,
.woocommerce-form .input-text:focus,
.woocommerce-ResetPassword .input-text:focus {
	border-color: var(--cobalt-700);
	box-shadow: 0 0 0 3px var(--cobalt-100);
}

/* Password input + show/hide toggle */
.auth-input-wrap { position: relative; display: block; }
.auth-input-wrap .auth-input { padding-right: 44px; }
.auth-input-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-2);
	cursor: pointer;
	background: none;
	border: none;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	transition: all var(--fast) var(--ease);
}
.auth-input-icon:hover { color: var(--text-1); }
.auth-input-icon svg { width: 17px; height: 17px; }
.auth-input-icon.is-visible { color: var(--cobalt-600); }

.required { color: var(--red-600); }

/* Remember me / forgot row */
.auth-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 4px 0 20px;
}
.auth-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	color: var(--text-2);
	margin: 0;
}
.auth-checkbox-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--cobalt-700);
}
.auth-forgot { font-size: 13px; color: var(--cobalt-600); font-weight: 500; text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }

/* Submit button */
.auth-submit {
	width: 100%;
	height: 50px;
	border-radius: var(--r-md);
	background: var(--cobalt-700);
	color: #fff;
	border: none;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: var(--font-body);
	transition: all var(--fast) var(--ease);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 6px 0 0;
}
.auth-submit:hover { background: var(--cobalt-600); box-shadow: var(--shadow-float); }

/* Password strength meter */
.password-strength { margin-top: 8px; display: block; }
.password-strength[hidden] { display: none; }
.strength-bar-track {
	display: block;
	height: 4px;
	background: var(--bg-alt);
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 5px;
}
.strength-bar-fill {
	display: block;
	height: 100%;
	border-radius: 2px;
	width: 0;
	transition: width 0.3s ease, background 0.3s ease;
}
.strength-label { font-size: 11px; color: var(--text-2); }
.strength-label.weak { color: var(--red-600); }
.strength-label.fair { color: var(--amber-500); }
.strength-label.good { color: var(--cobalt-600); }
.strength-label.strong { color: var(--green-700); }

/* Footer / back links + WC notices inside the form */
.auth-footer-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	color: var(--text-2);
	margin: 16px 0 0;
}
.auth-footer-links a { color: var(--text-2); text-decoration: none; transition: all var(--fast) var(--ease); }
.auth-footer-links a:hover { color: var(--cobalt-600); }

.woocommerce-LostPassword { font-size: 13px; margin-top: 10px; }
.woocommerce-LostPassword a { color: var(--cobalt-600); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.auth-layout,
	.auth-layout--single { grid-template-columns: 1fr; min-height: auto; }
	.auth-brand-panel { display: none; }
	.auth-form-panel { padding: 36px 20px; align-items: flex-start; }
	.auth-form-area.col2-set {
		max-width: 400px;
		grid-template-columns: 1fr;
		gap: 32px;
	}
}
@media (max-width: 480px) {
	.auth-form-area,
	.auth-form-card { max-width: 100%; }
	.social-login-row { flex-direction: column; }
	.auth-row-between { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* v2: WooCommerce's .col2-set clearfix ::before/::after become grid items and its floats
   halve each column, so both are neutralised. Sign in + Create account need a wider form panel. */
.auth-form-area.col2-set::before,
.auth-form-area.col2-set::after { display: none; content: none; }
.auth-form-area.col2-set .col-1,
.auth-form-area.col2-set .col-2 { float: none; width: auto; }
@media (min-width: 901px) {
	.auth-layout:has(.col2-set) { grid-template-columns: minmax(0, 1fr) minmax(0, 920px); }
}

/* v2: WooCommerce's ".woocommerce form .form-row .input-text" and ".woocommerce button.button"
   outrank the single-class rules above, so the account pages restate them with more weight. */
body .page-wc .woocommerce form .form-row .input-text,
body .page-wc .woocommerce form .form-row select,
body .page-wc .auth-input {
	height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--r-md); color: var(--text-1); font: 400 14px var(--font-body); box-shadow: none;
}
body .page-wc .woocommerce form .form-row textarea.input-text { height: auto; min-height: 96px; padding: 12px 14px; }
body .page-wc .woocommerce form .form-row .input-text:focus,
body .page-wc .auth-input:focus { border-color: var(--cobalt-700); box-shadow: 0 0 0 3px var(--cobalt-100); outline: none; }
body .page-wc .woocommerce button.button.auth-submit,
body .page-wc .woocommerce .woocommerce-Button.button,
body .page-wc .woocommerce button.button[name="save_account_details"],
body .page-wc .woocommerce button.button[name="save_address"] {
	height: 50px; padding: 0 24px; border: 0; border-radius: var(--r-md); background: var(--cobalt-700);
	color: #fff; font: 700 15px var(--font-body); display: inline-flex; align-items: center; justify-content: center;
}
body .page-wc .woocommerce button.button.auth-submit { width: 100%; }
body .page-wc .woocommerce button.button.auth-submit:hover,
body .page-wc .woocommerce .woocommerce-Button.button:hover { background: var(--cobalt-600); color: #fff; }
body .page-wc .woocommerce form .form-row-first,
body .page-wc .woocommerce form .form-row-last { float: none; width: auto; }

/* Font Awesome icons (the shapes were inline SVG): sized like the svg rules above. */
.account-sidebar .sidebar-nav-item i[class*="fa-"] { font-size: 16px; line-height: 1; flex-shrink: 0; }
.stat-card-icon i[class*="fa-"] { font-size: 20px; line-height: 1; }
.account-card-title i[class*="fa-"] { font-size: 16px; line-height: 1; color: var(--cobalt-600); }
.quick-action i[class*="fa-"] { font-size: 22px; line-height: 1; }
.account-empty i[class*="fa-"] { font-size: 42px; line-height: 1; color: var(--ink-400); }
.profile-save-btn i[class*="fa-"] { font-size: 16px; line-height: 1; }
.mobile-account-menu-btn i[class*="fa-"] { font-size: 16px; line-height: 1; }
.social-login-btn i[class*="fa-"] { font-size: 18px; line-height: 1; flex-shrink: 0; }
.auth-input-icon i[class*="fa-"] { font-size: 17px; line-height: 1; }
/* A subtitle that is a sentence with a link ("Not you? Log out.") must flow as text, not flex items. */
.account-page-sub:has(> a) { display: block; }
.account-page-sub > a { color: var(--link); font-weight: 600; }
