/* Uitvaartverzorger: public profile, directory and the Mijn account form.
   Colours follow the "Uitvaartverzorger Profiel" design (its oklch values,
   written as hex so older browsers render them too). */
.fd-page {
  --fd-bg: #F8F4EE;
  --fd-ink: #2A2621;
  --fd-ink-2: #5E574F;
  --fd-muted: #7C746B;
  --fd-line: #E7E1D8;
  --fd-line-2: #DDD5CA;
  --fd-clay: #C1633B;
  --fd-clay-dark: #A8532F;
  --fd-clay-tint: #F6DFD3;
  --fd-green: #4E8A56;
  background: var(--fd-bg);
  color: var(--fd-ink);
  font-family: 'Work Sans', system-ui, sans-serif;
}
.fd-wrap { max-width: 1380px; margin: 0 auto; padding: 40px 40px 80px; }
@media (max-width: 700px) { .fd-wrap { padding: 24px 16px 60px; } }

.fd-preview-note { background: #FBEFD9; border: 1px solid #EBD3A8; color: #6E5220; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 24px; }
.fd-preview-note strong { margin-right: 4px; }
.fd-manage-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; }
.fd-manage-note-quiet { background: #fff; border: 1px solid var(--fd-line); color: var(--fd-ink-2); border-radius: 12px; padding: 10px 16px; font-size: 13.5px; margin-bottom: 24px; }
.fd-manage-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fd-manage-link { font-weight: 700; color: var(--fd-clay-dark); text-decoration: none; white-space: nowrap; }
.fd-manage-link:hover { color: var(--fd-clay); text-decoration: underline; }

.fd-crumbs { font-size: 13px; font-weight: 600; color: var(--fd-muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; text-transform: uppercase; letter-spacing: .3px; }
.fd-crumbs a { color: inherit; text-decoration: none; }
.fd-crumbs a:hover { color: var(--fd-clay); }
.fd-crumb-current { color: var(--fd-ink); }

.fd-hero { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 40px; }
.fd-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--fd-clay-tint); color: var(--fd-clay-dark); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; flex-shrink: 0; }
.fd-avatar-lg { width: 132px; height: 132px; font-size: 44px; }
.fd-avatar { overflow: hidden; }
.fd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-hero-main { flex: 1; min-width: 260px; }
/* The practice's logo: its own shape, never cropped, never round. */
.fd-logo { display: block; max-width: 180px; max-height: 64px; width: auto; height: auto; object-fit: contain; margin: 0 0 14px; }
.fd-dir-logo { max-width: 96px; max-height: 40px; width: auto; height: auto; object-fit: contain; flex-shrink: 0; align-self: center; }
.fd-name { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin: 0; color: var(--fd-ink); line-height: 1.15; }
.fd-agency { font-size: 16px; font-weight: 600; color: var(--fd-muted); margin-top: 6px; }
.fd-rule { width: 56px; height: 3px; background: var(--fd-clay); margin: 16px 0 18px; }
.fd-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.fd-badge { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--fd-line-2); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--fd-ink-2); }
.fd-badge-icon { color: var(--fd-clay); font-size: 15px; }

