/**
 * WooCommerce My Account Styles
 *
 * Styles for the customer account dashboard, navigation, forms,
 * orders, addresses, downloads, and payment methods.
 *
 * @package WPR\NPX
 */

/* ==========================================================================
   Account Layout — 2-Column (Sidebar + Content)
   ========================================================================== */

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 0 48px;
	align-items: start;
}

/* Account header — spans full width above nav + content */
.woocommerce-account .npx-account-header {
	grid-column: 1 / -1;
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e8e8ed;
}

.woocommerce-account .npx-account-header__title {
	font-family: var(--wp--preset--font-family--primary);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 600;
	color: var(--wp--preset--color--black);
	margin: 0;
	line-height: 1.3;
}

/* Stack on smaller screens */
@media (max-width: 768px) {
	.woocommerce-account .woocommerce {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.woocommerce-account .npx-account-header {
		margin-bottom: 20px;
		padding-bottom: 16px;
	}
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */

.woocommerce-MyAccount-navigation {
	position: sticky;
	top: 120px;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.woocommerce-MyAccount-navigation ul li {
	margin: 0;
	padding: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-s);
	font-weight: 400;
	color: var(--wp--preset--color--black);
	text-decoration: none;
	border-radius: 10px;
	transition: all 0.15s ease;
	position: relative;
}

.woocommerce-MyAccount-navigation ul li a:hover {
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--black);
	text-decoration: none !important;
}

/* Active state */
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.is-active a,
.woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-weight: 500;
	text-decoration: none !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a:hover,
.woocommerce-MyAccount-navigation ul li a[aria-current="page"]:hover {
	background-color: #005bb5;
	text-decoration: none !important;
	color: var(--wp--preset--color--white);
}

/* Navigation Icons via ::before pseudo-element */
.woocommerce-MyAccount-navigation ul li a::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.65;
}

.woocommerce-MyAccount-navigation ul li.is-active a::before,
.woocommerce-MyAccount-navigation ul li a[aria-current="page"]::before {
	opacity: 1;
	filter: brightness(0) invert(1);
}

/* Dashboard icon */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Orders icon */
.woocommerce-MyAccount-navigation-link--orders a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3Cpath d='M9 14l2 2 4-4'/%3E%3C/svg%3E");
}

/* Downloads icon */
.woocommerce-MyAccount-navigation-link--downloads a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7,10 12,15 17,10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Addresses icon */
.woocommerce-MyAccount-navigation-link--edit-address a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Payment methods icon */
.woocommerce-MyAccount-navigation-link--payment-methods a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

/* Account details icon */
.woocommerce-MyAccount-navigation-link--edit-account a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* Log out icon */
.woocommerce-MyAccount-navigation-link--customer-logout a::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 01-2-2V5a2 2 0 012-2h4'/%3E%3Cpolyline points='16,17 21,12 16,7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

/* Logout separator */
.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--gray);
}

/* Mobile: horizontal scroll nav */
@media (max-width: 768px) {
	.woocommerce-MyAccount-navigation {
		position: static;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-bottom: 1px solid #e8e8ed;
		padding-bottom: 0;
		margin-bottom: 16px;
		scrollbar-width: none;
		/* Firefox */
	}

	.woocommerce-MyAccount-navigation::-webkit-scrollbar {
		display: none;
		/* Chrome/Safari */
	}

	.woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 0;
		white-space: nowrap;
		justify-content: flex-start;
		padding: 0 4px;
	}

	.woocommerce-MyAccount-navigation ul li {
		flex-shrink: 0;
	}

	.woocommerce-MyAccount-navigation ul li a {
		padding: 10px 16px;
		font-size: var(--wp--preset--font-size--caption);
		border-radius: 0;
		border-bottom: 2px solid transparent;
		background: none !important;
		color: #6e6e73 !important;
		font-weight: 400 !important;
	}

	.woocommerce-MyAccount-navigation ul li a:hover {
		color: var(--wp--preset--color--black) !important;
		background: none !important;
	}

	.woocommerce-MyAccount-navigation ul li.is-active a,
	.woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
		background: none !important;
		color: var(--wp--preset--color--primary) !important;
		font-weight: 600 !important;
		border-bottom-color: var(--wp--preset--color--primary);
	}

	.woocommerce-MyAccount-navigation ul li.is-active a:hover,
	.woocommerce-MyAccount-navigation ul li a[aria-current="page"]:hover {
		background: none !important;
		color: var(--wp--preset--color--primary) !important;
	}

	/* Hide icons on mobile for compactness */
	.woocommerce-MyAccount-navigation ul li a::before {
		display: none;
	}

	.woocommerce-MyAccount-navigation-link--customer-logout {
		margin-top: 0;
		padding-top: 0;
		border-top: none;
	}
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.woocommerce-MyAccount-content {
	min-width: 0;
	/* prevent grid blowout */
}

