/* FIT & MORE — native My Account shell. Scoped to body.fit-account-shell so nothing outside
 * the account is affected. Uses the shared tokens (assets/brand/fit-brand.css). WooCommerce
 * class names are kept so WooCommerce's own rules still apply to the forms and tables. */

body.fit-account-shell .woocommerce { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; font-family: var(--fit-brand-font-body); color: var(--fit-brand-text); }
body.fit-account-shell .woocommerce-account .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }

/* Navigation: sidebar on desktop, horizontal scroll row on phones */
body.fit-account-shell .fit-account-nav { background: var(--fit-brand-surface); border: 1px solid var(--fit-brand-border); border-radius: 18px; padding: 16px; position: sticky; top: 96px; display: grid; gap: 18px; }
body.fit-account-shell .fit-account-nav__title { margin: 0 0 6px; font: 700 12px var(--fit-brand-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--fit-brand-text-muted); }
body.fit-account-shell .fit-account-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
body.fit-account-shell .fit-account-nav__list a { display: block; padding: 10px 12px; border-radius: 12px; color: var(--fit-brand-text); text-decoration: none; font-weight: 600; font-size: 15px; }
body.fit-account-shell .fit-account-nav__list a:hover { background: var(--fit-brand-primary-soft); color: var(--fit-brand-primary); }
body.fit-account-shell .fit-account-nav__list .is-active a,
body.fit-account-shell .fit-account-nav__list a[aria-current="page"] { background: var(--fit-brand-primary); color: var(--fit-brand-on-primary); }
body.fit-account-shell .fit-account-nav a:focus-visible { outline: 3px solid var(--fit-brand-primary-light); outline-offset: 2px; }

/* Content column */
body.fit-account-shell .woocommerce-MyAccount-content { min-width: 0; background: var(--fit-brand-surface); border: 1px solid var(--fit-brand-border); border-radius: 18px; padding: 28px; }
body.fit-account-shell .woocommerce-MyAccount-content h2 { font: 800 clamp(22px, 3vw, 28px)/1.2 var(--fit-brand-font-display); color: var(--fit-brand-primary); margin: 0 0 12px; }

/* Buttons used by WooCommerce account forms */
body.fit-account-shell .woocommerce-Button, body.fit-account-shell .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 999px; background: var(--fit-brand-primary); color: var(--fit-brand-on-primary); border: 0; font: 700 15px var(--fit-brand-font-body); text-decoration: none; cursor: pointer; }
body.fit-account-shell .woocommerce-Button:hover, body.fit-account-shell .button:hover { background: var(--fit-brand-primary-dark); }
body.fit-account-shell .woocommerce-Button:focus-visible, body.fit-account-shell .button:focus-visible { outline: 3px solid var(--fit-brand-primary-light); outline-offset: 3px; }

/* Forms: consistent field styling */
body.fit-account-shell .woocommerce-MyAccount-content input:not([type="checkbox"]):not([type="radio"]),
body.fit-account-shell .woocommerce-MyAccount-content select,
body.fit-account-shell .woocommerce-MyAccount-content textarea { min-height: 46px; border: 1.5px solid var(--fit-brand-border); border-radius: 12px; padding: 10px 14px; font: 16px var(--fit-brand-font-body); background: #fff; max-width: 100%; }

/* Tables */
body.fit-account-shell .woocommerce-orders-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
body.fit-account-shell .woocommerce-orders-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fit-brand-text-muted); padding: 10px; border-bottom: 1px solid var(--fit-brand-border); }
body.fit-account-shell .woocommerce-orders-table td { padding: 12px 10px; border-bottom: 1px solid var(--fit-brand-border); }

/* Phones: navigation becomes a horizontal scroll row above the content */
@media (max-width: 900px) {
	body.fit-account-shell .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 20px; }
	/* Every group stays reachable: one horizontally scrolling row of all links. */
	body.fit-account-shell .fit-account-nav { position: static; padding: 10px; border-radius: 16px; display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 14px; scrollbar-width: none; }
	body.fit-account-shell .fit-account-nav::-webkit-scrollbar { display: none; }
	body.fit-account-shell .fit-account-nav__group { display: flex; gap: 6px; flex: 0 0 auto; align-items: center; }
	body.fit-account-shell .fit-account-nav__title { display: none; }
	body.fit-account-shell .fit-account-nav__list { display: flex; gap: 6px; }
	body.fit-account-shell .fit-account-nav__list a { white-space: nowrap; scroll-snap-align: start; }
	body.fit-account-shell .woocommerce-MyAccount-content { padding: 20px 16px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	body.fit-account-shell * { transition: none !important; }
}

