/* Isolated opt-in visibility layer. No changes to legacy callbacks, forms or popups. */
.bfe-engagement-auto[hidden] { display: none !important; }
.bfe-engagement-auto, .bfe-engagement-instance { --bfe-engagement-z: 9990; }
@media (prefers-reduced-motion: reduce) {
  .bfe-engagement-auto, .bfe-engagement-auto * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* v5.0.977 — Opt-in campaign-scoped design, NOT a global form re-theme. */
.bfe-eng-custom :is(.bfe-callback-trigger-btn,.bfe-fa-launcher,.bfe-fa-btn),
.bfe-eng-custom a.bfe-popup-link:is(.bfe-popup-launcher--button,.bfe-popup-launcher--floating-tab,.bfe-popup-launcher--floating-button) {
  background:var(--bfe-eng-launcher-bg,#102950) !important;
  color:var(--bfe-eng-launcher-text,#fff) !important;
  border-radius:var(--bfe-eng-radius,12px) !important;
}
.bfe-eng-custom :is(.bfe-callback-trigger-icon,.bfe-fa-icon),
.bfe-eng-custom :is(.bfe-callback-trigger-icon,.bfe-fa-icon) svg {color:var(--bfe-eng-icon,#fff) !important;stroke:currentColor !important;}
.bfe-eng-custom :is(.bfe-popup-modal,.bfe-callback-dialog,.bfe-form-card,.bfe-fa-panel) {
  background:var(--bfe-eng-surface,#fff) !important;
  border-radius:var(--bfe-eng-radius,12px);
}
.bfe-eng-custom :is(.bfe-ui-title,.bfe-header-title,.bfe-step-head .bfe-ui-title,.bfe-form h2,.bfe-form h3,.bfe-form-card h2,.bfe-form-card h3) {
  color:var(--bfe-eng-heading,#102950) !important;
}
.bfe-eng-custom :is(.bfe-step-head p,.bfe-form-card p,.bfe-form-card label,.bfe-form-shell .bfe-label,.bfe-form-shell .bfe-help-text) {
  color:var(--bfe-eng-body,#334155) !important;
}
.bfe-eng-custom :is(.bfe-form-card,.bfe-popup-modal,.bfe-fa-panel) :is(.bfe-btn-primary,button[type=submit]) {
  background:var(--bfe-eng-button,#0f85b5) !important;
  border-color:var(--bfe-eng-button,#0f85b5) !important;
  color:var(--bfe-eng-button-text,#fff) !important;
  border-radius:var(--bfe-eng-radius,12px);
}
.bfe-eng-custom :is(.bfe-form-card,.bfe-popup-modal,.bfe-fa-panel) :is(.bfe-btn-primary,button[type=submit]):hover {
  filter:brightness(.92);
}
/* Native popup-trigger positions for a named shortcode-backed callback.
   Placement is explicitly chosen in the campaign, not inferred from globally-set popup CSS. */
.bfe-eng-position-middle-left a.bfe-popup-link.bfe-popup-launcher--floating-tab { left:0 !important; right:auto !important; top:50% !important; bottom:auto !important; transform:translateY(-50%); }
.bfe-eng-position-bottom-left a.bfe-popup-link.bfe-popup-launcher--floating-button { left:16px !important; right:auto !important; bottom:16px !important; }
.bfe-eng-position-bottom-center a.bfe-popup-link.bfe-popup-launcher--floating-button { left:50% !important; right:auto !important; bottom:16px !important; transform:translateX(-50%); }
.bfe-eng-position-middle-left a.bfe-popup-link.bfe-popup-launcher--floating-button { left:16px !important; right:auto !important; top:50% !important; bottom:auto !important; transform:translateY(-50%); }
.bfe-eng-position-middle-right a.bfe-popup-link.bfe-popup-launcher--floating-button { right:16px !important; top:50% !important; bottom:auto !important; transform:translateY(-50%); }
.bfe-eng-position-bottom-left a.bfe-popup-link.bfe-popup-launcher--floating-tab { left:0 !important; right:auto !important; top:auto !important; bottom:90px !important; transform:none; }
.bfe-eng-position-bottom-right a.bfe-popup-link.bfe-popup-launcher--floating-tab { top:auto !important; bottom:90px !important; transform:none; }
@media(max-width:600px) {
  .bfe-eng-position-middle-left a.bfe-popup-link.bfe-popup-launcher--floating-tab { top:auto !important; bottom:92px !important; transform:none; }
}

.bfe-eng-custom .bfe-popup-link-icon, .bfe-eng-custom .bfe-popup-link-icon svg {color:var(--bfe-eng-icon,#fff) !important;stroke:currentColor !important;}
.bfe-popup-link-icon {display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;}

/* v5.1.15: site-inheriting named campaigns; explicit custom modes are excluded. */
.bfe-engagement-auto:not(.bfe-eng-custom), .bfe-engagement-instance:not(.bfe-eng-custom) {
  --bfe-engagement-radius:var(--bfe-ds-radius,12px);
  --bfe-launcher-radius:var(--bfe-ds-radius,12px);
  --bfe-launcher-bg:var(--bfe-ds-accent,#14b8a6);
  --bfe-launcher-text:var(--bfe-ds-on-accent,#fff);
}
/* Follow the actual WordPress theme palette when theme inheritance is enabled.
   A narrow script resolves accessible launcher text ink after variable resolution. */
.bfe-engagement-auto[data-bfe-theme-launcher="1"],
.bfe-engagement-instance[data-bfe-theme-launcher="1"] {
  --bfe-launcher-bg:var(--wp--preset--color--secondary,var(--wp--preset--color--palette3,var(--wp--preset--color--tertiary,var(--bfe-ds-accent,#14b8a6))));
}
.bfe-engagement-auto:not(.bfe-eng-custom) :is(.bfe-fa-launcher,.bfe-fa-btn,.bfe-callback-trigger-btn),
.bfe-engagement-instance:not(.bfe-eng-custom) :is(.bfe-fa-launcher,.bfe-fa-btn,.bfe-callback-trigger-btn) {
  border-radius:var(--bfe-ds-radius,12px);
}
