.elh-fb-tool {
  --elh-primary: #1877f2;
  --elh-secondary: #10b981;
  --elh-tertiary: #f59e0b;
  --elh-ink: #0f172a;
  --elh-muted: #64748b;
  --elh-line: #dbe5f2;
  --elh-soft: #eef5ff;
  --elh-soft-green: #ecfdf5;
  --elh-bg: #f7f9fd;
  --elh-danger: #b42318;
  --elh-wide-max: 1480px;
  box-sizing: border-box;
  width: min(92vw, var(--elh-wide-max));
  max-width: var(--elh-wide-max);
  margin: 0 auto;
  padding: 40px 24px;
  color: var(--elh-ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f9ff;
  border-radius: 24px;
}

.elh-fb-tool *,
.elh-fb-tool *::before,
.elh-fb-tool *::after {
  box-sizing: border-box;
}

.elh-fb-tool h1,
.elh-fb-tool h2,
.elh-fb-tool h3,
.elh-fb-tool p {
  margin-top: 0;
}

.elh-fb-tool__hero,
.elh-fb-tool__card,
.elh-fb-tool__guide,
.elh-fb-tool__faq,
.elh-fb-tool__footer,
.elh-fb-tool--disabled {
  border: 1px solid rgba(219, 229, 242, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.02);
}

.elh-fb-tool__hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.elh-fb-tool__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(24, 119, 242, 0.13), transparent 28%),
    linear-gradient(135deg, rgba(238, 245, 255, 0.95), rgba(255, 255, 255, 0.85));
  pointer-events: none;
}

.elh-fb-tool__hero > * {
  position: relative;
}

.elh-fb-tool__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.elh-fb-tool__eyebrow span {
  padding: 7px 10px;
  border: 1px solid rgba(24, 119, 242, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

.elh-fb-tool__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: stretch;
}

.elh-fb-tool h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: 0;
}

.elh-fb-tool__lead {
  margin-bottom: 14px;
  color: #1e293b;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.55;
}

.elh-fb-tool__intro,
.elh-fb-tool__section-heading p,
.elh-fb-tool__guide-step p,
.elh-fb-tool__faq-item p,
.elh-fb-tool__aside p,
.elh-fb-tool__microcopy,
.elh-fb-tool__note {
  color: var(--elh-muted);
  line-height: 1.75;
}

.elh-fb-tool__trust-panel {
  display: grid;
  gap: 12px;
  align-content: center;
}

.elh-fb-tool__trust-panel div {
  padding: 15px;
  border: 1px solid rgba(219, 229, 242, 0.9);
  border-radius: 16px;
  background: #fff;
}

.elh-fb-tool__trust-panel strong,
.elh-fb-tool__trust-panel span {
  display: block;
}

.elh-fb-tool__trust-panel strong {
  margin-bottom: 3px;
  font-size: 15px;
}

.elh-fb-tool__trust-panel span {
  color: var(--elh-muted);
  font-size: 13px;
}

.elh-fb-tool__promises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.elh-fb-tool__promises li {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  background: var(--elh-soft-green);
  color: #065f46;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.elh-fb-tool__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.elh-fb-tool__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  min-height: 84px;
  padding: 15px;
  border: 1px solid var(--elh-line);
  border-radius: 16px;
  background: #fff;
}

.elh-fb-tool__step span {
  grid-row: span 2;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}

.elh-fb-tool__step strong {
  align-self: end;
  font-size: 15px;
}

.elh-fb-tool__step small {
  color: var(--elh-muted);
  line-height: 1.45;
}