/* ==========================================================================
   Dashboard Content
   ========================================================================== */

.woocommerce-MyAccount-content>p:first-child {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-m);
	line-height: 1.6;
	color: var(--wp--preset--color--black);
	margin-bottom: 8px;
}

.woocommerce-MyAccount-content>p:nth-child(2) {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-s);
	line-height: 1.7;
	color: #6e6e73;
	margin-bottom: 24px;
}

.woocommerce-MyAccount-content>p a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-weight: 500;
}

.woocommerce-MyAccount-content>p a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Tables (Orders, Payment Methods, Downloads)
   ========================================================================== */

.woocommerce-MyAccount-content .shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e8e8ed;
	border-radius: 12px;
	overflow: hidden;
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-s);
	margin-bottom: 24px;
}

.woocommerce-MyAccount-content .shop_table thead {
	background-color: #fafafa;
}

.woocommerce-MyAccount-content .shop_table thead th {
	padding: 14px 20px;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--caption);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6e6e73;
	text-align: left;
	border-bottom: 1px solid #e8e8ed;
	white-space: nowrap;
}

.woocommerce-MyAccount-content .shop_table tbody td,
.woocommerce-MyAccount-content .shop_table tbody th {
	padding: 16px 20px;
	vertical-align: middle;
	border-bottom: 1px solid #f0f0f0;
	color: var(--wp--preset--color--black);
}

.woocommerce-MyAccount-content .shop_table tbody tr:last-child td,
.woocommerce-MyAccount-content .shop_table tbody tr:last-child th {
	border-bottom: none;
}

.woocommerce-MyAccount-content .shop_table tbody tr:hover {
	background-color: #fafafa;
}

/* Order number link */
.woocommerce-MyAccount-content .shop_table .woocommerce-orders-table__cell-order-number a {
	color: var(--wp--preset--color--primary);
	font-weight: 500;
	text-decoration: none;
}

.woocommerce-MyAccount-content .shop_table .woocommerce-orders-table__cell-order-number a:hover {
	text-decoration: underline;
}

/* Order status badge */
.woocommerce-MyAccount-content .shop_table .woocommerce-orders-table__cell-order-status {
	text-transform: capitalize;
}

/* View order button in table */
.woocommerce-MyAccount-content .shop_table .woocommerce-orders-table__cell-order-actions a.button,
.woocommerce-MyAccount-content .shop_table .button {
	padding: 6px 16px;
	font-size: var(--wp--preset--font-size--caption);
	border-radius: 20px;
}

/* Table responsive on mobile */
@media (max-width: 768px) {

	.woocommerce-MyAccount-content .shop_table,
	.woocommerce-MyAccount-content .shop_table thead,
	.woocommerce-MyAccount-content .shop_table tbody,
	.woocommerce-MyAccount-content .shop_table tr,
	.woocommerce-MyAccount-content .shop_table td,
	.woocommerce-MyAccount-content .shop_table th {
		display: block;
	}

	.woocommerce-MyAccount-content .shop_table thead {
		display: none;
	}

	.woocommerce-MyAccount-content .shop_table tbody td,
	.woocommerce-MyAccount-content .shop_table tbody th {
		padding: 10px 20px;
		text-align: left;
		border-bottom: none;
	}

	.woocommerce-MyAccount-content .shop_table tbody td::before,
	.woocommerce-MyAccount-content .shop_table tbody th::before {
		content: attr(data-title) ": ";
		font-weight: 600;
		color: #6e6e73;
		text-transform: uppercase;
		font-size: 11px;
		letter-spacing: 0.04em;
		display: block;
		margin-bottom: 4px;
	}

	.woocommerce-MyAccount-content .shop_table tbody tr {
		border-bottom: 1px solid #f0f0f0;
		padding: 12px 0;
	}

	.woocommerce-MyAccount-content .shop_table tbody tr:last-child {
		border-bottom: none;
	}
}

