/* BioPex — My account (Concept 3 V2 "Rewards & My account"). Classic WooCommerce markup. */

body.bpx-acct-page .page-content { margin: 0; padding: 0; }
body.bpx-acct-page .bpx-eyebrow {
	margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bpx-steel);
}
body.bpx-acct-page .bpx-acct-head { padding-top: 28px; padding-bottom: 8px; }
body.bpx-acct-page .bpx-acct-head .bpx-page-h { padding-top: 0; }
body.bpx-acct-page .bpx-acct-head .bpx-eyebrow + .bpx-page-h { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; }
body.bpx-acct-page .page-content .woocommerce { margin: 0; padding: 32px 0 clamp(72px, 9vw, 136px); }

/* ---------- shared: headings, text, links ---------- */
body.bpx-acct-page .woocommerce h2,
body.bpx-acct-page .woocommerce h3 {
	font-family: var(--bpx-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: var(--bpx-ink);
	margin: 0 0 16px; font-size: clamp(22px, 2vw, 28px);
}
body.bpx-acct-page .woocommerce-MyAccount-content { min-width: 0; color: var(--bpx-slate); font-size: 16px; line-height: 1.6; }
body.bpx-acct-page .woocommerce-MyAccount-content p { margin: 0 0 16px; }
body.bpx-acct-page .woocommerce-MyAccount-content strong,
body.bpx-acct-page .woocommerce-MyAccount-content b { color: var(--bpx-ink); font-weight: 600; }
body.bpx-acct-page .woocommerce-MyAccount-content a:not(.button):not(.bpx-acct-card) {
	color: var(--bpx-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
body.bpx-acct-page .woocommerce-MyAccount-content mark { background: var(--bpx-mist); color: var(--bpx-ink); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* ---------- logged in: one bordered panel, nav left / content right ---------- */
body.bpx-acct-page .page-content .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
	margin: 48px 0 clamp(72px, 9vw, 136px);
	padding: clamp(20px, 3vw, 40px);
	border: 1px solid var(--bpx-line);
	border-radius: var(--bpx-r);
}
body.bpx-acct-page .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
body.bpx-acct-page .woocommerce:has(> .woocommerce-MyAccount-navigation)::after { display: none; }
body.bpx-acct-page .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; margin: 0; }
body.bpx-acct-page .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
body.bpx-acct-page .woocommerce-MyAccount-navigation,
body.bpx-acct-page .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; }

body.bpx-acct-page .woocommerce-MyAccount-navigation ul {
	list-style: none; margin: 0; padding: 0; display: grid; gap: 2px;
}
body.bpx-acct-page .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; list-style: none; }
body.bpx-acct-page .woocommerce-MyAccount-navigation li a {
	display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--bpx-rs);
	font: 500 15px/1.3 var(--bpx-sans); color: var(--bpx-ink); text-decoration: none; transition: background-color .15s;
}
body.bpx-acct-page .woocommerce-MyAccount-navigation li a:hover { background: var(--bpx-mist); color: var(--bpx-ink); }
body.bpx-acct-page .woocommerce-MyAccount-navigation li.is-active a { background: var(--bpx-ink); color: #fff; }
body.bpx-acct-page .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--bpx-line); }
body.bpx-acct-page .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--bpx-slate); }

