/* ==========================================================================
   AIP Wellness – members tools (aip-core). Boards: M-Dashboard, Tab-Dashboard,
   Mob-Dashboard, M-Progress, M-Method, M-Daily-Six, M-Guides, M-Community,
   M-Favourites, M-Account (+ Mob-/Tab- versions). Shell: theme members.css.
   ========================================================================== */

/* ---------- Breakpoint visibility helpers ---------- */
.aip-v-small, .aip-v-tab, .aip-v-mob { display: none; }
@media (max-width: 900px) {
	.aip-v-desk, .aip-hide-small { display: none !important; }
	.aip-v-small { display: inline; }
	.aip-v-tab { display: inline; }
}
@media (max-width: 600px) {
	.aip-v-tab { display: none; }
	.aip-v-mob { display: inline; }
}

/* ---------- Shared pieces ---------- */
.aip-mcontent { color: var(--wp--preset--color--body); }
.aip-mcontent b, .aip-mcontent strong { color: var(--wp--preset--color--black); font-weight: 600; }
.aip-mcontent .aip-card { font-size: 14px; }
.aip-mcontent > .aip-mtitle + .aip-msub { margin-top: 6px !important; }
.aip-mcontent > .aip-dstats, .aip-mcontent > .aip-favs, .aip-mcontent > .aip-acc { margin-top: 24px !important; }
.aip-hd { font-family: 'Outfit', sans-serif; font-weight: 700; letter-spacing: -.025em; line-height: 1.04; color: #111; margin: 0; }

.aip-btn, .aip-mcontent button.aip-btn {
	display: inline-block; background: #111; color: #fff; border: 1px solid #111; border-radius: 0; cursor: pointer;
	padding: 15px 30px; font: 500 11px/1.4 'Montserrat', sans-serif; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.aip-btn:hover { background: #000; color: #fff; }
.aip-btn--ol { background: transparent; color: #111; }
.aip-btn--ol:hover { background: #111; color: #fff; }
.aip-btn--sm { padding: 7px 14px; font-size: 12px; letter-spacing: .1em; }
.aip-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font: 500 11px/1.4 'Montserrat', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #111; text-decoration: underline; text-underline-offset: 3px; }
.aip-linkbtn:hover { color: #000; }
.wp-block-button.aip-btn-xs .wp-block-button__link { padding: 7px 14px; font-size: 12px; letter-spacing: .1em; }

/* Tabs under the page title (board: 11px caps, 2px black underline on the active tab) */
.aip-mtabs {
	display: flex; gap: 24px; border-bottom: 1px solid var(--wp--preset--color--hairline); margin: 20px 0 24px !important;
	font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.65;
	overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.aip-mtabs::-webkit-scrollbar { display: none; }
.aip-mtabs a { padding-bottom: 10px; color: var(--wp--preset--color--grey); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; flex: none; }
.aip-mtabs a:hover { color: #111; }
.aip-mtabs a.is-on { color: #111; border-bottom-color: #111; }
.aip-mcontent > .aip-mtabs + .aip-mpanel, .aip-mcontent > .aip-mpanel + .aip-mpanel { margin-top: 0 !important; }
.aip-mpanel[hidden] { display: none !important; }

/* ---------- Stat cards (dashboard) ---------- */
.aip-stat .aip-lb { color: var(--wp--preset--color--ink); }
.aip-stat--peach { background: var(--wp--preset--color--peach); border-color: var(--wp--preset--color--peach); }
.aip-stat--peach .aip-lb, .aip-stat--peach p { color: #C2442B; } /* AA contrast on peach (was #E0703F) */
.aip-stat--peach .aip-stat-num { color: #C2442B; }
.aip-stat--sky { background: var(--wp--preset--color--sky); border-color: var(--wp--preset--color--sky); }
.aip-stat--sky .aip-lb, .aip-stat--sky p, .aip-stat--sky .aip-stat-num { color: var(--wp--preset--color--ink); }
.aip-dstats-compact { display: none; }

/* ---------- Dashboard ---------- */
.aip-dash-main { grid-template-columns: 1.6fr 1fr; }
.aip-chart-wrap { margin-top: 16px; position: relative; }
.aip-chart { display: block; width: 100%; height: auto; aspect-ratio: 600 / 190; }
.aip-chart circle { cursor: default; }
.aip-chart-empty .aip-btn { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); background: #fff; }
.aip-chart-empty .aip-btn:hover { background: #111; }
.aip-photos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 10px; text-decoration: none; }
.aip-ptile, .aip-ftile { display: block; height: 190px; border-radius: 8px; overflow: hidden; background: #F1ECE6; }
.aip-ptile img, .aip-ftile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aip-ftile { height: 110px; }
.aip-feature { display: block; text-decoration: none; color: inherit; }
.aip-feature .aip-lb { margin-top: 12px; color: #111; }
.aip-feature b { display: block; }
.aip-feature:hover b { text-decoration: underline; text-underline-offset: 3px; }
.aip-dash-quote { display: flex; align-items: center; }
.aip-dash-quote .aip-hd { font-size: 26px; color: #C2442B; }

/* ---------- My Progress ---------- */
.aip-pnotice { margin: 0 0 16px !important; padding: 12px 16px; border: 1px solid var(--wp--preset--color--hairline); font-size: 14px; background: #fff; color: #111; }
.aip-pnotice.is-error { border-color: var(--wp--preset--color--orange-2); }
.aip-pform-grid { grid-template-columns: 1.4fr 1fr; }
.aip-pform { padding: 28px; }
.aip-field { margin-bottom: 16px; }
.aip-field .aip-lb, .aip-field-lb { display: block; margin-bottom: 6px !important; color: #111; }
.aip-mcontent .aip-field input {
	width: 100%; border: 1px solid var(--wp--preset--color--hairline); border-radius: 2px; padding: 12px 14px; background: #fff;
	font: 400 14px/1.4 'Montserrat', sans-serif; color: #111; min-height: 46px; box-sizing: border-box; -webkit-appearance: none; appearance: none;
}
.aip-mcontent .aip-field input:focus { outline: 2px solid #111; outline-offset: -1px; }
.aip-upload { display: block; border: 1px dashed #111; border-radius: 2px; padding: 34px; text-align: center; font-size: 14px; color: #111; margin-bottom: 20px; cursor: pointer; position: relative; }
.aip-upload:hover { background: #FAFAFA; }
.aip-upload:focus-within { outline: 2px solid #111; outline-offset: 2px; }
.aip-upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.aip-upload-sub { font-size: 12px; color: var(--wp--preset--color--body); }
.aip-upload-preview { display: block; max-width: 100%; max-height: 220px; margin: 0 auto; border-radius: 2px; }
.aip-upload.has-file { padding: 12px; }
.aip-upload-preview[hidden], .aip-upload-text[hidden] { display: none; }
.aip-pcalc { background: var(--wp--preset--color--sky); border-color: var(--wp--preset--color--sky); }
.aip-pcalc, .aip-pcalc p, .aip-pcalc .aip-lb { color: var(--wp--preset--color--ink) !important; }
.aip-pcalc p { margin: 0; font-size: 14px; }
.aip-pcalc .aip-pcalc-num { font-family: 'Outfit', sans-serif; font-weight: 700; letter-spacing: -.025em; line-height: 1.04; font-size: 40px; margin: 8px 0 !important; }
.aip-pcalc .aip-pcalc-num--2 { margin: 16px 0 8px !important; }

.aip-pempty p { margin: 0; }
.aip-ptable-card { padding: 0; overflow: hidden; }
.aip-ptable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.aip-ptable th { text-align: left; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--wp--preset--color--ink); padding: 14px 22px; border-bottom: 1px solid var(--wp--preset--color--hairline); white-space: nowrap; }
.aip-ptable td { padding: 12px 22px; border-bottom: 1px solid #F0F0F0; color: #111; white-space: nowrap; }
.aip-ptable tr:last-child td { border-bottom: 0; }
.aip-ptable-act { text-align: right; width: 1%; }
.aip-ptable form { margin: 0; }

.aip-pgallery { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.aip-pupload { padding: 16px; }
.aip-pupload .aip-upload { padding: 22px 12px; margin-bottom: 14px; }
.aip-pupload .aip-btn { width: 100%; }
.aip-pphoto { margin: 0; padding: 12px; }
.aip-pphoto .aip-ptile { height: 230px; }
.aip-pphoto figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.aip-pphoto form { margin: 0; }

/* ---------- The Method: 4R steps + Daily Six ---------- */
.aip-r4steps { margin-bottom: 20px !important; }
.aip-r4step { cursor: pointer; display: block; transition: background-color .15s; }
.aip-r4step:hover { border-color: #D9D9D9; }
.aip-r4step:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.aip-r4step > * { margin: 0 !important; }
.aip-r4step h3 { font-size: 17px !important; margin: 6px 0 !important; color: #000; }
.aip-r4step p:not(.aip-lb) { font-size: 14px; color: #111; }
.aip-r4step.is-on { background: var(--wp--preset--color--peach); border-color: var(--wp--preset--color--peach); }
.aip-r4step.is-on * { color: var(--wp--preset--color--orange-2) !important; }
.aip-r4panel[hidden] { display: none !important; }
.aip-r4wrap .aip-r4panel + .aip-r4panel { margin-top: 0; }
.aip-r4panel .aip-card > * { margin: 0; }
.aip-ticks, .aip-dots { list-style: none; padding: 0 !important; margin: 8px 0 0 !important; }
.aip-ticks li { font-size: 14px; line-height: 1.9; color: var(--wp--preset--color--body); }
.aip-ticks li::before { content: "✓ "; }

.aip-d6-title { font-size: 19px !important; color: #000; margin: 0 !important; }
.aip-d6 > .aip-msub { margin: 6px 0 20px !important; }
.aip-d6-grid { grid-auto-rows: 1fr; align-items: stretch; }
.aip-d6-card { padding: 24px; }
.aip-d6-card > * { margin: 0 !important; }
.aip-d6-head { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-size: 14px !important; letter-spacing: .04em !important; color: #111; margin-bottom: 12px !important; }
.aip-d6-head .aip-lb { color: #111; letter-spacing: .2em; }
.aip-dots li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid #F0F0F0; font-size: 13px; line-height: 1.5; color: #111; }
.aip-dots li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; margin-top: 7px; }
.aip-d6-card.has-sky-background-color .aip-d6-head, .aip-d6-card.has-sky-background-color .aip-lb, .aip-d6-card.has-sky-background-color li { color: var(--wp--preset--color--ink); }
.aip-d6-card.has-sky-background-color li { border-top-color: rgba(44, 74, 102, .18); }

/* ---------- Guides & Tutorials ---------- */
.aip-guide { padding: 14px; display: flex; flex-direction: column; }
.aip-guide > * { margin: 0 !important; }
.aip-guide-cover { height: 230px; border-radius: 2px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.aip-guide-cover .aip-sf { font-size: 17px; margin: 0; }
.aip-guide-cover.has-sky-background-color .aip-sf { color: var(--wp--preset--color--ink); }
.aip-guide-cover.has-peach-background-color .aip-sf, .aip-guide-cover.has-blush-background-color .aip-sf { color: #C2442B; }
.aip-guide-cover--img { padding: 0; overflow: hidden; background: #F1ECE6; }
.aip-guide-cover--img a, .aip-guide-cover--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aip-guide-foot { margin-top: 12px !important; gap: 10px; align-items: center !important; justify-content: space-between; flex-wrap: nowrap; font-size: 14px; flex: 1; }
.aip-guide-foot .wp-block-buttons { flex-wrap: nowrap; gap: 6px; flex-shrink: 0; }
.aip-guide-foot > * { margin: 0 !important; }
.aip-guide-foot p { font-size: 14px; line-height: 1.4; min-width: 0; }

/* ---------- Favourites ---------- */
.aip-favs-chips { margin-bottom: 14px; }
.aip-favs-chips .aip-chip { font-size: 13px; line-height: 1.65; }
.aip-fav-card { padding: 0; overflow: hidden; }
.aip-fav-card[hidden] { display: none !important; }
.aip-fav-img { display: block; height: 170px; background: #F1ECE6; overflow: hidden; }
.aip-fav-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aip-fav-body { padding: 16px; }
.aip-fav-body b a { color: #111; text-decoration: none; }
.aip-fav-body b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.aip-fav-body > div { margin-top: 10px; }
.aip-favs-empty { font-size: 14px; margin: 0; }

/* Favourite toggle on recipes / articles (board M-Recipe: outline "Save to favourites ♡") */
.aip-fav-btn {
	display: inline-block; border: 1px solid #111; background: transparent; color: #111; border-radius: 0; cursor: pointer;
	padding: 14px 30px; font: 500 11px/1.4 'Montserrat', sans-serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.aip-fav-btn:hover { background: #111; color: #fff; }
.aip-fav-btn:disabled { opacity: .6; cursor: wait; }
.aip-fav-card .aip-fav-btn { padding: 7px 14px; font-size: 12px; letter-spacing: .1em; }
.aip-fav-wrap { margin: 28px 0 0; }

/* ---------- Community (PeepSo inside the members shell) ---------- */
.aip-comm-feed { grid-template-columns: 1.6fr 1fr; align-items: start; }
.aip-comm-side { display: grid; gap: 16px; }
.aip-comm-side > * { margin: 0 !important; }
.aip-comm-side .aip-card > * { margin: 0; }
.aip-comm-side strong a { color: #111; text-decoration: none; }
.aip-comm-groups { list-style: none; padding: 0; margin: 6px 0 0 !important; font-size: 14px; line-height: 2; }
.aip-comm-groups a { color: var(--wp--preset--color--body); text-decoration: none; }
.aip-comm-groups a:hover { color: #111; text-decoration: underline; }
.aip-comm-week strong { color: var(--wp--preset--color--orange-2); }
.aip-comm-week p:last-child { margin-top: 6px !important; color: var(--wp--preset--color--body); }

/* ---------- Account (PMPro) ---------- */
.aip-acc { grid-template-columns: 1.2fr 1fr; align-items: start; }
.aip-acc-profile { padding: 26px; }
.aip-acc-side { display: grid; gap: 16px; }
.aip-acc-side > * { margin: 0 !important; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	.aip-dstats-full { display: none !important; }
	.aip-dstats-compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.aip-mcontent > .aip-dstats { margin-top: 16px !important; }
	.aip-dash-main { grid-template-columns: 1.4fr 1fr; }
	.aip-chart-wrap { margin-top: 0; }
	.aip-photos-grid .aip-ptile { height: 140px; }
	.aip-pform-grid, .aip-comm-feed, .aip-acc { grid-template-columns: 1fr; }
	.aip-pgallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aip-mgrid-4.aip-r4steps, .aip-mgrid-4.aip-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aip-d6-grid { grid-auto-rows: auto; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
	.aip-dstats-compact { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
	.aip-dstats-compact > :nth-child(3) { display: none; }
	.aip-dash-main { grid-template-columns: 1fr; gap: 12px; }
	.aip-mgrid { gap: 12px; }
	.aip-mcontent .aip-card { padding: 16px; }
	.aip-photos-grid { gap: 12px; }
	.aip-photos-grid .aip-ptile { height: 120px; }
	.aip-mtabs { gap: 18px; margin: 16px 0 20px !important; }
	.aip-pform { padding: 16px; }
	.aip-pcalc .aip-pcalc-num { font-size: 26px; }
	.aip-upload { padding: 24px 14px; }
	.aip-pgallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aip-pupload { grid-column: 1 / -1; }
	.aip-pphoto { padding: 8px; }
	.aip-pphoto .aip-ptile { height: 200px; }
	.aip-pphoto figcaption { flex-direction: column; align-items: flex-start; }
	.aip-ptable thead { display: none; }
	.aip-ptable, .aip-ptable tbody, .aip-ptable tr, .aip-ptable td { display: block; width: 100%; }
	.aip-ptable tr { padding: 12px 16px; border-bottom: 1px solid var(--wp--preset--color--hairline); }
	.aip-ptable tr:last-child { border-bottom: 0; }
	.aip-ptable td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; }
	.aip-ptable td[data-label]::before { content: attr(data-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--wp--preset--color--ink); }
	.aip-ptable-act { width: 100%; text-align: left; padding-top: 8px !important; }
	.aip-mgrid-4.aip-r4steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.aip-mgrid-4.aip-guides { grid-template-columns: 1fr; }
	.aip-r4step { padding: 16px; }
	.aip-d6-head { white-space: normal; }
	.aip-d6-card { padding: 16px; }
	.aip-guide-cover { height: 200px; }
	.aip-dash-quote .aip-hd { font-size: 21px; }
	.aip-fav-wrap .aip-fav-btn { width: 100%; text-align: center; }
	.aip-acc-profile { padding: 16px; }
}

/* ==========================================================================
   Third-party output inside the members shell
   ========================================================================== */

/* PeepSo's PMPro integration boxes .entry-content on PMPro pages; the members shell has its own cards. */
body.aip-member-area .aip-mcontent.entry-content { box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; background: none !important; margin-top: 0 !important; }

/* ---------- PeepSo (Community): board M-Community colours, square corners, hairline cards ---------- */
.aip-peepso {
	--COLOR--PRIMARY: #111; --COLOR--PRIMARY--DARK: #000; --COLOR--PRIMARY--LIGHT: #444; --COLOR--PRIMARY--SHADE: #E6E6E6; --COLOR--PRIMARY--ULTRALIGHT: #F7F7F7;
	--COLOR--ALT: #DCE9FF; --COLOR--ALT--LIGHT: #DCE9FF; --COLOR--ALT--DARK: #2C4A66;
	--COLOR--TEXT: #111; --COLOR--TEXT--LIGHT: #444; --COLOR--HEADING: #111; --COLOR--LINK: #111; --COLOR--LINK-HOVER: #000;
	--BORDER-RADIUS: 2px; --BOX-SHADOW-COLOR: #E6E6E6; --BOX-SHADOW: none; --BOX-SHADOW--MD: 0 4px 16px rgba(0,0,0,.06);
	--PS-FONT-FAMILY: 'Montserrat', sans-serif; --FONT-SIZE: 14px;
	font-family: 'Montserrat', sans-serif; font-size: 14px; min-width: 0;
}
.aip-peepso .ps-postbox__menu-item, .aip-peepso .ps-postbox__type, .aip-peepso .ps-posts__filter-toggle {
	border-radius: 2px; color: #111; font-size: 13px;
}
.aip-peepso .ps-postbox i, .aip-peepso .ps-posts__filters i { color: #111 !important; }
.aip-peepso .ps-avatar img { border-radius: 50%; }
.aip-peepso a { text-decoration: none; }
.aip-peepso img { max-width: 100%; height: auto; }
.aip-comm-main > * { margin: 0 !important; }

/* ---------- PMPro (Account): board M-Account ---------- */
.aip-acc .pmpro, .aip-acc .pmpro_section, .aip-acc .pmpro_section_content, .aip-acc .pmpro_form { margin: 0 !important; padding: 0 !important; }
.aip-acc .pmpro_card { box-shadow: none !important; border: 0 !important; background: none !important; margin: 0 !important; border-radius: 0 !important; }
.aip-acc .pmpro_card_content { padding: 0 !important; }
.aip-acc .pmpro_section_title, .aip-acc .pmpro_form_legend, .aip-acc .pmpro_spacer { display: none !important; }
.aip-acc .pmpro_form_fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.aip-acc .pmpro_form_fields { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.aip-acc .pmpro_form_field { margin: 0 0 16px !important; min-width: 0; }
/* Board shows first/last/display name, email, start and goal weight only. */
.aip-acc #age_div, .aip-acc #gender_div { display: none !important; }
.aip-acc .pmpro_form_label { display: block; font-size: 11px !important; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: #111; margin: 0 0 6px !important; line-height: 1.5; }
.aip-acc .pmpro_form_input, .aip-acc input[type=text], .aip-acc input[type=email], .aip-acc input[type=password] {
	width: 100% !important; border: 1px solid #E6E6E6 !important; border-radius: 2px !important; padding: 12px 14px !important; font: 400 14px/1.4 'Montserrat', sans-serif !important;
	color: #111 !important; background: #fff !important; box-shadow: none !important; min-height: 46px; box-sizing: border-box;
}
.aip-acc .pmpro_form_submit { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 0 !important; padding: 0 !important; border: 0 !important; }
.aip-acc .pmpro_btn {
	display: inline-block; background: #111 !important; color: #fff !important; border: 1px solid #111 !important; border-radius: 0 !important; box-shadow: none !important;
	padding: 15px 30px !important; font: 500 11px/1.4 'Montserrat', sans-serif !important; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; margin: 0 !important;
}
.aip-acc .pmpro_btn-cancel { background: transparent !important; color: #111 !important; padding: 14px 30px !important; }
.aip-acc .pmpro_btn-cancel:hover { background: #111 !important; color: #fff !important; }
.aip-acc .pmpro_message { margin: 0 0 16px !important; border-radius: 0; font-size: 14px; }

.aip-acc-plan .aip-lb { color: #111; }
.aip-acc-plan .pmpro_card_title { font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; font-size: 20px !important; color: #C2442B !important; margin: 6px 0 !important; padding: 0 !important; border: 0 !important; }
.aip-acc-plan .pmpro_card + .pmpro_card { margin-top: 18px !important; }
.aip-acc-plan .pmpro_list { display: block !important; list-style: none; margin: 0 !important; padding: 0 !important; font-size: 14px; color: var(--wp--preset--color--body); }
.aip-acc-plan .pmpro_list_item { display: inline; padding: 0 !important; margin: 0 !important; border: 0 !important; }
.aip-acc-plan .pmpro_list_item + .pmpro_list_item::before { content: " · "; }
.aip-acc-plan .pmpro_list_item_label { display: none; }
.aip-acc-plan .pmpro_list_item:not(:first-child) .pmpro_list_item_label { display: inline; text-transform: lowercase; font-weight: 400; }
.aip-acc-plan .pmpro_list_item:not(:first-child) .pmpro_list_item_label::after { content: " "; }
.aip-acc-plan .pmpro_list_item_value { display: inline; font-weight: 400 !important; color: inherit; }
.aip-acc-plan .pmpro_card_actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px !important; padding: 0 !important; background: none !important; border: 0 !important; }
.aip-acc-plan .pmpro_card_action { margin: 0; padding: 0; border: 0 !important; }
.aip-acc-plan .pmpro_card_action::before, .aip-acc-plan .pmpro_card_action::after { display: none !important; }
.aip-acc-plan .pmpro_card_action a { display: inline-block; border: 1px solid #111; padding: 14px 30px; font: 500 11px/1.4 'Montserrat', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #111; text-decoration: none; }
.aip-acc-plan .pmpro_card_action a:hover { background: #111; color: #fff; }

.aip-acc-orders .pmpro_table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 0 !important; border: 0 !important; }
.aip-acc-orders .pmpro_table th, .aip-acc-orders .pmpro_table td { padding: 8px 8px 8px 0 !important; border: 0 !important; border-bottom: 1px solid #F0F0F0 !important; text-align: left; font-weight: 400; background: none !important; color: var(--wp--preset--color--body); line-height: 1.5; }
.aip-acc-orders .pmpro_table thead th { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: #111; }
.aip-acc-orders .pmpro_table a { color: #111; }
.aip-acc-orders .pmpro_tag { background: none !important; border: 0 !important; padding: 0 !important; color: inherit !important; font-size: 13px; font-weight: 400; }
.aip-acc-orders .pmpro_actions_nav { margin: 10px 0 0 !important; font-size: 13px; }

@media (max-width: 600px) {
	.aip-acc .pmpro_form_fields { grid-template-columns: 1fr; }
	.aip-acc .pmpro_form_submit .pmpro_btn { width: 100%; text-align: center; }
	.aip-acc-orders .pmpro_table thead { display: none; }
	.aip-acc-orders .pmpro_table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #F0F0F0; padding: 6px 0; }
	.aip-acc-orders .pmpro_table th, .aip-acc-orders .pmpro_table td { border: 0 !important; padding: 2px 8px 2px 0 !important; }
}

/* PMPro specificity fixes */
.aip-acc .pmpro_form_fields .pmpro_form_field { display: block !important; width: auto !important; max-width: none !important; flex: none !important; grid-column: auto !important; }
.aip-acc .aip-acc-plan .pmpro_card .pmpro_card_title { padding: 0 !important; }
.aip-acc .aip-acc-plan .pmpro_list .pmpro_list_item .pmpro_list_item_label { display: none !important; }
.aip-acc .aip-acc-plan .pmpro_list .pmpro_list_item + .pmpro_list_item .pmpro_list_item_label { display: inline !important; }
.aip-acc .aip-acc-plan .pmpro_list .pmpro_list_item { display: inline !important; }

/* Membership state cards (payment pending / plan ended / welcome) – members area + Account */
.aip-mstate { background: var(--wp--preset--color--peach); border: 0; padding: 28px; margin: 0 0 24px; max-width: 760px; }
.aip-mstate .aip-lb { margin: 0 0 8px; }
.aip-mstate-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: #111; margin: 0 0 12px; }
.aip-mstate p { margin: 0 0 12px; }
.aip-mstate-box { background: #fff; padding: 16px 18px; margin: 0 0 16px; }
.aip-mstate-box p:last-child { margin-bottom: 0; }
.aip-mstate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0 !important; }
.aip-mstate--welcome { background: var(--wp--preset--color--sky); }
.aip-mstate-close { float: right; margin-left: 12px; }
.aip-field-error { color: #B3261E; font-size: 13px; margin: 6px 0 0; }
@media (max-width: 600px) {
	.aip-mstate { padding: 20px 16px; }
	.aip-mstate-title { font-size: 20px; }
	.aip-mstate-actions .aip-btn { flex: 1 1 100%; text-align: center; }
}

/* Weight chart: date labels under the chart (points are spaced by date) */
.aip-chart-x { position: relative; height: 18px; margin-top: 6px; font-size: 11px; color: var(--wp--preset--color--grey); }
.aip-chart-xl { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.aip-chart-xl.is-first { transform: none; }
.aip-chart-xl.is-last { transform: translateX(-100%); }
@media (max-width: 600px) { .aip-chart-xl:not(.is-first):not(.is-last) { display: none; } }

/* Data table: one block per year, newest first */
.aip-ptable-year { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 16px; color: #111; margin: 0; padding: 18px 22px 4px; }
.aip-ptable + .aip-ptable-year { border-top: 1px solid var(--wp--preset--color--hairline); margin-top: 4px; }
.aip-pempty p:last-child { margin-bottom: 0; }

/* Tabs fit on phones (390px): tighter spacing, wrap as a fallback */
@media (max-width: 600px) {
	.aip-mtabs { gap: 14px; letter-spacing: .08em; flex-wrap: wrap; row-gap: 6px; overflow: visible; white-space: normal; }
	.aip-ptable-year { padding: 14px 16px 2px; }
}

/* Inactive tab panel that holds PeepSo: kept in layout off screen (PeepSo measures it), invisible and inert */
.aip-mcontent { position: relative; }
/* Inactive tab panels stay laid out (PeepSo measures them) but take no height, so the page gets no empty space below. */
.aip-mpanel-off { position: absolute !important; left: -10000px; top: 0; width: 100%; height: 0 !important; overflow: hidden !important; visibility: hidden; pointer-events: none; }

/* Language switcher under "Log out" (GTranslate native select) + room for the chat bubble on phones */
.aip-msb-lang { margin-top: 10px; }
.aip-msb-lang select.gt_selector { font: 500 11px/1.4 'Montserrat', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #111; background: transparent; border: 1px solid var(--wp--preset--color--hairline); border-radius: 0; padding: 6px 8px; max-width: 160px; cursor: pointer; }
@media (max-width: 900px) {
	.aip-msb-lang { margin-top: 0; display: flex; align-items: center; }
	.aip-msb-lang select.gt_selector { padding: 4px 6px; }
}
@media (max-width: 600px) { body.aip-member-area { padding-bottom: 88px; } }

/* Account profile: the "Health Details" explanation spans the whole field grid */
.aip-acc .pmpro_form_fields-description { grid-column: 1 / -1; font-size: 13px; line-height: 1.55; color: var(--wp--preset--color--body); margin: 0 0 4px; }
.aip-acc-links { margin: 14px 0 0 !important; }
