/* ==========================================================================
   My account and sign-in (loaded on the My account page only).
   Uses the tokens in main.css; nothing here defines colours, type or radii.
   Soft cards, no outline boxes; glass only on the floating phone tab bar.
   ========================================================================== */

.mf-soft { background: var(--card); border: 1px solid var(--soft-edge); border-radius: var(--r-md); box-shadow: var(--soft-shadow); }
.mf-opt { color: var(--text-2); font-weight: 500; }
.mf-field { display: grid; gap: var(--s1); margin: 0; min-width: 0; }
.mf-field input, .mf-field select { width: 100%; }
.mf-field label { font-weight: 600; }
.mf-grid2 { display: grid; gap: var(--s4); }
@media (min-width: 600px) { .mf-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mf-grid2__break { grid-column: 1; } }
.mf-check { grid-template-columns: 20px minmax(0, 1fr); }
.mf-note { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--info-tint); font-size: var(--fs-sm); animation: mf-ease-in var(--t) var(--ease); }
.mf-note--ok { background: var(--success-tint); }
.mf-note--error { background: var(--error-tint); }
.mf-note--error::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--s2); border-radius: 50%; background: var(--error); vertical-align: 1px; }
.mf-btn--danger { background: transparent; border-color: var(--error); color: var(--error) !important; }
.mf-btn--danger:hover { background: var(--error); border-color: var(--error); color: #fff !important; }
.mf-btn .mf-ai, .mf-act .mf-ai { flex: 0 0 auto; }

/* ---------- Layout: content uses the width; menu beside it on laptops ---------- */
.woocommerce-account.logged-in .woocommerce { gap: var(--s5); }
/* WooCommerce's clearfix pseudo-elements would take a grid cell */
.woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none !important; }
@media (min-width: 1024px) {
  .woocommerce-account.logged-in .woocommerce { grid-template-columns: 248px minmax(0, 1fr); gap: var(--s6); }
}
.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; animation: mf-ease-in var(--t) var(--ease); }
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty { display: none; }

/* ---------- Menu ---------- */
.mf-acc-nav { --tab-h: 64px; }
.mf-acc-nav__list { list-style: none; margin: 0; padding: 0; }
.mf-acc-nav__list a { display: flex; align-items: center; gap: var(--s3); min-height: 48px; color: var(--graphite); font-weight: 600; text-decoration: none; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.mf-acc-nav__list a:hover { color: var(--ink); }
.mf-acc-nav__item.is-active a { color: var(--ink); }
.mf-acc-nav__item.is-active .mf-ai { color: var(--gold-ink); }
.mf-acc-nav__short { display: none; }
.mf-acc-nav__who { display: none; margin: 0; }

/* Laptop and up: a soft card beside the content, sticky */
@media (min-width: 1024px) {
  .mf-acc-nav { position: sticky; top: 120px; padding: var(--s3); background: var(--card); border: 1px solid var(--soft-edge); border-radius: var(--r-md); box-shadow: var(--soft-shadow); }
  .mf-acc-nav__who { display: grid; gap: 2px; padding: var(--s2) var(--s3) var(--s3); margin-bottom: var(--s2); border-bottom: 1px solid var(--rule); }
  .mf-acc-nav__hello { font-family: var(--f-head); font-stretch: 110%; font-weight: 700; font-size: var(--fs-lg); line-height: 1.2; overflow-wrap: anywhere; }
  .mf-acc-nav__mail { color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mf-acc-nav__list { display: grid; gap: 2px; }
  .mf-acc-nav__list a { padding: 0 var(--s3); border-radius: var(--r-sm); }
  .mf-acc-nav__list a:hover { background: var(--paper); }
  .mf-acc-nav__item.is-active a { background: var(--cream); }
  .mf-acc-nav__item--customer-logout { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--rule); }
  .mf-acc-nav__item--customer-logout a { color: var(--text-2); }
}

/* Tablet: one row of tabs above the content */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .mf-acc-nav__list { display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x proximity; padding: 2px; }
  .mf-acc-nav__list a { padding: 0 var(--s4); border-radius: var(--r-pill); background: var(--card); box-shadow: var(--soft-shadow); white-space: nowrap; scroll-snap-align: start; }
  .mf-acc-nav__item.is-active a { background: var(--ink); color: var(--on-ink); }
  .mf-acc-nav__item.is-active .mf-ai { color: var(--gold); }
}