/* Dashboard header */
body.fit-account-shell .fit-dash { display: grid; gap: 20px; margin-bottom: 28px; }
body.fit-account-shell .fit-dash__head { display: grid; gap: 4px; }
body.fit-account-shell .fit-dash__title { margin: 0; font: 800 clamp(24px, 3.4vw, 32px)/1.15 var(--fit-brand-font-display); color: var(--fit-brand-primary); }
body.fit-account-shell .fit-dash .fit-eyebrow { margin: 0; font: 700 13px var(--fit-brand-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--fit-brand-primary-light); }
body.fit-account-shell .fit-dash__summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0; }
body.fit-account-shell .fit-dash__summary div { background: var(--fit-brand-primary-soft); border-radius: 14px; padding: 14px 16px; }
body.fit-account-shell .fit-dash__summary dt { font-size: 12px; color: var(--fit-brand-text-muted); }
body.fit-account-shell .fit-dash__summary dd { margin: 2px 0 0; font-weight: 700; color: var(--fit-brand-text); }
body.fit-account-shell .fit-dash__note { margin: 0; color: var(--fit-brand-text-muted); font-size: 15px; }
body.fit-account-shell .fit-dash__actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.fit-account-shell .fit-dash__actions a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
body.fit-account-shell .fit-dash__actions .fit-btn--primary { background: var(--fit-brand-primary); color: var(--fit-brand-on-primary); }
body.fit-account-shell .fit-dash__actions .fit-btn--ghost { border: 2px solid var(--fit-brand-primary); color: var(--fit-brand-primary); }
body.fit-account-shell .fit-dash a:focus-visible { outline: 3px solid var(--fit-brand-primary-light); outline-offset: 3px; }
body.fit-account-shell .fit-dash__empty { background: var(--fit-brand-surface-alt); border: 1px dashed var(--fit-brand-border); border-radius: 16px; padding: 28px; }
body.fit-account-shell .fit-dash__empty h3 { margin: 0 0 6px; font: 800 19px var(--fit-brand-font-display); color: var(--fit-brand-primary); }
body.fit-account-shell .fit-dash__empty p { margin: 4px 0; color: var(--fit-brand-text-muted); }

/* Profile completion (inc/customer-profile-ui.php): purple progress, lists, positive state, My Profile form. */
body.fit-account-shell .fit-profile-progress { background: #fff; border: 1px solid var(--fit-brand-border); border-radius: 18px; padding: 22px; display: grid; gap: 14px; margin-bottom: 24px; }
body.fit-account-shell .fit-profile-progress__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
body.fit-account-shell .fit-profile-progress__title { margin: 0; font: 800 19px var(--fit-brand-font-display); color: var(--fit-brand-primary); }
body.fit-account-shell .fit-profile-progress__pct { margin: 0; color: var(--fit-brand-text-muted); }
body.fit-account-shell .fit-profile-progress__pct strong { font-size: 22px; color: var(--fit-brand-primary); }
body.fit-account-shell .fit-profile-progress__bar { height: 12px; border-radius: 999px; background: var(--fit-brand-primary-soft); overflow: hidden; }
body.fit-account-shell .fit-profile-progress__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--fit-brand-primary-light), var(--fit-brand-primary)); transition: width .4s ease; }
body.fit-account-shell .fit-profile-progress__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.fit-account-shell .fit-profile-progress__lists h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--fit-brand-text-muted); }
body.fit-account-shell .fit-profile-progress__lists ul { margin: 0; padding-left: 18px; color: var(--fit-brand-text); }
body.fit-account-shell .fit-profile-progress__missing li { color: var(--fit-brand-primary); font-weight: 600; }
body.fit-account-shell .fit-profile-progress__note { margin: 0; color: var(--fit-brand-text-muted); font-size: 14px; }
body.fit-account-shell .fit-profile-progress.is-complete { background: var(--fit-brand-primary-soft); border-color: var(--fit-brand-primary-light); }
body.fit-account-shell .fit-profile-progress.is-complete .fit-profile-progress__title { color: var(--fit-brand-primary); }

body.fit-account-shell .fit-profile-form fieldset { border: 1px solid var(--fit-brand-border); border-radius: 16px; padding: 16px 18px; margin: 0 0 16px; }
body.fit-account-shell .fit-profile-form legend { padding: 0 6px; font: 800 16px var(--fit-brand-font-display); color: var(--fit-brand-primary); }
body.fit-account-shell .fit-profile-field { display: grid; gap: 6px; margin: 0 0 12px; }
body.fit-account-shell .fit-profile-field label { font-weight: 700; font-size: 14px; color: var(--fit-brand-text); }
body.fit-account-shell .fit-profile-field input,
body.fit-account-shell .fit-profile-field select { min-height: 46px; border: 1.5px solid var(--fit-brand-border); border-radius: 12px; padding: 10px 14px; font: 16px var(--fit-brand-font-body); background: #fff; max-width: 100%; box-sizing: border-box; }
body.fit-account-shell .fit-profile-field input:focus-visible,
body.fit-account-shell .fit-profile-field select:focus-visible { outline: 3px solid var(--fit-brand-primary-light); outline-offset: 2px; }
body.fit-account-shell .fit-profile-help { margin: 0; color: var(--fit-brand-text-muted); font-size: 14px; }
body.fit-account-shell .fit-profile-reminder { background: var(--fit-brand-primary-soft); color: var(--fit-brand-text); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: 15px; }
body.fit-account-shell .fit-profile-reminder a { color: var(--fit-brand-primary); font-weight: 700; }
@media (max-width: 600px) {
	body.fit-account-shell .fit-profile-progress__lists { grid-template-columns: 1fr; }
	body.fit-account-shell .fit-profile-progress { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	body.fit-account-shell .fit-profile-progress__fill { transition: none; }
}