.elh-fb-tool__step.is-active,
.elh-fb-tool__step.is-complete {
  background: var(--elh-soft);
  border-color: rgba(24, 119, 242, 0.28);
  box-shadow: 0 10px 25px -5px rgba(24, 119, 242, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

.elh-fb-tool__step.is-active span {
  background: var(--elh-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.15);
}

.elh-fb-tool__step.is-complete span {
  background: var(--elh-secondary);
  color: #fff;
}

.elh-fb-tool__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px;
  align-items: start;
}

.elh-fb-tool__card {
  padding: 28px;
}

.elh-fb-tool__section-heading {
  margin-bottom: 22px;
}

.elh-fb-tool__section-heading span,
.elh-fb-tool__cost-row span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--elh-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.elh-fb-tool__section-heading h2 {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.elh-fb-tool__section-heading--compact {
  margin-bottom: 14px;
}

.elh-fb-tool__form {
  display: grid;
  gap: 20px;
}

.elh-fb-tool__field {
  display: grid;
  gap: 9px;
}

.elh-fb-tool__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.elh-fb-tool label,
.elh-fb-tool__token-label {
  color: #1e293b;
  font-weight: 900;
}

.elh-fb-tool label span {
  color: var(--elh-tertiary);
  font-size: 12px;
}

.elh-fb-tool input,
.elh-fb-tool textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: var(--elh-ink);
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.elh-fb-tool input:focus,
.elh-fb-tool textarea:focus {
  border-color: var(--elh-primary);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2);
  outline: none;
}

.elh-fb-tool textarea {
  resize: vertical;
  overflow-wrap: anywhere;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.elh-fb-tool__input-wrap {
  display: flex;
  gap: 10px;
}

.elh-fb-tool__help,
.elh-fb-tool__toggle-secret,
.elh-fb-tool__button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.elh-fb-tool__help {
  flex: 0 0 34px;
  width: 34px;
  min-height: 34px;
  background: #e0ecff;
  color: #1d4ed8;
}

.elh-fb-tool__toggle-secret {
  flex: 0 0 76px;
  border: 1px solid var(--elh-line);
  background: #fff;
  color: #334155;
}

.elh-fb-tool__button {
  width: fit-content;
  padding: 0 20px;
  background: #fff;
  color: #1d4ed8;
}

.elh-fb-tool__button--primary {
  background: var(--elh-primary);
  color: #fff;
  box-shadow: 0 10px 25px -5px rgba(24, 119, 242, 0.14);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.elh-fb-tool__button--primary:hover {
  background: #0c63d4;
  transform: translateY(-1px);
}

.elh-fb-tool__button--ghost {
  flex: 0 0 auto;
  border: 1px solid rgba(24, 119, 242, 0.25);
  background: #eef5ff;
  box-shadow: none;
}

.elh-fb-tool__button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.elh-fb-tool__help-text,
.elh-fb-tool__card-status,
.elh-fb-tool__status,
.elh-fb-tool__warning {
  border-radius: 12px;
  line-height: 1.65;
}

.elh-fb-tool__help-text {
  display: none;
  padding: 12px 14px;
  border: 1px solid rgba(24, 119, 242, 0.16);
  background: #eef5ff;
  color: #334155;
}

.elh-fb-tool__field:has(.elh-fb-tool__help:hover) .elh-fb-tool__help-text,
.elh-fb-tool__field:has(.elh-fb-tool__help:focus-visible) .elh-fb-tool__help-text,
.elh-fb-tool__help-text.is-open {
  display: block;
}

.elh-fb-tool__help-text p {
  margin: 0 0 12px;
}

.elh-fb-tool__buy-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: -10px;
  color: var(--elh-muted);
  font-size: 14px;
}

.elh-fb-tool__buy-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--elh-tertiary);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 10px 20px -10px rgba(245, 158, 11, 0.8);
}

.elh-fb-tool__example-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid #c7d8f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 25px -12px rgba(24, 119, 242, 0.32);
}

.elh-fb-tool__example-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.elh-fb-tool__example-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.elh-fb-tool__example-topbar strong {
  margin-left: 6px;
  color: #334155;
  font-size: 12px;
}

.elh-fb-tool__example-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
}

.elh-fb-tool__example-sidebar b,
.elh-fb-tool__example-sidebar em {
  display: block;
  font-style: normal;
}

.elh-fb-tool__example-sidebar em {
  border-radius: 8px;
  padding: 7px 8px;
  background: #1877f2;
  color: #fff;
}

.elh-fb-tool__example-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.elh-fb-tool__example-body--wide {
  grid-column: 1 / -1;
}

.elh-fb-tool__example-body label {
  font-size: 12px;
}

.elh-fb-tool__example-body code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  box-shadow: inset 0 2px 4px 0 rgba(15, 23, 42, 0.05);
}

.elh-fb-tool__example-body code.is-blurred {
  filter: blur(4px);
  user-select: none;
}

.elh-fb-tool__example-body code.is-token {
  color: #1d4ed8;
}