/* ---------- dashboard ---------- */
body.bpx-ep-dashboard .woocommerce-MyAccount-content > p:first-of-type { font-size: 18px; color: var(--bpx-ink); }
body.bpx-ep-dashboard .woocommerce-MyAccount-content > p:nth-of-type(2) { display: none; } /* replaced by the cards */
body.bpx-acct-page .bpx-acct-cards {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px;
}
body.bpx-acct-page a.bpx-acct-card {
	display: flex; flex-direction: column; gap: 4px; min-height: 140px; padding: 20px;
	border-radius: var(--bpx-r); background: var(--bpx-mist); color: var(--bpx-ink); text-decoration: none;
	transition: background-color .15s;
}
body.bpx-acct-page a.bpx-acct-card:hover { background: var(--bpx-mist-2); }
body.bpx-acct-page .bpx-acct-card-l { font-size: 14px; font-weight: 600; color: var(--bpx-slate); }
body.bpx-acct-page .bpx-acct-card b { font-family: var(--bpx-display); font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; color: var(--bpx-ink); }
body.bpx-acct-page .bpx-acct-card-n { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
body.bpx-acct-page .bpx-acct-card .bpx-ic { transition: transform .2s; }
body.bpx-acct-page .bpx-acct-card:hover .bpx-ic { transform: translateX(3px); }

/* ---------- points ---------- */
body.bpx-acct-page .bpx-bal { margin: 0 0 24px; }
body.bpx-acct-page .bpx-bal .bpx-eyebrow { margin-bottom: 4px; }
body.bpx-acct-page .bpx-bal > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
body.bpx-acct-page .bpx-bal b { font-family: var(--bpx-display); font-size: clamp(44px, 5vw, 72px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--bpx-ink); }
body.bpx-acct-page .bpx-bal span { color: var(--bpx-slate); }
body.bpx-ep-points .woocommerce-MyAccount-content > .bpx-bal ~ h2:first-of-type,
body.bpx-ep-points .woocommerce-MyAccount-content > .bpx-bal ~ p:first-of-type { display: none; } /* plugin's own heading + sentence */

/* ---------- tables: orders, subscriptions, points, downloads, order details ---------- */
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table {
	width: 100%; margin: 0 0 24px; border: 0; border-radius: 0; border-collapse: collapse; background: none; font-size: 15px;
}
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table th,
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table td {
	padding: 14px 12px 14px 0; border: 0; border-bottom: 1px solid var(--bpx-line); background: none !important;
	text-align: left; vertical-align: middle; line-height: 1.45; color: var(--bpx-ink); font-weight: 400;
}
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table thead th {
	padding-top: 0; padding-bottom: 12px; border-bottom: 1px solid var(--bpx-ink);
	font-size: 13px; font-weight: 600; color: var(--bpx-slate); white-space: nowrap;
}
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table th:last-child,
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table td:last-child { text-align: right; padding-right: 0; }
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table tbody th { font-weight: 600; }
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table tfoot th,
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table tfoot td { font-weight: 400; }
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child th,
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table tfoot tr:last-child td { font-size: 18px; font-weight: 600; border-bottom: 0; }
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table td a:not(.button) { font-weight: 600; }
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table td.woocommerce-orders-table__cell-order-actions,
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table td.subscription-actions { white-space: nowrap; }
body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table td .button { margin: 2px 0 2px 6px; }
/* points history: + green, − grey (WooCommerce Points and Rewards) */
body.bpx-acct-page table.my_account_points_rewards td.points-rewards-event-points { font-weight: 600; color: var(--bpx-ok); }
body.bpx-acct-page table.my_account_points_rewards td.points-rewards-event-points { white-space: nowrap; }
body.bpx-acct-page table.my_account_points_rewards td.points-rewards-event-points.is-neg { color: var(--bpx-slate); }

/* status pills */
body.bpx-acct-page td.woocommerce-orders-table__cell-order-status,
body.bpx-acct-page td.subscription-status { white-space: nowrap; }

/* order / subscription pagination */
body.bpx-acct-page .woocommerce-pagination { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0 0; }

/* view order / view subscription */
body.bpx-acct-page .woocommerce-order-details,
body.bpx-acct-page .woocommerce-customer-details { margin: 32px 0 0; }
body.bpx-acct-page table.subscription_details td:last-child { text-align: right; }
body.bpx-acct-page .woocommerce-customer-details .woocommerce-columns--addresses,
body.bpx-acct-page .woocommerce-Addresses {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: auto; float: none; margin: 0;
}
body.bpx-acct-page .woocommerce-customer-details .woocommerce-columns--addresses::before,
body.bpx-acct-page .woocommerce-customer-details .woocommerce-columns--addresses::after,
body.bpx-acct-page .woocommerce-Addresses::before,
body.bpx-acct-page .woocommerce-Addresses::after { display: none; }
body.bpx-acct-page .woocommerce-column,
body.bpx-acct-page .woocommerce-Address { float: none !important; width: auto !important; max-width: none; margin: 0; padding: 0; }
body.bpx-acct-page .woocommerce-MyAccount-content address {
	margin: 0; padding: 20px; border: 1px solid var(--bpx-line); border-radius: var(--bpx-r);
	font-style: normal; line-height: 1.65; color: var(--bpx-ink); font-size: 15px;
}
body.bpx-acct-page .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; }
body.bpx-acct-page .woocommerce-Address-title::before,
body.bpx-acct-page .woocommerce-Address-title::after { display: none; }
body.bpx-acct-page .woocommerce-Address-title h2,
body.bpx-acct-page .woocommerce-Address-title h3 { font-size: 20px; margin: 0; float: none; }
body.bpx-acct-page .woocommerce-Address-title a.edit { float: none; font-size: 14px; }