/* ==========================================================================
   Notices (No orders, No downloads, No payment methods)
   ========================================================================== */

.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-notice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	background-color: #f5f5f7;
	border: 1px solid #e8e8ed;
	border-radius: 12px;
	color: #1d1d1f;
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-s);
	line-height: 1.5;
}

.woocommerce-MyAccount-content .woocommerce-info {
	background-color: #f0f4ff;
	border-color: #d0ddf7;
	color: #1d1d1f;
}

/* "Browse products" link inside notices */
.woocommerce-MyAccount-content .woocommerce-info a.button,
.woocommerce-MyAccount-content .woocommerce-message a.button,
.woocommerce-MyAccount-content .woocommerce-notice a.button {
	white-space: nowrap;
	flex-shrink: 0;
}

/* ==========================================================================
   Addresses Page
   ========================================================================== */

.woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 768px) {
	.woocommerce-MyAccount-content .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}
}

.woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
	padding: 24px;
	background-color: #fafafa;
	border: 1px solid #e8e8ed;
	border-radius: 12px;
}

.woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e8e8ed;
}

.woocommerce-MyAccount-content .woocommerce-Address-title h2 {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-m);
	font-weight: 600;
	color: var(--wp--preset--color--black);
	margin: 0;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-weight: 500;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit:hover {
	text-decoration: underline;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-s);
	font-style: normal;
	line-height: 1.7;
	color: #6e6e73;
}

/* Address intro text */
.woocommerce-MyAccount-content>.woocommerce-Addresses~p:first-of-type,
.woocommerce-MyAccount-content>p+.woocommerce-Addresses,
.woocommerce-MyAccount-content>p+.u-columns {
	margin-top: 0;
}

/* The intro text above the addresses */
.woocommerce-account .woocommerce-MyAccount-content>p:only-of-type,
.woocommerce-account .woocommerce-MyAccount-content>p:first-of-type {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-s);
	line-height: 1.6;
	color: #6e6e73;
	margin-bottom: 20px;
}

/* ==========================================================================
   Account Details — Edit Account Form
   ========================================================================== */

.woocommerce-MyAccount-content .woocommerce-EditAccountForm {
	max-width: 640px;
}

/* Improve name fields side-by-side */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row-first,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row-last {
	width: calc(50% - 8px);
	float: left;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row-first {
	margin-right: 8px;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row-last {
	margin-left: 8px;
}

/* Display name description */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm #account_display_name_description {
	display: block;
	margin-top: 6px;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm #account_display_name_description em {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--caption);
	color: #86868b;
	font-style: normal;
}

/* Password fieldset */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
	border: none;
	padding: 0;
	margin: 32px 0 0 0;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-m);
	font-weight: 600;
	color: var(--wp--preset--color--black);
	padding: 0 0 16px 0;
	margin-bottom: 16px;
	border-bottom: 1px solid #e8e8ed;
	width: 100%;
}

/* Save changes button — make it primary */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .woocommerce-Button,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="submit"] {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--white) !important;
	border: none !important;
	padding: 14px 32px !important;
	font-family: var(--wp--preset--font-family--primary) !important;
	font-size: var(--wp--preset--font-size--body-s) !important;
	font-weight: 500 !important;
	margin-top: 16px;
	border-radius: 30px !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm .woocommerce-Button:hover,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="submit"]:hover {
	background-color: #005bb5 !important;
	color: var(--wp--preset--color--white) !important;
}

/* ==========================================================================
   Edit Address Form
   ========================================================================== */

.woocommerce-MyAccount-content .woocommerce-address-fields {
	max-width: var(--wp--style--global--content-size);
}

.woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	row-gap: 1em;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .npx-form-field {
	margin-bottom: 0;
	float: none !important;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .form-row-first,
.woocommerce-MyAccount-content .woocommerce-address-fields .form-row-last {
	width: calc(50% - 10px) !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	flex: 0 0 calc(50% - 10px);
}

.woocommerce-MyAccount-content .woocommerce-address-fields .form-row-wide {
	width: 100% !important;
	flex: 0 0 100%;
}

/* Hide labels to match Checkout style (placeholder driven) */
.woocommerce-MyAccount-content .woocommerce-address-fields label:not(.screen-reader-text) {
	display: none !important;
}

.woocommerce-MyAccount-content .woocommerce-address-fields label .required {
	color: #dc3545;
}

/* Base input styles for My Account Address Form (matching checkout) */
.woocommerce-MyAccount-content .woocommerce-address-fields input.input-text,
.woocommerce-MyAccount-content .woocommerce-address-fields select,
.woocommerce-MyAccount-content .woocommerce-address-fields textarea {
	width: 100%;
	padding: 14px 16px;
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--black);
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--gray);
	border-radius: 10px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.woocommerce-MyAccount-content .woocommerce-address-fields input.input-text:focus,
.woocommerce-MyAccount-content .woocommerce-address-fields select:focus,
.woocommerce-MyAccount-content .woocommerce-address-fields textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.woocommerce-MyAccount-content .woocommerce-address-fields input.input-text::placeholder,
.woocommerce-MyAccount-content .woocommerce-address-fields textarea::placeholder {
	color: #6e6e73;
}

/* Error State / Invalid fields */
.woocommerce-MyAccount-content .woocommerce-address-fields .woocommerce-invalid input.input-text,
.woocommerce-MyAccount-content .woocommerce-address-fields .woocommerce-invalid select,
.woocommerce-MyAccount-content .woocommerce-address-fields .woocommerce-invalid textarea {
	border-color: #dc3545;
}

.woocommerce-MyAccount-content .woocommerce-address-fields .woocommerce-invalid input.input-text:focus,
.woocommerce-MyAccount-content .woocommerce-address-fields .woocommerce-invalid select:focus,
.woocommerce-MyAccount-content .woocommerce-address-fields .woocommerce-invalid textarea:focus {
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Native Select fallback */
.woocommerce-MyAccount-content .woocommerce-address-fields select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 48px;
	cursor: pointer;
}

/* --- Select2 overrides for State dropdown on address edit forms --- */
.woocommerce-address-fields .select2-container {
	width: 100% !important;
}

.woocommerce-address-fields .select2-container .select2-selection--single {
	height: auto;
	font-family: var(--wp--preset--font-family--primary);
	font-size: 17px;
	line-height: 1.5;
	color: var(--wp--preset--color--black);
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--gray);
	border-radius: 10px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.woocommerce-address-fields .select2-container--open .select2-selection--single,
.woocommerce-address-fields .select2-container--focus .select2-selection--single {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
	outline: none;
}

.woocommerce-address-fields .select2-container .select2-selection__rendered {
	padding: 0;
	line-height: 1.5;
	color: var(--wp--preset--color--black);
}

.woocommerce-address-fields .select2-container .select2-selection__placeholder {
	color: #6e6e73;
}

.woocommerce-address-fields .select2-container .select2-selection__arrow {
	height: 100%;
	top: 0;
	right: 16px;
	width: 12px;
}

.woocommerce-address-fields .select2-container .select2-selection__arrow b {
	border-color: var(--wp--preset--color--black) transparent transparent transparent;
	border-width: 5px 4px 0 4px;
	margin-left: -4px;
	margin-top: -2px;
}

.woocommerce-address-fields .select2-container--open .select2-selection__arrow b {
	border-color: transparent transparent var(--wp--preset--color--black) transparent;
	border-width: 0 4px 5px 4px;
}

/* Address form save button */
.woocommerce-MyAccount-content .woocommerce-address-fields button[type="submit"] {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--white) !important;
	border: none !important;
	padding: 14px 32px !important;
	font-family: var(--wp--preset--font-family--primary) !important;
	font-size: var(--wp--preset--font-size--body-s) !important;
	font-weight: 500 !important;
	margin-top: 16px;
	border-radius: 30px !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.woocommerce-MyAccount-content .woocommerce-address-fields button[type="submit"]:hover {
	background-color: #005bb5 !important;
	color: var(--wp--preset--color--white) !important;
}

/* ==========================================================================
   Payment Methods Page
   ========================================================================== */

/* "Add payment method" button */
.woocommerce-MyAccount-content a.button[href*="add-payment-method"] {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: none;
	margin-top: 16px;
}

