/* Webfix Flows — upload- en voortgangsscherm.
   Gebruikt uitsluitend de tokens uit webfix.css, die in dark mode zelf omklappen.
   Geen eigen kleurwaarden: dat is precies waarom dark mode hier gratis werkt. */

/* ── Dropzone ─────────────────────────────────────────────────────────────── */

.wf-flow-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 100%;
  min-height: 190px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px dashed var(--wf-border);
  border-radius: .75rem;
  background: var(--wf-hover-bg);
  transition: border-color .15s ease, background-color .15s ease;
}

.wf-flow-dropzone:hover,
.wf-flow-dropzone:focus-within,
.wf-flow-dropzone.is-dragover {
  border-color: var(--bs-primary);
  background: var(--bs-primary-bg-subtle);
}

/* Het bestandsveld is hidden; de zichtbare focusring hoort dus op de dropzone zelf. */
.wf-flow-dropzone:focus-within {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.wf-flow-dropzone-icon {
  font-size: 2.25rem;
  color: var(--wf-muted);
}

.wf-flow-dropzone-title {
  font-weight: 600;
  color: var(--wf-text);
}

.wf-flow-dropzone-hint {
  font-size: .875rem;
  color: var(--wf-text-soft);
}

/* ── Miniaturen ───────────────────────────────────────────────────────────── */

.wf-flow-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .5rem;
}

.wf-flow-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--wf-border);
  border-radius: .5rem;
  background: var(--wf-surface);
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.wf-flow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Precies één foto is de hoofdfoto: een duidelijk kader (dikkere rand via een ring, geen layout-shift)
   met een klein label op de bovenrand. De klant kan een andere aanklikken om de selectie te verzetten. */
.wf-flow-thumb.is-hero {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px var(--bs-primary);
}

.wf-flow-thumb-hero-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  padding: .05rem .45rem;
  font-size: .68rem;
  line-height: 1.5;
  font-weight: 600;
  border-radius: 0 0 .35rem .35rem;
  background: var(--bs-primary);
  color: #fff;
  pointer-events: none;
}
.wf-flow-thumb.is-hero .wf-flow-thumb-hero-label { display: block; }

/* ── Vervolg-schakelaars ──────────────────────────────────────────────────── */

.wf-flow-followup {
  padding: .6rem 0;
  border-bottom: 1px solid var(--wf-border-lt);
}

.wf-flow-followup:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* De hele label is klikbaar; de hint staat eronder in plaats van ernaast, zodat hij op mobiel
   niet afgekapt wordt. */
.wf-flow-followup .form-check-label {
  cursor: pointer;
  display: block;
}

.wf-flow-followup-label {
  display: block;
  font-weight: 600;
  color: var(--wf-text);
}

.wf-flow-followup-hint {
  display: block;
  font-size: .8125rem;
  color: var(--wf-text-soft);
}

/* ── Voortgangsscherm ─────────────────────────────────────────────────────── */

.wf-flow-progress-wrap {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
}

.wf-flow-progress-figure {
  font-size: 2.5rem;
  color: var(--bs-primary);
  margin-bottom: .75rem;
}

/* Rustige puls; respecteert de systeeminstelling voor bewegingsreductie. */
.wf-flow-progress-figure i {
  display: inline-block;
  animation: wf-flow-pulse 2s ease-in-out infinite;
}

@keyframes wf-flow-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.12); opacity: .75; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-flow-progress-figure i { animation: none; }
  .wf-flow-progress-bar .progress-bar { animation: none; }
}

.wf-flow-progress-status {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wf-text);
  margin-bottom: 1rem;
  min-height: 1.6em; /* voorkomt dat de balk verspringt als de tekst korter wordt */
}

.wf-flow-progress-bar {
  height: .65rem;
  background: var(--wf-border-lt);
}

.wf-flow-progress-pct {
  margin-top: .5rem;
  margin-bottom: 0;
  font-size: .875rem;
}

/* Zodra de run klaar is: balk vol → korte pauze → pagina faadt uit → door naar de preview-modal. */
.webfix-flow-progress { transition: opacity .4s ease; }
.webfix-flow-progress.wf-flow-fade-out { opacity: 0; }

/* ── Wizard (toevoegen-referentie: één kaart, stap-voor-stap) ─────────────────
 * Alle stappen zitten in dezelfde kaart; JS toont er telkens één (.wf-wizard-panel[hidden]).
 * Zodra de generatie klaar is faadt de hele kaart uit en navigeren we naar de preview-modal. */
.wf-wizard { transition: opacity .4s ease; }
.wf-wizard.wf-flow-fade-out { opacity: 0; }