/* ---------- forms: account details, addresses, login, register, lost password ---------- */
body.bpx-acct-page .woocommerce form .form-row::before,
body.bpx-acct-page .woocommerce form .form-row::after { display: none; }
body.bpx-acct-page .woocommerce form .form-row {
	float: none; width: auto; margin: 0 0 16px; padding: 0; display: grid; gap: 6px;
}
body.bpx-acct-page .woocommerce-address-fields__field-wrapper,
body.bpx-acct-page form.woocommerce-EditAccountForm {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px;
}
body.bpx-acct-page .woocommerce-address-fields__field-wrapper > *,
body.bpx-acct-page form.woocommerce-EditAccountForm > * { grid-column: 1 / -1; }
body.bpx-acct-page .woocommerce-address-fields__field-wrapper > .form-row-first,
body.bpx-acct-page form.woocommerce-EditAccountForm > .form-row-first { grid-column: 1; }
body.bpx-acct-page .woocommerce-address-fields__field-wrapper > .form-row-last,
body.bpx-acct-page form.woocommerce-EditAccountForm > .form-row-last { grid-column: 2; }
body.bpx-acct-page form.woocommerce-EditAccountForm > .clear,
body.bpx-acct-page .woocommerce form .clear { display: none; }
body.bpx-acct-page .woocommerce form .form-row label {
	margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--bpx-ink);
}
body.bpx-acct-page .woocommerce form .form-row .required { color: #A23B3B; text-decoration: none; border: 0; }
body.bpx-acct-page .woocommerce form .form-row label .optional { font-weight: 400; color: var(--bpx-slate); }
body.bpx-acct-page .woocommerce form .form-row .woocommerce-input-wrapper,
body.bpx-acct-page .woocommerce form .form-row .password-input { display: block; position: relative; width: 100%; }
body.bpx-acct-page .woocommerce form .form-row input.input-text,
body.bpx-acct-page .woocommerce form .form-row textarea,
body.bpx-acct-page .woocommerce form .form-row select,
body.bpx-acct-page .select2-container .select2-selection--single {
	width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
	border: 1px solid var(--bpx-field); border-radius: var(--bpx-rs); background: #fff;
	font: 15.5px/1.4 var(--bpx-sans); color: var(--bpx-ink); box-shadow: none;
}
body.bpx-acct-page .woocommerce form .form-row input.input-text:focus,
body.bpx-acct-page .woocommerce form .form-row textarea:focus,
body.bpx-acct-page .woocommerce form .form-row select:focus,
body.bpx-acct-page .select2-container--focus .select2-selection--single,
body.bpx-acct-page .select2-container--open .select2-selection--single { outline: 2px solid var(--bpx-ink); outline-offset: -1px; }
body.bpx-acct-page .select2-container .select2-selection--single { display: flex; align-items: center; height: 50px; padding: 0 14px; }
body.bpx-acct-page .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; color: var(--bpx-ink); line-height: 1.4; }
body.bpx-acct-page .select2-container .select2-selection--single .select2-selection__arrow { height: 48px; right: 10px; }
body.bpx-acct-page .select2-results__option--highlighted[aria-selected],
body.bpx-acct-page .select2-results__option--highlighted[data-selected] { background: var(--bpx-ink) !important; }
body.bpx-acct-page .woocommerce form .form-row .show-password-input { top: 50%; right: 14px; transform: translateY(-50%); }
body.bpx-acct-page .woocommerce form .form-row em,
body.bpx-acct-page .woocommerce form .form-row .description { font-style: normal; font-size: 13px; color: var(--bpx-slate); }
body.bpx-acct-page .woocommerce form fieldset {
	grid-column: 1 / -1; margin: 16px 0 16px; padding: 20px 20px 4px; border: 1px solid var(--bpx-line); border-radius: var(--bpx-r);
}
body.bpx-acct-page .woocommerce form fieldset legend { padding: 0 6px; font-family: var(--bpx-display); font-size: 18px; font-weight: 600; color: var(--bpx-ink); }
body.bpx-acct-page .woocommerce form input[type="checkbox"],
body.bpx-acct-page .woocommerce form input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--bpx-ink); flex: none; }
body.bpx-acct-page .woocommerce form .woocommerce-form__label-for-checkbox {
	display: inline-flex; align-items: center; gap: 10px; font-weight: 400 !important; font-size: 15px; cursor: pointer;
}

/* primary buttons inside forms (Save, Log in, Register, Reset) */
body.bpx-acct-page .woocommerce form button.button,
body.bpx-acct-page .woocommerce form .woocommerce-Button.button {
	min-height: 52px !important; padding: 0 26px !important; font-size: 15px !important;
	background: var(--bpx-ink) !important; border-color: var(--bpx-ink) !important; color: #fff !important;
}
body.bpx-acct-page .woocommerce form button.button:hover,
body.bpx-acct-page .woocommerce form .woocommerce-Button.button:hover { background: var(--bpx-navy) !important; border-color: var(--bpx-navy) !important; }