.elh-fb-tool__example-body small {
  color: var(--elh-muted);
  line-height: 1.6;
}

.elh-fb-tool__scope-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.elh-fb-tool__scope-row span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #ecfdf5;
  color: #047857;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.elh-fb-tool__card-status {
  min-height: 0;
  color: var(--elh-muted);
}

.elh-fb-tool__warning {
  padding: 13px 15px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: #fffbeb;
  color: #854d0e;
}

.elh-fb-tool__microcopy {
  margin-bottom: 0;
}

.elh-fb-tool__pages,
.elh-fb-tool__checkout,
.elh-fb-tool__result {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.elh-fb-tool__page-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 64px;
  padding: 14px;
  border: 1px solid var(--elh-line);
  border-radius: 16px;
  background: #fff;
}

.elh-fb-tool__page-option + .elh-fb-tool__page-option {
  margin-top: 10px;
}

.elh-fb-tool__page-option input {
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
}

.elh-fb-tool__page-option small {
  display: block;
  color: var(--elh-muted);
  line-height: 1.6;
}

.elh-fb-tool__cost-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.elh-fb-tool__cost-row strong {
  color: #065f46;
  font-size: 20px;
}

.elh-fb-tool__status {
  margin-top: 16px;
}

.elh-fb-tool__result {
  border-top: 0;
  border-radius: 16px;
  padding: 22px;
  background: var(--elh-soft);
  box-shadow: inset 0 2px 4px 0 rgba(15, 23, 42, 0.05);
}

.elh-fb-tool__result dl {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0 0 18px;
}

.elh-fb-tool__result dt {
  font-weight: 900;
}

.elh-fb-tool__result dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.elh-fb-tool__result--success h2 {
  color: #047857;
}

.elh-fb-tool__result--error {
  background: #fef2f2;
}

.elh-fb-tool__result--error h2,
[data-tone="error"] {
  color: var(--elh-danger);
}

[data-tone="success"] {
  color: #047857;
}

[data-tone="loading"] {
  color: #92400e;
}

.elh-fb-tool__billing {
  color: #065f46;
  font-weight: 900;
}

.elh-fb-tool__aside {
  position: sticky;
  top: 24px;
  background: linear-gradient(180deg, #fff, #eef5ff);
}

.elh-fb-tool__aside-icon {
  display: inline-grid;
  width: 58px;
  height: 42px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  letter-spacing: 3px;
}

.elh-fb-tool__aside h2 {
  font-size: 22px;
  line-height: 1.25;
}

.elh-fb-tool__aside-link {
  display: inline-block;
  margin-top: 8px;
  color: #1d4ed8;
  font-weight: 900;
  text-decoration: none;
}

.elh-fb-tool__guide,
.elh-fb-tool__faq,
.elh-fb-tool__footer {
  margin-top: 24px;
  padding: 30px;
}

.elh-fb-tool__guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 1280px) {
  .elh-fb-tool__guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .elh-fb-tool__guide-step--wide {
    grid-column: 1 / -1;
  }
}

.elh-fb-tool__guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: var(--elh-soft);
}

.elh-fb-tool__guide-step--wide {
  grid-column: 1 / -1;
}

.elh-fb-tool__guide-step > span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--elh-primary);
  color: #fff;
  font-weight: 900;
}

.elh-fb-tool__guide-step--wide > span {
  background: #059669;
}

.elh-fb-tool__guide-step h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.elh-fb-tool__guide-step p {
  margin-bottom: 0;
}

.elh-fb-tool__faq-item {
  border-radius: 16px;
  background: var(--elh-soft);
}

.elh-fb-tool__faq-item + .elh-fb-tool__faq-item {
  margin-top: 12px;
}

.elh-fb-tool__faq-item summary {
  min-height: 54px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 900;
}

.elh-fb-tool__faq-item p {
  margin: 0;
  padding: 0 18px 18px;
}

.elh-fb-tool__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: var(--elh-muted);
}

.elh-fb-tool__footer strong {
  color: var(--elh-ink);
}

.elh-fb-tool--disabled {
  padding: 24px;
}

