/* fatnah funnel CSS (funnel_plan.json css.file). Append to fatnah-child/style.css or enqueue after it.
   Mobile first: 16px side gutter, 48px+ touch targets, 16px inputs (no iOS zoom), one visible buy button at a time,
   fixed bars stacked (consent bar at the bottom, sticky buy bar above it) and the page padded by both heights. */

:root { --ftn-sticky-h: 0px; --ftn-cbar-h: 0px; }

/* status tags used by products.json and the funnel pages */
.ftn-tag { display: inline-block; font-size: 12px; line-height: 1.4; padding: 1px 8px; border-radius: 999px; background: var(--peach-2); color: var(--muted); font-weight: 500; vertical-align: middle; }
.ftn-ph { color: var(--muted); font-style: italic; }

/* ---------- minimal chrome: landing pages and /early-access/ (body.ftn-min) ----------
   Menus and search keywords are already removed from the HTML (M02); the top shipping bar is not printed
   (functions_php_patch). Selectors are Elessi 6.6.4 candidates: confirm at 390px that menu, search, account, wishlist,
   breadcrumb or page title, mobile bottom bar and the site footer are gone. The logo stays; the cart icon stays on
   landing pages only (none on /early-access/: nothing to buy yet). */
body.ftn-min #site-navigation, body.ftn-min .nasa-menus-wrapper, body.ftn-min .header-nav, body.ftn-min .nasa-mobile-menu_toggle,
body.ftn-min .mobile-menu, body.ftn-min .nasa-search-space, body.ftn-min .nasa-icon-search, body.ftn-min .nasa-header-search-wrap,
body.ftn-min .nasa-icon-account, body.ftn-min .account-icon, body.ftn-min .nasa-bottom-bar, body.ftn-min .nasa-bot-icons-wrap,
body.ftn-min footer#nasa-footer, body.ftn-min .nasa-footer, body.ftn-min #colophon, body.ftn-min .nasa-back-to-top, body.ftn-min .nasa-viewed-icon,
body.ftn-min .ftn-shipbar, body.ftn-min .nasa-breadcrumb, body.ftn-min .breadcrumb-row, body.ftn-min .nasa-title-breadcrumb,
body.ftn-min .page-title-wrap, body.ftn-min .page-header, body.ftn-min .entry-header {
	display: none !important;
}
body.ftn-min:not(.ftn-lp) .mini-cart, body.ftn-min:not(.ftn-lp) .cart-contents, body.ftn-min:not(.ftn-lp) .nasa-icon-cart,
body.ftn-min:not(.ftn-lp) .nasa-mini-cart-wrap { display: none !important; }
body.ftn-lp, body.ftn-min { padding-bottom: calc(var(--ftn-sticky-h) + var(--ftn-cbar-h)); }

/* landing hero: image, offer line, button first; lead and steps after the button */
.ftn-lp-hero { padding-top: 8px; }
.ftn-lp-figure { margin: 0 0 8px; }
.ftn-lp-img { display: block; width: 100%; height: auto; max-height: 30vh; max-height: 30svh; object-fit: contain; background: var(--peach); border-radius: var(--r); }
.ftn-lp-figure figcaption { font-size: 12px; margin-top: 2px; }
.ftn-lp-offer { font-size: clamp(22px, 6vw, 34px); line-height: 1.25; margin: 0 0 4px; }
.ftn-lp-price { white-space: nowrap; }
.ftn-lp-ship { color: var(--acc-ink); font-size: .7em; white-space: nowrap; }
.ftn-lp-cta { margin: 8px 0 6px; }
.ftn-lp-hero .ftn-lead { margin: 8px 0 6px; }
.ftn-buy { width: 100%; min-height: 52px; font-size: 17px; }
.ftn-buy.is-disabled { background: var(--line) !important; border-color: var(--line) !important; color: var(--muted) !important; cursor: not-allowed; }
.ftn-disclosure { background: var(--surface); border: 1px dashed var(--muted); border-radius: var(--r-s); padding: 6px 12px; font-size: 13px; line-height: 1.4; margin: 0 0 8px; }