.fd-body { display: flex; gap: 56px; align-items: flex-start; flex-wrap: wrap; }
.fd-main { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.fd-main h2 { font-size: 20px; font-weight: 800; margin: 0 0 12px; color: var(--fd-ink); }
.fd-bio { font-size: 15px; line-height: 1.65; color: var(--fd-ink-2); margin: 0; }
.fd-muted { color: var(--fd-muted); font-size: 14px; margin: 0 0 14px; }
.fd-small { font-size: 12.5px; margin: 2px 0 0; }
.fd-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.fd-pill { border: 1px solid var(--fd-line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; color: var(--fd-ink-2); }
.fd-areas { display: flex; gap: 10px; flex-wrap: wrap; }
.fd-area { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fd-ink-2); background: #EFE9E0; border-radius: 8px; padding: 8px 12px; }
.fd-area svg { color: var(--fd-clay); }

.fd-side { flex: 1 1 320px; min-width: 280px; max-width: 380px; position: sticky; top: 24px; }
@media (max-width: 700px) { .fd-side { max-width: none; position: static; } }
.fd-card { background: #fff; border: 1px solid var(--fd-line); border-radius: 14px; padding: 28px; }
.fd-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fd-card-name { font-size: 15px; font-weight: 700; color: var(--fd-ink); }
.fd-response { font-size: 12px; font-weight: 600; color: var(--fd-green); }
.fd-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; margin-bottom: 10px; text-decoration: none; box-sizing: border-box; }
.fd-btn-primary { border: 0; background: var(--fd-clay); color: #fff; }
.fd-btn-primary:hover { background: var(--fd-clay-dark); color: #fff; }
.fd-btn-outline { border: 1.5px solid var(--fd-line-2); background: #fff; color: var(--fd-ink-2); }
.fd-btn-outline:hover { border-color: var(--fd-clay); color: var(--fd-clay); }
.fd-card-section { border-top: 1px solid #EEE9E1; padding-top: 18px; margin-top: 12px; }
.fd-contact { display: flex; flex-direction: column; gap: 12px; }
.fd-contact a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fd-ink-2); text-decoration: none; word-break: break-word; }
.fd-contact a:hover { color: var(--fd-clay); }
.fd-contact-icon { color: var(--fd-clay); width: 18px; text-align: center; flex-shrink: 0; }
.fd-card-label { font-size: 12px; font-weight: 800; letter-spacing: .4px; color: var(--fd-muted); margin-bottom: 10px; text-transform: uppercase; }
.fd-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fd-checks li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fd-ink-2); margin: 0; }
.fd-checks svg { color: var(--fd-green); flex-shrink: 0; }

/* Sidebar card, as in the design. Scoped under .fd-page and explicit about
   type, because the theme styles every button (uppercase, its own size and
   font) and every link. */
.fd-page .fd-card { box-sizing: border-box; }
.fd-page .fd-card-head-text { min-width: 0; }
.fd-page .fd-card-name { font-family: 'Work Sans', system-ui, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0; color: var(--fd-ink); }
.fd-page .fd-response { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; margin-top: 2px; color: var(--fd-green); text-decoration: none; }
.fd-page .fd-btn { font-family: 'Work Sans', system-ui, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; padding: 0 20px; min-height: 0; height: 50px; box-shadow: none; text-shadow: none; }
.fd-page .fd-btn-primary, .fd-page .fd-btn-primary:focus { background: var(--fd-clay); color: #fff; border: 0; }
.fd-page .fd-btn-primary:hover { background: var(--fd-clay-dark); color: #fff; }
.fd-page .fd-btn-outline { background: #fff; color: var(--fd-ink); border: 1.5px solid var(--fd-line-2); }
.fd-page .fd-btn-outline:hover { border-color: var(--fd-clay); color: var(--fd-clay); }
.fd-page .fd-card-section { border-top: 1px solid #EEE9E1; padding-top: 18px; margin-top: 18px; }
.fd-page .fd-btn + .fd-card-section { margin-top: 12px; }
.fd-page .fd-contact a { font-family: 'Work Sans', system-ui, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--fd-ink-2); }
.fd-page .fd-contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; color: var(--fd-clay); }
.fd-page .fd-contact-icon svg { display: block; }
.fd-page .fd-contact-value { min-width: 0; overflow-wrap: anywhere; }
.fd-page .fd-card-label { font-family: 'Work Sans', system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--fd-muted); margin-bottom: 12px; }
.fd-page .fd-checks li, .fd-page .fd-check-item { font-family: 'Work Sans', system-ui, sans-serif; font-size: 13.5px; line-height: 1.4; color: var(--fd-ink-2); }

/* Not filled in yet - only for the owner and admins, dashed and faded, each
   a link to where it is filled in. */
.fd-page .fd-placeholder { border-style: dashed; color: var(--fd-muted); }
.fd-page .fd-placeholder:hover { border-style: solid; }
.fd-page a.fd-placeholder-text { text-decoration: none; }
.fd-page .fd-contact a.fd-placeholder-text, .fd-page .fd-response.fd-placeholder-text { color: var(--fd-muted); font-style: italic; }
.fd-page .fd-contact a.fd-placeholder-text .fd-contact-icon { color: var(--fd-line-2); }
.fd-page a.fd-placeholder-text:hover, .fd-page .fd-contact a.fd-placeholder-text:hover { color: var(--fd-clay); }
.fd-page a.fd-checks.fd-placeholder-text { display: flex; border: 1.5px dashed var(--fd-line-2); border-radius: 10px; padding: 12px 14px; }
.fd-page a.fd-checks.fd-placeholder-text:hover { border-color: var(--fd-clay); }
.fd-page .fd-check-item { display: flex; align-items: center; gap: 8px; opacity: .55; }
.fd-page .fd-check-item svg { color: var(--fd-green); flex-shrink: 0; }
.fd-page .fd-placeholder-cta { font-size: 12.5px; font-weight: 700; color: var(--fd-clay-dark); margin-top: 2px; }
.fd-page .fd-card-hint { margin: 18px 0 0; font-size: 12px; line-height: 1.45; color: var(--fd-muted); }

.fd-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); background: #2B2620; color: #fff; font-size: 12.5px; font-weight: 600; padding: 11px 20px; border-radius: 999px; box-shadow: 0 6px 20px rgba(43, 38, 32, .25); z-index: 200; text-align: center; }

/* directory */
.fd-dir-head { margin-bottom: 28px; max-width: 760px; }
.fd-dir-head .fd-muted { margin-top: 8px; }
.fd-search { position: relative; max-width: 520px; }
.fd-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--fd-muted); }
.fd-search input { width: 100%; height: 48px; border-radius: 999px; border: 1.5px solid var(--fd-line-2); background: #fff; padding: 0 18px 0 44px; font: inherit; font-size: 14px; box-sizing: border-box; margin: 0; }
.fd-search input:focus { outline: none; border-color: var(--fd-clay); }
.fd-dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (max-width: 420px) { .fd-dir-list { grid-template-columns: 1fr; } }
.fd-dir-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--fd-line); border-radius: 14px; padding: 20px; text-decoration: none; color: inherit; position: relative; }
.fd-dir-card:hover { border-color: var(--fd-clay); }
.fd-dir-main { flex: 1; min-width: 0; }
.fd-dir-bio { font-size: 13px; line-height: 1.5; color: var(--fd-ink-2); margin: 8px 0 0; }
.fd-dir-more { font-size: 12.5px; font-weight: 700; color: var(--fd-clay); white-space: nowrap; align-self: center; }
.fd-empty { font-size: 14px; color: var(--fd-muted); }

