/* =========================================================
   BoligKlar — Chat Flow Widget
   ---------------------------------------------------------
   All styles scoped under `.bk-chatflow` so it drops into
   any page without leaking. Depends on bk-tokens.css for
   --bk-* custom properties.
   ========================================================= */

.bk-chatflow,
.bk-chatflow *,
.bk-chatflow *::before,
.bk-chatflow *::after {
  box-sizing: border-box;
}

/* Primary actions in chatflow — ink CTA (koncept), ikke signatur-grøn */
.bk-chatflow {
  --bk-cf-btn-primary-bg: var(--bk-black);
  --bk-cf-btn-primary-fg: var(--bk-cream, #FBFAF7);
  --bk-cf-btn-primary-bg-hover: #2b2b27;
  --bk-cf-btn-primary-bg-disabled: var(--bk-grey-300);
  --bk-cf-btn-primary-fg-disabled: var(--bk-grey-700);
}

/* Host wrapper (set on mount parent) — keeps chat within viewport */
.bk-chatflow-host {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.bk-chatflow-host > .bk-chatflow {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

/* Standalone embed without viewport host */
:not(.bk-chatflow-host) > .bk-chatflow {
  min-height: 600px;
}

.bk-chatflow {
  --bk-cf-radius-bubble: 16px;
  --bk-cf-radius-card: 16px;
  --bk-cf-radius-control: 12px;
  --bk-cf-avatar: 36px;
  --bk-cf-max-bubble: 540px;
  --green-dark: var(--bk-green-deep, #4A553F);

  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  background: var(--bk-cream, #FBFAF7);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius-xl);
  overflow: hidden;
  font-family: var(--bk-font-sans);
  color: var(--bk-fg);
  -webkit-font-smoothing: antialiased;
}

.bk-chatflow > .bk-cf-context,
.bk-chatflow > .bk-cf-chat {
  min-height: 0;
}

.bk-chatflow[data-compact="true"] {
  grid-template-columns: 1fr;
}

/* =========================================================
   Left pane — context / brand / value props
   ========================================================= */

.bk-cf-context {
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border-right: 1px solid var(--bk-border);
  background: var(--bk-cream, #FBFAF7);
  overflow-y: auto;
}

.bk-cf-context__logo {
  height: 96px;
  width: auto;
  margin-bottom: 64px;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.bk-cf-context__eyebrow {
  font-family: var(--bk-font-mono, 'Space Mono', ui-monospace, monospace);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: var(--bk-label-tracking, 0.14em);
  text-transform: uppercase;
  color: var(--bk-label, #9C5B36);
  margin-bottom: 28px;
  max-width: 22ch;
  line-height: 1.5;
}

.bk-cf-context__headline {
  font-family: var(--bk-font-serif);
  font-weight: 300;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bk-fg);
  margin: 0 0 24px;
  text-wrap: pretty;
}

.bk-cf-context__headline em {
  font-style: italic;
  color: var(--bk-green);
}

.bk-cf-context__lede {
  font-family: var(--bk-font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bk-fg-muted);
  margin: 0 0 40px;
  max-width: 34ch;
}

.bk-cf-context__trust {
  font-family: var(--bk-font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bk-fg-muted);
  margin: 0 0 32px;
}

.bk-cf-context__pillars {
  list-style: none;
  margin: 0 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bk-cf-context__pillars li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--bk-fg);
  line-height: 1.5;
  max-width: 30ch;
}

.bk-cf-check {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--bk-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.bk-cf-check svg { width: 14px; height: 14px; }

.bk-cf-context__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--bk-border);
}

.bk-cf-avatar-mark {
  width: var(--bk-cf-avatar);
  height: var(--bk-cf-avatar);
  border-radius: 99px;
  background: var(--bk-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.bk-cf-avatar-mark img {
  width: 75%;
  height: auto;
  display: block;
}

.bk-cf-context__footer-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.bk-cf-context__footer-text strong {
  font-weight: 600;
  font-size: 14px;
  color: var(--bk-fg);
}

.bk-cf-context__footer-text .bk-cf-wordmark {
  font-weight: 400;
}

.bk-cf-wordmark {
  font-family: var(--bk-font-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--bk-fg);
}
.bk-cf-wordmark em {
  font-style: italic;
  font-weight: 400;
  color: var(--bk-green);
}

.bk-cf-context__footer-text span {
  font-size: 12px;
  color: var(--bk-fg-muted);
}

/* =========================================================
   Right pane — chat
   ========================================================= */

.bk-cf-chat {
  display: flex;
  flex-direction: column;
  background: var(--bk-cream, #FBFAF7);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* Progress bar */
.bk-cf-progress {
  flex: 0 0 auto;
  padding: 24px 32px 16px;
  background: var(--bk-cream, #FBFAF7);
  border-bottom: 1px solid transparent;
  z-index: 2;
}

.bk-cf-progress__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--bk-fg-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bk-cf-progress__back {
  background: none;
  border: 0;
  padding: 4px 8px;
  margin: -4px -8px;
  color: var(--bk-fg-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background var(--bk-dur-fast) var(--bk-ease), color var(--bk-dur-fast) var(--bk-ease);
}
.bk-cf-progress__back:hover { background: var(--bk-grey-100); color: var(--bk-fg); }
.bk-cf-progress__back[hidden] { display: none; }
.bk-cf-progress__back svg { width: 12px; height: 12px; }

.bk-cf-progress__track {
  height: 4px;
  background: var(--bk-grey-200);
  border-radius: 99px;
  overflow: hidden;
}

.bk-cf-progress__fill {
  height: 100%;
  background: var(--bk-green);
  border-radius: 99px;
  width: 0;
  transition: width var(--bk-dur-slow) var(--bk-ease);
}

/* Messages stream — sole scroll region above fixed composer */
.bk-cf-stream {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: auto;
}

.bk-cf-stream::-webkit-scrollbar { width: 8px; }
.bk-cf-stream::-webkit-scrollbar-thumb { background: var(--bk-grey-200); border-radius: 99px; }

/* Message rows */
.bk-cf-row {
  display: flex;
  gap: 12px;
  max-width: 100%;
  animation: bk-cf-in var(--bk-dur-base) var(--bk-ease) both;
}

.bk-cf-row--bot { justify-content: flex-start; }

.bk-cf-row--no-avatar {
  gap: 0;
}
.bk-cf-row--user {
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.bk-cf-row--answer {
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 4px;
}

@keyframes bk-cf-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bk-cf-avatar {
  width: 32px;
  height: 32px;
  border-radius: 99px;
  background: var(--bk-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 2px;
  overflow: hidden;
}
.bk-cf-avatar img { width: 75%; height: auto; }

.bk-cf-avatar--alexandra {
  background: var(--bk-grey-100);
  padding: 0;
}

.bk-cf-avatar--alexandra img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-cf-avatar__mono {
  font-family: var(--bk-font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--bk-cream, #FBFAF7);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
}
.bk-cf-avatar__mono em {
  font-style: italic;
  color: var(--bk-tan, #EAD3AC);
}

/* Bubbles */
.bk-cf-bubble {
  font-family: var(--bk-font-sans);
  font-size: 15px;
  line-height: 1.55;
  padding: 12px 16px;
  border-radius: var(--bk-cf-radius-bubble);
  border: 1px solid var(--bk-border);
  background: var(--bk-white);
  color: var(--bk-fg);
  max-width: var(--bk-cf-max-bubble);
  word-wrap: break-word;
}

.bk-cf-bubble--bot {
  border-top-left-radius: 4px;
}

.bk-cf-bubble--user {
  background: var(--bk-black);
  color: var(--bk-cream, #FBFAF7);
  border-color: var(--bk-black);
  border-top-right-radius: 4px;
}

.bk-cf-bubble a,
.bk-cf-option a,
.bk-cf-waitlist-cta a {
  color: var(--bk-label, #9C5B36);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bk-cf-bubble a:hover,
.bk-cf-option a:hover,
.bk-cf-waitlist-cta a:hover {
  color: var(--bk-fg);
}

.bk-cf-bubble--user a {
  color: var(--bk-tan, #EAD3AC);
}

/* Edit pencil next to user bubbles */
.bk-cf-bubble__edit {
  background: transparent;
  border: 0;
  padding: 6px;
  color: var(--bk-fg-subtle);
  cursor: pointer;
  border-radius: 99px;
  /* Always visible (lower opacity) — full strength on hover. Edit-affordance
     must be discoverable on touch where there's no hover state. */
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--bk-dur-fast) var(--bk-ease),
              background var(--bk-dur-fast) var(--bk-ease),
              color var(--bk-dur-fast) var(--bk-ease);
  flex: 0 0 auto;
}
.bk-cf-row--user:hover .bk-cf-bubble__edit { opacity: 1; color: var(--bk-fg); }
.bk-cf-bubble__edit:hover {
  background: var(--bk-grey-100);
  color: var(--bk-fg);
  opacity: 1;
}
.bk-cf-bubble__edit:focus-visible {
  opacity: 1;
  outline: 2px solid var(--bk-green);
  outline-offset: 2px;
}
@media (hover: none) {
  /* Touch devices: hover state never fires, so make the pencil
     permanently full opacity so it's reliably tappable. */
  .bk-cf-bubble__edit { opacity: 0.9; }
}

/* Question bubble (BK asks something specific) */
.bk-cf-bubble--question .bk-cf-q-title {
  font-weight: 600;
  margin: 0;
}
.bk-cf-bubble--question .bk-cf-q-sub {
  font-size: 14px;
  color: var(--bk-fg-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* Answer label (small "Dit svar" caption above input card) */
.bk-cf-answer-label {
  font-family: var(--bk-font-mono, 'Space Mono', ui-monospace, monospace);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--bk-label-tracking, 0.14em);
  text-transform: uppercase;
  color: var(--bk-label, #9C5B36);
  padding-right: 4px;
}

.bk-cf-card--answer {
  align-self: flex-end;
  max-width: var(--bk-cf-max-bubble);
  width: 100%;
  border-color: var(--bk-border-strong);
  
}

.bk-cf-row--answer:has(.bk-cf-field-group) {
  align-items: stretch;
  width: 100%;
  max-width: min(580px, 100%);
}

.bk-cf-row--answer:has(.bk-cf-field-group) .bk-cf-card--answer {
  align-self: stretch;
  max-width: none;
  width: 100%;
  padding: 18px 20px 16px;
}

.bk-cf-bubble p { margin: 0; }
.bk-cf-bubble p + p { margin-top: 6px; }

.bk-cf-avatar-spacer {
  flex: 0 0 32px;
  width: 32px;
}

.bk-cf-row--loan-chips {
  margin-top: -2px;
  margin-bottom: 2px;
}

.bk-cf-loan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--bk-cf-max-bubble);
}

.bk-cf-loan-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--green-dark);
  border-radius: 99px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--bk-fg);
  background: var(--bk-white);
}

.bk-cf-loan-chip__check {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bk-cf-loan-chip__check svg {
  width: 14px;
  height: 14px;
}

.bk-cf-loan-chip__label {
  white-space: nowrap;
}

.bk-cf-bubble .bk-cf-bubble__meta {
  display: block;
  font-size: 12px;
  color: var(--bk-fg-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.bk-cf-bubble--user .bk-cf-bubble__meta { color: rgba(255,255,255,0.6); }

/* Typing indicator */
.bk-cf-typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 18px;
}
.bk-cf-typing span {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--bk-grey-500);
  animation: bk-cf-blink 1.2s infinite var(--bk-ease);
}
.bk-cf-typing span:nth-child(2) { animation-delay: 0.15s; }
.bk-cf-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bk-cf-blink {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* =========================================================
   Question card (lives inside bot row, wraps inputs)
   ========================================================= */

.bk-cf-card {
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-cf-radius-card);
  padding: 20px;
  max-width: var(--bk-cf-max-bubble);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bk-cf-card__sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--bk-fg-muted);
  margin: 0;
}

/* =========================================================
   Field group (samlet tal-formular)
   ========================================================= */

.bk-cf-field-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.bk-cf-field-group__error {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: #c0392b;
  background: #fff0f0;
  border: 1px solid #f5c0c0;
  border-radius: var(--bk-cf-radius-control);
}

.bk-cf-field-group__error[hidden] {
  display: none;
}

.bk-cf-composer__error {
  margin: 8px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #c0392b;
  background: #fff0f0;
  border: 1px solid #f5c0c0;
  border-radius: var(--bk-cf-radius-control);
}

.bk-cf-composer__error[hidden] {
  display: none;
}

.bk-cf-field-group__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bk-cf-field-group__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bk-cf-field-group__section-title {
  margin: 0;
  padding: 4px 2px 2px;
  font-family: var(--bk-font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bk-fg-muted);
}

.bk-cf-field-group__section-divider {
  height: 1px;
  margin: 8px 0 4px;
  background: var(--bk-border);
}

.bk-cf-field-group__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(152px, 172px);
  gap: 16px 28px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-cf-radius-control);
  background: var(--bk-grey-50);
}

.bk-cf-field-group__label-wrap {
  min-width: 0;
  padding-right: 4px;
}

.bk-cf-field-group__label-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bk-cf-field-group__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bk-fg);
}

.bk-cf-field-group__help-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bk-border);
  border-radius: 99px;
  background: var(--bk-grey-100);
  color: var(--bk-fg-muted);
  cursor: pointer;
  transition:
    border-color var(--bk-dur-fast) var(--bk-ease),
    color var(--bk-dur-fast) var(--bk-ease),
    background var(--bk-dur-fast) var(--bk-ease);
}

.bk-cf-field-group__help-btn[aria-expanded='true'] {
  border-color: var(--bk-green);
  color: var(--bk-green-deep);
  background: var(--bk-green-soft);
}

.bk-cf-field-group__help-btn:hover {
  border-color: var(--bk-border-strong);
  color: var(--bk-fg);
}

.bk-cf-field-group__help-panel {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--bk-border);
  font-size: 13px;
  line-height: 1.55;
  color: var(--bk-fg-muted);
}

.bk-cf-field-group__help-panel[hidden] {
  display: none;
}

.bk-cf-field-group__hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--bk-fg-muted);
}

.bk-cf-field-group__input-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  max-width: 172px;
  justify-self: end;
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: 99px;
  padding: 6px 8px 6px 14px;
  min-height: 44px;
}

.bk-cf-field-group__input-wrap:focus-within {
  border-color: var(--bk-green);
  outline: 2px solid var(--bk-green-soft);
  outline-offset: 0;
  box-shadow:none;
  background: var(--bk-white);
}

.bk-cf-field-group__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 3.5ch;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  color: var(--bk-fg);
  outline: none;
}

.bk-cf-field-group__suffix {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--bk-fg-muted);
  padding-right: 2px;
  white-space: nowrap;
}

.bk-cf-field-group__info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bk-cf-field-group__info-link,
.bk-cf-field-group__quick-action {
  appearance: none;
  border: 1px solid var(--bk-border, #E3E1DB);
  background: var(--bk-white, #fff);
  color: var(--bk-green);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 99px;
  cursor: pointer;
}

.bk-cf-field-group__info-link:hover,
.bk-cf-field-group__quick-action:hover {
  background: var(--bk-green-soft);
}

.bk-cf-field-group__quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bk-cf-field-group__footer {
  display: none;
}

.bk-cf-field-group__send {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 99px;
  background: var(--bk-cf-btn-primary-bg);
  color: var(--bk-cf-btn-primary-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--bk-dur-fast) var(--bk-ease);
}

.bk-cf-field-group__send-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bk-cf-field-group__send-icon svg {
  width: 18px;
  height: 18px;
}

.bk-cf-composer__wrap--field-submit {
  flex: 1;
  background: transparent;
  box-shadow:none;
  padding: 0;
}

.bk-cf-composer__wrap--field-submit:focus-within {
  background: transparent;
  box-shadow:none;
}

.bk-cf-composer[data-mode='field-group'] {
  padding: 10px 24px 16px;
  border-top: 1px solid var(--bk-border);
  background: var(--bk-white);
}

/* Tal-formular: stream fylder kun indhold, så der ikke er stort hul over Send-knappen */
.bk-cf-chat:has(.bk-cf-composer[data-mode='field-group']) .bk-cf-stream {
  flex: 0 1 auto;
  max-height: calc(100dvh - 12.5rem);
  max-height: calc(100svh - 12.5rem);
  padding-bottom: 8px;
}

.bk-cf-field-group__composer-cta {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 99px;
  background: var(--bk-cf-btn-primary-bg);
  color: var(--bk-cf-btn-primary-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--bk-dur-fast) var(--bk-ease);
}

.bk-cf-field-group__composer-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bk-cf-field-group__composer-cta-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 480px) {
  .bk-cf-field-group__row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
  }

  .bk-cf-field-group__input-wrap {
    max-width: none;
    justify-self: stretch;
  }
}

/* =========================================================
   Choice options
   ========================================================= */

.bk-cf-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bk-cf-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-cf-radius-control);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--bk-fg);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: border-color var(--bk-dur-fast) var(--bk-ease),
              background var(--bk-dur-fast) var(--bk-ease),
              transform var(--bk-dur-fast) var(--bk-ease);
}