@media (max-width: 960px) {
  .elh-fb-tool__hero-grid,
  .elh-fb-tool__workspace {
    grid-template-columns: 1fr;
  }

  .elh-fb-tool__aside {
    position: static;
  }

  .elh-fb-tool__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .elh-fb-tool {
    padding: 28px 14px;
  }

  .elh-fb-tool__hero,
  .elh-fb-tool__card,
  .elh-fb-tool__guide,
  .elh-fb-tool__faq,
  .elh-fb-tool__footer {
    border-radius: 16px;
    padding: 20px;
  }

  .elh-fb-tool h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .elh-fb-tool__lead {
    font-size: 18px;
  }

  .elh-fb-tool__steps,
  .elh-fb-tool__guide-grid {
    grid-template-columns: 1fr;
  }

  .elh-fb-tool__input-wrap {
    flex-direction: column;
  }

  .elh-fb-tool__button,
  .elh-fb-tool__button--ghost,
  .elh-fb-tool__toggle-secret {
    width: 100%;
  }

  .elh-fb-tool__result dl {
    grid-template-columns: 1fr;
  }
}

/* WordPress theme integration guard.
   Some themes apply wide/full align, heading, list, and form styles after plugin CSS.
   Keep this block scoped to pages containing this shortcode. */
body:has(.elh-fb-tool) .entry-title,
body:has(.elh-fb-tool) .page-title,
body:has(.elh-fb-tool) .wp-block-post-title {
  display: none !important;
}

body:has(.elh-fb-tool) .site,
body:has(.elh-fb-tool) .site-content,
body:has(.elh-fb-tool) .content-area,
body:has(.elh-fb-tool) .site-main,
body:has(.elh-fb-tool) main,
body:has(.elh-fb-tool) article,
body:has(.elh-fb-tool) .entry-content,
body:has(.elh-fb-tool) .wp-site-blocks {
  max-width: none !important;
  width: 100% !important;
}

body .entry-content .elh-fb-tool,
body main .elh-fb-tool,
body .elh-fb-tool {
  display: block !important;
  width: min(92vw, 1480px) !important;
  max-width: 1480px !important;
  margin: 40px auto !important;
  padding: 40px 24px !important;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--elh-ink) !important;
  background: #f8f9ff !important;
}

body .elh-fb-tool__hero,
body .elh-fb-tool__card,
body .elh-fb-tool__guide,
body .elh-fb-tool__faq,
body .elh-fb-tool__footer {
  display: block !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.02) !important;
}

body .elh-fb-tool__hero-grid,
body .elh-fb-tool__steps,
body .elh-fb-tool__workspace,
body .elh-fb-tool__guide-grid,
body .elh-fb-tool__form,
body .elh-fb-tool__field {
  display: grid !important;
}

body .elh-fb-tool__hero-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr) !important;
}

body .elh-fb-tool__steps {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body .elh-fb-tool__workspace {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
}

body .elh-fb-tool h1,
body .elh-fb-tool h2,
body .elh-fb-tool h3,
body .elh-fb-tool p,
body .elh-fb-tool ul,
body .elh-fb-tool li,
body .elh-fb-tool label,
body .elh-fb-tool input,
body .elh-fb-tool textarea,
body .elh-fb-tool button {
  font-family: inherit !important;
  letter-spacing: 0 !important;
}

body .elh-fb-tool h1 {
  margin: 0 0 14px !important;
  font-size: 36px !important;
  line-height: 44px !important;
  font-weight: 700 !important;
}

body .elh-fb-tool__promises,
body .elh-fb-tool__eyebrow {
  display: flex !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  padding-left: 0 !important;
}

body .elh-fb-tool input,
body .elh-fb-tool textarea {
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body .elh-fb-tool input:focus,
body .elh-fb-tool textarea:focus {
  border-color: var(--elh-primary) !important;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2) !important;
  outline: none !important;
}

@media (max-width: 960px) {
  body .elh-fb-tool__hero-grid,
  body .elh-fb-tool__workspace {
    grid-template-columns: 1fr !important;
  }

  body .elh-fb-tool__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body .entry-content .elh-fb-tool,
  body main .elh-fb-tool,
  body .elh-fb-tool {
    margin: 20px auto !important;
    padding: 24px 16px !important;
  }

  body .elh-fb-tool__steps,
  body .elh-fb-tool__guide-grid {
    grid-template-columns: 1fr !important;
  }

  body .elh-fb-tool h1 {
    font-size: 28px !important;
    line-height: 36px !important;
  }
}
