/* ===========================================================================
   /templates/ — the Template Library app.

   Loaded by includes/templates.php on any page carrying [fk_templates],
after
   fk-page.css. Everything here is the app's own surface: the Elementor page
   owns only the hero above it and the closing CTA below it.

   Colours and type come from the site's Global Variables (--Fk*),
which the
   kit defines on :root,
so this file introduces no new palette. The fallbacks
   in each var() are the same values,
for the Elementor editor's iframe where
   the kit stylesheet is not always present.
   =========================================================================== */

/* The section and the modal are siblings — the modal is appended to <body> so
   it can escape the page's stacking contexts — so the tokens live on the class
   they share rather than on the section. `fk-tplx` is also what gives every
   rule below one extra class of weight: the kit styles every <button> at
   `.elementor-kit-8 button`, which outranks a single app class and would paint
   every card, pill and tab in the CTA green. */
.fk-tplx {
  --fk-tpl-line: var(--FkLine, #E6EBF2);
  --fk-tpl-ink: var(--FkInk900, #0F172A);
  --fk-tpl-mute: var(--FkInk600, #475569);
  --fk-tpl-navy: var(--FkNavy900, #0A1A3C);
  --fk-tpl-blue: var(--FkBlue600, #2457E6);
  --fk-tpl-blue-50: var(--FkBlue50, #EEF4FF);
  --fk-tpl-cta: var(--FkCta600, #047857);
  --fk-tpl-cta-dark: var(--FkCta700, #065F46);
  --fk-tpl-surface: #F6F8FC;
}

/* The kit paints EVERY <button> as the CTA — `.elementor-kit-8 button` sets
   background, colour, font, letter-spacing, radius and 13px/22px of padding,
   and a second rule repeats it on :hover and :focus. One class of app scope is
   not enough to outrank that, so it is neutralised once, here.

   The two specificities are deliberate. This reset matches the kit's exactly
   (one class + one type) and wins only because fk-templates.css is enqueued at
   priority 1000, after the kit — the same ordering fk-page.css already relies
   on. Every component rule below carries `.fk-tplx` PLUS its own class, which
   outranks both outright, so a component never has to fight this block.

   What it must reset is the full list above: leaving `padding` out collapsed
   the icon buttons' content box to 0 and the icons vanished while the button
   itself still measured 44px. */
.fk-tplx button,
.fk-tplx input[type="button"],
.fk-tplx input[type="submit"] {
  background-color: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  text-transform: none;
}

.fk-tplx button:hover,
.fk-tplx button:focus {
  background-color: transparent;
  color: inherit;
}

.fk-tpl.fk-tplx{
  display: block;
  width: 100%;
  font-family: var(--FkBody, Inter), system-ui, sans-serif;
  color: var(--fk-tpl-ink);
}

/* The section around the app is a normal `fk-section` (flex column, centred,
   6.8em of vertical padding),
so the app adds none of its own. `align-items:
   center` on that section would otherwise shrink-wrap the widget,
which is why
   the shortcode wrapper is stretched back out here — the v4 style schema has no
   control for `align-self` on a classic widget. */
.elementor .elementor-element-tpl-app{
  width: 100%;
  align-self: stretch;
}

.elementor .elementor-element-tpl-app > .elementor-widget-container,
.elementor .elementor-element-tpl-app .elementor-shortcode{ width: 100%; }

.fk-tpl.fk-tplx *,
.fk-tpl-modal.fk-tplx *{ box-sizing: border-box; }

.fk-tplx .fk-tpl-wrap{
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ---- sidebar ------------------------------------------------------------ */

.fk-tplx .fk-tpl-side{ position: sticky; top: 108px; }

.fk-tplx .fk-tpl-side-title{
  margin: 0 0 18px;
  font-family: var(--FkDisplay, Inter), system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--fk-tpl-ink);
}

.fk-tplx .fk-tpl-tabs{
  display: flex;
  flex-direction: column;
  border-inline-start: 1px solid var(--fk-tpl-line);
}

.fk-tplx .fk-tpl-tab{
  appearance: none;
  border: 0;
  border-inline-start: 2px solid transparent;
  margin-inline-start: -1px;
  background: none;
  padding: 9px 0 9px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fk-tpl-mute);
  text-align: start;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}

.fk-tplx .fk-tpl-tab:hover{ color: var(--fk-tpl-ink); }

.fk-tplx .fk-tpl-tab.is-active{
  color: var(--fk-tpl-ink);
  font-weight: 600;
  border-inline-start-color: var(--fk-tpl-navy);
}

.fk-tplx .fk-tpl-tab:focus-visible{ outline: 2px solid var(--fk-tpl-blue); outline-offset: 2px; border-radius: 4px; }

/* ---- filter pills ------------------------------------------------------- */

.fk-tplx .fk-tpl-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.fk-tplx .fk-tpl-pill{
  appearance: none;
  background: #fff;
  border: 1px solid var(--fk-tpl-line);
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--fk-tpl-mute);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.fk-tplx .fk-tpl-pill:hover{ color: var(--fk-tpl-ink); border-color: #CBD5E1; }

.fk-tplx .fk-tpl-pill.is-active{
  background: var(--fk-tpl-navy);
  border-color: var(--fk-tpl-navy);
  color: #fff;
}

.fk-tplx .fk-tpl-pill:focus-visible{ outline: 2px solid var(--fk-tpl-blue); outline-offset: 2px; }

/* ---- builder radios ----------------------------------------------------- */

.fk-tplx .fk-tpl-builders{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-bottom: 26px;
}

.fk-tplx .fk-tpl-builders:empty{ display: none; }

.fk-tplx .fk-tpl-radio{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fk-tpl-mute);
  cursor: pointer;
  line-height: 1.3;
}

.fk-tplx .fk-tpl-radio input{
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #B9C4D4;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.fk-tplx .fk-tpl-radio input:checked{
  border-color: var(--fk-tpl-blue);
  border-width: 5px;
}

.fk-tplx .fk-tpl-radio input:focus-visible{ outline: 2px solid var(--fk-tpl-blue); outline-offset: 2px; }
.fk-tplx .fk-tpl-radio:has(input:checked){ color: var(--fk-tpl-ink); }

/* ---- grids -------------------------------------------------------------- */

.fk-tplx .fk-tpl-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px 22px;
}

.fk-tplx .fk-tpl-grid.is-rows{ grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* The promo banner spans the grid rather than sitting in a cell. */
.fk-tplx .fk-tpl-banner{ grid-column: 1 / -1; }

.fk-tplx .fk-tpl-empty{
  grid-column: 1 / -1;
  border: 1px dashed var(--fk-tpl-line);
  border-radius: 14px;
  padding: 44px 28px;
  text-align: center;
  background: var(--fk-tpl-surface);
}

.fk-tplx .fk-tpl-empty h2{ margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--fk-tpl-ink); }
.fk-tplx .fk-tpl-empty p{ margin: 0 auto; max-width: 46ch; font-size: 14px; line-height: 1.6; color: var(--fk-tpl-mute); }

/* ---- skeleton ----------------------------------------------------------- */

.fk-tplx .fk-tpl-skel{ display: flex; flex-direction: column; gap: 10px; }

.fk-tplx .fk-tpl-skel-img,
.fk-tplx .fk-tpl-skel-line{
  display: block;
  border-radius: 8px;
  background: linear-gradient(100deg, #EDF1F7 30%, #F4F7FC 50%, #EDF1F7 70%) 0 0 / 300% 100%;
  animation: fk-tpl-shimmer 1.4s linear infinite;
}

.fk-tplx .fk-tpl-skel-img{ aspect-ratio: 16 / 11; border-radius: 14px; }
.fk-tplx .fk-tpl-skel-line{ height: 12px; }
.fk-tplx .fk-tpl-skel-line.is-short{ width: 45%; }

@keyframes fk-tpl-shimmer { to { background-position: -300% 0; } }

@media (prefers-reduced-motion: reduce) {
  .fk-tplx .fk-tpl-skel-img,
  .fk-tplx .fk-tpl-skel-line{ animation: none; }
}

/* ---- funnel / email card ------------------------------------------------ */

.fk-tplx .fk-tpl-card{
  appearance: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  text-align: start;
  font: inherit;
  background: #fff;
  border: 1px solid var(--fk-tpl-line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fk-tplx .fk-tpl-card:hover{
  transform: translateY(-3px);
  border-color: #D3DCEA;
  box-shadow: 0 14px 34px rgba(10, 26, 60, .12);
}

.fk-tplx .fk-tpl-card:focus-visible{ outline: 2px solid var(--fk-tpl-blue); outline-offset: 3px; }

/* Every thumbnail the feed serves is portrait — 963x1224, ratio 0.79 — so a
   16:11 window threw away 46% of each one and the template was unreadable.
   1.09 is the reference's own window; at 292px wide the image scales to 370px
   and the box shows the top 72%, which is the whole first fold. */
.fk-tplx .fk-tpl-shot{
  position: relative;
  aspect-ratio: 1.09;
  overflow: hidden;
  background: var(--fk-tpl-surface);
  border-bottom: 1px solid var(--fk-tpl-line);
}

/* `height: auto` is what makes it scale to WIDTH and let the box clip the
   bottom, the way the reference does. `object-fit: cover` only takes over via
   min-height, for an image wider than the window — none today, but a feed is
   not a contract. */
.fk-tplx .fk-tpl-shot img{
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* The preview affordance is a resting element, not a hover-only one: on touch
   there is no hover,
so a button that only exists on hover never exists. It
   sits at rest at 0 opacity ONLY on pointers that can hover (below). */
.fk-tplx .fk-tpl-shot-veil{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 26, 60, .55);
  transition: opacity .18s ease;
}

/* This was `.fk-tpl-shot-veil span`, which matched the pill AND the label span
   inside it — a white pill painted inside a white pill, twice the intended
   size. Style the pill by its own class; never hang a component's box off a
   bare element name that the component also contains. */
.fk-tplx .fk-tpl-shot-pill{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--fk-tpl-navy);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(10, 26, 60, .28);
}

/* The icon is inline SVG with no width/height attributes, so without this it
   lays out at 0x0 and the pill reads as a bare word. */
.fk-tplx .fk-tpl-shot-pill svg{ width: 15px; height: 15px; flex: 0 0 auto; }

@media (hover: hover) and (pointer: fine) {
  .fk-tplx .fk-tpl-shot-veil{ opacity: 0; }
  .fk-tplx .fk-tpl-card:hover .fk-tpl-shot-veil,
  .fk-tplx .fk-tpl-card:focus-visible .fk-tpl-shot-veil{ opacity: 1; }
}

@media (hover: none) {
  /* No hover to reveal it, so the veil would cover the thumbnail permanently.
     The badge shrinks to a corner chip instead. */
  .fk-tplx .fk-tpl-shot-veil{ background: none; align-items: flex-end; justify-content: flex-start; padding: 10px; }
  .fk-tplx .fk-tpl-shot-pill{ font-size: 11px; padding: 6px 12px; }
}


.fk-tplx .fk-tpl-pro{
  /* The body line-height computes to 24.3px, and an absolute line-height is
     inherited verbatim — at font-size 10px that made this badge 32px tall. */
  line-height: 1.2;
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  background: var(--fk-tpl-cta);
  color: #fff;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.fk-tplx .fk-tpl-meta{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 14px;
}

/* Without `min-width: 0` a flex item refuses to shrink below its content, so
   a nowrap title would have widened the card instead of being measured
   against it — and the fit pass would have found it always fits. */
.fk-tplx .fk-tpl-meta-left{ min-width: 0; }

.fk-tplx .fk-tpl-meta-name{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fk-tpl-ink);
  /* One line. The JS fit pass steps the size down to 11px before this has to
     do anything; the ellipsis is the floor's safety net, not the plan. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fk-tplx .fk-tpl-tag{
  display: inline-block;
  background: var(--fk-tpl-blue-50);
  color: var(--fk-tpl-blue);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.fk-tplx .fk-tpl-steps{
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  /* Without this it inherits the body's absolute 24.3px. The 4px is the tag
     pill's own bottom padding: `align-items: flex-end` lines up the two BOXES,
     so without it the figure's text sat 4px below the pill's text. Measured,
     not guessed — both text bottoms now land on 332.8. */
  line-height: 1.5;
  padding-bottom: 4px;
  color: var(--fk-tpl-ink);
  white-space: nowrap;
}

/* ---- automation card ---------------------------------------------------- */

/* A single `gap` gave tags -> title -> description -> action all the same
   12px, so the card read as four unrelated lines. The spacing is authored per
   pair instead: the tags belong to the title, the description is its own
   paragraph, and the action is pushed to the bottom edge so cards in a row
   line their links up whatever the description length. */
.fk-tplx .fk-tpl-rec{
  appearance: none;
  /* The PRO badge is absolutely positioned. Without a positioned card it
     resolved against the Elementor widget instead, and all 28 badges stacked
     in one corner of the grid at (1370, -46) rather than one per card. */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: start;
  font: inherit;
  background: #fff;
  border: 1px solid var(--fk-tpl-line);
  border-radius: 14px;
  padding: 20px 22px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* ---- the card's head: integration mark, eyebrow, title ------------------ */

.fk-tplx .fk-tpl-rec-head{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  /* clears the PRO badge in the corner */
  padding-inline-end: 48px;
}

.fk-tplx .fk-tpl-rec-mark{
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--fk-tpl-navy);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

/* Each integration keeps its own hue so a filter is readable without reading:
   WooCommerce purple, Learndash amber, AffiliateWP blue, FunnelKit navy. */
.fk-tplx .fk-tpl-rec-mark[data-src="WooCommerce"]{ background: #7F54B3; }
.fk-tplx .fk-tpl-rec-mark[data-src="Learndash"]{ background: #E08A00; }
.fk-tplx .fk-tpl-rec-mark[data-src="AffiliateWP"]{ background: var(--fk-tpl-blue); }

.fk-tplx .fk-tpl-rec-headtext{ min-width: 0; }

.fk-tplx .fk-tpl-rec-src{
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fk-tpl-mute);
}

.fk-tplx .fk-tpl-rec-foot{
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fk-tplx .fk-tpl-rec:hover{
  transform: translateY(-3px);
  border-color: #D3DCEA;
  box-shadow: 0 14px 34px rgba(10, 26, 60, .12);
}

.fk-tplx .fk-tpl-rec:focus-visible{ outline: 2px solid var(--fk-tpl-blue); outline-offset: 3px; }

.fk-tplx .fk-tpl-rec-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }

.fk-tplx .fk-tpl-rec h3{
  margin: 0;
  font-family: var(--FkDisplay, Inter), system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--fk-tpl-ink);
}

.fk-tplx .fk-tpl-rec p{
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fk-tpl-mute);
}

/* A resting affordance, not a hover one: underlined body text reads as prose
   until you are already on it, and on a touch screen there is no hover at all.
   The pill says "this is the thing you press" before the pointer arrives. */
.fk-tplx .fk-tpl-rec-more{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  background: var(--fk-tpl-blue-50);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--fk-tpl-blue);
  transition: background-color .16s ease, color .16s ease;
}

.fk-tplx .fk-tpl-rec:hover .fk-tpl-rec-more,
.fk-tplx .fk-tpl-rec:focus-visible .fk-tpl-rec-more{
  background: var(--fk-tpl-blue);
  color: #fff;
}

/* ---- promo banner ------------------------------------------------------- */

.fk-tplx .fk-tpl-banner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--fk-tpl-navy);
  border-radius: 14px;
  padding: 26px 28px;
  margin-block: 4px;
}

.fk-tplx .fk-tpl-banner h2{
  margin: 0 0 4px;
  font-family: var(--FkDisplay, Inter), system-ui, sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: #fff;
}

.fk-tplx .fk-tpl-banner p{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--FkBlueTint, #BDCDF8);
  max-width: 62ch;
}

.fk-tplx .fk-tpl-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  background: var(--fk-tpl-cta);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}

.fk-tplx .fk-tpl-cta:hover{ background: var(--fk-tpl-cta-dark); color: #fff; transform: translateY(-1px); }
.fk-tplx .fk-tpl-cta:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }

.fk-tplx .fk-tpl-noscript{ margin-top: 20px; font-size: 14px; color: var(--fk-tpl-mute); }

/* ===========================================================================
   Preview modal
   =========================================================================== */

.fk-tpl-modal.fk-tplx{
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  background: rgba(10, 26, 60, .62);
  padding: 0;
  font-family: var(--FkBody, Inter), system-ui, sans-serif;
  color: var(--FkInk900, #0F172A);
  opacity: 0;
  transition: opacity .2s ease;
}

.fk-tpl-modal.fk-tplx.is-open{ opacity: 1; }
.fk-tpl-modal.fk-tplx[hidden]{ display: none; }

.fk-tplx .fk-tpl-panel{
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: hidden;
}

/* ---- modal header ------------------------------------------------------- */

.fk-tplx .fk-tpl-head{
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  min-height: 64px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--FkLine, #E6EBF2);
  background: #fff;
}

.fk-tplx .fk-tpl-head-id{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fk-tplx .fk-tpl-head-id svg{ width: 30px; height: auto; flex: 0 0 auto; }

.fk-tplx .fk-tpl-head-title{
  margin: 0;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--FkLine, #E6EBF2);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fk-tplx .fk-tpl-head-title .fk-tpl-pro{ position: static; margin-inline-start: 8px; vertical-align: 2px; }

/* Centred on the PREVIEW, not on the header. The rail takes 216px off the left
   of the body, so a switcher centred in the header sits half a rail to the left
   of the thing it actually controls. Absolute, because `margin-inline: auto`
   centres a flex item in the space its siblings leave rather than in the row —
   it was never truly centred on anything. */
.fk-tplx .fk-tpl-head-mid{
  position: absolute;
  inset-inline-start: calc(50% + 108px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The mid used to push this to the right edge with its auto margins; out of
   flow it cannot, so the end claims the slack itself. */
.fk-tplx .fk-tpl-head-end{ margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* The step arrows are their own group so they can sit tighter than the 8px
   that separates the CTA and the close button. */
.fk-tplx .fk-tpl-stepnav{ display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.fk-tplx .fk-tpl-seg{
  display: inline-flex;
  background: var(--fk-tpl-surface, #F6F8FC);
  border: 1px solid var(--FkLine, #E6EBF2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.fk-tplx .fk-tpl-seg button{
  appearance: none;
  border: 0;
  background: none;
  border-radius: 8px;
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--FkInk400, #5E6E84);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}

.fk-tplx .fk-tpl-seg button svg{ width: 17px; height: 17px; }
.fk-tplx .fk-tpl-seg button:hover{ color: var(--FkInk900, #0F172A); }

.fk-tplx .fk-tpl-seg button.is-active{
  background: #fff;
  color: var(--FkNavy900, #0A1A3C);
  box-shadow: 0 1px 3px rgba(10, 26, 60, .14);
}

.fk-tplx .fk-tpl-icobtn{
  appearance: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--FkLine, #E6EBF2);
  border-radius: 8px;
  background: #fff;
  color: var(--FkInk900, #0F172A);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, opacity .16s ease;
}

.fk-tplx .fk-tpl-icobtn svg{ width: 18px; height: 18px; }
.fk-tplx .fk-tpl-icobtn:hover:not(:disabled){ background: var(--fk-tpl-surface, #F6F8FC); border-color: #CBD5E1; }
.fk-tplx .fk-tpl-icobtn:disabled{ opacity: .45; cursor: default; }
.fk-tplx .fk-tpl-icobtn:focus-visible,
.fk-tplx .fk-tpl-seg button:focus-visible{ outline: 2px solid var(--FkBlue600, #2457E6); outline-offset: 2px; }

.fk-tplx .fk-tpl-head .fk-tpl-cta{ padding: 11px 18px; font-size: 14px; border-radius: 8px; }

/* ---- the Type row (one / two / three step checkouts) -------------------- */

.fk-tplx .fk-tpl-typerow{
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 9px 20px;
  /* Held at a constant height on every step. The segment is 37px and the label
     alone is 18px, so letting the row size to its content made the stage jump
     by 19px — and collapsing the row outright made it jump by the full 56px.
     Either way the iframe resized and the remote page repainted. */
  min-height: 56px;
  border-bottom: 1px solid var(--FkLine, #E6EBF2);
  background: #fff;
  overflow: hidden;
}

/* `display:inline-flex` on a class outranks the UA sheet's
   `[hidden]{display:none}`, so hiding the segment needs saying out loud. */
.fk-tplx .fk-tpl-typeseg[hidden]{ display: none; }

.fk-tplx .fk-tpl-typerow-label{
  /* Shrinks and ellipsises rather than pushing the segment off a narrow row;
     `0 1 auto` keeps it beside the segment instead of spanning the gap. */
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--FkInk600, #475569);
  white-space: nowrap;
}

/* Deliberately the same segmented-control language as the viewport switcher in
   the header. As an underlined tab strip this row read as page navigation, so
   visitors treated it as "where am I" rather than "which checkout do I want";
   a segment reads as a choice, which is what it is. */
.fk-tplx .fk-tpl-typeseg{
  display: inline-flex;
  flex: 0 0 auto;
  background: var(--fk-tpl-surface, #F6F8FC);
  border: 1px solid var(--FkLine, #E6EBF2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.fk-tplx .fk-tpl-type{
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--FkInk400, #5E6E84);
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}

.fk-tplx .fk-tpl-type:hover{ color: var(--FkInk900, #0F172A); }

.fk-tplx .fk-tpl-type.is-active{
  background: #fff;
  color: var(--FkNavy900, #0A1A3C);
  box-shadow: 0 1px 3px rgba(10, 26, 60, .14);
}

.fk-tplx .fk-tpl-type:focus-visible{ outline: 2px solid var(--FkBlue600, #2457E6); outline-offset: 2px; }

/* ---- modal body --------------------------------------------------------- */

.fk-tplx .fk-tpl-modal-body{
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.fk-tplx .fk-tpl-rail{
  flex: 0 0 216px;
  width: 216px;
  border-inline-end: 1px solid var(--FkLine, #E6EBF2);
  background: var(--fk-tpl-surface, #F6F8FC);
  /* Said out loud: with only one axis set, CSS computes the other to `auto`,
     which is how a column rail acquired a horizontal scrollbar in the first
     place. It scrolls down, never across. */
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fk-tplx .fk-tpl-rail:empty{ display: none; }

.fk-tplx .fk-tpl-railitem{
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.fk-tplx .fk-tpl-railitem img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 13;
  object-fit: cover;
  object-position: top center;
  background: #fff;
  border: 2px solid var(--FkLine, #E6EBF2);
  border-radius: 8px;
  transition: border-color .16s ease;
}

.fk-tplx .fk-tpl-railitem span{
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--FkInk600, #475569);
  /* The theme's reset.css puts `white-space: nowrap` on every <button>, and a
     rail item IS a button, so this label inherited it. Funnel steps are short
     enough that it never showed; email names are not, and they ran off the side
     and turned the rail into a horizontal scroller. Wrap instead — the rail has
     room to grow downwards and none to grow sideways. */
  white-space: normal;
  overflow-wrap: anywhere;
}

.fk-tplx .fk-tpl-railitem:hover img{ border-color: #C3D0E4; }
.fk-tplx .fk-tpl-railitem.is-active img{ border-color: var(--FkBlue600, #2457E6); }
.fk-tplx .fk-tpl-railitem.is-active span{ color: var(--FkBlue600, #2457E6); }
.fk-tplx .fk-tpl-railitem:focus-visible{ outline: 2px solid var(--FkBlue600, #2457E6); outline-offset: 3px; border-radius: 8px; }

/* Pinned, not merely pushed down. `margin-top:auto` alone put the card below
   the fold of a three-step rail at 900px and the CTA was clipped in half; it is
   the one thing in this modal that has to stay reachable, so it sticks to the
   foot of the rail and the steps scroll behind it. Navy against the light rail
   so it reads as the offer rather than as a fourth step. */
.fk-tplx .fk-tpl-railtip{
  position: sticky;
  bottom: 0;
  margin-top: auto;
  background: var(--FkNavy900, #0A1A3C);
  border-radius: 14px;
  padding: 15px 14px;
  box-shadow: 0 10px 24px rgba(10, 26, 60, .22);
}

/* Scoped through `.fk-tpl-railtip` on purpose. The recipe sidebar styles its
   prose with `.fk-tplx .fk-tpl-recside p` — two classes AND a type — which
   outranks a flat `.fk-tplx .fk-tpl-railtip-title` and painted both of these
   slate-on-navy inside the automation modal. */
.fk-tplx .fk-tpl-railtip .fk-tpl-railtip-title{
  margin: 0 0 6px;
  font-family: var(--FkDisplay, Inter), system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: #fff;
}

.fk-tplx .fk-tpl-railtip .fk-tpl-railtip-sub{
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--FkBlueTint, #BDCDF8);
}

.fk-tplx .fk-tpl-railtip .fk-tpl-cta{ width: 100%; justify-content: center; padding: 11px 14px; font-size: 14px; }

/* ---- the stage ---------------------------------------------------------- */

.fk-tplx .fk-tpl-stage{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--FkSurface2, #F1F4F9);
  padding: 0;
  overflow: hidden;
}

.fk-tplx .fk-tpl-stage[data-view="tablet"],
.fk-tplx .fk-tpl-stage[data-view="mobile"]{ padding: 20px; }

.fk-tplx .fk-tpl-frame{
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: #fff;
  border: 0;
  display: block;
  transition: max-width .26s ease;
}

.fk-tplx .fk-tpl-stage[data-view="tablet"] .fk-tpl-frame{ max-width: 834px; border-radius: 8px; box-shadow: 0 10px 40px rgba(10, 26, 60, .16); }
.fk-tplx .fk-tpl-stage[data-view="mobile"] .fk-tpl-frame{ max-width: 414px; border-radius: 14px; box-shadow: 0 10px 40px rgba(10, 26, 60, .16); }

.fk-tplx .fk-tpl-stage-note{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--FkSurface2, #F1F4F9);
  text-align: center;
  padding: 24px;
}

.fk-tplx .fk-tpl-stage-note[hidden]{ display: none; }
.fk-tplx .fk-tpl-stage-note p{ margin: 0; font-size: 14px; color: var(--FkInk600, #475569); }

/* The brand mark as the loader. Its own two paths carry the colour, so nothing
   here recolours them — they only breathe, a fifth of a second apart, which is
   what separates "working" from "a logo that happens to be sitting here". */
.fk-tplx .fk-tpl-brandload{
  display: inline-flex;
  width: 44px;
}

.fk-tplx .fk-tpl-brandload svg{
  width: 100%;
  height: auto;
  display: block;
}

.fk-tplx .fk-tpl-brandload svg path{
  animation: fk-tpl-breathe 1.4s ease-in-out infinite;
}

.fk-tplx .fk-tpl-brandload svg path:nth-child(2){ animation-delay: .2s; }

@keyframes fk-tpl-breathe {
  0%, 100% { opacity: .22; }
  45%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  /* Slower, not stopped: with no motion at all a loader cannot be told from a
     stalled one, which is worse than the motion it is avoiding. */
  .fk-tplx .fk-tpl-brandload svg path{ animation-duration: 3s; }
  .fk-tplx .fk-tpl-card:hover,
.fk-tplx .fk-tpl-rec:hover{ transform: none; }
}

/* ---- automation flow ---------------------------------------------------- */

/* The non-scrolling frame the canvas lives in. Only this is positioned, so
   anything anchored to it stays put while the canvas pans beneath. */
.fk-tplx .fk-tpl-flowstage{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
}

.fk-tplx .fk-tpl-flowwrap{
  flex: 1 1 auto;
  min-width: 0;
  /* Hidden, not auto: position is carried by the flow's own transform now, so
     there is nothing to scroll and a scrollbar would only contradict the drag. */
  overflow: hidden;
  cursor: grab;
  overscroll-behavior: contain;
  /* The pan handler owns the gesture, so the browser must not also scroll. */
  touch-action: none;
  background:
    radial-gradient(circle, #D6DEEA 1px, transparent 1px) 0 0 / 22px 22px,
    #F4F7FC;
  padding: 36px 20px 60px;
}

.fk-tplx .fk-tpl-flowwrap.is-panning{ cursor: grabbing; user-select: none; }

.fk-tplx .fk-tpl-flow{
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin-inline: auto;
  transform-origin: top center;
}

/* ---- zoom cluster ------------------------------------------------------- */

/* Anchored to the stage, which never scrolls, so the cluster holds its corner
   however far the canvas is panned in either axis. */
.fk-tplx .fk-tpl-zoom{
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--FkLine, #E6EBF2);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(10, 26, 60, .1);
  overflow: hidden;
}

.fk-tplx .fk-tpl-zoombtn{
  appearance: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--FkInk400, #5E6E84);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}

.fk-tplx .fk-tpl-zoombtn + .fk-tpl-zoombtn{ border-top: 1px solid var(--FkLine, #E6EBF2); }
.fk-tplx .fk-tpl-zoombtn svg{ width: 16px; height: 16px; }
.fk-tplx .fk-tpl-zoombtn:hover:not(:disabled){ background: var(--fk-tpl-surface, #F6F8FC); color: var(--FkInk900, #0F172A); }
.fk-tplx .fk-tpl-zoombtn:disabled{ opacity: .35; cursor: default; }
.fk-tplx .fk-tpl-zoombtn:focus-visible{ outline: 2px solid var(--FkBlue600, #2457E6); outline-offset: -2px; }

/* ---- nodes -------------------------------------------------------------- */

.fk-tplx .fk-tpl-node{
  width: 100%;
  background: #fff;
  border: 1px solid var(--FkLine, #E6EBF2);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(10, 26, 60, .06);
}

.fk-tplx .fk-tpl-node-head{
  display: flex;
  gap: 12px;
  align-items: center;
}

.fk-tplx .fk-tpl-node-headtext{ min-width: 0; }

.fk-tplx .fk-tpl-node-ico{
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--FkBlue50, #EEF4FF);
  color: var(--FkBlue600, #2457E6);
}

.fk-tplx .fk-tpl-node-ico svg{ width: 19px; height: 19px; }

.fk-tplx .fk-tpl-node[data-type="wait"] .fk-tpl-node-ico{ background: #FEF3C7; color: #B45309; }
.fk-tplx .fk-tpl-node[data-type="action"] .fk-tpl-node-ico{ background: #FEE2E2; color: #DC2626; }
.fk-tplx .fk-tpl-node[data-type="end"] .fk-tpl-node-ico{ background: var(--FkLine, #E6EBF2); color: #475569; }

/* The detail hangs off its own rule, with a dot where it meets the head — the
   step says what it is, the branch below says what it does. */
.fk-tplx .fk-tpl-node-detail{
  position: relative;
  margin-top: 12px;
  margin-inline-start: 17px;
  padding-inline-start: 19px;
  border-inline-start: 1px solid var(--FkLine, #E6EBF2);
}

.fk-tplx .fk-tpl-node-detail::before{
  content: "";
  position: absolute;
  inset-inline-start: -4px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #C3CEDE;
}

.fk-tplx .fk-tpl-node-kind{ font-size: 11px; font-weight: 600; color: var(--FkInk400, #5E6E84); line-height: 1.4; }
.fk-tplx .fk-tpl-node-name{ font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--FkInk900, #0F172A); }
.fk-tplx .fk-tpl-node-val{ margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--FkInk600, #475569); }

/* The connector carries a node at each end, the way the reference draws it. */
.fk-tplx .fk-tpl-link{
  position: relative;
  width: 1px;
  height: 34px;
  background: #C3CEDE;
}

.fk-tplx .fk-tpl-link::before,
.fk-tplx .fk-tpl-link::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #C3CEDE;
}

.fk-tplx .fk-tpl-link::before{ top: -4px; }
.fk-tplx .fk-tpl-link::after{ bottom: -4px; }

.fk-tplx .fk-tpl-recside{
  flex: 0 0 280px;
  width: 280px;
  border-inline-end: 1px solid var(--FkLine, #E6EBF2);
  background: #fff;
  overflow-y: auto;
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fk-tplx .fk-tpl-recside .fk-tpl-rec-tags{ margin-bottom: 0; }
.fk-tplx .fk-tpl-recside h3{ margin: 0; font-size: 16px; font-weight: 700; }
.fk-tplx .fk-tpl-recside p{ margin: 0; font-size: 14px; line-height: 1.6; color: var(--FkInk600, #475569); }
.fk-tplx .fk-tpl-recside .fk-tpl-railtip{ margin-top: 10px; }

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
  .fk-tplx .fk-tpl-wrap{ grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .fk-tplx .fk-tpl-side{ position: static; }
  .fk-tplx .fk-tpl-side-title{ margin-bottom: 12px; }
  .fk-tplx .fk-tpl-tabs{
    flex-direction: row;
    border-inline-start: 0;
    border-bottom: 1px solid var(--fk-tpl-line);
    gap: 22px;
  }
  .fk-tplx .fk-tpl-tab{
    margin-inline-start: 0;
    border-inline-start: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 6px 0 10px;
  }
  .fk-tplx .fk-tpl-tab.is-active{ border-bottom-color: var(--fk-tpl-navy); }

  /* The rail narrows to 168px below this, so the offset halves with it. */
  .fk-tplx .fk-tpl-head-mid{ inset-inline-start: calc(50% + 84px); }
  .fk-tplx .fk-tpl-rail{
    flex: 0 0 168px;
    width: 168px;
  }
  .fk-tplx .fk-tpl-recside{ flex-basis: 232px; width: 232px; }
}

@media (max-width: 860px) {
  .fk-tplx .fk-tpl-grid{ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px 18px; }
  .fk-tplx .fk-tpl-grid.is-rows{ grid-template-columns: minmax(0, 1fr); }
  .fk-tplx .fk-tpl-banner{ padding: 22px; }
  .fk-tplx .fk-tpl-banner h2{ font-size: 20px; }

  /* The step rail becomes a filmstrip above the stage: a 168px column leaves
     too little for the frame itself below this width. */
  .fk-tplx .fk-tpl-modal-body{ flex-direction: column; }
  .fk-tplx .fk-tpl-rail,
  .fk-tplx .fk-tpl-recside{
    flex: 0 0 auto;
    width: 100%;
    border-inline-end: 0;
    border-bottom: 1px solid var(--FkLine, #E6EBF2);
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 14px;
    gap: 12px;
  }
  .fk-tplx .fk-tpl-railitem{ flex: 0 0 132px; width: 132px; }

  /* The rail turns into a horizontal filmstrip here, which has no room for a
     block offer card. Hiding it was the obvious answer, but the header CTA is
     hidden a few lines below too — between them a phone visitor reached the
     preview and found no way at all to act on it. So the card leaves the strip
     and becomes a bar pinned to the foot of the modal, the one place on a
     phone that is always in reach. */
  .fk-tplx .fk-tpl-railtip{
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    border-radius: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(10, 26, 60, .3);
  }
  .fk-tplx .fk-tpl-railtip .fk-tpl-railtip-title{ margin: 0; flex: 1 1 auto; font-size: 14px; }
  .fk-tplx .fk-tpl-railtip .fk-tpl-railtip-sub{ display: none; }
  .fk-tplx .fk-tpl-railtip .fk-tpl-cta{ width: auto; flex: 0 0 auto; padding: 11px 16px; }

  /* Keep the bar off the bottom of the preview it is selling. */
  .fk-tplx .fk-tpl-modal-body{ padding-bottom: 66px; }
  .fk-tplx .fk-tpl-recside{ flex-direction: column; overflow: visible; max-height: 42vh; }
  .fk-tplx .fk-tpl-stage[data-view="tablet"] .fk-tpl-frame,
  .fk-tplx .fk-tpl-stage[data-view="mobile"] .fk-tpl-frame{ max-width: 100%; }
  .fk-tplx .fk-tpl-head-mid{ display: none; }
  .fk-tplx .fk-tpl-head .fk-tpl-cta{ display: none; }

  /* ...except in the email preview, which has no rail and so gets no offer bar
     of its own. Hiding the header CTA there as well would leave that modal with
     no way out but the close button. The file already relies on `:has()` for
     the builder radios. */
  .fk-tplx .fk-tpl-panel:not(:has(.fk-tpl-railtip)) .fk-tpl-head .fk-tpl-cta{
    display: inline-flex;
    padding: 9px 13px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .fk-tplx .fk-tpl-wrap{ padding-inline: 16px; }
  .fk-tplx .fk-tpl-grid{ grid-template-columns: minmax(0, 1fr); }
  .fk-tplx .fk-tpl-filters{ gap: 8px; }
  .fk-tplx .fk-tpl-pill{ padding: 9px 15px; font-size: 13px; }
  .fk-tplx .fk-tpl-head-title{ font-size: 15px; }

  /* The label plus three segments overflowed a 420px row by 13px, which bought
     it a horizontal scrollbar and 26px of height for nothing. The label now
     carries the step name, so it has to stay — it ellipsises instead, and the
     segment buys back the difference with tighter buttons. */
  .fk-tplx .fk-tpl-typerow{ padding-inline: 14px; gap: 8px; }
  .fk-tplx .fk-tpl-type{ padding-inline: 12px; }
  .fk-tplx .fk-tpl-banner{ flex-direction: column; align-items: flex-start; }
  .fk-tplx .fk-tpl-banner .fk-tpl-cta{ width: 100%; justify-content: center; }
}


/* The deep-link shell: the dialog is already up while the catalogue is still
   in flight, so it needs something of its own to show. */
.fk-tplx .fk-tpl-boot{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--FkSurface2, #F1F4F9);
}

.fk-tplx .fk-tpl-boot p{ margin: 0; font-size: 14px; color: var(--FkInk600, #475569); }

/* ===========================================================================
   The shortcode pitch — the "Other (Using Shortcodes)" builder has no template
   pool, because the checkout is assembled from tags inside whatever theme the
   store already runs. House palette and radii, not the reference's amber box.
   =========================================================================== */

/* Cream fill and amber rule, measured off the reference panel: #FFF9EC on a
   1px #FFB20D border at a 16px radius with 24px of padding. The warm card is
   the point — it marks this builder as the one option in the row that answers
   with an explanation instead of a grid. */
.fk-tplx .fk-tpl-sc{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 32px;
  align-items: center;
  background: #FFF9EC;
  border: 1px solid #FFB20D;
  border-radius: 14px;
  padding: 24px;
}

.fk-tplx .fk-tpl-sc h3{
  margin: 0 0 18px;
  max-width: 30ch;
  font-family: var(--FkDisplay, Inter), system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--fk-tpl-navy);
}

.fk-tplx .fk-tpl-sc-list{
  margin: 0 0 20px;
  padding: 0 0 0 20px;
  list-style: disc;
  display: grid;
  gap: 12px;
}

.fk-tplx .fk-tpl-sc-list li{
  font-size: 15px;
  line-height: 1.55;
  color: var(--fk-tpl-ink);
}

.fk-tplx .fk-tpl-sc-list li::marker{ color: var(--fk-tpl-navy); }

.fk-tplx .fk-tpl-sc-em{ color: var(--fk-tpl-cta); font-weight: 700; }

/* Named, not hotlinked. Chips rather than logos keeps the row on this site's
   palette and spares it three cross-origin PNGs. */
.fk-tplx .fk-tpl-sc-compat{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.fk-tplx .fk-tpl-sc-badge{
  background: #fff;
  border: 1px solid #F3DFB4;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: var(--fk-tpl-navy);
}

.fk-tplx .fk-tpl-sc-more{
  font-size: 13px;
  font-weight: 600;
  color: var(--fk-tpl-mute);
}

.fk-tplx .fk-tpl-sc-actions{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.fk-tplx .fk-tpl-sc-proof{
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fk-tpl-mute);
}

.fk-tplx .fk-tpl-sc-stars{ color: #F59E0B; letter-spacing: 1px; }

/* Stands in for the reference's screenshot-with-callouts. Dashed outlines make
   the same point that drawing does there — these are regions of someone else's
   page that a tag fills in — without shipping an 800px PNG. */
.fk-tplx .fk-tpl-sc-demo{
  background: #fff;
  border: 1px solid #F3DFB4;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.fk-tplx .fk-tpl-sc-chip{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FFFDF7;
  border: 1px dashed #E3C98A;
  border-radius: 8px;
  padding: 10px 12px;
}

.fk-tplx .fk-tpl-sc-chip-k{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fk-tpl-mute);
  white-space: nowrap;
}

.fk-tplx .fk-tpl-sc-chip code{
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fk-tpl-navy);
  background: #FFF3D6;
  border-radius: 8px;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fk-tplx .fk-tpl-sc-note{
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--fk-tpl-mute);
}

@media (max-width: 860px) {
  .fk-tplx .fk-tpl-sc{
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 20px;
  }
  .fk-tplx .fk-tpl-sc h3{ font-size: 21px; }
}

/* The page's sticky CTA and the header sit above the modal's backdrop
   otherwise: both are fixed and both are painted by the shared chrome. */
body.fk-tpl-locked .s-header,
body.fk-tpl-locked [class*="s-sticky"],
body.fk-tpl-locked .fk-sticky-cta{ display: none !important; }

body.fk-tpl-locked{ overflow: hidden; }

/* the bold value line inside an automation node (the email name, the delay) */
.fk-tplx .fk-tpl-node-sub{ font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--FkInk900, #0F172A); }
.fk-tplx .fk-tpl-node-kind + .fk-tpl-node-kind{ margin-top: 10px; }

/* 2026-11-23: while the live preview loads, show the step's screenshot (from
   the rail, already cached) with a small loading pill, instead of a blank
   panel. Mobile previews took 1.5 to 3s on the remote demo server. */
.fk-tplx .fk-tpl-stage-note.has-shot{
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
}
.fk-tplx .fk-tpl-stage-shot{
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  background: #fff;
}
.fk-tplx .fk-tpl-stage[data-view="tablet"] .fk-tpl-stage-shot{ max-width: 834px; margin-top: 20px; border-radius: 8px; }
.fk-tplx .fk-tpl-stage[data-view="mobile"] .fk-tpl-stage-shot{ max-width: 414px; margin-top: 20px; border-radius: 14px; }
.fk-tplx .fk-tpl-stage-pill{
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: var(--FkWhite, #fff);
  box-shadow: 0 6px 24px rgba(10, 26, 60, .18);
  white-space: nowrap;
}
.fk-tplx .fk-tpl-stage-pill .fk-tpl-brandload{ width: 26px; }
.fk-tplx .fk-tpl-stage-pill p{ font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--FkNavy900, #0A1A3C); white-space: nowrap; max-width: none; }

/* 2026-11-24 (Loom "Weird distortion during Q&A"): the stand-in screenshot
   comes from the template feed and can be an older capture than the live
   demo (Optic: "Recurring customer", US/Alabama vs the live UAE form), so
   shown sharp it read as a different page that then got swapped out. It is
   now plainly a loading placeholder: blurred and dimmed under the pill. The
   overlay fades out (fk-templates.js, .is-leaving) instead of vanishing. */
.fk-tplx .fk-tpl-stage-note{ transition: opacity .26s ease; }
.fk-tplx .fk-tpl-stage-note.is-leaving{ opacity: 0; pointer-events: none; }
.fk-tplx .fk-tpl-stage-shot{ filter: blur(6px) saturate(.7); opacity: .55; transform: scale(1.02); transform-origin: 50% 0; }
@media (prefers-reduced-motion: reduce){ .fk-tplx .fk-tpl-stage-note{ transition: none; } }

/* 2026-11-24 (Prashant: "fix this btn"): "Get this template" wrapped onto two
   cramped lines in the rail card. The card leaves the button 159px at desktop
   widths; at 14px bold with 14px side padding the label plus arrow needs
   about 162px, so it broke, and line-height 1 stacked the two lines tight.
   One line now: 13.5px, 10px side padding, 6px gap (about 151px), a real line
   height, a 42px tap height, and a radius that sits inside the card's 14px. */
.fk-tplx .fk-tpl-railtip .fk-tpl-cta{
  white-space: nowrap;
  gap: 6px;
  padding: 11px 10px;
  min-height: 42px;
  font-size: 13.5px;
  line-height: 1.2;
  letter-spacing: -.005em;
  border-radius: 10px;
}
/* Narrow rail (about 861-1199px the card is ~139px): one line cannot fit at a
   readable size, so the label wraps as two balanced, centred lines with real
   line spacing, and the arrow goes. Measured on the card's content box: 159px on desktop, 111px here. */
.fk-tplx .fk-tpl-railtip{ container-type: inline-size; }
@container (max-width: 140px){
  .fk-tplx .fk-tpl-railtip .fk-tpl-cta{ white-space: normal; text-align: center; text-wrap: balance; line-height: 1.25; padding: 9px 10px; }
  .fk-tplx .fk-tpl-railtip .fk-tpl-cta > span[aria-hidden="true"]{ display: none; }
}

/* 2026-11-24 (Prashant: "use loader ... similar to our fknew theme", then
   "make loading preview better"): the live-preview loader. It is drawn in a
   white frame the same size and shape as the iframe for the current view
   (full stage on desktop, the 834px tablet and 414px phone frames), so the
   live page arrives exactly where the visitor is looking. The breathing brand
   mark, what is loading, and a real progress bar (fk-templates.js drives
   it; it fills to 100% on load, then the overlay fades). No card, no glow:
   the frame is the surface. */
.fk-tplx .fk-tpl-stage-note{ background: transparent; padding: 0; }
.fk-tplx .fk-tpl-stage[data-view="tablet"] .fk-tpl-stage-note,
.fk-tplx .fk-tpl-stage[data-view="mobile"] .fk-tpl-stage-note{ padding: 20px; }
.fk-tplx .fk-tpl-loadframe{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background: var(--FkWhite, #fff);
}
.fk-tplx .fk-tpl-stage[data-view="tablet"] .fk-tpl-loadframe{ max-width: 834px; border-radius: 8px; box-shadow: 0 10px 40px rgba(10, 26, 60, .16); }
.fk-tplx .fk-tpl-stage[data-view="mobile"] .fk-tpl-loadframe{ max-width: 414px; border-radius: 14px; box-shadow: 0 10px 40px rgba(10, 26, 60, .16); }
.fk-tplx .fk-tpl-loadinner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(300px, calc(100% - 40px));
  text-align: center;
}
.fk-tplx .fk-tpl-loadinner .fk-tpl-brandload{ width: 48px; margin-bottom: 12px; }
.fk-tplx .fk-tpl-stage-note .fk-tpl-loadinner .fk-tpl-load-title{ margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--FkNavy900, #0A1A3C); }
.fk-tplx .fk-tpl-stage-note .fk-tpl-loadinner .fk-tpl-load-sub{ margin: 0; min-height: 2.9em; font-size: 14px; line-height: 1.45; color: var(--FkInk400, #566C99); text-wrap: balance; }
.fk-tplx .fk-tpl-load-bar{
  display: block;
  width: 100%;
  max-width: 220px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--FkLine, #E2E7F0);
  overflow: clip;
}
.fk-tplx .fk-tpl-load-bar > span{
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--FkBlue600, #2457E6);
  transform: scaleX(.04);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}
.fk-tplx .fk-tpl-stage-note.is-done .fk-tpl-load-bar > span{ transition-duration: .2s; transition-timing-function: ease-out; }
.fk-tplx .fk-tpl-stage-note .fk-tpl-loadinner .fk-tpl-load-more{ margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--FkInk400, #566C99); }
.fk-tplx .fk-tpl-stage-note .fk-tpl-loadinner .fk-tpl-load-more a{ color: var(--FkBlue700, #1B45C0); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fk-tplx .fk-tpl-stage-note .fk-tpl-loadinner .fk-tpl-load-more a:focus-visible{ outline: 2px solid var(--FkBlue600, #2457E6); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 860px){
  .fk-tplx .fk-tpl-stage[data-view="tablet"] .fk-tpl-loadframe,
  .fk-tplx .fk-tpl-stage[data-view="mobile"] .fk-tpl-loadframe{ max-width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .fk-tplx .fk-tpl-load-bar > span{ transition: none; }
}

/* 2026-11-24 (AI-slop pass, design-rules + humanizer) on the funnel preview:
   the step label lost its tracked ALL CAPS (an eyebrow), the header "Pro" is
   sentence case at 500, and the new loader and rail titles drop to 500 so
   hierarchy comes from size and colour. Stage greys are the Surface2 token. */
.fk-tplx .fk-tpl-typerow-label{ font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--FkInk600, #3B4E75); }
.fk-tplx .fk-tpl-head-title .fk-tpl-pro{ font-size: 11px; font-weight: 500; letter-spacing: 0; padding: 3px 9px; }
.fk-tplx .fk-tpl-stage-note .fk-tpl-loadinner .fk-tpl-load-title{ font-weight: 500; font-size: 18px; text-wrap: balance; }
.fk-tplx .fk-tpl-railtip .fk-tpl-railtip-title{ font-weight: 500; font-size: 16px; }

/* 2026-11-24 ("do not use text, just a good loading behaviour"): mark and bar
   only, so the pair sits a little closer and the bar is the same width as
   a short line of the page. */
.fk-tplx .fk-tpl-loadinner{ gap: 0; }
.fk-tplx .fk-tpl-loadinner .fk-tpl-brandload{ width: 52px; margin-bottom: 22px; }
.fk-tplx .fk-tpl-load-bar{ margin-top: 0; max-width: 180px; }

/* 2026-11-24 ("a rounded circular loading will be better"): circular,
   round-capped progress ring around the brand mark. The arc is driven by
   fk-templates.js (dashoffset) and closes the circle on load. The ring turns
   slowly so a long wait never looks frozen. */
.fk-tplx .fk-tpl-ringwrap{ position: relative; width: 72px; height: 72px; display: grid; place-items: center; }
.fk-tplx .fk-tpl-ring{ position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); animation: fk-tpl-ringturn 2.4s linear infinite; }
.fk-tplx .fk-tpl-ring circle{ fill: none; stroke-width: 4; }
.fk-tplx .fk-tpl-ring-track{ stroke: var(--FkLine, #E2E7F0); }
.fk-tplx .fk-tpl-ring-arc{ stroke: var(--FkBlue600, #2457E6); stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.fk-tplx .fk-tpl-stage-note.is-done .fk-tpl-ring-arc{ transition-duration: .2s; transition-timing-function: ease-out; }
.fk-tplx .fk-tpl-stage-note.is-done .fk-tpl-ring{ animation-play-state: paused; }
.fk-tplx .fk-tpl-ringwrap .fk-tpl-brandload{ width: 30px; margin: 0; }
@keyframes fk-tpl-ringturn{ from{ transform: rotate(-90deg); } to{ transform: rotate(270deg); } }
@media (prefers-reduced-motion: reduce){
  .fk-tplx .fk-tpl-ring{ animation: none; }
  .fk-tplx .fk-tpl-ring-arc{ transition: none; }
}