.bk-cf-option:hover {
  border-color: var(--bk-green);
  background: var(--bk-grey-50);
}

.bk-cf-option:active { transform: translateY(1px); }

.bk-cf-option:focus-visible {
  outline: 2px solid var(--bk-green);
  outline-offset: 2px;
}

/* Cross-link hierarki (stærk / sekundær / svag) */
.bk-cf-option--primary {
  border-width: 2px;
  border-color: var(--bk-green);
  background: var(--bk-green-soft);
}

.bk-cf-option--primary:hover {
  border-color: var(--bk-green-deep);
  background: var(--bk-green-soft-2);
}

.bk-cf-option--secondary {
  border-style: dashed;
  border-color: var(--bk-grey-300);
  background: var(--bk-grey-50);
  font-weight: 500;
}

.bk-cf-option--secondary:hover {
  border-color: var(--bk-green);
}

.bk-cf-option--ghost {
  padding: 6px 2px;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--bk-fg-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  justify-content: flex-start;
}

.bk-cf-option--ghost:hover {
  color: var(--bk-green-deep);
  background: transparent;
  transform: none;
}

.bk-cf-options--cross-weak {
  gap: 8px;
}

.bk-cf-options--cross-weak .bk-cf-option--primary {
  border-width: 1px;
  border-style: solid;
  background: var(--bk-white);
}