.woocommerce-MyAccount-content a.button[href*="add-payment-method"]:hover {
	background-color: #005bb5;
	color: var(--wp--preset--color--white);
}

/* ==========================================================================
   Order Details / View Order
   ========================================================================== */

/* Section titles in view-order */
.woocommerce-MyAccount-content h2 {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-l);
	font-weight: 600;
	color: var(--wp--preset--color--black);
	margin: 32px 0 16px 0;
}

.woocommerce-MyAccount-content h2:first-child {
	margin-top: 0;
}

/* Strip default yellow highlight from order metadata (mark tags) */
.woocommerce-MyAccount-content mark {
	background-color: transparent;
	color: var(--wp--preset--color--black);
	font-weight: 600;
	padding: 0;
}

/* Order again button */
.woocommerce-MyAccount-content .order-again .button {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: none;
	margin-bottom: 16px;
}

.woocommerce-MyAccount-content .order-again .button:hover {
	background-color: #005bb5;
}

/* ==========================================================================
   Form Login (non-logged-in state)
   ========================================================================== */

.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	max-width: 1000px;
	margin: 60px auto;
	align-items: start;
}

@media (max-width: 768px) {
	.woocommerce-account #customer_login {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
	padding: 40px;
	background-color: var(--wp--preset--color--white);
	border: 1px solid #e8e8ed;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
}

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	margin: 0;
}

#customer_login h2 {
	font-family: var(--wp--preset--font-family--primary);
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 24px;
	text-align: center;
}

.woocommerce-account .woocommerce-form-register .woocommerce-form-row {
	margin-top: 10px;
}

/* Login/Register submit buttons */
.woocommerce-account .woocommerce-form-login .woocommerce-button,
.woocommerce-account .woocommerce-form-register .woocommerce-button {
	width: 100%;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: none;
	padding: 14px 24px;
	font-weight: 500;
	justify-content: center;
}

.woocommerce-account .woocommerce-form-login .woocommerce-button:hover,
.woocommerce-account .woocommerce-form-register .woocommerce-button:hover {
	background-color: #005bb5;
}

/* Lost password link */
.woocommerce-account .woocommerce-LostPassword a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--body-s);
}

.woocommerce-account .woocommerce-LostPassword a:hover {
	text-decoration: underline;
}

/* Remember me checkbox */
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0;
	font-size: var(--wp--preset--font-size--body-s);
}

/* Login form should not use 2-column grid */
.woocommerce-account .woocommerce:has(.woocommerce-form-login) {
	display: block;
}

/* When no nav (login state), hide account header */
.woocommerce-account .woocommerce:has(.woocommerce-form-login) .npx-account-header {
	display: none;
}

/* ==========================================================================
   Pagination (Orders)
   ========================================================================== */

.woocommerce-MyAccount-content .woocommerce-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-content .woocommerce-pagination a,
.woocommerce-MyAccount-content .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--body-s);
	font-weight: 500;
	text-decoration: none;
	transition: all 0.15s ease;
}

.woocommerce-MyAccount-content .woocommerce-pagination a {
	color: var(--wp--preset--color--black);
	border: 1px solid #e8e8ed;
}

.woocommerce-MyAccount-content .woocommerce-pagination a:hover {
	background-color: var(--wp--preset--color--background);
}

.woocommerce-MyAccount-content .woocommerce-pagination span.current {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

/* ==========================================================================
   Clearfix
   ========================================================================== */

.woocommerce-MyAccount-content .clear {
	clear: both;
}

/* WooCommerce col2-set override for addresses */
.woocommerce-MyAccount-content .col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.woocommerce-MyAccount-content .col2-set::after,
.woocommerce-MyAccount-content .col2-set::before {
	display: none;
}

@media (max-width: 768px) {
	.woocommerce-MyAccount-content .col2-set {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   u-columns override (Address page uses WC .u-columns)
   ========================================================================== */

.woocommerce-MyAccount-content .u-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 768px) {
	.woocommerce-MyAccount-content .u-columns {
		grid-template-columns: 1fr;
	}
}

/* Float reset for u-column children */
.woocommerce-MyAccount-content .u-column1,
.woocommerce-MyAccount-content .u-column2 {
	float: none !important;
	width: 100% !important;
	padding: 24px;
	background-color: #fafafa;
	border: 1px solid #e8e8ed;
	border-radius: 12px;
}