/*
 * ACE Funnel — imported WordPress/Elementor pages.
 * Loaded BEFORE wp-base.css and AFTER the app's Tailwind globals.
 *
 * Tailwind's preflight zeroes headings, lists, borders, etc. The theme CSS that
 * follows (Astra, WooCommerce, Elementor) restores most of it by cascade order,
 * but anything the theme does not set explicitly would stay reset. These rules
 * use :where() so they have the same specificity as preflight (they win by
 * order) while every real theme/Elementor rule still beats them.
 */
:where(.fnl-wp-root) :where(h1, h2, h3, h4, h5, h6) { font-size: revert; font-weight: revert; margin: revert; line-height: revert; }
:where(.fnl-wp-root) :where(ul, ol, menu) { list-style: revert; margin: revert; padding: revert; }
:where(.fnl-wp-root) :where(p, blockquote, figure, dl, dd, pre, hr) { margin: revert; }
:where(.fnl-wp-root) :where(hr) { height: revert; border: revert; color: revert; }
:where(.fnl-wp-root) :where(img, svg, video, canvas, iframe, embed, object) { display: inline-block; vertical-align: middle; }
:where(.fnl-wp-root) :where(a) { color: revert; text-decoration: revert; }
:where(.fnl-wp-root) :where(button, input, select, textarea, optgroup) { font: revert; color: revert; margin: revert; padding: revert; line-height: revert; background: revert; border: revert; letter-spacing: revert; }
:where(.fnl-wp-root) :where(button, [type='button'], [type='submit'], [type='reset']) { -webkit-appearance: revert; appearance: revert; background-image: revert; }
:where(.fnl-wp-root) :where(table) { border-collapse: revert; border-color: revert; text-indent: revert; }
:where(.fnl-wp-root) :where(th, td) { text-align: revert; }
:where(.fnl-wp-root) :where(*, *::before, *::after) { border-width: revert; border-style: revert; border-color: revert; }
:where(.fnl-wp-root) :where(strong, b) { font-weight: bolder; }
:where(.fnl-wp-root) :where(small) { font-size: 80%; }
:where(.fnl-wp-root) :where(abbr[title]) { text-decoration: underline dotted; }
:where(.fnl-wp-root) :where(address) { font-style: normal; }

/* The page itself: Elementor stretches sections to the viewport. */
.fnl-wp-root { position: relative; width: 100%; overflow-x: clip; }
body.fnl-wp-page { margin: 0; }
body.fnl-wp-page .fnl-funnel-layout { background: transparent; }

/* Processing overlay (WPFunnels showed "Loading . . . Please wait while processing your order"). */
.fnl-overlay { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(2px); }
.fnl-overlay-box { background: #fff; color: #111; border-radius: 12px; padding: 28px 36px; text-align: center; min-width: 260px; box-shadow: 0 20px 60px rgba(0,0,0,.4); font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.fnl-overlay-box p { font-size: 20px; font-weight: 700; margin: 12px 0 4px; }
.fnl-overlay-box small { color: #666; font-size: 13px; }
.fnl-spinner { display: inline-block; width: 34px; height: 34px; border: 3px solid #ddd; border-top-color: #6E42D2; border-radius: 50%; animation: fnl-spin .8s linear infinite; }
@keyframes fnl-spin { to { transform: rotate(360deg); } }

/* Inline notice (offer failures, session problems). */
.fnl-notice { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99998; max-width: min(92vw, 560px); background: #111827; color: #fff; padding: 14px 44px 14px 18px; border-radius: 10px; font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.fnl-notice button { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }

/* Stripe card field dressed as a WooCommerce text input so theme CSS applies. */
.fnl-card-input { display: block; width: 100%; min-height: 48px; padding: 14px 16px; box-sizing: border-box; }
.fnl-card-input.StripeElement--focus { outline: none; }
.payment_box.payment_method_stripe { padding: 12px 0 0; }
.fnl-card-brands { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: middle; }
.fnl-card-brands img { height: 22px; width: auto; display: inline-block; }
.fnl-card-hint { font-size: 12px; opacity: .7; margin: 8px 0 0; }

/* Product selection rows (when a checkout offers more than one main product). */
.fnl-plan-row td.product-name label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.fnl-plan-row input[type='radio'] { margin-top: 5px; flex: 0 0 auto; }
.fnl-plan-row.fnl-plan-row--off { opacity: .55; }

/* Order bump (WPFunnels style 1 markup, see wp-base.css for the real styling). */
.wpfnl-order-bump__template-style1 .offer-checkbox label { cursor: pointer; }
.wpfnl-order-bump__template-style1 .template-img { background-size: contain; background-repeat: no-repeat; background-position: center; }

/* Hide the mobile-only duplicate image WPFunnels used in bumps unless on small screens. */
@media (min-width: 768px) { .wpfnl-order-bump__template-style1 .template-img img.for-mobile { display: none; } }