.bk-cf-option__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.bk-cf-option__hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--bk-fg-muted);
}

.bk-cf-option__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bk-green-deep);
  flex: 0 0 auto;
}

.bk-cf-option__check {
  width: 20px; height: 20px; border-radius: 12px;
  border: 1.5px solid var(--bk-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: all var(--bk-dur-fast) var(--bk-ease);
}

.bk-cf-option[aria-pressed="true"] .bk-cf-option__check {
  background: transparent;
  border-color: var(--bk-green);
  color: var(--bk-green);
}

.bk-cf-option[aria-pressed="true"] {
  border-color: var(--bk-green);
  background: var(--bk-green-soft);
}

.bk-cf-option__check svg { width: 12px; height: 12px; opacity: 0; transition: opacity var(--bk-dur-fast); }
.bk-cf-option[aria-pressed="true"] .bk-cf-option__check svg { opacity: 1; }

/* =========================================================
   Scale (1–5)
   ========================================================= */

.bk-cf-scale {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bk-cf-scale__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.bk-cf-scale__btn {
  aspect-ratio: 1;
  border: 1px solid var(--bk-border);
  background: var(--bk-white);
  border-radius: var(--bk-cf-radius-control);
  font: inherit;
  font-weight: 600;
  font-size: 18px;
  color: var(--bk-fg);
  cursor: pointer;
  transition: all var(--bk-dur-fast) var(--bk-ease);
}
.bk-cf-scale__btn:hover { border-color: var(--bk-green); }
.bk-cf-scale__btn[aria-pressed="true"] {
  background: var(--bk-green);
  color: var(--bk-white);
  border-color: var(--bk-green);
}

.bk-cf-scale__legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--bk-fg-muted);
}