/* Stap-indicator bovenin de kaart. */
.wf-wizard-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.wf-wizard-step { display: flex; align-items: center; gap: 9px; color: var(--wf-muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.wf-wizard-dot {
  width: 26px; height: 26px; border-radius: 9999px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; background: var(--wf-border-lt); color: var(--wf-muted);
  border: 1.5px solid var(--wf-border); transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.wf-wizard-step.is-active { color: var(--wf-text); }
.wf-wizard-step.is-active .wf-wizard-dot {
  /* Levende drift-gradient — exact de treatment van de oude .wf-step-badge (mooier op het bolletje). */
  background: linear-gradient(90deg, #b0d136 0%, #da176c 50%, #32bcee 100%);
  background-size: 200% 100%;
  animation: wf-ai-drift 10s ease-in-out infinite;
  color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(50, 188, 238, .22);
}
@media (prefers-reduced-motion: reduce) { .wf-wizard-step.is-active .wf-wizard-dot { animation: none; } }
.wf-wizard-step.is-done { color: var(--wf-text-soft); }
.wf-wizard-step.is-done .wf-wizard-dot { background: var(--wf-green, #b0d136); color: #fff; border-color: transparent; }
.wf-wizard-sep { flex: 1 1 auto; height: 2px; max-width: 52px; background: var(--wf-border); border-radius: 2px; }

/* Stap-panelen: fade+slide bij binnenkomst (hergebruikt wfStepFadeIn). */
.wf-wizard-panel.wf-anim-in { animation: wfStepFadeIn .4s ease both; }
/* flows-start.js verplaatst focus naar de stap-titel (a11y, tabindex=-1). De titel is nooit via Tab
   bereikbaar, dus die programmatige focus mag geen zichtbare (zwarte) focus-ring om de titel geven. */
.wf-wizard-panel h2:focus { outline: none; }
/* Rich-text in de flow-preview: ingevoegde afbeeldingen altijd responsive binnen de content-kader
   (de template-CSS die .biz-page-body normaal stylet, wordt op het dashboard niet geladen). */
.wf-pv-body .biz-page-body img { max-width: 100%; height: auto; }
/* Preview-intro (titel + subzin) op mobiel gecentreerd. */
@media (max-width: 575.98px) {
  .wf-pv-intro-title, .wf-pv-intro-sub { text-align: center; }
  /* Op mobiel wat extra lucht boven de titel. */
  .wf-pv-intro-title { margin-top: 20px; }
}

/* Knop-rij onderaan een stap: links uitgelijnd; op mobiel volle breedte, gestapeld.
   Vaste 25px lucht boven de flow-knop op elke stap (afspraak Tom). */
.wf-wizard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
/* "Terug" rechts op de rij (de primaire knop blijft links). Op mobiel (kolom) heeft dit geen effect. */
.wf-wizard-actions [data-wf-back] { margin-left: auto; }

/* ── Documenten-dropzone (stap 1) ── Een compacte, ~2-regelige dropzone die uitschuift onder de
   "Documenten toevoegen"-kaartknop. Slide via max-height; de gekozen bestanden (chips) staan ín de
   dropzone. Subtieler dan de foto-dropzone (secundaire actie). */
.wf-flow-docszone {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s cubic-bezier(.16, 1, .3, 1), opacity .3s ease, margin-top .35s cubic-bezier(.16, 1, .3, 1);
}
.wf-flow-docszone.is-open { max-height: 260px; opacity: 1; margin-top: 12px; }
.wf-docdrop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  min-height: 58px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  background-color: #fafcff; color: #6b7a8d; font-size: 14px; border: 1.5px dashed #cdd7e3;
  transition: background-color .2s, box-shadow .2s, border-color .2s;
}
.wf-docdrop:hover, .wf-docdrop.is-dragover { background-color: #f2f8fe; border-color: var(--wf-blue, #32bcee); }
.wf-docdrop-empty { display: inline-flex; align-items: center; gap: 6px; }
.wf-docdrop.has-files .wf-docdrop-empty { display: none; }

/* Mic-knop even laten opvallen bij binnenkomst van een stap: 3× subtiel groeien + roze tint-ring. */
@keyframes wf-mic-attn {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(218, 23, 108, 0); }
  50% { transform: scale(1.1); background: rgba(218, 23, 108, .08); color: var(--wf-pink, #da176c); box-shadow: 0 0 0 5px rgba(218, 23, 108, .08); }
}
/* Rustig: 3 langzame pulsen van ~1.6s (≈5s totaal). */
.wf-ctool.wf-mic-attn { animation: wf-mic-attn 1.6s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) { .wf-ctool.wf-mic-attn { animation: none; } }

@media (max-width: 575.98px) {
  .wf-wizard-label { display: none; }                 /* alleen de bolletjes + verbindingslijnen */
  .wf-wizard-sep { max-width: none; }
  .wf-wizard-actions { flex-direction: column; align-items: stretch; }
  .wf-wizard-actions .wf-flow-btn,
  .wf-wizard-actions .wf-btn { width: 100%; justify-content: center; }
}

/* ── Verspreiden-hub — 1:1 het Claude Design "Flows Steps"-eindscherm ──────────
   Container-query zodat de mobiele indeling ook binnen de dashboard-breedte klopt. */
.wf-wizard-hub { container-type: inline-size; }

/* Gepubliceerde referentie-kaart: gradient-rand, zwevend ✓, thumbnail + tekst + bewerk-knop. */
.wf-hub-ref {
  position: relative; display: flex; align-items: center; gap: 18px; margin-top: 8px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #b0d136 0%, #da176c 50%, #32bcee 100%) border-box;
  border: 1px solid transparent; border-radius: 18px; padding: 26px 20px;
  box-shadow: 0 1px 3px rgba(18, 20, 32, .06);
}
.wf-hub-check {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  height: 32px; padding: 0 15px; border-radius: 9999px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  background: linear-gradient(90deg, #b0d136 0%, #da176c 50%, #32bcee 100%); background-size: 200% 100%;
  animation: wf-ai-drift 9s ease-in-out infinite;
}
.wf-hub-check i { font-size: 15px; }
.wf-hub-check-label { font-size: 13px; font-weight: 700; letter-spacing: .01em; }
/* Badge is een <a>: wit houden (niet de globale link-kleur) en alleen klikbaar als er een href staat. */
.wf-hub-check, .wf-hub-check:hover, .wf-hub-check:focus { color: #fff; text-decoration: none; }
.wf-hub-check[href] { cursor: pointer; }
.wf-hub-check[href]:hover { filter: brightness(1.06); }
@media (prefers-reduced-motion: reduce) { .wf-hub-check { animation: none; } }
.wf-hub-ref-thumb { flex: none; width: 78px; height: 58px; border-radius: 12px; overflow: hidden; background: #eef1f6; }
.wf-hub-ref-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-hub-ref-txt { flex: 1 1 auto; min-width: 0; }
.wf-hub-ref-title { font-weight: 800; font-size: 17px; color: var(--wf-black, #000229); line-height: 1.15; }
.wf-hub-ref-sub { font-size: 13.5px; color: #7c8698; line-height: 1.45; margin-top: 2px; }
.wf-hub-ref-edit { flex: none; margin-left: auto; }
/* Rechter knoppengroep in de referentie-kaart (Nu publiceren + Referentie bewerken). */
.wf-hub-ref-actions { flex: none; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wf-hub-ref-actions .wf-hub-ref-edit { margin-left: 0; }

/* "Bewerken"-variant van de Flows-knop (stijlgids): potlood i.p.v. "Flows™" + statisch groen verloop
   (success-rolkleur). Eén centrale class zodat stijlgids én de hub-knop identiek zijn en meebewegen. */
.wf-flow-btn-edit { background: linear-gradient(100deg, #c7e067 0%, #B0D136 50%, #8ea82c 100%); background-size: 100% 100%; animation: none; }

/* Twee glazige kolommen: modules (gradient-rand) + socials (blauwe rand), gecentreerd. */
.wf-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.wf-hub-card { border-radius: 20px; padding: 30px 26px; text-align: center; }
.wf-hub-card-mod { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #b0d136 0%, #da176c 50%, #32bcee 100%) border-box; border: 1px solid transparent; }
.wf-hub-card-soc { background: #fff; border: 1px solid rgba(50, 188, 238, .55); }
.wf-hub-card-title { font-weight: 800; font-size: 16px; color: var(--wf-black, #000229); }
.wf-hub-card-sub { margin: 5px 0 20px; font-size: 13px; color: #8a93a3; line-height: 1.45; }
.wf-hub-col { display: flex; flex-direction: column; gap: 11px; align-items: center; }
.wf-hub-more { margin-top: 16px; }

/* Alleenstaande social-card (geen actieve doorplaats-module): volle breedte, social-knoppen naast
   elkaar (i.p.v. gestapeld). "Meer socials koppelen" blijft als losse regel eronder staan. */
.wf-hub-card-wide { grid-column: 1 / -1; }
/* Titel + subtitel op één regel, met een liggend streepje ertussen en dezelfde opmaak/grootte. */
.wf-hub-card-wide .wf-hub-card-title,
.wf-hub-card-wide .wf-hub-card-sub { display: inline; margin: 0; font-size: 16px; font-weight: 800; color: var(--wf-black, #000229); }
.wf-hub-card-wide .wf-hub-card-sub::before { content: "–"; margin: 0 9px; }
.wf-hub-card-wide .wf-hub-socials { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.wf-hub-card-wide .wf-hub-socials .wf-flow-btn { flex: 0 1 220px; }

/* Actie-rij onderaan met scheidingslijn. */
.wf-hub-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wf-border-lt, #edf5fa); }
.wf-hub-actions > :last-child { margin-left: auto; }

.wf-hub-done-btn { opacity: .65; }

/* ── Mobiel (kaart smaller dan 700px) — volle breedte + gecentreerde chip-labels ── */
@container (max-width: 700px) {
  .wf-hub-grid { grid-template-columns: 1fr; gap: 18px; }
  .wf-hub-card { padding: 22px 16px; }
  .wf-hub-ref { flex-wrap: wrap; }
  .wf-hub-ref-actions { width: 100%; margin-left: 0; margin-top: 12px; flex-wrap: wrap; gap: 8px; }
  .wf-hub-ref-actions > * { width: 100%; margin: 0; }
  .wf-hub-actions { flex-direction: column-reverse; align-items: stretch; }
  .wf-hub-actions > :last-child { margin-left: 0; }
  .wf-hub-ref-edit, .wf-hub-more, .wf-hub-actions .wf-flow-btn, .wf-hub-actions .wf-cardbtn { width: 100%; margin-left: 0; }
  .wf-hub-ref-edit, .wf-hub-more { margin-top: 12px; }
  /* chip-kaartknoppen (.wf-cardbtn): label gecentreerd in de volle breedte, zoals het ontwerp. */
  .wf-hub-ref-edit > span:last-child, .wf-hub-more > span:last-child, .wf-hub-actions .wf-cardbtn > span:last-child { flex: 1; text-align: center; }
  .wf-hub-actions .wf-flow-btn .wf-flow-btn-body { flex: 1; }
  .wf-hub-actions .wf-flow-btn .wf-flow-btn-arrow { margin-left: auto; }
}

/* Social-flowknoppen (fase 2, nog niet klikbaar): platform-gekleurde 2-tint gradient die meebeweegt met
   de bestaande drift. background-IMAGE (niet de shorthand) zodat background-size 200% van .wf-flow-btn blijft. */
.wf-flow-btn.wf-soc-fb { background-image: linear-gradient(90deg, #1877f2 0%, #0b4fb0 50%, #1877f2 100%); box-shadow: 0 2px 8px rgba(24, 119, 242, .28); }
.wf-flow-btn.wf-soc-in { background-image: linear-gradient(90deg, #0a66c2 0%, #00396f 50%, #0a66c2 100%); box-shadow: 0 2px 8px rgba(10, 102, 194, .28); }
.wf-flow-btn.wf-soc-ig { background-image: linear-gradient(90deg, #e1306c 0%, #833ab4 50%, #e1306c 100%); box-shadow: 0 2px 8px rgba(193, 53, 132, .28); }
/* Platform-icoon vóór het label (de flow-knop heeft geen icoon-slot → via ::before met bootstrap-icons). */
.wf-soc .wf-flow-btn-body > span::before { font-family: bootstrap-icons; font-weight: normal; margin-right: .45em; vertical-align: -.05em; }
.wf-soc-fb .wf-flow-btn-body > span::before { content: "\f344"; }
.wf-soc-in .wf-flow-btn-body > span::before { content: "\f472"; }
.wf-soc-ig .wf-flow-btn-body > span::before { content: "\f437"; }

/* "Webfix Flows™" inline in tekst: de verenigde lockup uit de stijlgids — één doorlopende bewegende
   merk-gradient (.lg-flows.move), beide woorden in dezelfde Sansation-hoogte/verhouding.
   STANDAARD: een inline-woordmerk staat altijd 1px (max 2px) groter dan de omringende tekst, zodat
   het als woordmerk leest maar de regel niet opblaast. Vandaar calc(1em + Npx) i.p.v. een vaste em. */
.wf-flows-word { font-size: calc(1em + 2px); }

/* ── Verwijder-knopje op een foto-thumbnail in de preview-modal ──────────────
 * Elke thumb zit in .wf-magic-thumb-wrap (position:relative) zodat de verwijderknop rechtsboven
 * kan zweven zonder een geneste <button> (de thumb is zelf al een hero-kies-knop). */
.wf-magic-thumb-wrap { position: relative; display: inline-flex; }
.wf-magic-thumb-del {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 22px; height: 22px; border-radius: 9999px; border: none; padding: 0;
  background: #fff; color: #dc3545; cursor: pointer; line-height: 1; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(1, 16, 61, .18);
  opacity: 0; transition: opacity .15s ease, transform .15s ease, background .15s ease, color .15s ease;
}
.wf-magic-thumb-wrap:hover .wf-magic-thumb-del,
.wf-magic-thumb-del:focus-visible { opacity: 1; }
.wf-magic-thumb-del:hover { background: #dc3545; color: #fff; transform: scale(1.08); }
/* Touch-schermen kennen geen hover → altijd tonen. */
@media (hover: none) { .wf-magic-thumb-del { opacity: 1; } }

/* ── Klein scherm ─────────────────────────────────────────────────────────── */

@media (max-width: 575.98px) {
  .wf-flow-dropzone { min-height: 150px; padding: 1.5rem .75rem; }
  .wf-flow-thumbs   { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}

/* Stapsgewijze onthulling van de flow-uploadstappen (zie flows-start.js). */
.wf-fade-in { animation: wfStepFadeIn .45s ease both; }
@keyframes wfStepFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── Webfix Flows-header ────────────────────────────────────────────────────
   De merkheader boven elke flow-stap (1:1 uit het ontwerp): levende merk-gradient
   (drift), glans-overlay, witte diamant-chip, titel + subtitel en een "flow"-badge.
   De standaard paginaheader blijft ongemoeid; deze staat daaronder. */
@keyframes wf-flows-drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.wf-flows-header {
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: 30px 34px;
  background: linear-gradient(90deg, #b0d136 0%, #da176c 50%, #32bcee 100%);
  background-size: 200% 100%;
  animation: wf-flows-drift 11s ease-in-out infinite;
  box-shadow: 0 14px 34px rgba(50, 188, 238, .20), 0 6px 16px rgba(218, 23, 108, .14);
}
.wf-flows-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%);
}
.wf-flows-header-row {
  position: relative; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 20px;
}
.wf-flows-header-main { display: flex; align-items: center; gap: 18px; min-width: 260px; }
.wf-flows-header-logo {
  flex: none; width: 70px; height: 70px; border-radius: 20px;
  background: rgba(255, 255, 255, .92); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(1, 16, 61, .18);
}
.wf-flows-header-logo img { width: 42px; height: 42px; object-fit: contain; display: block; }
/* Wordmark-maat in de grote header (modal-variant houdt zijn eigen 23px). */
.wf-flows-header .wf-flows-wm { font-size: 27px; }
.wf-flows-header-eyebrow {
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(1, 16, 61, .28); margin-bottom: 6px;
}
/* Compacte variant (bv. header zonder subtitel): minder hoog. */
.wf-flows-header-compact { padding-top: 20px; padding-bottom: 20px; }
/* Eyebrow-rij: "Webfix Flows" (uppercase) · divider · "Go with the flow" (zelfde 13px/700, geen caps). */
.wf-flows-header-eyebrow-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 3px; }
.wf-flows-header-eyebrow-row .wf-flows-header-eyebrow { margin-bottom: 0; }
.wf-flows-header-eyebrow-div { flex: none; width: 1px; height: 20px; background: rgba(255, 255, 255, .5); }
.wf-flows-header-eyebrow-flow { position: relative; top: -1px; font-weight: 700; font-size: 16px; letter-spacing: .01em; color: #fff; text-shadow: 0 1px 6px rgba(1, 16, 61, .28); }
.wf-flows-header-titlerow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.wf-flows-header-title {
  font-weight: 800; font-size: clamp(24px, 3vw, 32px); color: #fff;
  line-height: 1.05; text-shadow: 0 2px 14px rgba(1, 16, 61, .28);
}
.wf-flows-header-divider { flex: none; width: 1px; height: 26px; background: rgba(255, 255, 255, .5); }
.wf-flows-header-flow {
  font-weight: 700; font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, .95); text-shadow: 0 1px 8px rgba(1, 16, 61, .24);
}
.wf-flows-header-sub {
  margin: 8px 0 0; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 8px rgba(1, 16, 61, .22); max-width: 520px;
}
.wf-flows-header-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 9999px; background: rgba(255, 255, 255, .9);
  font-weight: 700; font-size: 13px; color: var(--wf-title, #a12359);
  box-shadow: 0 4px 12px rgba(1, 16, 61, .14); white-space: nowrap;
}

/* ── Webfix Flows — compacte header bovenin de (preview-)modal ──────────────── */
.wf-flows-modalhead {
  position: relative; overflow: hidden;
  border-radius: 18px 18px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 22px;
  background: linear-gradient(90deg, #b0d136 0%, #da176c 50%, #32bcee 100%);
  background-size: 200% 100%;
  animation: wf-flows-drift 11s ease-in-out infinite;
}
.wf-flows-modalhead::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 60%);
}
.wf-flows-modalhead-main { position: relative; display: flex; align-items: center; gap: 13px; }
.wf-flows-modalhead-logo {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, .94); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(1, 16, 61, .18);
}
.wf-flows-modalhead-logo img { width: 24px; height: 24px; object-fit: contain; display: block; }
.wf-flows-modalhead-eyebrow {
  font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 6px rgba(1, 16, 61, .28); line-height: 1.15;
}
.wf-flows-modalhead-tag {
  font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 6px rgba(1, 16, 61, .22); line-height: 1.15;
}
.wf-flows-modalhead-close {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 9999px;
  border: none; background: rgba(255, 255, 255, .92); color: var(--wf-title, #a12359);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(1, 16, 61, .16); text-decoration: none; font-size: 15px;
  transition: transform .2s ease, background .2s ease;
}
.wf-flows-modalhead-close:hover { color: #a12359; background: #fff; transform: scale(1.06); }

/* ── Modal/card-header-varianten (2026-07-23) ─────────────────────────────────
 * Zelfde vormtaal/opbouw als .wf-flows-modalhead (icoon-chip + diamant, woordmerk ·
 * divider · tagline) — alleen de achtergrond en het woordmerk wisselen per merk. */

/* Webfix AI — nu de bewegende FLOWS-drift als default (was statisch; de oude vlakke/statische versie
   leeft verder als .wf-flows-modalhead-dark hieronder, alleen op expliciet verzoek). 3 stops: donker
   (AI-merkkleur) → donker (lichtere navy) → lichter blauw. Woordmerk is gewoon .wf-ai-mark
   (Webfix + AI) — wordt hier automatisch wit dankzij de bestaande
   ".wf-flows-modalhead .wf-ai-word/-grad"-hooks hierboven, precies zoals op de knop. */
.wf-flows-modalhead-ai {
  background: linear-gradient(90deg, #000229 0%, #2b325c 50%, #6fd2f2 100%);
  background-size: 200% 100%; animation: wf-flows-drift 11s ease-in-out infinite;
}
.wf-flows-modalhead-ai::before { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%); }

/* Standaard (CMS) — nu de bewegende FLOWS-drift als default (was statisch). Mix van de diamond-pink
   (#da176c) en primary-magenta: donker (links) → primary-basis → pink (rechts). */
.wf-flows-modalhead-std {
  background: linear-gradient(90deg, #5c0f30 0%, #A12359 50%, #da176c 100%);
  background-size: 200% 100%; animation: wf-flows-drift 11s ease-in-out infinite;
}

/* Admin — de info-rolkleur (zelfde 3-tint blauw als .wf-flow-btn-role-info in wf-2026-system.css).
   Blijft bewust STATISCH — geen FLOWS-variant meer (op verzoek verwijderd). Donker (links) →
   licht (rechts). */
.wf-flows-modalhead-admin { background: linear-gradient(90deg, #1f93bd 0%, #32BCEE 50%, #6fd2f2 100%); }

/* "Default Dark header" — de oude statische Webfix AI-achtergrond (donker → donker → lichter blauw,
   géén animatie), losgekoppeld van de AI-rol en generiek bruikbaar. Geen default ergens — alleen
   inzetten als expliciet gevraagd ("Maak HEADERBALK bg DARK" o.i.d.). */
.wf-flows-modalhead-dark { background: linear-gradient(90deg, #000229 0%, #2b325c 50%, #6fd2f2 100%); animation: none; }
.wf-flows-modalhead-dark::before { background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 60%); }

@media (prefers-reduced-motion: reduce) {
  .wf-flows-modalhead-ai, .wf-flows-modalhead-std { animation: none; }
}

/* Intro-tekst ("Uw project staat klaar") als eerste content-blok in de modal. */
.wf-pv-intro-title { font-size: 22px; font-weight: 800; color: var(--wf-title, #a12359); line-height: 1.15; }
.wf-pv-intro-sub { font-size: 15px; color: #8a93a3; }

/* Modal-content: afgeronde hoeken (de header rondt zelf z'n top-hoeken af). GEEN overflow:hidden,
   anders knipt hij de openklappende magic edit-card af. */
.wf-flows-modal { border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { .wf-flows-header, .wf-flows-modalhead { animation: none; } }

/* ── Preview-modal ─────────────────────────────────────────────────────────── */
/* Breed genoeg om de projecttekst comfortabel te lezen, maar meesizend op kleinere schermen. */
.wf-flow-preview-dialog { max-width: 1200px; width: calc(100% - 2rem); }

/* Symmetrisch centreren: de modal groeit naar beneden en krijgt dus een eigen verticale scrollbar;
   die staat rechts en duwt de gecentreerde dialog scheef (meer marge rechts) op smalle schermen.
   scrollbar-gutter reserveert de goot aan BEIDE zijden → gelijke marge links en rechts. */
#flowPreviewModal { scrollbar-gutter: stable both-edges; }

/* Geen eigen binnen-scroll: de modal groeit naar beneden en de pagina-scrollbar scrolt mee.
   Ruime, meeschalende padding (royaal op grote schermen, minimaal op mobiel). */
.wf-pv-body { padding: clamp(14px, 3.5vw, 72px) clamp(12px, 6.5vw, 150px); }
/* Titel ("Uw referentie staat klaar") ~30px hoger: minder ruimte tussen de gradient-header en de content.
   Onderaan bijna geen extra padding — de 25px-marge van de content-wrap houdt de lucht boven de footer. */
.wf-pv-body { padding-top: clamp(12px, 2vw, 42px); padding-bottom: 0; }

/* Grijze card om de content en om de hoofdfoto (zoals cards elders in het CMS). */
.wf-pv-card {
  position: relative;
  background: #f6f7f9;
  border: 1px solid #e9edf2;
  border-radius: 18px;
  padding: clamp(18px, 2.5vw, 34px);
  margin-bottom: 22px;                 /* precies de knop-overhang (half van 44px): knop eindigt op de rand */
}
.wf-pv-hero-card { padding: 10px; }    /* dunne grijze rand om de foto */

/* De wrap (foto/content-card + magic-card eronder) is een flex-kolom, zodat verticale marges NIET
   samenvallen (anders plakt de opengeklapte kaart tegen de knop). Resultaat: overal 25px lucht.
   - card-marge 22px = de knop-overhang (knop eindigt op de rand);
   - 25px ónder de wrap  → 25px onder de border-knop (dicht) én onder de opengeklapte kaart;
   - 25px bóven de opengeklapte kaart → 25px tussen de knop en de kaart bij uitklappen. */
.wf-pv-body .wf-magic-wrap { display: flex; flex-direction: column; margin-bottom: 25px; }
.wf-pv-body .wf-magic-open .wf-magic-card { margin-top: 25px; }
/* Content-sectie 50px dichter op de hoofdfoto (bij DICHTE foto-magic-card). Klapt de foto-magic-card uit,
   dan vervalt de negatieve marge zodat de content netjes NAAR BENEDEN schuift i.p.v. eronder te vallen. */
#pvChatWrap { margin-top: -50px; transition: margin-top .35s cubic-bezier(.16, 1, .3, 1); }
#pvPhotoWrap.wf-magic-open + #pvChatWrap { margin-top: 0; }
/* De dichtgeklapte "Vraag Webfix AI"-kaart houdt ~50px resthoogte (padding/rand die grid-0fr niet
   wegneemt). Is pvChatWrap het laatste content-blok, dan compenseren we dat zodat de footer op 25px
   volgt i.p.v. ~76px eronder (zelfde truc als de -50px hierboven voor de foto-kaart). */
#pvChatWrap:not(.wf-magic-open):last-child { margin-bottom: -50px; }

/* Knoppen die op de onderrand van de card "hangen" (linksonder), zodat duidelijk is dat ze erbij horen. */
.wf-pv-card-actions {
  position: absolute;
  left: clamp(14px, 2.5vw, 28px);
  bottom: 0;
  transform: translateY(50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

/* Uitklap-panelen (foto aanpassen / AI-chat) onder de bijbehorende card. */
.wf-pv-panel {
  border: 1px solid #e9edf2;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  margin-bottom: 1.5rem;
}

/* Divider boven de hoofdknoppen: 25px lucht erboven, de twee knoppen gecentreerd eronder. */
.wf-pv-body > *:last-child { margin-bottom: 0; }   /* geen dubbele marge boven de divider */
.wf-pv-footer { border-top: 1px solid #e9edf2; justify-content: center; margin-top: 25px; padding: 25px 16px; }
.wf-pv-footer > * { margin: 0; }   /* neutraliseer de thema-regel .modal-footer > * { margin: … } → exact 25px */
.wf-pv-footer-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; width: 100%; }

/* Content-voortgangsoverlay: hergebruikt .wf-flow-hero-overlay, maar rondt met de content-card mee en
   blokkeert de knoppen op de card-rand zolang de tekst-AI werkt. */
.wf-pv-content-overlay { border-radius: 18px; }
.wf-pv-content-card.is-busy .wf-pv-card-actions { pointer-events: none; opacity: .5; }

/* Dunne, lichte scheidingslijn tussen secties in de magic edit-card (bv. AI-bewerking vs. foto-kiezen). */
.wf-pv-divider { border: 0; border-top: 1px solid #eceef4; margin: 22px 0; }

@media (max-width: 575.98px) {
  .wf-pv-body { padding: 12px; }
  .wf-pv-card { padding: 16px; border-radius: 14px; margin-bottom: 22px; }
  .wf-pv-content-overlay { border-radius: 14px; }
  /* Card-rand-knoppen (Foto aanpassen / Zelf aanpassen + Wijzigen) gecentreerd óp de border, náást elkaar,
     op normale (sm) grootte. */
  .wf-pv-card-actions { left: 50%; transform: translate(-50%, 50%); gap: 8px; justify-content: center; flex-wrap: nowrap; }
  /* "Zelf aanpassen" blijft een rond potlood-knopje, maar op normale sm-grootte (44px). */
  #pvSelfEditBtn { width: 44px; height: 44px; padding: 0; gap: 0; justify-content: center; }
  #pvSelfEditBtn .wf-btn-body { display: none; }
  /* Hoofdknoppen volle breedte; "Nu publiceren" bovenaan (staat eerst in de DOM). */
  .wf-pv-footer-btns { flex-direction: column; gap: 10px; }
  .wf-pv-footer-btns > * { width: 100%; justify-content: center; }
}

/* Hoofdfoto: terwijl de AI een nieuwe versie maakt leggen we een dimlaag met een draaiende spinner
   (merk-gradient-ring) in het midden en een voortgangsbalk eronder — zodat het duidelijk opvalt. */
.wf-flow-hero-wrap { position: relative; }

/* Donkere overlay + gecentreerde spinner en balk. */
.wf-flow-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 2;
  border-radius: .5rem;
  background: rgba(0, 2, 41, .5);
  backdrop-filter: blur(1px);
  transition: opacity .45s ease;   /* wegfaden zodra de nieuwe foto klaar is */
}
.wf-flow-hero-overlay.is-hiding { opacity: 0; }
/* Witte subzin op de dimlaag. */
.wf-photo-busy-text { color: rgba(255, 255, 255, .92); font-size: 14px; font-weight: 500; }
/* "Webfix AI" in de busy-tekst: Webfix WIT (leesbaar op de donkere overlay) + AI in de merk-gradient. */
.wf-busy-brand { font-weight: 800; color: #fff; }
.wf-busy-brand > span { background: linear-gradient(90deg, #b0d136 0%, #da176c 50%, #32bcee 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* De grote gradient-progressbar (§11) op de dimlaag: begrensde breedte, gecentreerd. */
.wf-flow-hero-overlay .wf-prog { width: 300px; max-width: 72%; }

/* Normale ring-spinner in onze gradientkleuren (rustig tempo). */
.wf-flow-hero-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--wf-green, #b0d136), var(--wf-pink, #da176c), var(--wf-blue, #32bcee), var(--wf-green, #b0d136));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
  animation: wf-hero-spin 1s linear infinite;
}
@keyframes wf-hero-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wf-flow-hero-spinner { animation-duration: 2.4s; } }

/* Voortgangsbalk onder de spinner — wat breder en hoger, goed leesbaar op de dimlaag. */
.wf-flow-hero-overlay .wf-bar { position: static; width: 260px; max-width: 70%; margin: 0; height: 10px; background: rgba(255, 255, 255, .28); }

/* ── Nieuwsbrief-flow ────────────────────────────────────────────────────────
   De nieuwsbrief-flow heeft meer stappen dan de andere: naast foto's en een toelichting kiest de klant
   items van zijn eigen website en een sjabloon. Deze onderdelen gebruiken dezelfde kaarten en kleuren
   als de rest van de flows — alleen de twee keuzelijsten zijn nieuw. */

.wf-flow-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; margin-right: 8px;
    border-radius: 999px; background: var(--wf-primary, #a12359); color: #fff;
    font-size: .82rem; font-weight: 700; vertical-align: middle;
}

/* Aanvinklijst met wat er recent op de website is geplaatst. */
.wf-flow-picklist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.wf-flow-pick {
    display: flex; gap: 11px; align-items: flex-start;
    border: 1px solid rgba(8, 62, 178, .12); border-radius: 12px; padding: 12px 14px;
    background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.wf-flow-pick:hover { border-color: rgba(161, 35, 89, .35); }
.wf-flow-pick:has(input:checked) { border-color: var(--wf-primary, #a12359); box-shadow: 0 2px 10px rgba(161, 35, 89, .12); }
.wf-flow-pick input { margin-top: 3px; flex: 0 0 auto; }
.wf-flow-pick-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wf-flow-pick-mod { font-size: .72rem; color: #7b8496; display: inline-flex; align-items: center; gap: 6px; }
.wf-flow-pick-title { font-weight: 600; font-size: .9rem; color: #1f2937; }
.wf-flow-pick-sum { font-size: .8rem; color: #6b7484; line-height: 1.45; }

/* Sjabloonkeuze. Zelfde miniaturen als in de opmaakbalk van de editor. */
.wf-flow-tpls { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.wf-flow-tpl { cursor: pointer; }
.wf-flow-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.wf-flow-tpl-body {
    display: block; border: 2px solid rgba(8, 62, 178, .1); border-radius: 12px;
    padding: 8px 8px 12px; background: #fff; transition: border-color .15s, transform .15s;
}
.wf-flow-tpl:hover .wf-flow-tpl-body { border-color: rgba(161, 35, 89, .35); transform: translateY(-2px); }
.wf-flow-tpl input:checked + .wf-flow-tpl-body {
    border-color: var(--wf-primary, #a12359); box-shadow: 0 4px 16px rgba(161, 35, 89, .16);
}
.wf-flow-tpl-thumb { display: block; overflow: hidden; border-radius: 8px; background: #f3f5f9; aspect-ratio: 4 / 3; }
.wf-flow-tpl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.wf-flow-tpl-name { display: block; margin-top: 9px; font-weight: 600; font-size: .88rem; color: #1f2937; }

/* ── Fase A: track-changes / diff in de preview-leesweergave ──────────────────
   Na een AI-herschrijf staan de gewijzigde stukken gearceerd (.wf-diff-ins) met rechtsboven een klein
   terugdraai-pijltje (.wf-diff-undo) dat díe ene wijziging terug naar de oude tekst zet. Zachte merk-groen
   tint zodat het leesbaar blijft op de grijze content-kaart. */
.wf-diff-ins {
    position: relative;
    background: rgba(176, 209, 54, .22);   /* zachte tint van --wf-green, geen volle merkkleur */
    border-radius: 5px;
    padding: 1px 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    transition: background .15s;
}
.wf-diff-ins:hover { background: rgba(176, 209, 54, .34); }

.wf-diff-undo {
    position: absolute;
    top: -9px;
    right: -9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid var(--wf-border, #e2e8f0);
    border-radius: 50%;
    background: #fff;
    color: var(--wf-text-soft, #475569);
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    opacity: .55;
    transform: scale(.85);
    transition: opacity .12s, transform .12s, color .12s, border-color .12s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
}
.wf-diff-ins:hover .wf-diff-undo,
.wf-diff-undo:hover,
.wf-diff-undo:focus-visible { opacity: 1; transform: scale(1); }
.wf-diff-undo:hover { color: var(--wf-pink, #da176c); border-color: var(--wf-pink, #da176c); }
.wf-diff-undo i { pointer-events: none; }

/* Dark mode: iets zachtere tint + donkere knop-pill. */
[data-bs-theme="dark"] .wf-diff-ins { background: rgba(176, 209, 54, .20); }
[data-bs-theme="dark"] .wf-diff-undo { background: #1e293b; border-color: #334155; color: #cbd5e1; }
.wf-flow-tpl-desc { display: block; font-size: .76rem; color: #7b8496; line-height: 1.4; }
