
/* =========================================================================
   MY ACCOUNT — full redesign (CSS only)
   ========================================================================= */
.woocommerce-account .woocommerce::after, 
.woocommerce-account .woocommerce::before,
.woocommerce-account .addresses .title::before,
.woocommerce-account .addresses .title::after,
.woocommerce-account .col2-set::before,
.woocommerce-account .woocommerce-info::after, 
.woocommerce-account .woocommerce-info::before{
    content: none;
}
body.woocommerce-account {
	--acc-brand: var(--soracent-color-brand, #141843);
	--acc-accent: var(--soracent-color-accent, #b08d57);
	--acc-cream: #faf6ee;
	--acc-border: #e8e4dc;
	--acc-muted: #6b6b6b;
	--acc-radius: 14px;
	--acc-shadow: 0 6px 24px rgba(20, 24, 67, 0.06);
}

/* ---------- Logged-in layout: sidebar + content ---------- */
.woocommerce-account .entry-content {
    margin-bottom: 40px;
}
body.woocommerce-account .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
body.woocommerce-account .woocommerce-notices-wrapper { 
	grid-column: 1 / -1; 
}
body.woocommerce-account .woocommerce-notices-wrapper:empty { 
	display: none; 
}

/* ---------- Sidebar navigation ---------- */
body.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none;
	width: auto;
	position: sticky;
	top: 80px;
	background: #fff;
	border: 1px solid var(--acc-border);
	border-radius: var(--acc-radius);
	box-shadow: var(--acc-shadow);
	padding: 12px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li { 
	margin: 0; 
}
body.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 16px;
	border-radius: 10px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: #3a3a3a;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--acc-cream);
	color: var(--acc-brand);
	transform: translateX(2px);
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--acc-brand);
	color: #fff;
	box-shadow: 0 6px 16px rgba(20, 24, 67, 0.25);
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before { 
	opacity: 1; 
}

/* Logout link, separated */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--acc-border);
}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: #fdeeee;
	color: #b3261e;
}

/* ---------- Content card ---------- */
body.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	background: #fff;
	border: 1px solid var(--acc-border);
	border-radius: var(--acc-radius);
	box-shadow: var(--acc-shadow);
	padding: 36px;
	min-height: 320px;
}
body.woocommerce-account .woocommerce-MyAccount-content > :first-child { 
	margin-top: 0; 
}
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
	margin: 0 0 18px;
	font-family: var(--soracent-font-title);
	font-weight: 400;
	color: var(--acc-brand);
}
body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button) {
	color: var(--acc-brand);
	text-decoration: underline;
}

/* Dashboard greeting */
body.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
	padding: 22px 26px;
	margin: 0 0 18px;
	background: linear-gradient(135deg, var(--acc-cream), #fff);
	border: 1px solid var(--acc-border);
	border-left: 4px solid var(--acc-accent);
	border-radius: 10px;
	font-size: 1.0625rem;
	color: var(--acc-brand);
}

/* ---------- Buttons ---------- */
body.woocommerce-account .button,
body.woocommerce-account button.button,
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account .woocommerce-button,
body.woocommerce-account button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 28px;
	background: var(--acc-brand);
	color: #fff;
	border: 1px solid var(--acc-brand);
	border-radius: 999px;
	font-family: var(--soracent-font-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
body.woocommerce-account .button:hover,
body.woocommerce-account button.button:hover,
body.woocommerce-account .woocommerce-Button:hover,
body.woocommerce-account .woocommerce-button:hover,
body.woocommerce-account button[type="submit"]:hover {
	background: var(--acc-accent);
	border-color: var(--acc-accent);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(176, 141, 87, 0.35);
}

/* ---------- Notices ---------- */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error {
	list-style: none;
	margin: 0 0 24px;
	padding: 16px 22px;
	background: #fff;
	border: 1px solid var(--acc-border);
	border-left: 4px solid var(--acc-brand);
	border-radius: 10px;
	color: #333;
	font-size: 0.9375rem;
	align-items: center;
}
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-error::before { 
	display: none; 
}
body.woocommerce-account .woocommerce-message { 
	border-left-color: #2e7d32; 
	background: #f3faf3;
}
body.woocommerce-account .woocommerce-error { 
	border-left-color: #b3261e; 
	background: #fdf4f3; 
}
body.woocommerce-account .woocommerce-error li { 
	margin: 0; 
}
body.woocommerce-account .woocommerce-info .button,
body.woocommerce-account .woocommerce-message .button { 
	padding: 10px 22px; 
}

/* ---------- Forms ---------- */
body.woocommerce-account form .form-row {
	float: none;
	width: auto;
	margin: 0 0 20px;
	padding: 0;
}
body.woocommerce-account form label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #333;
}
body.woocommerce-account form .required { 
	color: #b3261e; 
	text-decoration: none; 
	border: 0; 
}
body.woocommerce-account form .optional { 
	color: #999; 
	font-weight: 400; 
}
body.woocommerce-account input.input-text,
body.woocommerce-account input[type="text"],
body.woocommerce-account input[type="email"],
body.woocommerce-account input[type="tel"],
body.woocommerce-account input[type="password"],
body.woocommerce-account textarea {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	background: #fff;
	border: 1px solid #d9d4c8;
	border-radius: 10px;
	font-family: var(--soracent-font-body);
	font-size: 0.9375rem;
	color: var(--soracent-color-text);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
body.woocommerce-account textarea { 
	height: auto; 
	padding: 14px 16px; 
}
body.woocommerce-account input:focus,
body.woocommerce-account select:focus,
body.woocommerce-account textarea:focus {
	border-color: var(--acc-brand);
	box-shadow: 0 0 0 3px rgba(20, 24, 67, 0.1);
}
body.woocommerce-account form em,
body.woocommerce-account form span > em {
	display: block;
	margin-top: 6px;
	font-size: 0.8125rem;
	font-style: normal;
	color: var(--acc-muted);
}
body.woocommerce-account fieldset {
	padding: 24px;
	border: 1px solid var(--acc-border);
	border-radius: 12px;
}
body.woocommerce-account fieldset legend {
	padding: 0 10px;
	font-family: var(--soracent-font-title);
	font-size: 1.125rem;
	color: var(--acc-brand);
}

/* Two-column field grids (account details + address forms) */
body.woocommerce-account .woocommerce-EditAccountForm,
body.woocommerce-account .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
}
body.woocommerce-account .woocommerce-EditAccountForm > *,
body.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-wide { 
	grid-column: 1 / -1; 
}
body.woocommerce-account .woocommerce-EditAccountForm > .form-row-first,
body.woocommerce-account .woocommerce-EditAccountForm > .form-row-last,
body.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-first,
body.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-last { 
	grid-column: auto; 
}
body.woocommerce-account .woocommerce-EditAccountForm .clear,
body.woocommerce-account .woocommerce-address-fields__field-wrapper .clear { 
	display: none; 
}