/* =========================================================
   Result card
   ========================================================= */

.bk-cf-result {
  background: var(--bk-white);
  color: var(--bk-fg);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-cf-radius-card);
  padding: 24px 24px 20px;
  max-width: var(--bk-cf-max-bubble);
  width: 100%;
  display: flex;
  flex-direction: column;
  
}

.bk-cf-result__eyebrow {
  font-family: var(--bk-font-mono, 'Space Mono', ui-monospace, monospace);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--bk-label-tracking, 0.14em);
  text-transform: uppercase;
  color: var(--bk-label, #9C5B36);
  margin-bottom: 18px;
}

/* Hero statistic: setup text small, the actual number big and italic-green */
.bk-cf-result__headline {
  font-family: var(--bk-font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 20px;
  color: var(--bk-fg-muted);
  text-wrap: pretty;
}

.bk-cf-result__headline em {
  display: block;
  margin-top: 6px;
  font-family: var(--bk-font-serif);
  font-style: italic;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--bk-green);
}

/* Supporting stats as a compact, receipt-style table */
.bk-cf-result__stat-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--bk-border);
  margin-top: 4px;
}

.bk-cf-result__stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bk-border);
}
.bk-cf-result__stat:last-child { border-bottom: none; }

.bk-cf-result__stat-label {
  font-size: 14px;
  color: var(--bk-fg-muted);
  font-weight: 500;
  letter-spacing: 0;
}

.bk-cf-result__stat-value {
  font-family: var(--bk-font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--bk-fg);
  text-align: right;
  white-space: nowrap;
}

.bk-cf-result__note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--bk-fg-muted);
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--bk-border);
}

/* =========================================================
   Info card (lighter, callout-style)
   ========================================================= */

.bk-cf-info {
  background: var(--bk-green-soft);
  border-radius: var(--bk-cf-radius-card);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  max-width: var(--bk-cf-max-bubble);
}

.bk-cf-info__icon {
  flex: 0 0 20px;
  color: var(--bk-green-deep);
  margin-top: 2px;
}

.bk-cf-info__body { font-size: 14px; line-height: 1.5; color: var(--bk-fg); }
.bk-cf-info__body strong { color: var(--bk-fg); }

/* =========================================================
   Magic-link confirmation
   ========================================================= */

.bk-cf-magic {
  background: var(--bk-grey-100);
  border-radius: var(--bk-cf-radius-card);
  padding: 24px;
  max-width: var(--bk-cf-max-bubble);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.bk-cf-magic__icon {
  width: 44px; height: 44px;
  border-radius: 99px;
  background: var(--bk-green-soft);
  color: var(--bk-green-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bk-cf-magic__title {
  font-family: var(--bk-font-serif);
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
  font-weight: 400;
  color: var(--bk-fg);
}

.bk-cf-magic__body { font-size: 14px; color: var(--bk-fg-muted); margin: 0; line-height: 1.5; }
.bk-cf-magic__body strong { color: var(--bk-fg); font-weight: 600; }

/* =========================================================
   Composer (bottom freetext bar)
   ========================================================= */

.bk-cf-composer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px 32px 24px;
  background: var(--bk-white);
  border-top: 1px solid var(--bk-border);
  z-index: 4;
}

.bk-cf-composer__wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bk-grey-100);
  border-radius: var(--bk-radius-lg);
  padding: 4px 6px 4px 18px;
  gap: 6px;
  transition: background var(--bk-dur-fast) var(--bk-ease);
  min-height: 48px;
}

.bk-cf-composer__wrap:focus-within {
  background: var(--bk-white);
  box-shadow:none;
}

.bk-cf-composer__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  resize: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 0;
  max-height: 140px;
  outline: none;
  font-family: var(--bk-font-sans);
  color: var(--bk-fg);
}
textarea.bk-cf-composer__input {
  resize: none;
  overflow-y: auto;
}
.bk-cf-composer__input::placeholder { color: var(--bk-fg-subtle); }

.bk-cf-composer__input--number {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.005em;
}
.bk-cf-composer__input--date {
  font-weight: 500;
  font-size: 15px;
  color: var(--bk-fg);
  padding: 9px 0;
}
/* Hide native date picker indicator on most browsers, keep accessible */
.bk-cf-composer__input--date::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

.bk-cf-composer__suffix {
  color: var(--bk-fg-muted);
  font-weight: 500;
  font-size: 14px;
  padding: 0 4px;
  pointer-events: none;
  flex: 0 0 auto;
}

.bk-cf-composer__send {
  width: 40px; height: 40px;
  border-radius: 99px;
  border: 0;
  background: var(--bk-cf-btn-primary-bg);
  color: var(--bk-cf-btn-primary-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  transition: background var(--bk-dur-fast) var(--bk-ease), opacity var(--bk-dur-fast) var(--bk-ease);
}
.bk-cf-composer__send:disabled {
  background: var(--bk-cf-btn-primary-bg-disabled);
  color: var(--bk-cf-btn-primary-fg-disabled);
  cursor: not-allowed;
}
.bk-cf-composer__send svg { width: 16px; height: 16px; }

.bk-cf-composer__skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--bk-border);
  border-radius: 99px;
  background: var(--bk-white);
  color: var(--bk-fg-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
  transition:
    border-color var(--bk-dur-fast) var(--bk-ease),
    color var(--bk-dur-fast) var(--bk-ease),
    background var(--bk-dur-fast) var(--bk-ease);
}
.bk-cf-composer__skip:hover {
  color: var(--bk-fg);
  border-color: var(--bk-border-strong);
  background: var(--bk-grey-100);
}

/* Locked composer (when user has to click options in the chat) */
.bk-cf-composer[data-locked="true"] .bk-cf-composer__wrap {
  background: var(--bk-grey-100);
  box-shadow:none;
  justify-content: center;
  padding: 14px 18px;
}
.bk-cf-composer__locked {
  font-size: 13px;
  color: var(--bk-fg-subtle);
  text-align: center;
  font-style: italic;
  font-family: var(--bk-font-serif);
}

