/*
 * Hubka Theme
 *
 * Phase: 11B.4 — WooCommerce Styling
 * Purpose: My Account presentation — dashboard, navigation, forms,
 * orders, addresses, downloads, login/registration. Unlike Checkout,
 * this page should feel fully integrated into the rest of Hubka, not
 * deliberately minimal. Still uses the real [woocommerce_my_account]
 * shortcode untouched (Phase 10C) — presentation only.
 *
 * All classes confirmed directly from WooCommerce's classic myaccount/
 * template files rather than guessed.
 *
 * Rules:
 * - Reuse theme.json tokens.
 * - Use logical properties.
 * - Keep selectors shallow.
 * - Do not duplicate component styling.
 */

/* Account navigation: a quiet sidebar list, consistent with the site's
 * restrained navigation treatment elsewhere. */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding-inline-start: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.woocommerce-MyAccount-navigation a {
	color: var(--wp--preset--color--muted);
	padding-block: var(--wp--preset--spacing--20);
	display: inline-block;
}

.woocommerce-MyAccount-navigation .is-active a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}

.woocommerce-MyAccount-navigation a:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.woocommerce-MyAccount-content {
	line-height: 1.6;
}

/* Forms (login, register, edit account/address, lost password): base
 * input styling already comes from base/forms.css; this covers only
 * the grouped-row layout that's specific to WooCommerce's form markup. */
.woocommerce-form-row {
	margin-block-end: var(--wp--preset--spacing--30);
}

.woocommerce-form-row label {
	margin-block-end: var(--wp--preset--spacing--20);
}

.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
	max-inline-size: 32rem;
}

/* Orders table: clean, editorial — not a dense spreadsheet. */
.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-orders-table th {
	text-align: start;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	padding-block: var(--wp--preset--spacing--20);
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.woocommerce-orders-table td {
	padding-block: var(--wp--preset--spacing--30);
	border-block-end: 1px solid var(--wp--preset--color--border);
}

/* Addresses: two-column layout on wider screens (native .u-columns). */
.woocommerce-Addresses {
	gap: var(--wp--preset--spacing--50);
}

.woocommerce-Address-title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	margin-block-end: var(--wp--preset--spacing--20);
}

/* Downloads: left in place for future physical→digital expansion,
 * styled consistently even though currently unused. */
.woocommerce-Downloads {
	width: 100%;
}

/* Buttons throughout My Account (view order, download, pay, etc.). */
.woocommerce-Button,
.woocommerce-button {
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--40);
}
