/**
 * My Account — login/register card, lost/reset password, and the full
 * redesign (Dashboard / My Orders / Order Detail / Subscription /
 * Addresses / Account Details — .hif-acct-* namespace, rendered through
 * woocommerce/myaccount/*.php overrides + inc/my-account.php).
 *
 * Split out of app.css (which was getting too large) and enqueued only on
 * the account page — see hif_account_assets() in inc/my-account.php.
 * WooCommerce notice styling (.woocommerce-message/-info/-error) stays in
 * app.css since checkout uses it too.
 */

/* ---- My Account: login / register page ---- */
.hif-account-auth {
	display: flex;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem) 1rem;
}
.hif-account-auth__card {
	position: relative;
	width: min(100%, 440px);
	background: var(--wp--preset--color--base);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(42, 33, 24, 0.08);
	padding: clamp(1.4rem, 3vw, 2rem);
}
.hif-account-auth__tab-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
.hif-account-auth__tabbar {
	display: flex;
	gap: 0.25rem;
	background: #f6f2ea;
	border-radius: 999px;
	padding: 0.25rem;
	margin-bottom: 1.5rem;
}
.hif-account-auth__tab {
	flex: 1 1 0;
	text-align: center;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
#hif-account-auth-tab-login:checked ~ .hif-account-auth__tabbar label[for="hif-account-auth-tab-login"],
#hif-account-auth-tab-register:checked ~ .hif-account-auth__tabbar label[for="hif-account-auth-tab-register"] {
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.hif-account-auth__panel { display: none; }
.hif-account-auth__panel--login { display: block; }
#hif-account-auth-tab-login:checked ~ .hif-account-auth__panel--login,
#hif-account-auth-tab-register:checked ~ .hif-account-auth__panel--register {
	display: block;
}
#hif-account-auth-tab-register:checked ~ .hif-account-auth__panel--login {
	display: none;
}
.hif-account-auth__form { display: flex; flex-direction: column; gap: 1rem; }
.hif-account-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin: -0.25rem 0 0;
	font-size: 0.86rem;
}
.hif-account-auth__remember {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}
.hif-account-auth__remember input { width: 16px; height: 16px; accent-color: var(--wp--preset--color--primary); }
.hif-account-auth__lost {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-decoration: none;
}
.hif-account-auth__lost:hover { text-decoration: underline; }
.hif-account-auth__password-wrap {
	position: relative;
}
.hif-account-auth__password-wrap input {
	padding-right: 2.75rem;
}
.hif-account-auth__toggle {
	position: absolute;
	top: 50%;
	right: 0.55rem;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: color-mix(in srgb, var(--wp--preset--color--contrast) 55%, transparent);
	cursor: pointer;
}
.hif-account-auth__toggle:hover,
.hif-account-auth__toggle:focus-visible {
	color: var(--wp--preset--color--contrast);
	outline: none;
}
.hif-account-auth__toggle:focus-visible {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent);
}
.hif-account-auth__eye {
	display: inline-flex;
	line-height: 0;
}
.hif-account-auth__eye--hide {
	display: none;
}
.hif-account-auth__toggle.is-visible .hif-account-auth__eye--show {
	display: none;
}
.hif-account-auth__toggle.is-visible .hif-account-auth__eye--hide {
	display: inline-flex;
}
.hif-account-auth__hint {
	margin: -0.5rem 0 0;
	font-size: 0.84rem;
	color: var(--wp--preset--color--contrast-muted);
}
.hif-account-auth__submit {
	width: 100%;
	border: 0;
	border-radius: 6px;
	padding: 0.85rem 1.2rem;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.hif-account-auth__submit:hover { background: var(--wp--preset--color--primary-dark); }
@media (max-width: 600px) {
	.hif-account-auth__card { border-radius: 14px; }
}

/* ---- Lost/reset password fields (native WC markup, unchanged from the login redesign) ---- */
.woocommerce-ResetPassword .form-row { display: flex; flex-direction: column; gap: 0.4rem; margin: 0 0 1rem; }
.woocommerce-ResetPassword label { font-size: 0.82rem; font-weight: 600; color: var(--wp--preset--color--contrast); }
.woocommerce-ResetPassword input.input-text {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 10px !important;
	background: #f6f2ea !important;
	padding: 0 0.9rem;
	font: inherit;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast) !important;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.woocommerce-ResetPassword input.input-text:focus { border-color: var(--wp--preset--color--primary) !important; box-shadow: 0 0 0 3px rgba(194,24,91,0.12); }
.woocommerce-ResetPassword .button {
	display: inline-flex; align-items: center; border: 0; border-radius: 6px; padding: 0.8rem 1.4rem;
	background: var(--wp--preset--color--primary); color: #fff; font: inherit; font-size: 0.92rem; font-weight: 600;
	cursor: pointer; text-decoration: none; transition: background 0.15s ease;
}
.woocommerce-ResetPassword .button:hover { background: var(--wp--preset--color--primary-dark); color: #fff; }

/* =====================================================================
   My Account redesign (design_handoff_my_account) — .hif-acct-* namespace.
   Dashboard / My Orders / Order Detail / Subscription / Addresses /
   Account Details all render through these custom templates + helpers
   in inc/my-account.php, not WooCommerce's default markup.
   ===================================================================== */

/* ---- Shell: cream page head + sidebar/content + mobile bottom nav ---- */
/* The my-account shortcode's .woocommerce wrapper is a direct child of
   .wp-block-post-content.is-layout-constrained, so WP's global styles cap
   it to the default (narrow) content size, not this theme's 1300px wide
   size — undo that so the sidebar/content layout gets its full width. */
.woocommerce:has(> .hif-acct-head) { max-width: none !important; }
.hif-acct-head { background: var(--wp--preset--color--cream); padding: 2rem 0; margin-bottom: 0; }
.hif-acct-head__inner { max-width: 1300px; margin: 0 auto; padding: 0 1.5rem; }
.hif-acct-head__eyebrow { margin: 0 0 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--wp--preset--color--primary); }
.hif-acct-head__title { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: clamp(1.75rem, 4vw, 2.4rem); color: var(--wp--preset--color--contrast); }
.hif-acct-head__meta { margin: 0.4rem 0 0; color: var(--wp--preset--color--contrast-muted); }

.hif-acct-shell {
	max-width: 1300px;
	margin: 0 auto;
	padding: 2rem 1.5rem 3.5rem;
	display: flex;
	align-items: flex-start;
	gap: 2rem;
}
.hif-acct-content { flex: 1 1 auto; min-width: 0; }

.hif-acct-sidebar { flex: 0 0 240px; border: 1.5px solid var(--wp--preset--color--border); border-radius: 14px; overflow: hidden; background: var(--wp--preset--color--base); }
.hif-acct-sidebar__profile { display: flex; align-items: center; gap: 0.7rem; padding: 1.1rem; border-bottom: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--cream); }
.hif-acct-sidebar__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--wp--preset--color--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex: 0 0 auto; }
.hif-acct-sidebar__who { min-width: 0; }
.hif-acct-sidebar__name { margin: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hif-acct-sidebar__member { margin: 0; font-size: 0.8rem; color: var(--wp--preset--color--contrast-muted); }
.hif-acct-sidebar__nav { list-style: none; margin: 0; padding: 0.5rem; display: flex; flex-direction: column; gap: 2px; }
.hif-acct-sidebar__link {
	display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.8rem; border-radius: 8px;
	font-size: 0.95rem; font-weight: 600; color: var(--wp--preset--color--contrast); text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}
.hif-acct-sidebar__link .hif-icon,
.hif-acct-sidebar__link svg { flex: 0 0 auto; }
.hif-acct-sidebar__link:hover { background: var(--wp--preset--color--cream); }
.hif-acct-sidebar__link.is-active { background: var(--wp--preset--color--primary); color: #fff; }
.hif-acct-sidebar__logout-row { border-top: 1px solid var(--wp--preset--color--border); margin-top: 0.4rem; padding-top: 0.4rem; }
.hif-acct-sidebar__link--logout { color: var(--wp--preset--color--contrast-muted); }

.hif-acct-mnav { display: none; }

/* ---- Shared bits: headings, buttons, pills, segmented control ---- */
.hif-acct-h2 { margin: 0 0 1.3rem; font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.8rem; color: var(--wp--preset--color--contrast); }
.hif-acct-h3 { margin: 0 0 1rem; font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.4rem; color: var(--wp--preset--color--contrast); }
.hif-acct-lede { margin: -0.8rem 0 1.4rem; color: var(--wp--preset--color--contrast-muted); }
.hif-acct-section-title { margin: 1.6rem 0 0.9rem; font-weight: 700; font-family: var(--wp--preset--font-family--display); font-size: 1.2rem; color: var(--wp--preset--color--contrast); }

.hif-acct-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	border-radius: 6px; padding: 0.2rem 1.4rem; font: inherit; font-size: 0.92rem; font-weight: 600;
	cursor: pointer; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; border: 0;
}
.hif-acct-btn--primary { background: var(--wp--preset--color--primary); color: #fff; }
.hif-acct-btn--primary:hover { background: var(--wp--preset--color--primary-dark); color: #fff; }
.hif-acct-btn--outline { background: transparent; border: 1.5px solid var(--wp--preset--color--primary); color: var(--wp--preset--color--primary); }
.hif-acct-btn--outline:hover { background: var(--wp--preset--color--primary); color: #fff; }
.hif-acct-btn--sm { padding: 0.5rem 0.8rem; font-size: 0.82rem; }
.hif-acct-btn--block { width: 100%; }
.hif-acct-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.hif-acct-btn[disabled]:hover { background: transparent; color: var(--wp--preset--color--primary); }

.hif-acct-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.hif-acct-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; display: block; }
.hif-acct-pill--gold { background: #FCEFD0; border: 1.5px solid #F3C13B; color: var(--wp--preset--color--contrast); }
.hif-acct-pill--gold::before { background: #F5B301; }
.hif-acct-pill--success { background: color-mix(in srgb, var(--wp--preset--color--success) 15%, white); border: 1.5px solid var(--wp--preset--color--success); color: var(--wp--preset--color--forest); }
.hif-acct-pill--success::before { background: var(--wp--preset--color--success); }
.hif-acct-pill--cancelled { background: #F4E9E9; border: 1.5px solid #D8A7A3; color: #8A3B34; }
.hif-acct-pill--cancelled::before { background: #C0392B; }

.hif-acct-seg { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; }
.hif-acct-seg__opt {
	padding: 0.2rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--wp--preset--color--border);
	font-size: 0.88rem; font-weight: 600; color: var(--wp--preset--color--contrast); text-decoration: none;
	background: var(--wp--preset--color--base); cursor: pointer;
}
.hif-acct-seg__opt.is-active { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hif-acct-seg--readonly { margin-bottom: 1.3rem; }
.hif-acct-seg--readonly .hif-acct-seg__opt { cursor: default; }

/* ---- Dashboard: stat cards, active-order banner, order-again grid ---- */
.hif-acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.hif-acct-stat { background: var(--wp--preset--color--base); border: 1.5px solid var(--wp--preset--color--border); border-radius: 10px; padding: 1.2rem; }
.hif-acct-stat__icon { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; background: var(--wp--preset--color--cream); color: var(--wp--preset--color--primary); align-items: center; justify-content: center; margin-bottom: 0.6rem; }
.hif-acct-stat__num { margin: 0; font-size: 1.9rem; font-weight: 700; font-family: var(--wp--preset--font-family--display); line-height: 1; }
.hif-acct-stat__label { margin: 0.2rem 0 0; color: var(--wp--preset--color--contrast-muted); font-size: 0.9rem; }

.hif-acct-banner {
	background: var(--wp--preset--color--forest);
	background-image: url('../images/patterns/green-pattern.png');
	background-size: 50px;
	color: #fff;
	border-radius: 10px;
	padding: 1.4rem 1.5rem;
	margin-bottom: 1.6rem;
}
.hif-acct-banner__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.6rem; }
.hif-acct-banner__eta { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.hif-acct-banner__link { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4); color: #fff; border-radius: 6px; padding: 0.45rem 0.9rem; font-weight: 600; font-size: 0.9rem; text-decoration: none; }

.hif-acct-tracker { list-style: none; padding: 0; margin: 0.7rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.hif-acct-tracker li { position: relative; text-align: center; padding-top: 1.9rem; }
.hif-acct-tracker li::before { content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 3px; background: var(--wp--preset--color--border); }
.hif-acct-tracker li:last-child::before { display: none; }
.hif-acct-tracker__dot {
	position: absolute; top: 3px; left: 50%; transform: translateX(-50%);
	width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--wp--preset--color--base); border: 2px solid var(--wp--preset--color--border);
	font-weight: 700; font-size: 0.8rem; z-index: 1; color: var(--wp--preset--color--contrast-muted);
}
.hif-acct-tracker__label { font-size: 0.78rem; font-weight: 500; color: var(--wp--preset--color--contrast-muted); }
.hif-acct-tracker li.is-done::before { background: var(--wp--preset--color--primary); }
.hif-acct-tracker li.is-done .hif-acct-tracker__dot { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hif-acct-tracker li.is-done .hif-acct-tracker__label { color: var(--wp--preset--color--contrast); font-weight: 700; }
/* Dark variant — on the forest banner */
.hif-acct-tracker--dark li::before { background: rgba(255,255,255,0.3); }
.hif-acct-tracker--dark .hif-acct-tracker__dot { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.hif-acct-tracker--dark .hif-acct-tracker__label { color: rgba(255,255,255,0.7); }
.hif-acct-tracker--dark li.is-done::before { background: var(--wp--preset--color--accent); }
.hif-acct-tracker--dark li.is-done .hif-acct-tracker__dot { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--forest); }
.hif-acct-tracker--dark li.is-done .hif-acct-tracker__label { color: #fff; }

.hif-acct-reorder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hif-acct-reorder__card { border: 1.5px solid var(--wp--preset--color--border); border-radius: 10px; overflow: hidden; }
.hif-acct-reorder__media { display: block; }
.hif-acct-reorder__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.hif-acct-reorder__body { padding: 0.7rem 0.8rem; }
.hif-acct-reorder__title { margin: 0 0 0.5rem; font-weight: 600; font-size: 0.9rem; line-height: 1.25; }

/* ---- My Orders: filter + expandable order cards ---- */
.hif-acct-orders { display: flex; flex-direction: column; gap: 1.1rem; }
.hif-acct-order { border: 1.5px solid var(--wp--preset--color--border); border-radius: 10px; overflow: hidden; background: var(--wp--preset--color--base); }
.hif-acct-order__head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.1rem 1.3rem; background: var(--wp--preset--color--cream); cursor: pointer; list-style: none;
}
.hif-acct-order__head::-webkit-details-marker { display: none; }
.hif-acct-order[open] .hif-acct-order__head { border-bottom: 1px solid var(--wp--preset--color--border); }
.hif-acct-order__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.hif-acct-order__label { display: block; margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--wp--preset--color--contrast-muted); }
.hif-acct-order__val { display: block; font-weight: 700; }
.hif-acct-order__val--price { color: var(--wp--preset--color--primary); }
.hif-acct-order__items { color: var(--wp--preset--color--contrast-muted); font-weight: 500; font-size: 0.85rem; }
.hif-acct-order__right { display: flex; align-items: center; gap: 1rem; }
.hif-acct-order__toggle { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--wp--preset--color--primary); font-weight: 600; font-size: 0.92rem; }
.hif-acct-order__toggle svg { transition: transform 0.15s ease; }
.hif-acct-order[open] .hif-acct-order__toggle svg { transform: rotate(180deg); }
.hif-acct-order__body { padding: 1.3rem; }

.hif-acct-order__tracker-wrap { margin-bottom: 1.6rem; }
.hif-acct-order__tracker-wrap--boxed { border: 1.5px solid var(--wp--preset--color--border); border-radius: 10px; padding: 1.3rem; }
.hif-acct-order__eta { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--wp--preset--color--forest); }

.hif-acct-order__items.hif-acct-order__items--lg,
ul.hif-acct-order__items { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; color: inherit; font-weight: normal; font-size: inherit; }
ul.hif-acct-order__items li { display: flex; align-items: center; gap: 0.9rem; }
ul.hif-acct-order__items img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
ul.hif-acct-order__items--lg img { width: 56px; height: 56px; }
.hif-acct-order__item-info { flex: 1; }
.hif-acct-order__item-name { margin: 0; font-weight: 600; font-size: 0.95rem; }
.hif-acct-order__item-qty { margin: 0; font-size: 0.85rem; color: var(--wp--preset--color--contrast-muted); }
.hif-acct-order__item-total { font-weight: 700; }

.hif-acct-order__address { display: flex; align-items: flex-start; gap: 0.5rem; margin: 1.2rem 0 1.3rem; font-size: 0.9rem; color: var(--wp--preset--color--contrast-muted); }
.hif-acct-order__address svg { color: var(--wp--preset--color--primary); margin-top: 1px; flex: 0 0 auto; }
.hif-acct-order__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---- Order Detail (full page) ---- */
.hif-acct-breadcrumb { max-width: 1300px; margin: 0 auto 1.4rem; padding: 0 1.5rem; font-size: 0.85rem; color: var(--wp--preset--color--contrast-muted); }
.hif-acct-breadcrumb a { color: var(--wp--preset--color--primary); }
.hif-acct-order-detail { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.hif-acct-order-detail__main { flex: 1 1 480px; min-width: 0; }
.hif-acct-order-detail__rail { flex: 0 0 320px; display: flex; flex-direction: column; gap: 1.1rem; }
.hif-acct-order-detail__title-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.4rem; }
.hif-acct-order-detail__placed { margin: 0.3rem 0 0; color: var(--wp--preset--color--contrast-muted); }

.hif-acct-railcard { border: 1.5px solid var(--wp--preset--color--border); border-radius: 10px; padding: 1.2rem; }
.hif-acct-railcard__title { margin: 0 0 0.8rem; font-weight: 700; font-family: var(--wp--preset--font-family--display); font-size: 1.05rem; }
.hif-acct-railcard__row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.92rem; color: var(--wp--preset--color--contrast-muted); }
.hif-acct-railcard__row--total { margin-bottom: 0; padding-top: 0.8rem; border-top: 1px solid var(--wp--preset--color--border); font-weight: 700; color: var(--wp--preset--color--contrast); }
.hif-acct-railcard__row--total span:last-child { color: var(--wp--preset--color--primary); }
.hif-acct-railcard__text { margin: 0 0 0.3rem; line-height: 1.55; color: var(--wp--preset--color--contrast); }
.hif-acct-railcard__text--icon { display: flex; align-items: center; gap: 0.5rem; }

/* ---- Addresses ---- */
.hif-acct-addresses { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: 1.2rem; }
.hif-acct-address { flex: 1 1 280px; min-width: 0; border: 1.5px solid var(--wp--preset--color--border); border-radius: 10px; padding: 1.2rem 1.3rem; background: var(--wp--preset--color--base); }
.hif-acct-address--primary { border-color: var(--wp--preset--color--primary); background: color-mix(in srgb, var(--wp--preset--color--primary) 5%, white); }
.hif-acct-address__head { margin-bottom: 0.6rem; }
.hif-acct-address address { font-style: normal; line-height: 1.55; color: var(--wp--preset--color--contrast); margin: 0; }
.hif-acct-address__actions { margin-top: 0.9rem; }
.hif-acct-address__edit { color: var(--wp--preset--color--primary); font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Account / address forms — native WC field markup, HIF field look ---- */
.hif-acct-fields { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.hif-acct-fields .form-row,
.hif-acct-fields p.form-row { float: none !important; display: flex; flex-direction: column; gap: 0.4rem; margin: 0 0 1rem; width: 100%; box-sizing: border-box; }
.hif-acct-fields .form-row-first,
.hif-acct-fields .form-row-last { width: calc(50% - 0.5rem) !important; flex: 0 0 auto; }
.hif-acct-fields label { font-size: 0.82rem; font-weight: 600; color: var(--wp--preset--color--contrast); }
.hif-acct-fields input.input-text,
.hif-acct-fields select {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	border: 1px solid var(--wp--preset--color--border) !important;
	border-radius: 10px !important;
	background: #f6f2ea !important;
	padding: 0 0.9rem;
	font: inherit;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast) !important;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hif-acct-fields input.input-text:focus,
.hif-acct-fields select:focus { border-color: var(--wp--preset--color--primary) !important; box-shadow: 0 0 0 3px rgba(194,24,91,0.12); }
.hif-acct-form .hif-acct-btn { margin-top: 0.4rem; }

.hif-acct-checks { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.6rem; }
.hif-acct-check { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; cursor: pointer; }
.hif-acct-check input { width: 18px; height: 18px; accent-color: var(--wp--preset--color--primary); }

/* ---- Subscription ---- */
.hif-acct-sub { max-width: 640px; }
.hif-acct-sub__card { border: 1.5px solid var(--wp--preset--color--border); border-radius: 10px; overflow: hidden; margin-bottom: 1.4rem; }
.hif-acct-sub__banner {
	background: var(--wp--preset--color--primary);
	background-image: url('../images/patterns/pink-pattern.png');
	background-size: 50px;
	color: #fff;
	padding: 1.4rem 1.5rem;
	display: flex; justify-content: space-between; align-items: flex-start; gap: 0.8rem; flex-wrap: wrap;
}
.hif-acct-sub__eyebrow { margin: 0 0 0.3rem; font-size: 0.8rem; font-weight: 600; opacity: 0.9; }
.hif-acct-sub__name { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.6rem; }
.hif-acct-sub__body { padding: 1.4rem 1.5rem; }
.hif-acct-sub__grid { margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.hif-acct-sub__grid dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--wp--preset--color--contrast-muted); }
.hif-acct-sub__grid dd { margin: 0.2rem 0 0; font-weight: 600; }
.hif-acct-sub__label { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--wp--preset--color--contrast-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hif-acct-sub__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hif-acct-sub__prefs-link { margin: 1rem 0 0; font-size: 0.88rem; }

.hif-acct-upcoming { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.hif-acct-upcoming li { display: flex; align-items: center; gap: 0.7rem; border: 1px solid var(--wp--preset--color--border); border-radius: 8px; padding: 0.8rem 1rem; }
.hif-acct-upcoming__date { flex: 1; font-weight: 600; }
.hif-acct-upcoming__meals { color: var(--wp--preset--color--contrast-muted); font-size: 0.85rem; }

/* ---- Responsive: sidebar → bottom nav, single columns ---- */
@media (max-width: 900px) {
	.hif-acct-shell { flex-direction: column; padding-bottom: calc(70px + 1.5rem); }
	.hif-acct-sidebar { display: none; }
	.hif-acct-mnav {
		display: flex; align-items: stretch; justify-content: space-around;
		background: var(--wp--preset--color--base); border-top: 1px solid var(--wp--preset--color--border);
		padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
		position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
	}
	.hif-acct-mnav__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--wp--preset--color--contrast-muted); text-decoration: none; }
	.hif-acct-mnav__item span { font-size: 0.66rem; font-weight: 600; }
	.hif-acct-mnav__item.is-active { color: var(--wp--preset--color--primary); }
	.hif-acct-mnav__item.is-active span { font-weight: 700; }

	.hif-acct-stats { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
	.hif-acct-stat { padding: 0.7rem 0.5rem; text-align: center; }
	.hif-acct-stat__icon { display: none; }
	.hif-acct-reorder { grid-template-columns: repeat(2, 1fr); }
	.hif-acct-order__meta { gap: 0.8rem 1.2rem; }
	.hif-acct-order-detail { flex-direction: column; }
	.hif-acct-order-detail__rail { flex-basis: auto; width: 100%; }
	.hif-acct-address,
	.hif-acct-sub__grid > div { flex-basis: 100%; }
	.hif-acct-fields .form-row-first,
	.hif-acct-fields .form-row-last { width: 100% !important; }
}

/* Lost / reset password — same standalone card treatment as the login screen */
.woocommerce:has(> .woocommerce-ResetPassword) {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(1rem, 4vw, 3rem) 1rem;
}
.woocommerce-ResetPassword {
	width: min(100%, 440px);
	background: var(--wp--preset--color--base);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(42, 33, 24, 0.08);
	padding: clamp(1.4rem, 3vw, 2rem);
}
.woocommerce-ResetPassword > p:first-child { margin-top: 0; color: var(--wp--preset--color--contrast-muted); font-size: 0.9rem; line-height: 1.5; }
.woocommerce-ResetPassword .button { width: 100%; justify-content: center; }
