/* =============================================================
   My Account dashboard styling (logged-in view): navigation
   sidebar, content area, orders table, addresses, account details
   form. Targets WooCommerce's standard class names so this works
   regardless of theme.
   ============================================================= */

:root {
	--wctcr-accent: #2c2360;
	--wctcr-accent-hover: #1c1640;
	--wctcr-border: #e2dfe8;
	--wctcr-bg-light: #f7f5f2;
}

.woocommerce-account .woocommerce {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
}

/* ---- Navigation sidebar ---- */
.woocommerce-MyAccount-navigation {
	flex: 0 0 220px;
	background: var(--wctcr-bg-light);
	border-radius: 10px;
	padding: 10px;
	box-sizing: border-box;
}
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce-MyAccount-navigation-link {
	margin: 0 0 4px;
}
.woocommerce-MyAccount-navigation-link a {
	display: block;
	padding: 11px 16px;
	border-radius: 6px;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease;
}
.woocommerce-MyAccount-navigation-link a:hover {
	background: #ece8e0;
}
.woocommerce-MyAccount-navigation-link.is-active a {
	background: var(--wctcr-accent);
	color: #fff;
}
.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #a33;
}
.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #fbeaea;
}

/* ---- Content area ---- */
.woocommerce-MyAccount-content {
	flex: 1 1 480px;
	min-width: 280px;
}
.woocommerce-MyAccount-content > p:first-child {
	font-size: 1.05em;
	line-height: 1.7;
}
.woocommerce-MyAccount-content mark {
	background: none;
	font-weight: 700;
	color: var(--wctcr-accent);
}

/* ---- Orders table ---- */
.woocommerce-orders-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 20px;
}
.woocommerce-orders-table thead th {
	text-align: left;
	padding: 12px 14px;
	background: var(--wctcr-bg-light);
	font-weight: 700;
	border-bottom: 2px solid var(--wctcr-border);
}
.woocommerce-orders-table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--wctcr-border);
}
.woocommerce-orders-table tbody tr:hover { background: #fbfaf8; }

.woocommerce-orders-table__cell-order-status {
	font-weight: 600;
}
.order-status,
.woocommerce-orders-table__cell-order-status mark {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.82em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	background: #eee;
	color: #555;
}
.status-completed { background: #e4f4e4; color: #2c7a2c; }
.status-processing { background: #e6effb; color: #2158a5; }
.status-on-hold,
.status-pending { background: #fdf3e0; color: #a5711c; }
.status-cancelled,
.status-failed,
.status-refunded { background: #fbeaea; color: #a33; }

.woocommerce-orders-table .button,
.woocommerce-MyAccount-content .button {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 20px;
	background: var(--wctcr-accent);
	color: #fff !important;
	text-decoration: none;
	font-size: 0.85em;
	font-weight: 600;
	white-space: nowrap;
}
.woocommerce-orders-table .button:hover,
.woocommerce-MyAccount-content .button:hover {
	background: var(--wctcr-accent-hover);
}

/* ---- Addresses ---- */
.woocommerce-Addresses {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.woocommerce-Address {
	flex: 1 1 260px;
	background: var(--wctcr-bg-light);
	border-radius: 10px;
	padding: 20px;
	box-sizing: border-box;
}
.woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}
.woocommerce-Address-title h3 { margin: 0; }
.woocommerce-Address address { font-style: normal; line-height: 1.7; }

/* ---- Account details / edit account form ---- */
.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
	margin-bottom: 14px;
}
.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 0.9em;
}
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select {
	width: 100%;
	padding: 11px 16px;
	border: 1px solid #6b5fa8;
	border-radius: 22px;
	box-sizing: border-box;
	font-size: 14px;
}
.woocommerce-EditAccountForm fieldset {
	border: none;
	padding: 0;
	margin: 20px 0 0;
}
.woocommerce-EditAccountForm legend {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.95em;
	margin-bottom: 10px;
	padding: 0;
}
.woocommerce-EditAccountForm button,
.woocommerce-address-fields button {
	padding: 12px 30px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: var(--wctcr-accent);
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}
.woocommerce-EditAccountForm button:hover,
.woocommerce-address-fields button:hover {
	background: var(--wctcr-accent-hover);
}

/* ---- Responsive ---- */
@media (max-width: 782px) {
	.woocommerce-account .woocommerce {
		flex-direction: column;
	}
	.woocommerce-MyAccount-navigation {
		flex: 1 1 100%;
		width: 100%;
	}
	.woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}
	.woocommerce-MyAccount-navigation-link {
		margin: 0;
	}
	.woocommerce-orders-table,
	.woocommerce-orders-table thead,
	.woocommerce-orders-table tbody,
	.woocommerce-orders-table tr {
		display: block;
		width: 100%;
	}
	.woocommerce-orders-table thead { display: none; }
	.woocommerce-orders-table tbody tr {
		margin-bottom: 14px;
		border: 1px solid var(--wctcr-border);
		border-radius: 8px;
		padding: 8px 0;
	}
	.woocommerce-orders-table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 10px;
		border-bottom: none;
		padding: 6px 14px;
	}
	.woocommerce-orders-table tbody td::before {
		content: attr(data-title);
		font-weight: 700;
		color: #777;
	}
}