/* Mijn account > Uitvaartverzorger-profiel
   In the child theme's Mijn account look (paper cards, clay pill buttons,
   the Accountdetails inputs - its :root tokens, with fallbacks) and the
   Sjabloonbeheer profile editor's controls. Selectors carry .fd-account so
   they beat Flatsome's own form styling. */
.fd-account {
  --fda-paper: var(--paper, #FCF9F3);
  --fda-cream: var(--cream, var(--drk-menu, #F7F1E7));
  --fda-clay: var(--clay, var(--drk-primary, #B9784C));
  --fda-clay-dark: var(--clay-dark, var(--drk-primary-hover, #95602F));
  --fda-clay-tint: var(--clay-tint, #EFDCC8);
  --fda-sage: var(--sage, var(--drk-secondary, #757E67));
  --fda-stone: var(--stone, #E3D8C4);
  --fda-line: var(--stone-line, #CBBC9F);
  --fda-charcoal: var(--charcoal, var(--drk-tertiary-hover, #211F1A));
  --fda-ink: var(--ink, var(--drk-tertiary, #2E2A22));
  --fda-ink-soft: var(--ink-soft, var(--drk-ui-grey-light, #6B6555));
  --fda-ink-faint: var(--ink-faint, #8C8674);
  font-family: 'Work Sans', system-ui, sans-serif;
  color: var(--fda-ink);
}
.fd-account .fd-acc-card {
  background: var(--fda-paper); border-radius: 14px; padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(33, 31, 26, .06); margin-bottom: 16px;
}
.fd-account .fd-acc-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.fd-account .fd-acc-intro-main { flex: 1 1 320px; }
.fd-account .fd-acc-title { font-size: 20px; font-weight: 800; color: var(--fda-charcoal); margin: 0 0 6px; line-height: 1.25; }
.fd-account .fd-acc-lead { font-size: 14px; line-height: 1.55; color: var(--fda-ink-soft); margin: 0; max-width: 520px; }
.fd-account .fd-acc-perks { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fd-account .fd-acc-pill {
  display: inline-block; border-radius: 999px; padding: 6px 14px; font-size: 11.5px; font-weight: 700;
  background: var(--fda-stone); color: var(--fda-ink-soft); white-space: nowrap;
}
.fd-account .fd-acc-pill-clay { background: var(--fda-clay-tint); color: var(--fda-clay-dark); }
.fd-account .fd-acc-pill-sage { background: #E4E7DD; color: #56604A; }
.page-wrapper.my-account .fd-account a.fd-acc-link, .fd-account a.fd-acc-link { font-size: 13px; font-weight: 700; color: var(--fda-clay); text-decoration: none; }
.fd-account a.fd-acc-link:hover { color: var(--fda-clay-dark); }

.fd-account .fd-acc-heading { font-size: 16px; font-weight: 700; color: var(--fda-charcoal); margin: 0 0 18px; text-transform: none; letter-spacing: 0; }

.fd-account .fd-field { margin-bottom: 16px; }
.fd-account .fd-field:last-child { margin-bottom: 0; }
.fd-account .fd-label { display: block; font-size: 13px; font-weight: 700; color: var(--fda-charcoal); margin: 0 0 6px; text-transform: none; letter-spacing: 0; }
.fd-account .fd-req { color: var(--fda-clay); }
.fd-account .fd-help { display: block; font-size: 12px; color: var(--fda-ink-faint); margin-top: 5px; line-height: 1.4; }
.fd-account .fd-help-error { color: #A63D2E; font-weight: 600; }
.fd-account .fd-form .fd-input {
  width: 100%; box-sizing: border-box; margin: 0; height: 44px; padding: 10px 14px;
  border: 1px solid var(--fda-line); border-radius: 8px; background: #fff; box-shadow: none;
  font-family: inherit; font-size: 14px; color: var(--fda-ink); transition: border-color .15s, box-shadow .15s;
}
.fd-account .fd-form textarea.fd-input { height: auto; min-height: 120px; line-height: 1.55; resize: vertical; }
.fd-account .fd-form .fd-input:focus { border-color: var(--fda-clay); outline: none; box-shadow: 0 0 0 1px var(--fda-clay); }
.fd-account .fd-form .fd-input::placeholder, .fd-account .fd-chips-input::placeholder { color: var(--fda-ink-faint); opacity: .8; }

.fd-account .fd-acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.fd-account .fd-acc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fd-account .fd-acc-grid .fd-field:last-child { margin-bottom: 16px; }
.fd-account .fd-acc-grid-3 .fd-field { margin-bottom: 0; }
.fd-account .fd-acc-about { display: flex; gap: 28px; align-items: flex-start; }
.fd-account .fd-acc-about .fd-acc-grid { flex: 1; min-width: 0; }

/* Photo: click the circle (or "Wijzigen") to pick a file. */
.fd-account .fd-photo { flex: 0 0 132px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fd-account .fd-photo-avatar {
  position: relative; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; cursor: pointer; margin: 2px 0 8px;
  background: var(--fda-clay-tint); color: var(--fda-clay-dark); display: grid; place-items: center;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--fda-stone);
}
.fd-account .fd-photo-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-account .fd-photo-initials { font-size: 36px; font-weight: 800; letter-spacing: -.5px; }
.fd-account .fd-photo-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: rgba(33, 31, 26, .45); opacity: 0; transition: opacity .15s;
}
.fd-account .fd-photo-avatar:hover .fd-photo-overlay { opacity: 1; }
.fd-account .fd-photo-file:focus-visible + .fd-photo-remove-flag + .fd-photo-actions label { text-decoration: underline; }
.fd-account.fd-js .fd-photo-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.fd-account .fd-photo-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fd-account .fd-acc-textbtn {
  display: inline; background: none; border: 0; padding: 0; margin: 0; min-height: 0; height: auto; line-height: 1.4;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--fda-clay); cursor: pointer; text-transform: none; letter-spacing: 0;
}
.fd-account .fd-acc-textbtn:hover { color: var(--fda-clay-dark); background: none; }
.fd-account .fd-acc-textbtn-muted { color: var(--fda-ink-faint); }
.fd-account .fd-acc-textbtn-muted:hover { color: #A63D2E; }
.fd-account .fd-acc-textbtn[hidden] { display: none; }
.fd-account .fd-photo-help { margin-top: 4px; }

/* Lists as chips (the textarea stays the real field). */
.fd-account.fd-js .fd-chips-source, .fd-account.fd-js .fd-chips-nojs { display: none; }
.fd-account .fd-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 5px 6px;
  border: 1px solid var(--fda-line); border-radius: 8px; background: #fff; cursor: text; transition: border-color .15s, box-shadow .15s;
}
.fd-account .fd-chips:focus-within { border-color: var(--fda-clay); box-shadow: 0 0 0 1px var(--fda-clay); }
.fd-account .fd-chips .fd-chips-input {
  flex: 1; min-width: 180px; height: 32px; margin: 0; padding: 0 8px; border: 0; box-shadow: none; background: none;
  font-family: inherit; font-size: 14px; color: var(--fda-ink);
}
.fd-account .fd-chips .fd-chips-input:focus { outline: none; box-shadow: none; }
.fd-account .fd-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px;
  background: var(--fda-cream); border: 1px solid var(--fda-stone); font-size: 13px; font-weight: 600; color: var(--fda-ink); line-height: 1.3;
}
.fd-account .fd-chip svg { color: var(--fda-clay); flex-shrink: 0; }
.fd-account .fd-chips-sage .fd-chip svg { color: var(--fda-sage); }
.fd-account .fd-chip button {
  width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--fda-ink-faint); font-size: 9px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.fd-account .fd-chip button:hover { background: #fff; color: #A63D2E; }

/* Footer: the public switch and the save button. */
.fd-account .fd-acc-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.fd-account .fd-switch { display: flex; align-items: flex-start; gap: 14px; margin: 0; cursor: pointer; flex: 1 1 360px; font-weight: 400; }
.fd-account .fd-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.fd-account .fd-switch-track {
  flex-shrink: 0; width: 42px; height: 24px; border-radius: 999px; background: var(--fda-line); position: relative; margin-top: 1px; transition: background .15s;
}
.fd-account .fd-switch-knob {
  position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s;
}
.fd-account .fd-switch input:checked + .fd-switch-track { background: var(--fda-sage); }
.fd-account .fd-switch input:checked + .fd-switch-track .fd-switch-knob { transform: translateX(18px); }
.fd-account .fd-switch input:focus-visible + .fd-switch-track { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--fda-clay); }
.fd-account .fd-switch-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--fda-charcoal); }
.fd-account .fd-switch-text small { display: block; font-size: 12.5px; color: var(--fda-ink-soft); line-height: 1.45; margin-top: 2px; }
.fd-account .fd-form .fd-acc-btn {
  background: var(--fda-clay); color: #fff; border: 0; border-radius: 999px; padding: 12px 30px; margin: 0;
  font-family: inherit; font-weight: 700; font-size: 13px; letter-spacing: .3px; text-transform: none;
  height: auto; min-height: 0; line-height: normal; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.fd-account .fd-form .fd-acc-btn:hover { background: var(--fda-clay-dark); }

@media (max-width: 760px) {
  .fd-account .fd-acc-card { padding: 20px 18px; }
  .fd-account .fd-acc-perks { align-items: flex-start; }
  .fd-account .fd-acc-about { flex-direction: column; align-items: stretch; gap: 16px; }
  .fd-account .fd-photo { flex-basis: auto; }
  .fd-account .fd-acc-grid, .fd-account .fd-acc-grid-3 { grid-template-columns: 1fr; }
  .fd-account .fd-acc-grid-3 .fd-field { margin-bottom: 16px; }
  .fd-account .fd-form .fd-acc-btn { width: 100%; }
}

/* Mijn account > AI-tegoed (AiTokenService) - same cards as the profile form. */
.ai-tokens .ai-balance-card { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.ai-tokens .ai-balance-label { font-size: 13px; font-weight: 700; color: var(--fda-ink-faint); text-transform: uppercase; letter-spacing: .4px; }
.ai-tokens .ai-balance-value { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--fda-charcoal); margin: 4px 0 6px; }
.ai-tokens .ai-balance-value span { font-size: 16px; font-weight: 700; color: var(--fda-ink-soft); }
.ai-tokens .ai-balance-sub { font-size: 13.5px; color: var(--fda-ink-soft); max-width: 460px; line-height: 1.5; }
.ai-tokens .ai-cost-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ai-tokens .ai-cost-list li { font-size: 13px; color: var(--fda-ink-soft); display: flex; align-items: baseline; gap: 8px; }
.ai-tokens .ai-cost-amount { min-width: 34px; text-align: right; font-weight: 800; font-size: 15px; color: var(--fda-clay-dark); }
.ai-tokens .ai-bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ai-tokens .ai-bundle { border: 1px solid var(--fda-stone); border-radius: 12px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.ai-tokens .ai-bundle-tokens { font-size: 22px; font-weight: 800; color: var(--fda-charcoal); }
.ai-tokens .ai-bundle-tokens span { font-size: 13px; font-weight: 700; color: var(--fda-ink-soft); }
.ai-tokens .ai-bundle-name { font-size: 13.5px; color: var(--fda-ink-soft); }
.ai-tokens .ai-bundle-price { font-size: 15px; font-weight: 800; color: var(--fda-charcoal); margin-top: 4px; }
.ai-tokens a.ai-bundle-btn { margin-top: 12px; text-align: center; text-decoration: none; display: inline-block; color: #fff; }
.ai-tokens .ai-note { margin-top: 12px; }
.ai-tokens .ai-ledger { list-style: none; margin: 0; padding: 0; }
.ai-tokens .ai-ledger-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--fda-line); }
.ai-tokens .ai-ledger-row:first-child { border-top: 0; }
.ai-tokens .ai-ledger-main { flex: 1; min-width: 0; }
.ai-tokens .ai-ledger-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--fda-charcoal); }
.ai-tokens .ai-ledger-date { display: block; font-size: 12px; color: var(--fda-ink-faint); }
.ai-tokens .ai-ledger-amount { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ai-tokens .ai-ledger-amount.is-plus { color: #4E8A56; }
.ai-tokens .ai-ledger-amount.is-minus { color: var(--fda-ink-soft); }
.ai-tokens .ai-ledger-balance { width: 56px; text-align: right; font-size: 12.5px; color: var(--fda-ink-faint); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .ai-tokens .ai-balance-card { flex-direction: column; align-items: flex-start; }
}

/* Mijn account > Digitale producten (digital-products-account-template.php). */
.fd-account .dp-list { list-style: none; margin: 0; padding: 0; }
.fd-account .dp-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 0; margin: 0;
  border-top: 1px solid var(--fda-stone);
}
.fd-account .dp-item:first-child { border-top: 0; padding-top: 0; }
.fd-account .dp-item:last-child { padding-bottom: 0; }
.fd-account .dp-thumb {
  width: 96px; height: 96px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: var(--fda-cream);
  display: flex; align-items: center; justify-content: center;
}
.fd-account .dp-thumb img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block;
  box-shadow: 0 1px 4px rgba(33, 31, 26, .18);
}
.fd-account .dp-main { flex: 1 1 auto; min-width: 0; }
.fd-account .dp-title { font-size: 15px; font-weight: 700; color: var(--fda-charcoal); line-height: 1.3; }
.fd-account .dp-meta { font-size: 12.5px; color: var(--fda-ink-soft); margin-top: 3px; line-height: 1.5; }
.fd-account .dp-url { font-size: 13px; margin-top: 6px; overflow-wrap: anywhere; }
.fd-account .dp-url a { color: var(--fda-clay); font-weight: 600; text-decoration: none; }
.fd-account .dp-url a:hover { color: var(--fda-clay-dark); text-decoration: underline; }
.fd-account .dp-note { font-size: 12.5px; color: var(--fda-ink-faint); margin-top: 6px; }
.fd-account .dp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.fd-account a.dp-btn, .fd-account button.dp-btn {
  display: inline-block; background: var(--fda-clay); color: #fff; border-radius: 999px; padding: 9px 20px;
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s;
}
/* "Inloggen" is a form button (it asks for a new login link), reset from the theme's button styling. */
.fd-account .dp-login { margin: 0; }
.fd-account button.dp-btn {
  border: 0; margin: 0; min-height: 0; line-height: 1.4; text-transform: none; letter-spacing: normal;
  font-family: inherit; box-shadow: none; cursor: pointer;
}
.fd-account a.dp-btn:hover, .fd-account button.dp-btn:hover { background: var(--fda-clay-dark); color: #fff; }

@media (max-width: 600px) {
  .fd-account .dp-item { flex-wrap: wrap; }
  .fd-account .dp-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* /uitvaartverzorger-aanmelden/ (funeral-director-application-template.php) */
.fd-apply-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .fd-apply-layout { grid-template-columns: 1fr; gap: 28px; } }
.fd-apply-intro { position: sticky; top: 24px; }
@media (max-width: 900px) { .fd-apply-intro { position: static; } }
.fd-page .fd-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--fd-clay-dark); margin-bottom: 8px; }
.fd-apply-intro .fd-bio { margin-bottom: 18px; }
.fd-apply-perks { margin-bottom: 24px; }
.fd-page .fd-apply-perks li { font-size: 14px; }
.fd-apply-steps { background: #fff; border: 1px solid var(--fd-line); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px; }
.fd-apply-steps ol { margin: 0; padding-left: 18px; color: var(--fd-ink-2); font-size: 13.5px; line-height: 1.6; }
.fd-apply-request { margin: 0 0 16px; padding: 14px 16px; background: #fff; border-left: 3px solid var(--fd-clay); border-radius: 6px; color: var(--fd-ink); font-size: 14.5px; line-height: 1.55; }

.fd-apply-form { background: #fff; border: 1px solid var(--fd-line); border-radius: 18px; padding: 28px 30px; }
@media (max-width: 600px) { .fd-apply-form { padding: 20px 16px; } }
.fd-apply-form fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.fd-apply-form legend { font-size: 16px; font-weight: 800; color: var(--fd-ink); margin-bottom: 14px; padding: 0; }
/* Own grid and type: the theme styles legends (uppercase), labels and small
   text (bold), and this page must not depend on the account form's rules. */
.fd-apply-form .fd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.fd-apply-form .fd-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .fd-apply-form .fd-grid { grid-template-columns: 1fr; } }
.fd-page .fd-apply-form legend { text-transform: none; letter-spacing: 0; font-family: inherit; line-height: 1.3; border: 0; width: 100%; }
.fd-page .fd-apply-form label { font-weight: 400; text-transform: none; letter-spacing: 0; }
.fd-page .fd-apply-form small { font-weight: 400; }
.fd-page .fd-apply-form .fd-apply-error { font-weight: 600; }
.fd-apply-field { display: block; margin: 0 0 14px; }
.fd-apply-field > span { display: block; font-size: 13px; font-weight: 700; color: var(--fd-ink); margin-bottom: 5px; }
.fd-apply-field > span em { color: var(--fd-clay); font-style: normal; }
.fd-apply-field > span small { font-weight: 400; color: var(--fd-muted); font-size: 12px; }
.fd-page .fd-apply-field input[type="text"], .fd-page .fd-apply-field input[type="email"], .fd-page .fd-apply-field input[type="tel"],
.fd-page .fd-apply-field input[type="url"], .fd-page .fd-apply-field input[type="password"], .fd-page .fd-apply-field select, .fd-page .fd-apply-field textarea {
  width: 100%; margin: 0; box-sizing: border-box; border: 1.5px solid var(--fd-line-2); border-radius: 10px; background: #fff;
  padding: 10px 12px; font: inherit; font-size: 14px; color: var(--fd-ink); box-shadow: none; height: auto; min-height: 44px;
}
.fd-page .fd-apply-field input[readonly] { background: #F7F3EE; color: var(--fd-ink-2); }
.fd-page .fd-apply-field input:focus, .fd-page .fd-apply-field select:focus, .fd-page .fd-apply-field textarea:focus { outline: none; border-color: var(--fd-clay); box-shadow: 0 0 0 3px var(--fd-clay-tint); }
.fd-page .fd-apply-field input[type="file"] { font-size: 13px; padding: 8px 0; }
.fd-apply-hint { display: block; font-size: 12px; color: var(--fd-muted); margin-top: 4px; line-height: 1.4; }
.fd-apply-error { display: block; font-size: 12.5px; font-weight: 600; color: #A8412B; margin-top: 4px; }
.fd-page .fd-apply-field.has-error input, .fd-page .fd-apply-field.has-error select, .fd-page .fd-apply-field.has-error textarea { border-color: #C75A42; }
.fd-apply-alert { background: #FBE9E4; color: #8A3322; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.fd-apply-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--fd-ink-2); margin: 0 0 20px; line-height: 1.5; }
.fd-apply-terms input { margin-top: 3px; flex-shrink: 0; }
.fd-apply-terms a { color: var(--fd-clay-dark); }
.fd-apply-note { margin: 4px 0 0; font-size: 13px; }
.fd-page .fd-apply-submit { max-width: 280px; margin: 0; }
.fd-page .fd-btn-inline { display: inline-flex; width: auto; padding: 0 26px; }
.fd-page .fd-apply-submit:disabled { opacity: .7; cursor: default; }
.fd-apply-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fd-apply-done { max-width: 620px; margin: 20px auto 40px; background: #fff; border: 1px solid var(--fd-line); border-radius: 18px; padding: 40px 36px; text-align: center; }
.fd-apply-done h1 { font-size: 26px; font-weight: 800; margin: 12px 0 10px; color: var(--fd-ink); }
.fd-apply-done p { font-size: 15px; line-height: 1.6; color: var(--fd-ink-2); margin: 0 0 12px; }
.fd-apply-done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--fd-clay-tint); color: var(--fd-clay-dark); display: inline-flex; align-items: center; justify-content: center; }

/* Mijn account > Facturen */
.fd-invoice-open { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #FBF8F4; border: 1px solid var(--fd-line); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.fd-invoice-status { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; background: #FBEFD9; color: #7A5A1E; }
.fd-invoice-status.is-paid { background: #E2EADF; color: #3F5A3B; }
.fd-invoice-status.is-overdue { background: #FBE4DE; color: #8A3322; }