/* Phone: a floating bottom tab bar (glass); Log out lives on Overview and Profile */
@media (max-width: 767.98px) {
  body.mf-has-tabbar { padding-bottom: calc(var(--tab-h, 64px) + 16px + env(safe-area-inset-bottom)); }
  .mf-acc-nav {
    position: fixed; z-index: 40; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
    border-radius: var(--r-lg);
    background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: var(--glass-border); box-shadow: var(--glass-edge), var(--glass-shadow);
    animation: mf-tab-in 280ms var(--ease-lift) both;
  }
  .mf-acc-nav__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; }
  .mf-acc-nav__item--customer-logout { display: none; }
  .mf-acc-nav__list a { position: relative; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 0 2px; font-size: 11.5px; line-height: 1.15; color: var(--graphite); text-align: center; border-radius: var(--r-sm); }
  .mf-acc-nav__list a .mf-ai { width: 22px; height: 22px; transition: transform var(--t) var(--ease); }
  .mf-acc-nav__list a::before { content: ""; position: absolute; top: 5px; left: 50%; width: 44px; height: 30px; margin-left: -22px; border-radius: var(--r-pill); background: var(--cream); opacity: 0; transform: scale(.6); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); z-index: -1; }
  .mf-acc-nav__item.is-active a::before { opacity: 1; transform: none; background: rgba(201, 162, 58, .22); }
  .mf-acc-nav__item.is-active a { color: var(--ink); font-weight: 700; }
  .mf-acc-nav__item.is-active .mf-ai { color: var(--ink); }
  .mf-acc-nav__item--dashboard .mf-acc-nav__label { display: none; }
  .mf-acc-nav__item--dashboard .mf-acc-nav__short { display: inline; }
  .mf-acc-nav__list a:active .mf-ai { transform: scale(.9); }
  body.mf-has-tabbar .mf-help-launch { bottom: calc(var(--tab-h, 64px) + 20px + env(safe-area-inset-bottom)); }
  body.mf-has-tabbar .mf-top.mf-icon-btn { bottom: calc(var(--tab-h, 64px) + 84px + env(safe-area-inset-bottom)); }
}
@keyframes mf-tab-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { @media (max-width: 767.98px) { .mf-acc-nav { background: var(--glass-solid); } } }
@media (prefers-reduced-transparency: reduce) { @media (max-width: 767.98px) { .mf-acc-nav { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } } }
@media (max-width: 767.98px) { html.mf-lowfx .mf-acc-nav { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Status chip and delivery steps ---------- */
.mf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: var(--r-pill); background: var(--info-tint); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; line-height: 1.2; white-space: nowrap; }
.mf-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.mf-chip--ok { background: var(--success-tint); }
.mf-chip--ok::before { background: var(--success); }
.mf-chip--wait { background: var(--warning-tint); }
.mf-chip--wait::before { background: var(--warning); }
.mf-chip--ship { background: var(--cream); }
.mf-chip--ship::before { background: var(--gold); }
.mf-chip--bad { background: var(--error-tint); }
.mf-chip--bad::before { background: var(--error); }

.mf-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 4px; margin: var(--s3) 0 0; padding: 0; list-style: none; max-width: 560px; }
.mf-steps li { display: grid; gap: 6px; min-width: 0; }
.mf-steps__bar { position: relative; display: block; height: 6px; border-radius: var(--r-pill); background: var(--mist); overflow: hidden; }
.mf-steps__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--success); transform: scaleX(0); transform-origin: left; }
.mf-steps li.is-done .mf-steps__bar::after { transform: none; animation: mf-step-fill 360ms var(--ease) both; }
.mf-steps li.is-next .mf-steps__bar::after { transform: scaleX(.45); background: var(--gold); animation: mf-step-half 360ms var(--ease) both; }
.mf-steps li:nth-child(2) .mf-steps__bar::after { animation-delay: 80ms; }
.mf-steps li:nth-child(3) .mf-steps__bar::after { animation-delay: 160ms; }
.mf-steps li:nth-child(4) .mf-steps__bar::after { animation-delay: 240ms; }
.mf-steps__label { color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-steps li.is-done .mf-steps__label, .mf-steps li.is-next .mf-steps__label { color: var(--ink); }
@keyframes mf-step-fill { from { transform: scaleX(0); } to { transform: none; } }
@keyframes mf-step-half { from { transform: scaleX(0); } to { transform: scaleX(.45); } }

/* ---------- Actions (links that look like soft pills) ---------- */
.mf-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mf-act, button.mf-act {
  --btn-bg: var(--paper); --btn-bg-h: var(--mist); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s4); border: 0; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink); font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mf-act:hover { background: var(--mist); color: var(--ink); }