/* Submit-only composer (multi-select / consent / file: send button right) */
.bk-cf-composer__wrap--submit {
  background: var(--bk-grey-100);
  justify-content: space-between;
  padding: 4px 6px 4px 18px;
}
.bk-cf-composer__wrap--submit:focus-within {
  background: var(--bk-grey-100);
  box-shadow:none;
}
.bk-cf-composer__status {
  flex: 1;
  font-size: 13px;
  color: var(--bk-fg-muted);
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0 4px;
}
.bk-cf-composer__status:empty::before {
  content: 'Vælg ovenfor og send';
  color: var(--bk-fg-subtle);
  font-weight: 400;
  font-style: italic;
  font-family: var(--bk-font-serif);
  font-size: 14px;
}

.bk-cf-composer__hint {
  font-size: 11px;
  color: var(--bk-fg-subtle);
  margin: 0 0 0 18px;
}

/* When current step doesn't allow freetext, composer is hidden */
.bk-cf-composer[hidden] { display: none; }

/* =========================================================
   Compact / mobile
   ========================================================= */

.bk-chatflow[data-compact="true"] .bk-cf-context {
  display: none;
}

.bk-chatflow[data-compact="true"] .bk-cf-mobile-header {
  display: flex;
}

.bk-cf-mobile-header {
  display: none;
  flex: 0 0 auto;
  padding: 16px 20px 8px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--bk-border);
  background: var(--bk-white);
  z-index: 3;
}

.bk-cf-mobile-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.bk-cf-mobile-header img {
  height: 18px;
  width: auto;
}

.bk-cf-mobile-header__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.bk-cf-mobile-header__meta strong { font-size: 13px; font-weight: 600; color: var(--bk-fg); }
.bk-cf-mobile-header__meta .bk-cf-wordmark { font-size: 17px; font-weight: 400; }
.bk-cf-mobile-header__meta span {
  font-family: var(--bk-font-mono, 'Space Mono', ui-monospace, monospace);
  font-size: 11px;
  color: var(--bk-label, #9C5B36);
  font-weight: 400;
  letter-spacing: var(--bk-label-tracking, 0.14em);
  text-transform: uppercase;
}

.bk-cf-mobile-header__close {
  background: var(--bk-grey-100);
  border: 0;
  width: 36px; height: 36px;
  border-radius: 99px;
  color: var(--bk-fg-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bk-chatflow[data-compact="true"] .bk-cf-progress {
  padding: 14px 20px 12px;
}
.bk-chatflow[data-compact="true"] .bk-cf-stream {
  padding: 24px 16px 16px;
}
.bk-chatflow[data-compact="true"] .bk-cf-composer {
  padding: 12px 16px 16px;
}

.bk-chatflow[data-compact="true"] .bk-cf-composer[data-mode='field-group'] {
  padding: 8px 16px max(12px, env(safe-area-inset-bottom, 0px));
}

.bk-chatflow[data-compact="true"] .bk-cf-chat:has(.bk-cf-composer[data-mode='field-group']) .bk-cf-stream {
  padding: 16px 16px 6px;
  max-height: calc(100dvh - 11rem);
  max-height: calc(100svh - 11rem);
}

.bk-chatflow[data-compact="true"] .bk-cf-chat:has(.bk-cf-composer[data-mode='field-group']) .bk-cf-progress {
  padding: 10px 16px 8px;
}

.bk-chatflow[data-compact="true"] .bk-cf-chat:has(.bk-cf-composer[data-mode='field-group']) .bk-cf-mobile-header {
  padding: 12px 16px 6px;
}

.bk-chatflow[data-compact="true"] .bk-cf-row--answer:has(.bk-cf-field-group) .bk-cf-card--answer {
  padding: 14px 14px 10px;
}

.bk-chatflow[data-compact="true"] .bk-cf-field-group {
  gap: 8px;
}

.bk-chatflow[data-compact="true"] .bk-cf-field-group__section {
  gap: 0;
}
.bk-chatflow[data-compact="true"] .bk-cf-card,
.bk-chatflow[data-compact="true"] .bk-cf-result,
.bk-chatflow[data-compact="true"] .bk-cf-magic,
.bk-chatflow[data-compact="true"] .bk-cf-bubble {
  max-width: 100%;
}
.bk-chatflow[data-compact="true"] .bk-cf-context__headline { font-size: 32px; }

/* Auto-compact via media query for true responsive use */
@media (max-width: 720px) {
  .bk-chatflow:not([data-compact="false"]) { grid-template-columns: 1fr; }
  .bk-chatflow:not([data-compact="false"]) .bk-cf-context { display: none; }
  .bk-chatflow:not([data-compact="false"]) .bk-cf-mobile-header { display: flex; }
}

/* Reveal animation for stream items */

.bk-cf-row[data-anim="false"] { animation: none; }

/* Density: compact spacing */
.bk-chatflow[data-density="compact"] .bk-cf-stream { gap: 10px; }
.bk-chatflow[data-density="compact"] .bk-cf-card { padding: 16px; }
.bk-chatflow[data-density="compact"] .bk-cf-bubble { padding: 10px 14px; }

/* Progress reset (Lånetilbudstjekket: “Nyt tilbud”) */
.bk-cf-progress__label {
  justify-content: space-between;
  align-items: center;
}
.bk-cf-progress__reset {
  background: none;
  border: 0;
  padding: 4px 8px;
  margin: -4px -8px;
  color: var(--bk-green);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
}
.bk-cf-progress__reset:hover { background: var(--bk-grey-100); }
.bk-cf-progress__reset[hidden] { display: none !important; }

/* Choice row icon + chevron */
.bk-cf-option__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}
.bk-cf-option__icon svg {
  width: 18px;
  height: 18px;
  color: var(--bk-green);
}
.bk-cf-option__chev {
  flex: 0 0 auto;
  color: var(--bk-fg-subtle);
  font-size: 14px;
  margin-left: 6px;
}

/* Lånetilbudstjekket: inline offer text (legacy paste-widget) */
.bk-cf-offer-meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.bk-cf-offer-text__template-hint {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bk-fg-muted);
  line-height: 1.45;
}
.bk-cf-offer-text__area {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  outline: none;
  resize: vertical;
  min-height: 96px;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bk-fg);
  background: transparent;
  padding: 0;
  margin: 0;
}
.bk-cf-offer-text__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--bk-border);
  margin-top: 12px;
  padding-top: 12px;
}
.bk-cf-offer-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--bk-fg-subtle);
}
.bk-cf-offer-text__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.bk-cf-offer-text__demo {
  background: none;
  border: 1px solid var(--bk-border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--bk-fg-muted);
  cursor: pointer;
  font-family: inherit;
}
.bk-cf-offer-text__send {
  background: var(--bk-cf-btn-primary-bg);
  color: var(--bk-cf-btn-primary-fg);
  border: none;
  border-radius: 99px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--bk-dur-fast) var(--bk-ease);
}
.bk-cf-offer-text__send:disabled {
  background: var(--bk-cf-btn-primary-bg-disabled);
  color: var(--bk-cf-btn-primary-fg-disabled);
  cursor: not-allowed;
}