/* ---------- logged out: login / register cards ---------- */
body.bpx-acct-page .woocommerce:not(:has(> .woocommerce-MyAccount-navigation)) > h2,
body.bpx-acct-page #customer_login h2 { font-size: 24px; }
body.bpx-acct-page .woocommerce > form.woocommerce-form-login,
body.bpx-acct-page .woocommerce > form.woocommerce-ResetPassword,
body.bpx-acct-page #customer_login form {
	margin: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--bpx-line); border-radius: var(--bpx-r); background: #fff;
}
body.bpx-acct-page .woocommerce > h2,
body.bpx-acct-page .woocommerce > form.woocommerce-form-login,
body.bpx-acct-page .woocommerce > form.woocommerce-ResetPassword { max-width: 520px; }
body.bpx-acct-page #customer_login {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); width: auto; float: none;
}
body.bpx-acct-page #customer_login::before,
body.bpx-acct-page #customer_login::after { display: none; }
body.bpx-acct-page #customer_login .u-column1,
body.bpx-acct-page #customer_login .u-column2 { float: none; width: auto; margin: 0; padding: 0; }
body.bpx-acct-page form.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px;
}
body.bpx-acct-page form.woocommerce-form-login .woocommerce-form-login__submit { float: none; margin: 0; order: 2; }
body.bpx-acct-page form.woocommerce-form-login .woocommerce-form-login__rememberme { margin: 0; order: 1; }
body.bpx-acct-page .woocommerce-LostPassword { margin: 16px 0 0; font-size: 14.5px; }
body.bpx-acct-page .woocommerce-LostPassword a,
body.bpx-acct-page .woocommerce-privacy-policy-text a { color: var(--bpx-ink); font-weight: 600; text-underline-offset: 3px; }
body.bpx-acct-page .woocommerce-privacy-policy-text p { font-size: 13px; line-height: 1.55; color: var(--bpx-slate); }
body.bpx-acct-page form.woocommerce-ResetPassword > p:first-child { color: var(--bpx-slate); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
	body.bpx-acct-page .page-content .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); }
	body.bpx-acct-page .woocommerce-MyAccount-navigation ul {
		display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
	}
	body.bpx-acct-page .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	body.bpx-acct-page .woocommerce-MyAccount-navigation li a { white-space: nowrap; border: 1px solid var(--bpx-line); }
	body.bpx-acct-page .woocommerce-MyAccount-navigation li.is-active a { border-color: var(--bpx-ink); }
	body.bpx-acct-page .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 768px) {
	body.bpx-acct-page #customer_login,
	body.bpx-acct-page .woocommerce-Addresses,
	body.bpx-acct-page .woocommerce-customer-details .woocommerce-columns--addresses { grid-template-columns: minmax(0, 1fr); }
	/* tables become stacked rows (WooCommerce adds data-title to each cell) */
	body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table_responsive thead { display: none; }
	body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table_responsive tbody tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--bpx-line); }
	body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table_responsive tbody th,
	body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table_responsive tbody td {
		display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border: 0; text-align: right !important;
	}
	body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table_responsive tbody td::before {
		content: attr(data-title); float: none; font-weight: 600; color: var(--bpx-slate); text-align: left;
	}
	body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table_responsive tbody td:not([data-title])::before { content: none; }
	body.bpx-acct-page .woocommerce-MyAccount-content table.shop_table_responsive td .button { margin: 4px 0 0 6px; }
}
@media (max-width: 640px) {
	body.bpx-acct-page .page-content .woocommerce:has(> .woocommerce-MyAccount-navigation) { padding: 16px; margin-top: 32px; }
	body.bpx-acct-page .woocommerce-address-fields__field-wrapper,
	body.bpx-acct-page form.woocommerce-EditAccountForm { grid-template-columns: minmax(0, 1fr); }
	body.bpx-acct-page .woocommerce-address-fields__field-wrapper > .form-row-first,
	body.bpx-acct-page .woocommerce-address-fields__field-wrapper > .form-row-last,
	body.bpx-acct-page form.woocommerce-EditAccountForm > .form-row-first,
	body.bpx-acct-page form.woocommerce-EditAccountForm > .form-row-last { grid-column: 1; }
	body.bpx-acct-page .bpx-acct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	body.bpx-acct-page a.bpx-acct-card { min-height: 120px; padding: 16px; }
	body.bpx-acct-page .bpx-acct-card b { font-size: 32px; }
}
