/* KistaFlow V2 portal. Native flows are unchanged; all rules stay in this app. */
body:has(.kfp-app) {
  margin: 0 !important;
  background: #F8FAFC !important;
}
body:has(.kfp-app) .wp-site-blocks { padding: 0 !important; }
body:has(.kfp-app) .wp-site-blocks > header,
body:has(.kfp-app) .wp-site-blocks > footer,
body:has(.kfp-app) .wp-block-post-title { display: none !important; }
body:has(.kfp-app) .wp-block-post-content {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.kfp-app {
  --blue: #2563EB;
  --ink: #0F172A;
  --muted: #526176;
  --line: #DFE6EE;
  --cloud: #F8FAFC;
  --cyan: #06B6D4;
  --mint: #D9FAF3;
  --body-font: "DM Sans", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  --heading-font: "Sora", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cloud);
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  min-height: 75vh;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.kfp-app *, .kfp-app *::before, .kfp-app *::after { box-sizing: border-box; }
.kfp-app a { color: #1D4ED8; text-decoration: none; text-underline-offset: 4px; }
.kfp-app a:hover { text-decoration: underline; }
.kfp-app :focus-visible { outline: 3px solid #0891B2; outline-offset: 4px; }
.kfp-app h1, .kfp-app h2, .kfp-app h3, .kfp-app p { margin: 0; }
.kfp-app h1, .kfp-app h2, .kfp-app h3 {
  color: var(--ink);
  font-family: var(--heading-font);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.25;
  text-wrap: balance;
}
.kfp-app h1 { font-size: clamp(44px, 4.5vw, 56px); max-width: 24ch; letter-spacing: -.045em; line-height: 1.15; }
.kfp-app h2 { font-size: clamp(26px, 2.5vw, 32px); }
.kfp-app h3 { font-size: 20px; letter-spacing: -.025em; line-height: 1.35; }
.kfp-app p { color: var(--muted); }
.kfp-app[lang="ne-NP"] { font-family: "Noto Sans Devanagari", "DM Sans", ui-sans-serif, system-ui, sans-serif; line-height: 1.8; }
.kfp-app[lang="ne-NP"] h1,
.kfp-app[lang="ne-NP"] h2,
.kfp-app[lang="ne-NP"] h3 { font-family: "Noto Sans Devanagari", "Sora", ui-sans-serif, system-ui, sans-serif; letter-spacing: normal; line-height: 1.4; }
.kfp-app[lang="ne-NP"] .kfp-eyebrow,
.kfp-app[lang="ne-NP"] .kfp-kicker { letter-spacing: normal; }
.kfp-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.kfp-header { border-bottom: 1px solid var(--line); background: #FFF; }
.kfp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.kfp-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink) !important;
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.2;
  white-space: nowrap;
}
.kfp-brand:hover { text-decoration: none !important; }
.kfp-brand > span:last-child { color: var(--blue); }
.kfp-mark {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blue);
  color: #FFF;
  font-family: var(--heading-font);
  font-weight: 600;
  font-style: italic;
  font-size: 27px;
}
.kfp-mark::after { content: ""; position: absolute; right: -2px; bottom: 5px; width: 15px; height: 5px; border-radius: 4px; background: var(--cyan); transform: rotate(-35deg); }
.kfp-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.kfp-nav a { color: #475569; padding: 8px 0; }
.kfp-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.kfp-language { border-left: 1px solid var(--line); padding-left: 20px !important; }
.kfp-skip { position: absolute; top: -100px; left: 16px; z-index: 100; border-radius: 10px; background: #FFF; padding: 12px; }
.kfp-skip:focus { top: 12px; }
.kfp-main { padding: 48px 0 64px; }
.kfp-hero { padding: 0 0 40px; }
.kfp-eyebrow { margin-bottom: 16px !important; color: #1D4ED8 !important; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.kfp-lead { max-width: 760px; margin-top: 24px !important; font-size: 18px; line-height: 1.7; }
.kfp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.kfp-button, .kfp-app button.kfp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 11px;
  background: var(--blue);
  color: #FFF !important;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}
.kfp-button:hover, .kfp-app button.kfp-button:hover { background: #1D4ED8; border-color: #1D4ED8; }
.kfp-app .kfp-button-secondary, .kfp-app button.kfp-button-secondary {
  border-color: #CBD5E1;
  background: #FFF;
  color: #334155 !important;
}
.kfp-app .kfp-button-secondary:hover, .kfp-app button.kfp-button-secondary:hover { border-color: #93B5F1; background: #EFF6FF; color: #1D4ED8 !important; }
.kfp-app .kfp-button-small, .kfp-app button.kfp-button-small { min-height: 44px; padding: 9px 14px; font-size: 14px; }
.kfp-button:disabled, .kfp-app fieldset[disabled] .kfp-button { opacity: .5; cursor: not-allowed; }
.kfp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kfp-card { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #FFF; }
.kfp-main > .kfp-wrap > .kfp-card.kfp-narrow:has(form) { box-shadow: 0 8px 28px rgba(15, 23, 42, .045); }
.kfp-card p + h3, .kfp-card p + p { margin-top: 16px; }
.kfp-card h2 + p, .kfp-card h3 + p { margin-top: 16px; }
.kfp-card .kfp-button { margin-top: 24px; }
.kfp-kicker { margin-bottom: 16px !important; color: #1D4ED8 !important; font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .08em; }
.kfp-section { margin-top: 40px; }
.kfp-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.kfp-section-heading p { max-width: 800px; margin-top: 12px; }
.kfp-narrow { max-width: 800px; }
.kfp-stack > * + * { margin-top: 24px; }
.kfp-notice { margin-bottom: 32px; padding: 20px 24px; border: 1px solid #D0E8EE; border-left: 3px solid var(--cyan); border-radius: 12px; background: #F0FAFC; color: #28515B; font-size: 16px; line-height: 1.65; }
.kfp-notice p { color: inherit; }
.kfp-notice strong { display: block; margin-bottom: 4px; color: inherit; font-weight: 600; }
.kfp-notice-success { border-color: #B3E5D8; background: var(--mint); color: #155B4B; }
.kfp-notice-warning { border-color: #E9D79F; background: #FFFBEB; color: #715316; }
.kfp-empty { padding: 40px 32px; border: 1px dashed #B9C7D7; border-radius: 16px; background: #FFF; text-align: center; }
.kfp-empty h2, .kfp-empty h3 { margin-bottom: 16px; }
.kfp-empty p { max-width: 650px; margin: auto; }
.kfp-empty .kfp-button { margin-top: 24px; }
.kfp-steps { padding-left: 24px; margin: 24px 0 0; color: var(--muted); }
.kfp-steps li { padding-left: 4px; }
.kfp-steps li + li { margin-top: 16px; }
.kfp-steps li::marker { color: #1D4ED8; font-weight: 600; font-variant-numeric: tabular-nums; }
.kfp-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.kfp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kfp-field { min-width: 0; }
.kfp-field-full { grid-column: 1 / -1; }
.kfp-form label { display: block; margin-bottom: 8px; color: #334155; font-size: 16px; font-weight: 600; line-height: 1.5; }
.kfp-form input:not([type="checkbox"]):not([type="hidden"]), .kfp-form select, .kfp-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #B8C5D5;
  border-radius: 10px;
  background: #FFF;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.kfp-form input:focus, .kfp-form select:focus, .kfp-form textarea:focus { border-color: var(--blue); }
.kfp-form input[type="date"], .kfp-form input[type="number"] { font-variant-numeric: tabular-nums; }
.kfp-form input[type="number"] { font-weight: 600; }
.kfp-form textarea { min-height: 120px; resize: vertical; }
.kfp-form input[readonly], .kfp-form fieldset[disabled] input, .kfp-form fieldset[disabled] select, .kfp-form fieldset[disabled] textarea { background: #F1F5F9; color: #64748B; }
.kfp-help { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.6; }
.kfp-checkbox { display: flex !important; align-items: flex-start; gap: 12px; margin-top: 24px !important; font-weight: 400 !important; }
.kfp-checkbox input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.kfp-checkbox span { min-width: 0; }
.kfp-form-footer { margin-top: 32px; }
.kfp-form-footer p { margin-top: 16px; font-size: 14px; line-height: 1.7; }
.kfp-card .kfp-form-footer .kfp-button { margin-top: 0; }
.kfp-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.kfp-search { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.kfp-search .kfp-field { flex: 1; }
.kfp-search label { margin-bottom: 8px; }
.kfp-search .kfp-button { flex: 0 0 auto; }
.kfp-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #EEF2F7; color: #46566B; font-size: 13px; font-weight: 600; line-height: 1.5; vertical-align: middle; }
.kfp-badge-approved, .kfp-badge-paid { background: var(--mint); color: #145B4A; }
.kfp-badge-pending, .kfp-badge-due { background: #FFF3CF; color: #72520D; }
.kfp-badge-rejected, .kfp-badge-suspended { background: #FCE8EB; color: #9E3446; }
.kfp-badge-withdrawn, .kfp-badge-cancelled { background: #EEF2F7; color: #556477; }
.kfp-meta { margin-top: 12px !important; color: var(--muted); font-size: 14px; }
.kfp-row-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.kfp-row-heading h2, .kfp-row-heading h3 { flex: 1; min-width: 0; }
.kfp-row-heading .kfp-badge { flex: 0 0 auto; }
.kfp-divider { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.kfp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #FFF; overscroll-behavior-x: contain; }
.kfp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.kfp-table th { background: #F8FAFC; color: #64748B; text-align: left; font-size: 13px; font-weight: 600; letter-spacing: .015em; }
.kfp-table td, .kfp-table th { padding: 20px; border-bottom: 1px solid #E6ECF3; vertical-align: top; }
.kfp-table td { color: #334155; }
.kfp-table tbody tr:hover { background: #FAFCFE; }
.kfp-table tr:last-child td { border-bottom: 0; }
.kfp-table td:first-child { font-weight: 600; color: var(--ink); }
.kfp-table td:nth-child(2) { white-space: nowrap; }
.kfp-table th:nth-child(3), .kfp-table td:nth-child(3) { text-align: right; white-space: nowrap; }
.kfp-table td:nth-child(3) { color: var(--ink); font-weight: 600; font-size: 18px; }
.kfp-table td small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
.kfp-table td:nth-child(4) small { max-width: 23ch; }
.kfp-table .kfp-text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: -8px; white-space: nowrap; }
.kfp-inline-form { display: inline-block; margin: 20px 8px 0 0; vertical-align: top; }
.kfp-inline-form .kfp-button { margin: 0; }
.kfp-records { display: grid; gap: 16px; }
.kfp-record { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #FFF; }
.kfp-record dl { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0 0; font-variant-numeric: tabular-nums; }
.kfp-record dt { color: var(--muted); font-size: 13px; }
.kfp-record dd { margin: 6px 0 0; font-size: 16px; }
.kfp-member-records { display: grid; max-width: 900px; gap: 16px; }
.kfp-member-record { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #FFF; }
.kfp-member-record header h3 { font-size: 20px; }
.kfp-member-record header .kfp-meta { margin-top: 8px !important; }
.kfp-member-facts { display: grid; grid-template-columns: minmax(190px, 1.3fr) minmax(140px, 1fr) minmax(160px, 1fr); align-items: start; gap: 24px; padding: 0; margin: 24px 0 0; }
.kfp-member-facts > div { min-width: 0; }
.kfp-member-facts dt { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.kfp-member-facts dd { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; }
.kfp-member-facts .kfp-member-amount dd { font-family: var(--body-font); font-size: 32px; line-height: 1.25; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kfp-member-facts .kfp-currency { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: normal; }
.kfp-member-facts .kfp-member-date { padding-top: 5px; font-family: var(--body-font); font-variant-numeric: tabular-nums; }
.kfp-member-facts small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
.kfp-member-note { padding-top: 16px; margin-top: 20px !important; border-top: 1px solid #E6ECF3; font-size: 14px; }
.kfp-member-note strong { font-weight: 600; }
.kfp-private-note { display: flex; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 14px; }
.kfp-footer { padding: 32px 0; border-top: 1px solid var(--line); background: #FFF; }
.kfp-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; }
.kfp-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.kfp-text-link { font-size: 14px; font-weight: 600; }

@media (max-width: 760px) {
  .kfp-wrap { width: calc(100% - 40px); }
  .kfp-header-inner { min-height: 0; padding: 20px 0; align-items: flex-start; flex-direction: column; gap: 16px; }
  .kfp-brand { font-size: 23px; }
  .kfp-nav { gap: 20px; font-size: 14px; }
  .kfp-language { padding-left: 16px !important; }
  .kfp-main { padding: 32px 0 40px; }
  .kfp-hero { padding: 0 0 32px; }
  .kfp-app h1 { font-size: 40px; max-width: none; letter-spacing: -.04em; }
  .kfp-app h2 { font-size: 26px; }
  .kfp-app h3 { font-size: 19px; }
  .kfp-app[lang="ne-NP"] h1, .kfp-app[lang="ne-NP"] h2, .kfp-app[lang="ne-NP"] h3 { letter-spacing: normal; }
  .kfp-lead { margin-top: 20px !important; font-size: 16px; line-height: 1.75; }
  .kfp-grid, .kfp-fields { grid-template-columns: 1fr; }
  .kfp-grid { gap: 20px; }
  .kfp-card, .kfp-record { padding: 24px; }
  .kfp-member-record { padding: 24px; }
  .kfp-member-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .kfp-member-facts .kfp-member-amount { grid-column: 1 / -1; }
  .kfp-member-facts .kfp-member-amount dd { font-size: 30px; }
  .kfp-form .kfp-field-full { grid-column: auto; }
  .kfp-search { align-items: stretch; flex-direction: column; gap: 16px; }
  .kfp-actions .kfp-button { flex: 1 1 auto; }
  .kfp-section { margin-top: 32px; }
  .kfp-section-heading { gap: 16px; margin-bottom: 20px; }
  .kfp-notice { padding: 20px; margin-bottom: 24px; }
  .kfp-empty { padding: 32px 24px; }
  .kfp-row-heading { flex-wrap: wrap; gap: 12px; }
  .kfp-row-heading h2, .kfp-row-heading h3 { flex-basis: 100%; }
  .kfp-table { min-width: 600px; }
  .kfp-table td, .kfp-table th { padding: 16px; }
  .kfp-footer { padding: 24px 0; }
  .kfp-footer-inner { flex-direction: column; gap: 16px; }
  .kfp-footer nav { gap: 20px; }
}
@media (max-width: 380px) {
  .kfp-wrap { width: calc(100% - 32px); }
  .kfp-nav { gap: 14px; font-size: 13px; }
  .kfp-app h1 { font-size: 36px; }
  .kfp-card, .kfp-record { padding: 20px; }
  .kfp-member-record { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .kfp-app *, .kfp-app *::before, .kfp-app *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Cooperative profiles and member loan journey. */
.kfp-directory-grid { align-items: stretch; }
.kfp-coop-card { display: flex; flex-direction: column; min-width: 0; }
.kfp-coop-card .kfp-actions { margin-top: auto; padding-top: 20px; }
.kfp-coop-card h2 a { color: inherit; text-decoration: none; }
.kfp-coop-card h2 a:hover { color: var(--blue); text-decoration: underline; }
.kfp-coop-photo { margin: 0 0 24px; }
.kfp-coop-photo a { display: block; }
.kfp-coop-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: #e2e8f0; }
.kfp-coop-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.kfp-coop-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.kfp-coop-detail .kfp-card { min-width: 0; }
.kfp-coop-detail h2 { margin-top: 24px; }
.kfp-coop-next h2 { margin-top: 0; }
.kfp-coop-next .kfp-button { max-width: 100%; white-space: normal; }
.kfp-breadcrumb { margin-bottom: 24px !important; font-size: 14px; }
.kfp-selected-cooperative strong { display: block; }
.kfp-demo-progress { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-left: 24px; margin: 24px 0; font-size: 14px; color: var(--muted); }
.kfp-demo-installments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kfp-demo-installment { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: #f8fafc; }
.kfp-demo-installment h4 { margin: 8px 0 20px; font-family: var(--heading-font); font-size: 16px; overflow-wrap: anywhere; }
.kfp-demo-installment dl { margin: 0; display: grid; gap: 16px; }
.kfp-demo-installment dt { color: var(--muted); font-size: 13px; }
.kfp-demo-installment dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kfp-demo-installment dl > div:first-child dd { font-size: 26px; }
.kfp-demo-account > .kfp-section-heading { margin-bottom: 24px; }
.kfp-demo-account + section { margin-top: 48px; }
@media (max-width: 760px) {
  .kfp-coop-detail, .kfp-demo-installments { grid-template-columns: 1fr; }
  .kfp-coop-photo { margin-bottom: 20px; }
  .kfp-demo-progress { display: grid; gap: 10px; }
  .kfp-demo-installment { padding: 20px; }
  .kfp-coop-card .kfp-actions { margin-top: 0; }
}
/* Unified member dashboard, schedule and payment review. */
.kfp-institution-type { color: var(--blue); font-size: 12px; font-weight: 650; letter-spacing: .04em; margin: 0 0 12px; }
.kfp-institution-placeholder { display: flex; align-items: center; justify-content: center; height: 180px; margin: 0 0 24px; border: 1px solid #e1e8f0; border-radius: 10px; background: linear-gradient(135deg, #f3f6fc, #e8eef8); }
.kfp-institution-placeholder > span { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 16px; border: 1px solid #d6e1f2; color: var(--blue); background: #fff; font-family: var(--heading-font); font-size: 32px; font-weight: 650; }
.kfp-institution-logo { height: 180px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.kfp-institution-logo a { height: 100%; }
.kfp-institution-logo img { width: 100%; height: 100%; box-sizing: border-box; padding: 24px; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: #fff; }
.kfp-coop-detail .kfp-institution-logo { height: 240px; }
.kfp-coop-detail .kfp-institution-logo img { padding: 32px; }
.kfp-catalog-status { font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.kfp-setup-notice { border-left: 3px solid #8ba8d7; border-radius: 6px; padding: 18px 20px; margin: 0 0 24px; background: #f1f5fb; }
.kfp-setup-notice strong { display: block; font-size: 15px; margin-bottom: 8px; }
.kfp-setup-notice p { font-size: 14px; line-height: 1.65; margin: 0; }
.kfp-loan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kfp-loan-card { min-width: 0; display: flex; flex-direction: column; }
.kfp-loan-card h2 { font-size: 24px; line-height: 1.35; overflow-wrap: anywhere; }
.kfp-loan-card .kfp-actions { margin-top: auto; padding-top: 24px; }
.kfp-loan-card .kfp-button { font-size: 14px; }
.kfp-loan-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 20px; }
.kfp-loan-summary > div { min-width: 0; }
.kfp-loan-summary dt, .kfp-identity dt, .kfp-payment-facts dt { color: var(--muted); font-size: 13px; line-height: 1.5; }
.kfp-loan-summary dd { margin: 8px 0 0; font-size: 21px; font-weight: 650; line-height: 1.45; font-variant-numeric: tabular-nums; }
.kfp-loan-card .kfp-loan-summary { grid-template-columns: 1fr; gap: 12px; }
.kfp-loan-card .kfp-loan-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.kfp-loan-card .kfp-loan-summary dd { margin: 0; font-size: 18px; white-space: nowrap; }
.kfp-loan-progress { display: grid; gap: 10px; color: var(--muted); font-size: 13px; }
.kfp-loan-progress progress { width: 100%; height: 8px; border: 0; border-radius: 10px; overflow: hidden; background: #e5eaf1; color: var(--blue); accent-color: var(--blue); }
.kfp-loan-progress progress::-webkit-progress-bar { background: #e5eaf1; }
.kfp-loan-progress progress::-webkit-progress-value { background: var(--blue); border-radius: 10px; }
.kfp-next-installment { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 24px 0 0; margin-top: 24px; border-top: 1px solid var(--line); }
.kfp-next-installment strong { display: block; font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.kfp-next-installment p { margin: 6px 0 0; }
.kfp-identity { display: flex; flex-wrap: wrap; gap: 24px 56px; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.kfp-identity dd { font-size: 17px; font-weight: 600; margin: 8px 0 0; overflow-wrap: anywhere; }
.kfp-next-payment { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #edf3ff; border: 1px solid #d6e3ff; border-radius: 12px; padding: 28px 32px; }
.kfp-next-payment h2 { margin: 8px 0; font-variant-numeric: tabular-nums; }
.kfp-next-payment p { margin: 0; }
.kfp-schedule-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.kfp-schedule-filters a { display: flex; gap: 9px; align-items: center; padding: 10px 16px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: 14px; color: var(--ink); background: #fff; }
.kfp-schedule-filters a[aria-current] { background: var(--blue); color: #fff; border-color: var(--blue); }
.kfp-schedule-filters span { font-size: 12px; opacity: .75; }
.kfp-schedule-list { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.kfp-schedule-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, 1fr) minmax(130px, .7fr) auto; gap: 20px; padding: 24px; align-items: center; border-bottom: 1px solid var(--line); }
.kfp-schedule-row:last-child { border-bottom: 0; }
.kfp-schedule-row h3 { margin: 0 0 6px; font-family: var(--body-font); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.kfp-schedule-row h3 a { color: var(--ink); text-decoration: none; }
.kfp-schedule-row h3 a:hover { color: var(--blue); text-decoration: underline; }
.kfp-schedule-row time { color: var(--muted); font-size: 14px; }
.kfp-schedule-row > strong { font-variant-numeric: tabular-nums; font-size: 17px; }
.kfp-badge-upcoming { color: #475569; background: #f1f5f9; }
.kfp-payment-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.kfp-payment-layout .kfp-card { min-width: 0; }
.kfp-payment-layout h2 { font-size: 25px; line-height: 1.4; }
.kfp-payment-amount { font-family: var(--heading-font); font-size: 40px; font-weight: 650; letter-spacing: -.03em; margin: 28px 0 !important; font-variant-numeric: tabular-nums; }
.kfp-payment-facts { display: grid; gap: 0; margin: 24px 0 32px; }
.kfp-payment-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kfp-payment-facts dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.kfp-card-method { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 9px; padding: 20px; margin: 24px 0; background: #f8fafc; }
.kfp-card-method p { font-size: 14px; color: var(--muted); margin: 5px 0 0; }
.kfp-card-symbol { font-size: 32px; color: var(--blue); }
.kfp-payment-unavailable { margin: 0 0 24px; }
.kfp-payment-unavailable h3 { font-size: 18px; line-height: 1.4; margin: 0 0 12px; }
.kfp-payment-unavailable p { font-size: 14px; }
.kfp-pay-disabled { display: block; width: 100%; margin-top: 24px; cursor: not-allowed !important; opacity: .52; }
.kfp-selected-cooperative .kfp-button { margin-top: 8px; }
@media (max-width: 950px) {
  .kfp-loan-grid { grid-template-columns: 1fr; }
  .kfp-payment-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .kfp-loan-summary { grid-template-columns: 1fr; gap: 18px; }
  .kfp-loan-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
  .kfp-loan-summary dd { margin: 0; font-size: 18px; white-space: nowrap; }
  .kfp-identity { display: grid; gap: 20px; }
  .kfp-next-payment { align-items: stretch; flex-direction: column; padding: 24px; }
  .kfp-next-installment { align-items: start; }
  .kfp-next-installment strong { font-size: 24px; }
  .kfp-schedule-row { grid-template-columns: minmax(0, 1fr) auto; padding: 20px; gap: 14px; }
  .kfp-schedule-row > strong { text-align: right; font-size: 16px; }
  .kfp-schedule-row > a { justify-self: end; }
  .kfp-schedule-filters { gap: 7px; }
  .kfp-schedule-filters a { padding: 9px 11px; font-size: 13px; }
  .kfp-payment-amount { font-size: 32px; }
  .kfp-payment-facts > div { grid-template-columns: 1fr; gap: 4px; }
}