/* Checkbox rows */
body.woocommerce-account .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	cursor: pointer;
}
body.woocommerce-account input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--acc-brand);
}

/* Select2 (country / state) */
body.woocommerce-account .select2-container--default .select2-selection--single {
	height: 50px;
	border: 1px solid #d9d4c8;
	border-radius: 10px;
	display: flex;
	align-items: center;
}
body.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding-left: 16px;
	line-height: 48px;
	color: var(--soracent-color-text);
}
body.woocommerce-account .select2-container--default .select2-selection--single .select2-selection__arrow { 
	height: 48px; right: 10px; 
}
body.woocommerce-account .select2-container--default.select2-container--focus .select2-selection--single { 
	border-color: var(--acc-brand); 
}

/* ---------- Tables (orders, downloads, order details) ---------- */
body.woocommerce-account table.shop_table {
	width: 100%;
	border: 1px solid var(--acc-border);
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	margin: 0 0 28px;
	background: #fff;
}
body.woocommerce-account table.shop_table th {
	padding: 14px 18px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	color: var(--acc-brand);
	border: 0;
	border-bottom: 1px solid var(--acc-border);
}
body.woocommerce-account table.shop_table td {
	padding: 18px;
	border: 0;
	border-bottom: 1px solid #f0ece3;
	font-size: 0.9375rem;
	color: #333;
	vertical-align: middle;
}
body.woocommerce-account table.shop_table tbody tr:last-child td,
body.woocommerce-account table.shop_table tbody tr:last-child th { 
	border-bottom: 0; 
}
body.woocommerce-account table.shop_table tfoot th { 
	background: #fff; 
	text-transform: none; 
	letter-spacing: 0; 
	font-size: 0.9375rem; 
}
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table .woocommerce-orders-table__cell-order-number a {
	font-weight: 700;
	color: var(--acc-brand);
	text-decoration: none;
}
body.woocommerce-account table.shop_table .button { 
	padding: 9px 20px; 
	font-size: 0.75rem; 
}
body.woocommerce-account .woocommerce-orders-table__cell-order-actions { 
	white-space: nowrap; 
}
body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button { 
	margin-right: 6px; 
}
body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:last-child { 
	margin-right: 0; 
}

/* Order view: status pill + headings */
body.woocommerce-account mark {
	display: inline-block;
	padding: 3px 12px;
	background: var(--acc-cream);
	color: var(--acc-brand);
	border: 1px solid var(--acc-border);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
}
body.woocommerce-account .woocommerce-order-details__title,
body.woocommerce-account .woocommerce-column__title { 
	margin-top: 12px; 
}

/* Pagination under orders */
body.woocommerce-account .woocommerce-pagination { 
	display: flex; 
	gap: 10px; 
	margin-top: 8px; 
}

