/* BPF v51.16.5 — reliable Pro edge frame + Classic control contrast. */

/* Retire the earlier html pseudo-element frame if an older theme sheet is cached. */
html[data-bpf-theme="pro"]::after,
html[data-theme="bpf-pro"]::after{
  content:none!important;
  display:none!important;
}

.bpf-edge-glow-frame{
  display:none;
  position:fixed;
  inset:3px;
  z-index:2147483646;
  pointer-events:none;
  box-sizing:border-box;
  border-radius:clamp(14px,1.35vw,22px);
}

html[data-bpf-theme="pro"] .bpf-edge-glow-frame,
html[data-theme="bpf-pro"] .bpf-edge-glow-frame{
  display:block;
  border:2px solid rgba(98,178,255,.82);
  box-shadow:
    0 0 12px rgba(98,178,255,.68),
    0 0 26px rgba(47,139,255,.34),
    inset 0 0 14px rgba(98,178,255,.38),
    inset 0 0 38px rgba(47,139,255,.18),
    inset 0 0 68px rgba(32,180,196,.09);
  opacity:.96;
}

/* Classic controls always use readable white labels, including filled red CTAs. */
html[data-bpf-theme="classic"] button,
html[data-theme="bpf-classic"] button,
html[data-bpf-theme="classic"] [role="button"],
html[data-theme="bpf-classic"] [role="button"],
html[data-bpf-theme="classic"] .bpf-coach-home a,
html[data-theme="bpf-classic"] .bpf-coach-home a,
html[data-bpf-theme="classic"] a[class*="btn"],
html[data-theme="bpf-classic"] a[class*="btn"],
html[data-bpf-theme="classic"] a[class*="button"],
html[data-theme="bpf-classic"] a[class*="button"],
html[data-bpf-theme="classic"] .prog-cta,
html[data-theme="bpf-classic"] .prog-cta,
html[data-bpf-theme="classic"] .upsell-btn,
html[data-theme="bpf-classic"] .upsell-btn{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}

html[data-bpf-theme="classic"] .bpf-coach-home a *,
html[data-theme="bpf-classic"] .bpf-coach-home a *,
html[data-bpf-theme="classic"] button *,
html[data-theme="bpf-classic"] button *,
html[data-bpf-theme="classic"] [role="button"] *,
html[data-theme="bpf-classic"] [role="button"] *{
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
}

@media(max-width:700px){
  .bpf-edge-glow-frame{
    inset:2px;
    border-radius:12px;
  }
  html[data-bpf-theme="pro"] .bpf-edge-glow-frame,
  html[data-theme="bpf-pro"] .bpf-edge-glow-frame{
    border-width:1px;
    border-color:rgba(98,178,255,.64);
    box-shadow:
      0 0 9px rgba(98,178,255,.44),
      inset 0 0 10px rgba(98,178,255,.26),
      inset 0 0 24px rgba(47,139,255,.12);
    opacity:.84;
  }
}

@media(print){
  .bpf-edge-glow-frame{display:none!important}
}