/* Analyse-resultat (panel fra gammel React) */
.bk-cf-la-panel {
  margin-left: 0;
  max-width: 520px;
  width: 100%;
}
.bk-cf-la-panel__card {
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: 12px;
  padding: 18px 16px 16px;
}
.bk-cf-la-panel__h2 {
  margin: 0 0 6px;
  font-family: var(--bk-font-serif);
  font-size: clamp(18px, 3.5vw, 22px);
  color: var(--bk-fg);
  line-height: 1.3;
}
.bk-cf-la-panel__intro {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--bk-fg-muted);
  line-height: 1.55;
}
.bk-cf-la-panel__section-cap {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bk-fg-subtle);
  text-transform: uppercase;
  margin-top: 16px;
}
.bk-cf-la-panel__item {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bk-grey-100);
  border: 1px solid var(--bk-border);
  margin-top: 8px;
}
.bk-cf-la-panel__warn {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #fff8e6;
  border: 1px solid #f0e0b4;
  border-radius: 12px;
  font-size: 12px;
  color: var(--bk-fg);
  line-height: 1.5;
}
.bk-cf-la-panel__cta {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 14px;
  text-align: center;
  background: var(--bk-cf-btn-primary-bg);
  color: var(--bk-cf-btn-primary-fg);
  text-decoration: none;
  border-radius: 99px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  box-sizing: border-box;
  transition: background var(--bk-dur-fast) var(--bk-ease);
}
.bk-cf-la-panel__link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--bk-fg-subtle);
  text-decoration: none;
  border-bottom: 1px solid var(--bk-border);
}
.bk-cf-la-panel__disc {
  font-size: 12px;
  color: var(--bk-fg-subtle);
  margin-top: 20px;
  line-height: 1.55;
  padding-top: 16px;
  border-top: 1px solid var(--bk-border);
}
.bk-cf-la-panel__body {
  min-height: 0;
}
.bk-cf-la-panel__footer {
  margin-top: 4px;
}
.bk-cf-la-panel__helper {
  margin: 4px 0 8px;
  font-size: 12px;
  color: var(--bk-fg-muted);
  line-height: 1.55;
}
.bk-cf-la-panel__note {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--bk-fg-subtle);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--bk-grey-100);
  border-radius: 12px;
  border: 1px solid var(--bk-border);
}
.bk-cf-la-panel__item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bk-fg);
  line-height: 1.45;
}
.bk-cf-la-panel__item-amount {
  font-weight: 500;
  color: var(--bk-fg-muted);
  margin-left: 6px;
}
.bk-cf-la-panel__item-reason {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--bk-fg-muted);
  line-height: 1.55;
}
.bk-cf-la-panel__questions-lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--bk-fg-muted);
}
.bk-cf-la-panel__questions {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--bk-fg);
  line-height: 1.6;
}
.bk-cf-la-panel__questions li {
  margin-bottom: 12px;
}
.bk-cf-la-panel__questions li:last-child {
  margin-bottom: 0;
}
.bk-cf-la-panel__warn strong {
  display: block;
  margin-bottom: 4px;
}
.bk-cf-la-panel__warn ul {
  margin: 0;
  padding-left: 18px;
}
.bk-cf-la-panel__continue {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bk-cf-btn-primary-bg);
  color: var(--bk-cf-btn-primary-fg);
  border: none;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  transition: background var(--bk-dur-fast) var(--bk-ease);
}
.bk-cf-la-panel__continue:disabled {
  opacity: 0.55;
  cursor: default;
}
.bk-cf-la-panel__progress {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--bk-fg-subtle);
  text-align: center;
  line-height: 1.45;
  font-weight: 500;
}
.bk-cf-la-err-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-cf-la-err-actions a {
  color: var(--bk-green);
  font-weight: 600;
  font-size: 14px;
}
.bk-cf-la-err-actions button {
  background: var(--bk-cf-btn-primary-bg);
  color: var(--bk-cf-btn-primary-fg);
  border: none;
  border-radius: 99px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--bk-dur-fast) var(--bk-ease);
}