/* ---------- Addresses ---------- */
body.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
body.woocommerce-account .woocommerce-Addresses .col-1,
body.woocommerce-account .woocommerce-Addresses .col-2,
body.woocommerce-account .woocommerce-Address {
	float: none;
	width: auto;
	padding: 26px;
	background: #fcfbf8;
	border: 1px solid var(--acc-border);
	border-radius: 12px;
}
body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px dashed #d9d4c8;
}
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 { 
	margin: 0; 
	font-size: 1.25rem; 
}
body.woocommerce-account .woocommerce-Address-title a.edit {
	padding: 6px 16px;
	border: 1px solid var(--acc-brand);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--acc-brand);
}
body.woocommerce-account .woocommerce-Address-title a.edit:hover { 
	background: var(--acc-brand); 
	color: #fff; 
}
body.woocommerce-account address { 
	font-style: normal; 
	line-height: 1.8; 
	color: #4a4a4a; 
}

/* ---------- Logged-out: login / register / lost password ---------- */
body.woocommerce-account .entry-content > .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) {
	max-width: 1000px;
	margin-inline: auto;
}
body.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}
body.woocommerce-account #customer_login .u-column1,
body.woocommerce-account #customer_login .u-column2 {
	float: none;
	width: auto;
	padding: 40px;
	background: #fff;
	border: 1px solid var(--acc-border);
	border-radius: var(--acc-radius);
	box-shadow: var(--acc-shadow);
}
body.woocommerce-account #customer_login h2 {
	margin: 0 0 24px;
	font-family: var(--soracent-font-title);
	font-size: 1.875rem;
	font-weight: 400;
	color: var(--acc-brand);
}
body.woocommerce-account #customer_login form.woocommerce-form {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}
/* Single card when registration is disabled / lost-password / reset */
body.woocommerce-account .woocommerce > form.woocommerce-form-login,
body.woocommerce-account .woocommerce > form.woocommerce-form-register,
body.woocommerce-account .woocommerce > form.woocommerce-ResetPassword,
body.woocommerce-account .woocommerce > form.lost_reset_password {
	max-width: 480px;
	margin: 0 auto;
	padding: 40px;
	background: #fff;
	border: 1px solid var(--acc-border);
	border-radius: var(--acc-radius);
	box-shadow: var(--acc-shadow);
}
body.woocommerce-account .woocommerce-form-login__submit,
body.woocommerce-account .woocommerce-form-register__submit { 
	width: 100%; 
	margin-top: 6px; 
}
body.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme { 
	margin: 4px 0 18px; 
}
body.woocommerce-account .woocommerce-LostPassword { 
	margin: 18px 0 0; 
	text-align: center; 
	font-size: 0.875rem; 
}
body.woocommerce-account .woocommerce-LostPassword a {
	color: var(--acc-brand);
	text-decoration: underline;
	text-decoration-color: var(--acc-accent);
	text-underline-offset: 3px;
}
body.woocommerce-account .woocommerce-privacy-policy-text { 
	font-size: 0.8125rem; 
	color: var(--acc-muted);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	body.woocommerce-account .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation) {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation { 
		position: static; 
		padding: 8px; 
	}
	/* Nav becomes a horizontal scrolling tab bar */
	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		overflow-x: auto;
		gap: 6px;
		scrollbar-width: none;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		scrollbar-width: none;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation li a {
		padding: 11px 16px;
		white-space: nowrap;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
		transform: none;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0;
		padding: 0;
		border-top: 0;
	}
	body.woocommerce-account .woocommerce-MyAccount-content {
		padding: 26px;
		min-height: 0;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	body.woocommerce-account .site-main {
		padding-block: 28px 56px;
	}
	body.woocommerce-account #customer_login {
		grid-template-columns: 1fr;
	}
	body.woocommerce-account #customer_login .u-column1,
	body.woocommerce-account #customer_login .u-column2,
	body.woocommerce-account .woocommerce > form.woocommerce-form-login,
	body.woocommerce-account .woocommerce > form.woocommerce-form-register,
	body.woocommerce-account .woocommerce > form.woocommerce-ResetPassword,
	body.woocommerce-account .woocommerce > form.lost_reset_password {
		padding: 26px 20px;
	}
	body.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}
	body.woocommerce-account .woocommerce-EditAccountForm,
	body.woocommerce-account .woocommerce-address-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	/* Tables become stacked cards */
	body.woocommerce-account table.shop_table_responsive,
	body.woocommerce-account table.shop_table_responsive tbody {
		display: block;
		border: 0;
		background: transparent;
	}
	body.woocommerce-account table.shop_table_responsive thead {
		display: none;
	}
	body.woocommerce-account table.shop_table_responsive tr {
		display: block;
		margin-bottom: 16px;
		background: #fff;
		border: 1px solid var(--acc-border);
		border-radius: 12px;
		overflow: hidden;
	}
	body.woocommerce-account table.shop_table_responsive tr td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		text-align: right;
		padding: 12px 16px;
		border-bottom: 1px solid #f0ece3;
	}
	body.woocommerce-account table.shop_table_responsive tr td:last-child {
		border-bottom: 0;
	}
	body.woocommerce-account table.shop_table_responsive tr td::before {
		content: attr(data-title);
		float: none;
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--acc-brand);
		text-align: left;
	}
	body.woocommerce-account table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}
	body.woocommerce-account .woocommerce-orders-table__cell-order-actions {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
}