.mf-act:active { transform: translateY(1px); }
.mf-act--primary, button.mf-act--primary { --btn-bg: var(--gold); --btn-bg-h: var(--gold-hover); background: var(--gold); }
.mf-act--primary:hover { background: var(--gold-hover); }
.mf-act--danger, button.mf-act--danger { --btn-fg: var(--error); color: var(--error); }
.mf-act--danger.is-confirm, button.mf-act--danger.is-confirm { --btn-bg: var(--error); --btn-bg-h: #962015; --btn-fg: #fff; background: var(--error); color: #fff; }

/* ---------- Order card ---------- */
.mf-orders, .mf-dash__latest { container-type: inline-size; }
.mf-orders { display: grid; gap: var(--s3); }
.mf-oc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s3) var(--s4); padding: var(--s4); animation: mf-ease-in var(--t) var(--ease) both; }
.mf-orders .mf-oc:nth-child(2) { animation-delay: 40ms; }
.mf-orders .mf-oc:nth-child(3) { animation-delay: 80ms; }
.mf-orders .mf-oc:nth-child(n+4) { animation-delay: 120ms; }
.mf-oc__media { display: flex; align-self: start; }
.mf-oc__img { display: block; width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--paper); overflow: hidden; box-shadow: 0 0 0 2px var(--card); }
.mf-oc__img + .mf-oc__img { margin-left: -36px; transform: translateX(8px); }
.mf-oc__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* No photo: the drawn outline stays inside its 64px tile (it is absolutely placed for product cards). */
.mf-oc__img { position: relative; flex: 0 0 auto; }
.mf-oc__img .mf-noimg { gap: 0; }
.mf-oc__img .mf-noimg svg { width: 30px; height: 38px; }
.mf-oc__img .mf-noimg > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mf-oc__img:empty::before { content: ""; display: block; width: 100%; height: 100%; background: center / 28px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8d94' stroke-width='1.5'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3C/svg%3E"); }
.mf-oc__main { min-width: 0; }
.mf-oc__title { margin: 0; font-family: var(--f-body); font-size: var(--fs-md); font-weight: 700; line-height: 1.35; }
.mf-oc__title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mf-oc__title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.mf-oc__meta { display: flex; flex-wrap: wrap; gap: 0 var(--s2); margin: 2px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.mf-oc__no { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .02em; color: var(--graphite); align-self: center; }
.mf-oc__total { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mf-oc__total .woocommerce-Price-amount { font-weight: 600; }
.mf-oc__status { margin-top: var(--s3); }
.mf-oc .mf-acts { grid-column: 1 / -1; }
@container (min-width: 760px) {
  .mf-oc { grid-template-columns: auto minmax(0, 1fr) minmax(180px, auto); align-items: center; padding: var(--s4) var(--s5); }
  .mf-oc .mf-acts { grid-column: auto; flex-direction: column; align-items: stretch; align-self: center; }
  .mf-oc__img { width: 72px; height: 72px; }
}

/* ---------- Overview ---------- */
.mf-dash { display: grid; gap: var(--s5); }
.mf-dash__hello { display: grid; gap: 2px; }
.mf-dash__title { margin: 0 !important; font-size: var(--fs-2xl); }
.mf-dash__sub { margin: 0 !important; color: var(--text-2); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.mf-dash__h { margin: 0 0 var(--s3); font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.mf-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 600px) { .mf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mf-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mf-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s3); align-items: center; min-height: 76px; padding: var(--s4); color: var(--ink); text-decoration: none; transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.mf-tile .mf-ai { grid-row: 1 / span 2; color: var(--gold-ink); }
.mf-tile__label { font-weight: 700; line-height: 1.25; }
.mf-tile__sub { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.3; overflow-wrap: anywhere; }
@media (hover: hover) { .mf-tile:hover { transform: translateY(-2px); box-shadow: var(--lift); color: var(--ink); } }
.mf-tile:active { transform: scale(.99); }
.mf-dash__out { margin: 0; }
.mf-dash__out a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; color: var(--text-2); font-weight: 600; text-decoration: none; }
.mf-dash__out a:hover { color: var(--ink); }
@media (min-width: 768px) { .mf-dash__out { display: none; } }

/* Empty states with a next step */
.mf-empty-state { display: grid; justify-items: start; gap: var(--s2); padding: var(--s5); }
.mf-empty-state p { margin: 0; color: var(--text-2); }
.mf-empty-state .mf-empty-state__title { color: var(--ink); font-family: var(--f-head); font-stretch: 110%; font-weight: 700; font-size: var(--fs-lg); }
.mf-empty-state .mf-btn { margin-top: var(--s2); }

/* Pager */
.mf-pager { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; margin-top: var(--s4); }

/* ---------- One order ---------- */
.mf-vo { display: grid; gap: var(--s4); }
.mf-vo__head { padding: var(--s4); scroll-margin-top: 140px; }
@media (min-width: 768px) { .mf-vo__head { padding: var(--s5); } }
.mf-vo__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.mf-vo__title { margin: 0; font-size: var(--fs-xl); }
.mf-vo__meta { display: flex; flex-wrap: wrap; gap: 0 var(--s2); margin: 4px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.mf-vo__back { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; }
.mf-vo__status { margin: var(--s3) 0 var(--s4); }
.mf-vo__status .mf-chip { display: none; }
.mf-vo__updates { padding: var(--s4) var(--s5); }
.mf-vo__h { margin: 0 0 var(--s3); font-family: var(--f-body); font-size: var(--fs-md); font-weight: 700; }
.mf-updates { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.mf-updates li { display: grid; gap: 2px; padding-left: var(--s4); position: relative; }
.mf-updates li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.mf-updates time { color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.mf-updates__text p { margin: 0; }
.mf-vo__details .woocommerce-order-details, .mf-vo__details .woocommerce-customer-details { margin-top: 0; }

/* ---------- Addresses ---------- */
.mf-addr__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.mf-addr__count { margin: 0; color: var(--text-2); font-weight: 600; }
.mf-addr__list, .mf-prefs, .mf-updates, .mf-acc-nav__list, .mf-steps { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; }
.mf-addr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mf-ac { display: grid; grid-template-rows: auto 1fr auto; gap: var(--s3); padding: var(--s4); animation: mf-ease-in var(--t) var(--ease) both; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.mf-ac.is-default { background: linear-gradient(var(--cream), var(--cream)) padding-box; }
.mf-ac__tags { display: flex; flex-wrap: wrap; gap: var(--s2); min-height: 28px; }
.mf-ac__addr { display: grid; gap: 2px; font-style: normal; color: var(--graphite); line-height: 1.45; overflow-wrap: anywhere; }
.mf-ac__addr strong { color: var(--ink); }
.mf-ac__phone { margin-top: var(--s1); font-variant-numeric: tabular-nums; }
.mf-ac__acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mf-ac__acts form { margin: 0; display: contents; }
.mf-ac__acts .mf-act { min-height: 40px; padding: 0 var(--s3); }
.mf-ac.is-leaving { opacity: 0; transform: scale(.98); }
.mf-addr__form { padding: var(--s4); }
@media (min-width: 768px) { .mf-addr__form { padding: var(--s5); } }
.mf-addr__default { margin-top: var(--s4); }
.mf-addr__formacts { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 1024px) { .mf-addr__form .mf-grid2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mf-addr__form .mf-field--line1 { grid-column: span 2; } }
.mf-field.has-error label { color: var(--error); }

/* ---------- Profile ---------- */
.mf-profile { display: grid; gap: var(--s4); }
.mf-profile__form { display: grid; gap: var(--s4); margin: 0; }
.mf-panel { padding: var(--s4); }
@media (min-width: 768px) { .mf-panel { padding: var(--s5); } }
.mf-panel__h { margin: 0 0 var(--s4); font-family: var(--f-body); font-size: var(--fs-lg); font-weight: 700; }
.mf-fold { margin-top: var(--s4); border-top: 1px solid var(--rule); }
.mf-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 52px; font-weight: 600; cursor: pointer; list-style: none; }
.mf-fold > summary::-webkit-details-marker { display: none; }
.mf-fold > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.mf-fold__chev { transition: transform var(--t) var(--ease); }
.mf-fold[open] .mf-fold__chev { transform: rotate(180deg); }
.mf-fold[open] .mf-fold__body { animation: mf-ease-in var(--t) var(--ease); }
.mf-fold__body { padding-bottom: var(--s2); }
.mf-prefs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.mf-prefs__fixed { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s2); align-items: start; padding: var(--s2) 0; }
.mf-prefs__fixed .mf-ai { color: var(--success); margin-top: 3px; }
.mf-prefs__fixed .mf-opt { display: block; font-size: var(--fs-sm); }
.mf-profile__save { margin: 0; }
.mf-data { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .mf-data { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); } }
.mf-data__item { display: grid; align-content: start; justify-items: start; gap: var(--s2); margin: 0; padding-top: var(--s3); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .mf-data__item { padding-top: 0; border-top: 0; } .mf-data__item + .mf-data__item { padding-left: var(--s5); border-left: 1px solid var(--rule); } }
.mf-data__title { margin: 0; font-weight: 700; }
.mf-data__text { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.mf-data .mf-note { margin: 0; }

/* ---------- Wishlist page ---------- */
.mf-wl__count { margin: 0 0 var(--s4); color: var(--text-2); font-weight: 600; }
.mf-wl ul.products { margin: 0 !important; }
.mf-wl li.product { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease) !important; }
.mf-wl li.product.is-leaving { opacity: 0; transform: scale(.97); }
@media (min-width: 1024px) { .mf-wl ul.products, .mf-wl ul.products[class*="columns-"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 1440px) { .mf-wl ul.products, .mf-wl ul.products[class*="columns-"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

/* ---------- Sign in and create an account ---------- */
/* One card ("Sign in | Create account") and, from 1024px, a "Why sign in" panel beside it with the same
   top and bottom edges; the block starts at the container's left edge like the page title. */
/* Title 24px above the card; the footer's own top margin is the only space under it. */
.woocommerce-account:not(.logged-in) .entry-header { margin-bottom: var(--s5) !important; }
.woocommerce-account:not(.logged-in) .entry-title { margin-bottom: 0 !important; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-account:not(.logged-in) .site-content > .ast-container { padding-bottom: 0; }
.woocommerce-account #secondary { display: none !important; } /* the shop filter sidebar has nothing for account pages */
.mf-auth { display: grid; gap: var(--s4); align-items: start; justify-items: stretch; margin: 0; }
@media (min-width: 1024px) {
  .mf-auth { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: var(--s5); align-items: stretch; }
  .mf-auth--confirm { grid-template-columns: minmax(0, 640px); }
}
.mf-auth__card { padding: var(--s5) var(--s4); animation: mf-ease-in var(--t) var(--ease) both; min-width: 0; }
@media (min-width: 600px) { .mf-auth__card { padding: var(--s5) var(--s6) var(--s6); } }

/* Segmented switch with a sliding pill */
.mf-seg { position: relative; display: none; grid-template-columns: 1fr 1fr; margin: 0 0 var(--s5); padding: 4px; border-radius: var(--r-pill); background: var(--paper); }
.mf-js .mf-seg { display: grid; }
.mf-seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill); background: var(--card); box-shadow: 0 1px 2px rgba(14, 14, 16, .08), 0 4px 12px rgba(14, 14, 16, .08); transition: transform 280ms var(--ease-lift, var(--ease)); }
.mf-auth__card[data-tab="register"] .mf-seg__pill { transform: translateX(100%); }
.mf-seg__tab { --btn-fg: var(--text-2); position: relative; z-index: 1; min-height: 44px; padding: 0 var(--s3); border: 0; border-radius: var(--r-pill); font: inherit; font-weight: 600; cursor: pointer; transition: color var(--t) var(--ease); }
.mf-seg__tab[aria-selected="true"] { --btn-fg: var(--ink); }
.mf-seg__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mf-js .mf-auth__card[data-tab="signin"] #mf-panel-register, .mf-js .mf-auth__card[data-tab="register"] #mf-panel-signin { display: none; }
.mf-auth__panel { outline: none; }
.mf-js .mf-auth__panel { animation: mf-ease-in var(--t) var(--ease); }
.mf-js .mf-auth__h--tabbed { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
#mf-panel-register { margin-top: var(--s6); }
.mf-js #mf-panel-register { margin-top: 0; }

/* Why sign in */
.mf-auth__why { display: grid; align-content: start; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--cream); }
@media (min-width: 1024px) { .mf-auth__why { align-content: center; padding: var(--s6); } }
.mf-auth__why-h { margin: 0 !important; font-size: var(--fs-lg); }
.mf-why { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: var(--s3); }
.mf-why li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); align-items: center; font-weight: 500; line-height: 1.35; }
.mf-why .mf-ai { color: var(--gold-ink); }
@media (max-width: 1023.98px) { .mf-why { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--s2) var(--s4); } }
.mf-auth__trust { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s2); align-items: start; margin: var(--s2) 0 0 !important; padding-top: var(--s3); border-top: 1px solid rgba(14, 14, 16, .08); color: var(--text-2); font-size: var(--fs-sm); }
.mf-auth__trust .mf-ai { margin-top: 3px; color: var(--success); }
.mf-auth__h { margin: 0 0 var(--s2); font-size: var(--fs-xl); }
.mf-auth__lead { margin: 0 0 var(--s4); color: var(--text-2); }
.woocommerce .mf-auth form.mf-auth__form { display: grid; gap: var(--s4); margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.mf-auth__form > *, .mf-profile .mf-field, .mf-addr .mf-field, .mf-grid2 > * { margin: 0 !important; }
.mf-auth__form wc-order-attribution-inputs { display: contents; }
/* Astra squares inputs inside .woocommerce; keep the site's input edge and radius from main.css */
.woocommerce-account :is(.mf-field, .mf-pass) :is(input.input-text, select) { border: 1px solid #cfccc4; border-radius: var(--r-sm); background: var(--card); }
.woocommerce-account :is(.mf-field, .mf-pass) :is(input.input-text, select):focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 162, 58, .45); outline: none; }
.woocommerce-account .mf-field input[aria-invalid="true"], .woocommerce-account .mf-field select[aria-invalid="true"] { border-color: var(--error); }
.mf-auth__wide { width: 100%; }
.mf-auth__fine { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.mf-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin: var(--s3) 0 0; }
.mf-auth__forgot { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; }
.mf-auth__actions { display: grid; gap: var(--s2); }
.mf-auth__switch { justify-self: center; font-size: var(--fs-sm); }
.mf-auth .woocommerce-privacy-policy-text p { margin: 0; color: var(--text-2); font-size: var(--fs-xs); }

/* Link mode (default with JavaScript): the password area is folded away */
.mf-auth__pass { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t) var(--ease), opacity var(--t) var(--ease); }
.mf-auth__passin { min-height: 0; overflow: hidden; padding: 3px; margin: -3px; }
.mf-js .mf-auth__form[data-mode="link"] .mf-auth__pass { grid-template-rows: 0fr; opacity: 0; visibility: hidden; margin-top: calc(-1 * var(--s4)) !important; }
.mf-js .mf-auth__form[data-mode="link"] .mf-auth__login,
.mf-js .mf-auth__form[data-mode="link"] .mf-auth__switch[data-to="link"],
.mf-js .mf-auth__form[data-mode="password"] .mf-auth__magic,
.mf-js .mf-auth__form[data-mode="password"] .mf-auth__switch[data-to="password"] { display: none; }
.mf-auth__switch { display: none; }
.mf-js .mf-auth__switch { display: inline-flex; }
.mf-js .mf-auth__form[data-mode="link"] .mf-auth__switch[data-to="link"], .mf-js .mf-auth__form[data-mode="password"] .mf-auth__switch[data-to="password"] { display: none; }

/* "Check your email" */
.mf-sent { display: grid; justify-items: start; gap: var(--s1); margin: 0 0 var(--s4); padding: var(--s4); border-radius: var(--r-sm); background: var(--success-tint); animation: mf-ease-in var(--t) var(--ease); }
.mf-sent .mf-ai { color: var(--success); }
.mf-sent p { margin: 0; }
.mf-sent__title { font-weight: 700; }

/* Google button and "or" divider */
.mf-google { min-height: 44px; display: grid; justify-items: center; }
.mf-sent + .mf-google { margin-top: var(--s4); }
.mf-google__btn { width: 100%; max-width: 400px; min-height: 44px; display: grid; justify-items: center; }
.mf-or { display: flex; align-items: center; gap: var(--s3); margin: var(--s4) 0; color: var(--text-2); font-size: var(--fs-sm); }
.mf-or::before, .mf-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* Password show/hide: an animated eye (shared class .mf-pass-toggle) */
.mf-pass { position: relative; }
.mf-pass input { padding-right: 52px !important; }
.mf-pass .mf-pass-toggle {
  --btn-fg: var(--graphite); --btn-bg-h: var(--paper);
  position: absolute; top: 50%; right: 4px; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
}
.mf-pass .mf-pass-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }
.mf-pass-toggle svg { overflow: visible; }
.mf-pass-toggle .mf-eye__lid { transition: d var(--t) var(--ease); }
.mf-pass-toggle .mf-eye__pupil { transform-origin: 12px 12px; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.mf-pass-toggle .mf-eye__slash { stroke-dasharray: 26; stroke-dashoffset: 0; transition: stroke-dashoffset var(--t) var(--ease); }
.mf-pass-toggle[aria-pressed="true"] .mf-eye__slash { stroke-dashoffset: 26; }
.mf-pass-toggle[aria-pressed="false"] .mf-eye__pupil { transform: scale(.7); }
.woocommerce-account .show-password-input { display: none !important; }

/* WooCommerce's own lost/reset password forms on this page: same card look */
.woocommerce-account form.lost_reset_password { padding: var(--s5) !important; }
.woocommerce-account form.lost_reset_password .password-input, .woocommerce-account form.lost_reset_password .mf-pass { display: block; position: relative; }

/* Astra gives every p a bottom margin; these blocks space themselves with gap */
:is(.mf-data__item, .mf-panel, .mf-empty-state, .mf-sent, .mf-dash, .mf-vo, .mf-auth__card) > p,
.mf-panel > .mf-auth__fine { margin: 0 !important; }
.mf-panel > .mf-auth__fine { margin-top: var(--s3) !important; }
.mf-empty-state[hidden], .mf-wl [hidden] { display: none !important; }
.mf-auth__card > .mf-auth__lead { margin-bottom: var(--s4) !important; }
.mf-auth__card > .mf-auth__fine { margin-top: var(--s3) !important; }