/* Benchmark-vurderinger (grøn / gul / rød) */
.bk-cf-la-panel__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.bk-cf-la-panel__stat {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 99px;
  line-height: 1.3;
}
.bk-cf-la-panel__stat--green {
  background: var(--bk-green-soft);
  color: var(--bk-green-deep);
  border: 1px solid var(--bk-sage, #8C9A7B);
}
.bk-cf-la-panel__stat--yellow {
  background: var(--bk-label-soft, #F0E4DA);
  color: var(--bk-label, #9C5B36);
  border: 1px solid var(--bk-tan, #EAD3AC);
}
.bk-cf-la-panel__stat--red {
  background: #fff0f0;
  color: #a83232;
  border: 1px solid #f5c0c0;
}
.bk-cf-la-panel__bank-tip {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--bk-fg);
  background: var(--bk-green-soft);
  border: 1px solid var(--bk-sage, #8C9A7B);
  border-radius: 12px;
}
.bk-cf-la-panel__note--muted {
  margin-top: 0;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 11px;
}
.bk-cf-la-panel__disc--follow {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
}
.bk-cf-la-panel__rating {
  margin-top: 10px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--bk-border);
  background: var(--bk-white);
}
.bk-cf-la-panel__rating--green {
  border-left: 4px solid var(--bk-green);
  background: var(--bk-green-soft);
}
.bk-cf-la-panel__rating--yellow {
  border-left: 4px solid var(--bk-label, #9C5B36);
  background: var(--bk-label-soft, #F0E4DA);
}
.bk-cf-la-panel__rating--red {
  border-left: 4px solid #d64545;
  background: #fffafa;
}
.bk-cf-la-panel__rating--info {
  border-left: 4px solid var(--bk-fg-subtle);
  background: var(--bk-grey-100);
}
.bk-cf-la-panel__rating-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}
.bk-cf-la-panel__rating-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.3;
}
.bk-cf-la-panel__rating--green .bk-cf-la-panel__rating-badge {
  background: var(--bk-green-soft);
  color: var(--bk-green-deep);
}
.bk-cf-la-panel__rating--yellow .bk-cf-la-panel__rating-badge {
  background: var(--bk-label-soft, #F0E4DA);
  color: var(--bk-label, #9C5B36);
}
.bk-cf-la-panel__rating--red .bk-cf-la-panel__rating-badge {
  background: #ffe0e0;
  color: #a83232;
}
.bk-cf-la-panel__rating--info .bk-cf-la-panel__rating-badge {
  background: var(--bk-grey-200, #eee);
  color: var(--bk-fg-subtle);
}
.bk-cf-la-panel__rating-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bk-fg);
  line-height: 1.4;
}
.bk-cf-la-panel__rating-amount {
  font-weight: 500;
  color: var(--bk-fg-muted);
  margin-left: 6px;
}
.bk-cf-la-panel__rating-msg {
  margin: 0;
  font-size: 12px;
  color: var(--bk-fg);
  line-height: 1.55;
}
.bk-cf-la-panel__rating-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--bk-fg-subtle);
  line-height: 1.5;
}

/* Shared hover / focus for all primary CTAs */
.bk-cf-field-group__composer-cta:hover,
.bk-cf-field-group__composer-cta:active,
.bk-cf-field-group__send:hover,
.bk-cf-field-group__send:active,
.bk-cf-composer__send:not(:disabled):hover,
.bk-cf-composer__send:not(:disabled):active,
.bk-cf-offer-text__send:not(:disabled):hover,
.bk-cf-offer-text__send:not(:disabled):active,
.bk-cf-la-panel__cta:hover,
.bk-cf-la-panel__continue:not(:disabled):hover,
.bk-cf-la-panel__continue:not(:disabled):active,
.bk-cf-la-err-actions button:hover,
.bk-cf-la-err-actions button:active {
  background: var(--bk-cf-btn-primary-bg-hover);
  color: var(--bk-cf-btn-primary-fg);
}

.bk-cf-field-group__composer-cta:focus-visible,
.bk-cf-field-group__send:focus-visible,
.bk-cf-composer__send:focus-visible,
.bk-cf-offer-text__send:focus-visible,
.bk-cf-la-panel__cta:focus-visible,
.bk-cf-la-panel__continue:focus-visible,
.bk-cf-la-err-actions button:focus-visible {
  outline: 2px solid var(--bk-green);
  outline-offset: 2px;
}

/* =========================================================
   Udbetalingstjek — in-flow resultat (R1–R3)
   ========================================================= */

.bk-cf-udb-peak {
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-cf-radius-card);
  padding: 18px 16px 14px;
  max-width: var(--bk-cf-max-bubble);
  width: 100%;
}

.bk-cf-udb-peak__hero {
  font-family: var(--bk-font-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--bk-fg-muted);
  text-align: center;
  text-wrap: pretty;
}

.bk-cf-udb-peak__big {
  display: block;
  margin-top: 4px;
  font-family: var(--bk-font-serif);
  font-style: italic;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.05;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--bk-green);
}

.bk-cf-udb-peak__flowline {
  margin: 0;
  padding-top: 2px;
  font-family: var(--bk-font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--bk-fg-muted);
  text-align: left;
  text-wrap: pretty;
}

.bk-cf-udb-peak--flow-only {
  padding: 12px 16px;
}

.bk-cf-udb-peak--flow-only .bk-cf-udb-peak__flowline {
  padding-top: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bk-fg);
}

.bk-cf-udb-peak__gap {
  color: var(--bk-green);
  font-style: italic;
  font-weight: 500;
}

.bk-cf-udb-peak__framing {
  margin: 12px 0 0;
  font-family: var(--bk-font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--bk-fg-muted);
  text-wrap: pretty;
}

.bk-cf-udb-peak--amber .bk-cf-udb-peak__big {
  color: #B45309;
}

.bk-cf-udb-peak--amber .bk-cf-udb-peak__hero {
  color: #B45309;
}

.bk-cf-udb-peak__rows {
  border-top: 1px solid var(--bk-border);
  padding-top: 10px;
}

.bk-cf-udb-peak__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

.bk-cf-udb-peak__row .label {
  color: var(--bk-fg-muted);
}

.bk-cf-udb-peak__row .value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bk-cf-udb-peak__details {
  margin-top: 10px;
  border-top: 1px solid var(--bk-border);
}

.bk-cf-udb-peak__details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bk-fg);
  cursor: pointer;
  user-select: none;
}

.bk-cf-udb-peak__details summary::-webkit-details-marker {
  display: none;
}

.bk-cf-udb-peak__details[open] summary .chev {
  transform: rotate(180deg);
}

.bk-cf-udb-peak__details-body {
  padding: 4px 0 8px;
}

.bk-cf-udb-peak__section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bk-fg-subtle);
  margin: 10px 0 2px;
}

.bk-cf-udb-peak__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--bk-border);
  font-size: 13px;
}

.bk-cf-udb-peak__line .label {
  color: var(--bk-fg-muted);
}

.bk-cf-udb-peak__line .value {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bk-cf-udb-peak__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0 4px;
  margin-top: 4px;
  border-top: 1px solid var(--bk-fg);
  font-size: 13px;
  font-weight: 600;
}

.bk-cf-udb-trust {
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-cf-radius-card);
  padding: 18px 16px;
  max-width: var(--bk-cf-max-bubble);
  width: 100%;
  text-align: center;
}

.bk-cf-udb-trust__photo {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bk-grey-100);
  position: relative;
}

.bk-cf-udb-trust__photo .fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--bk-fg-muted);
}

.bk-cf-udb-trust__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-cf-udb-trust__byline {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--bk-fg-muted);
}

.bk-cf-udb-trust__quote {
  margin: 0 0 14px;
  font-family: var(--bk-font-serif);
  font-size: 16px;
  line-height: 1.35;
  color: var(--bk-fg);
}

.bk-cf-udb-trust__quote strong {
  color: var(--bk-green-deep);
  font-weight: 400;
}

.bk-cf-udb-trust__testimonial {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bk-fg-muted);
  font-style: normal;
}

.bk-cf-udb-trust__proof {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bk-fg-subtle);
}

.bk-cf-udb-ask {
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-cf-radius-card);
  padding: 16px 16px 12px;
  max-width: var(--bk-cf-max-bubble);
  width: 100%;
}

.bk-cf-udb-ask__q {
  margin: 0 0 10px;
  font-family: var(--bk-font-serif);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bk-fg);
  text-align: center;
}

.bk-cf-udb-ask__offer {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bk-fg-muted);
  text-align: center;
}

.bk-cf-udb-ask__proof {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--bk-fg-subtle);
  text-align: center;
}

.bk-cf-plan-em {
  font-weight: 600;
  color: var(--bk-green);
}

.bk-cf-bubble--bot .bk-cf-plan-em {
  font-family: inherit;
  font-style: normal;
}