/* slim legal footer (landing pages, /early-access/, checkout): links as 48px blocks in two columns */
.ftn-legal-mini { text-align: center; font-size: 13px; color: var(--muted); padding: 16px 16px 8px; border-top: 1px solid var(--line); }
.ftn-legal-mini p { margin: 0 0 8px; }
.ftn-legal-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ftn-legal-links a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 8px; color: var(--ink); border-radius: var(--r-s); }

/* sticky buy bar (landing pages): hidden while the hero button is on screen, raised above the consent bar */
.ftn-stickybar { position: fixed; inset-inline: 0; bottom: var(--ftn-cbar-h); z-index: 9996; display: flex; gap: 10px; align-items: center;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
	box-shadow: 0 -4px 16px rgba(46, 36, 32, .08); transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
.ftn-stickybar.is-on { transform: none; visibility: visible; transition: transform .2s ease; }
html.ftn-cbar-on .ftn-stickybar { padding-bottom: 10px; } /* the consent bar below already clears the home indicator */
.ftn-stickybar-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ftn-stickybar-info b { font-family: var(--h); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftn-stickybar-info span { font-size: 13px; color: var(--muted); }
.ftn-stickybar .ftn-buy { width: auto; flex: 0 0 auto; min-height: 48px; padding: 0 18px; }
@media (prefers-reduced-motion: reduce) { .ftn-stickybar, .ftn-stickybar.is-on { transition: none; } }
@media (min-width: 1024px) { .ftn-stickybar { inset-inline: auto 24px; bottom: calc(24px + var(--ftn-cbar-h)); border-radius: var(--r); border: 1px solid var(--line); max-width: 460px; } }

/* FAQ accordions everywhere (overrides child style.css): the whole 48px row is the target */
.ftn-faq-item { padding: 0 !important; }
.ftn-faq-item > summary { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; cursor: pointer; list-style: none; }
.ftn-faq-item > summary::-webkit-details-marker { display: none; }
.ftn-faq-item > .ftn-faq-answer { padding: 0 14px 12px; }

/* product page */
.ftn-pdp-ship { font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.ftn-ritual-up, .ftn-r2 { background: var(--peach-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.ftn-ritual-up p, .ftn-r2 p { margin: 0 0 8px; }
.ftn-trust-strip { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; font-size: 14px; }
.ftn-trust-strip li::before { content: "✓"; color: var(--acc-ink); font-weight: 700; margin-inline-end: 6px; }
.ftn-batch { font-family: var(--h); font-weight: 600; font-size: 15px; margin: 6px 0; }
.ftn-batch-why { display: block; font-family: inherit; font-weight: 400; font-size: 13px; color: var(--muted); }
.ftn-batch.is-out { color: var(--acc-ink); }
.ftn-recent { font-size: 14px; color: var(--muted); }

/* cart and side cart: R2 sits below the checkout button, apart from the total */
.ftn-shipprog { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.ftn-shipprog p { margin: 0 0 6px; }
.ftn-shipprog-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 0 0 6px; }
.ftn-shipprog-bar span { display: block; height: 100%; background: var(--acc); border-radius: 999px; }
.ftn-shipprog-total { font-family: var(--h); font-weight: 600; }
.widget_shopping_cart .ftn-r2, .woocommerce-cart .ftn-r2 { margin-top: 20px; }
.ftn-r2-go { width: 100%; min-height: 48px; white-space: normal; }
.ftn-r2-go.loading { opacity: .6; pointer-events: none; }

/* checkout: enclosed (no menu, search, bottom bar or footer widgets; the slim legal footer stays) — confirm selectors at 390px */
body.woocommerce-checkout #site-navigation, body.woocommerce-checkout .nasa-menus-wrapper, body.woocommerce-checkout .nasa-mobile-menu_toggle,
body.woocommerce-checkout .nasa-icon-search, body.woocommerce-checkout .nasa-bottom-bar, body.woocommerce-checkout footer#nasa-footer,
body.woocommerce-checkout .nasa-footer, body.woocommerce-checkout #colophon, body.woocommerce-checkout .nasa-viewed-icon { display: none !important; }
/* #billing_country_field is hidden from PHP (ftn-checkout.php) only while exactly one country is allowed */
.ftn-co-summary { background: var(--peach-2); border-radius: var(--r-s); padding: 10px 14px; margin: 0 0 14px; font-size: 15px; }
.ftn-co-summary p { margin: 0; }
.ftn-co-privacy { margin: 12px 0 4px; }
.ftn-consent { border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 14px; margin: 8px 0 14px; }
.ftn-consent legend { font-family: var(--h); font-weight: 600; padding: 0 6px; }
.ftn-consent .form-row { margin: 0; padding: 0; }
.ftn-consent label, .ftn-optin label, .ftn-wl-form .wpcf7-list-item label { display: flex; gap: 8px; align-items: center; min-height: 48px; padding: 4px 0; }
.ftn-co-trust { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .wpcf7 input, .wpcf7 select { font-size: 16px; }
#billing_phone, .wpcf7 input[type="tel"] { direction: ltr; text-align: right; }

/* thank-you */
.ftn-ty { margin: 16px 0 24px; display: grid; gap: 16px; }
.ftn-src-q fieldset, .ftn-optin fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--surface); }
.ftn-src-q legend, .ftn-optin legend { font-family: var(--h); font-weight: 700; font-size: 18px; padding: 0 6px; }
.ftn-radio { display: flex; gap: 10px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
.ftn-src-handle { display: none; margin: 12px 0; font-size: 14px; } /* only for creator answers (CSS :has, no script) */
.ftn-src-q:has(input[value="tiktok_creator"]:checked) .ftn-src-handle, .ftn-src-q:has(input[value="instagram"]:checked) .ftn-src-handle,
.ftn-src-q:has(input[value="snapchat"]:checked) .ftn-src-handle { display: block; }
.ftn-src-handle input { display: block; width: 100%; min-height: 48px; margin-top: 4px; border: 1px solid var(--input-border); border-radius: var(--r-s); padding: 0 12px; font-size: 16px; }
.ftn-ritual-card { background: var(--peach-2); border-radius: var(--r); padding: 16px; }
.ftn-ritual-card .ftn-steps { grid-template-columns: 1fr; }

/* waitlist */
.ftn-wl-form .wpcf7-form p { margin: 0 0 12px; }
.ftn-wl-form .wpcf7-form input[type="text"], .ftn-wl-form .wpcf7-form input[type="tel"], .ftn-wl-form .wpcf7-form input[type="email"] {
	width: 100%; min-height: 48px; border: 1px solid var(--input-border); border-radius: var(--r-s); padding: 0 12px; background: var(--surface); }
.ftn-wl-form .wpcf7-list-item { display: block; margin: 0; }
.ftn-wl-notice { font-size: 13px; color: var(--muted); }
.ftn-hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ftn-wl-form .wpcf7-submit { width: 100%; min-height: 52px; border-radius: 999px; background: var(--acc); color: var(--ink); border: 0; font-family: var(--h); font-weight: 600; font-size: 17px; }
.ftn-launch { font-size: 16px; }

/* consent bar: compact strip at the bottom; buttons equal in size and weight */
.ftn-cbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 9995; background: var(--surface); border-top: 1px solid var(--line);
	padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); font-size: 13px; line-height: 1.45; box-shadow: 0 -4px 16px rgba(46, 36, 32, .08); }
.ftn-cbar p { margin: 0; }
.ftn-cbar-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 0 !important; }
.ftn-cbar-btns .ftn-btn { width: 100%; min-height: 48px; }