.bk-cf-udb-offer {
  background: var(--bk-white);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-cf-radius-card);
  padding: 16px 16px 14px;
  max-width: var(--bk-cf-max-bubble);
  width: 100%;
}

.bk-cf-udb-offer__bridge {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bk-fg);
}

.bk-cf-plan-em,
.bk-cf-udb-offer__bridge .bk-cf-plan-em {
  font-weight: 600;
  color: var(--bk-green);
}

/* Beat 1.5 – value amplification */
.bk-cf-udb-beat15__text {
  margin: 0;
  font-family: var(--bk-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--bk-fg);
  text-align: left;
  text-wrap: pretty;
}

.bk-cf-udb-beat15__proof {
  margin: 10px 0 0;
  font-family: var(--bk-font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bk-fg-subtle);
  text-align: left;
}

/* Beat 2 booking-ask – asymmetriske knapper */
.bk-cf-options--cross-book-ask {
  gap: 10px;
}

.bk-cf-options--cross-book-ask .bk-cf-option {
  min-height: 48px;
}

.bk-cf-options--cross-book-ask .bk-cf-option--primary {
  border: none;
  background: var(--bk-black);
  color: var(--bk-cream, #FBFAF7);
  font-weight: 400;
}

.bk-cf-options--cross-book-ask .bk-cf-option--primary:hover {
  background: #2b2b27;
  border-color: #2b2b27;
  color: var(--bk-cream, #FBFAF7);
}

.bk-cf-options--cross-book-ask .bk-cf-option--secondary {
  border: 1px solid var(--bk-border);
  background: var(--bk-white);
  color: var(--bk-fg-muted);
  font-weight: 500;
}

.bk-cf-options--cross-book-ask .bk-cf-option--secondary:hover {
  border-color: var(--bk-grey-300);
  background: var(--bk-grey-50);
  color: var(--bk-fg-muted);
}

/* Beat 2 — to korte beskeder, Alexandra-avatar uden for boblen */
.bk-cf-udb-beat2__text {
  margin: 0;
  font-family: var(--bk-font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--bk-fg);
  text-align: left;
  text-wrap: pretty;
}

.bk-cf-udb-beat2__sub {
  margin: 8px 0 0;
  font-family: var(--bk-font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--bk-fg-muted);
  text-align: left;
  text-wrap: pretty;
}

.bk-cf-udb-offer__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bk-fg);
}

.bk-cf-udb-offer__bullets {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bk-cf-udb-offer__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--bk-fg-muted);
}

.bk-cf-udb-offer__bullets .ico {
  flex: 0 0 14px;
  margin-top: 2px;
  color: var(--bk-green);
}

.bk-cf-udb-offer__hagen {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bk-fg-subtle);
}

.bk-cf-choice-footer-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  font-family: var(--bk-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--bk-fg-subtle);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: center;
}

.bk-cf-choice-footer-link:hover {
  color: var(--bk-green-deep);
}

.bk-cf-legal-footer {
  flex-shrink: 0;
  padding: 10px 16px 14px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--bk-fg-subtle);
  text-align: center;
  border-top: 1px solid var(--bk-border);
  background: var(--bk-grey-50);
}

.bk-cf-options--cross-weak .bk-cf-option--primary,
.bk-cf-options--cross-weak .bk-cf-option--secondary {
  min-height: 48px;
}

/* Venteliste-CTA efter udbetalingstjek-resultat */
.bk-cf-waitlist-cta {
  width: 100%;
  max-width: 100%;
  padding: 20px 18px;
  border: 1px solid var(--bk-border);
  border-radius: 16px;
  background: var(--bk-white, #fff);
  box-sizing: border-box;
}

.bk-cf-waitlist-cta__decline-wrap {
  margin-top: 14px;
  text-align: center;
}

.bk-cf-waitlist-cta__decline {
  background: none;
  color: var(--bk-fg-subtle);
  border: none;
  border-radius: 0;
  padding: 4px 0;
  font-family: var(--bk-font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  min-height: auto;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bk-cf-waitlist-cta__decline:hover {
  color: var(--bk-fg-muted);
}

.bk-cf-waitlist-cta__title {
  margin: 0 0 10px;
  font-family: var(--bk-font-serif);
  font-size: clamp(1.25rem, 3.5vw, 1.45rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bk-fg);
}

.bk-cf-waitlist-cta__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bk-fg-muted);
}

.bk-cf-waitlist-cta__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.bk-cf-waitlist-cta__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--bk-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--bk-font-sans);
  font-size: 16px;
  line-height: 1.3;
  color: var(--bk-fg);
  background: var(--bk-white, #fff);
  min-height: 48px;
  touch-action: manipulation;
}

.bk-cf-waitlist-cta__input::placeholder {
  color: var(--bk-fg-subtle);
}

.bk-cf-waitlist-cta__input:focus {
  outline: none;
  border-color: var(--bk-green);
  box-shadow: 0 0 0 2px var(--bk-green-soft);
}

.bk-cf-waitlist-cta__submit {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--bk-black);
  color: var(--bk-cream, #FBFAF7);
  font-family: var(--bk-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.2s ease;
  touch-action: manipulation;
}

.bk-cf-waitlist-cta__submit:hover:not(:disabled) {
  background: #2b2b27;
}

.bk-cf-waitlist-cta__submit:disabled {
  background: var(--bk-grey-300);
  color: var(--bk-grey-700);
  cursor: not-allowed;
}

.bk-cf-waitlist-cta__trust {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bk-fg-subtle);
}

.bk-cf-waitlist-cta__form--stacked {
  flex-direction: column;
  align-items: stretch;
}

.bk-cf-waitlist-cta__form--stacked .bk-cf-waitlist-cta__submit {
  width: 100%;
}

@media (min-width: 641px) {
  .bk-cf-waitlist-cta__form:not(.bk-cf-waitlist-cta__form--stacked) {
    flex-direction: row;
    align-items: stretch;
  }

  .bk-cf-waitlist-cta__form:not(.bk-cf-waitlist-cta__form--stacked) .bk-cf-waitlist-cta__input {
    flex: 1;
    min-width: 0;
  }

  .bk-cf-waitlist-cta__form:not(.bk-cf-waitlist-cta__form--stacked) .bk-cf-waitlist-cta__submit {
    width: auto;
    flex-shrink: 0;
  }
}

.bk-cf-waitlist-cta__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 6px 0;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bk-fg-muted);
  cursor: pointer;
  width: 100%;
  touch-action: manipulation;
}

.bk-cf-waitlist-cta__sparring-link {
  display: block;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--bk-label, #9C5B36);
  text-decoration: none;
}

.bk-cf-waitlist-cta__sparring-link:hover {
  text-decoration: underline;
}
