/* Bonafora Social Proof 1.3 — edrone-style toast, entirely independent of Breakdance. */
#bfsp-root { position: fixed; inset: 0; z-index: 9000; pointer-events: none; font-family: inherit; }
#bfsp-root .bfsp-toast {
  position: absolute; width: min(516px, calc(100vw - 32px)); box-sizing: border-box;
  display: flex; align-items: center; gap: 16px; min-height: 84px;
  background: #fff; border: 0; border-radius: 16px;
  padding: 14px 14px 16px 16px;
  box-shadow: 0 7px 26px rgba(21, 22, 25, .16);
  color: #484848; opacity: 0; transform: translateY(-9px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: auto; line-height: 1.5; isolation: isolate;
}
#bfsp-root .bfsp-visible { opacity: 1; transform: translateY(0); }
#bfsp-root .bfsp-top-left { top: var(--bfsp-desktop-offset,14px); left: 40px; }
#bfsp-root .bfsp-top-right { top: var(--bfsp-desktop-offset,14px); right: 40px; }
#bfsp-root .bfsp-bottom-left { bottom: var(--bfsp-desktop-offset,14px); left: 40px; transform: translateY(9px); }
#bfsp-root .bfsp-bottom-right { bottom: var(--bfsp-desktop-offset,14px); right: 40px; transform: translateY(9px); }
#bfsp-root .bfsp-bottom-left.bfsp-visible, #bfsp-root .bfsp-bottom-right.bfsp-visible { transform: translateY(0); }
/* WordPress logged-in admin bar must not sit underneath the toast. */
body.admin-bar #bfsp-root .bfsp-top-left, body.admin-bar #bfsp-root .bfsp-top-right { top: calc(var(--bfsp-desktop-offset,14px) + 32px); }
#bfsp-root .bfsp-mark {
  flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center;
  color: var(--bfsp-icon-color, #352622); background: var(--bfsp-icon-bg, #fbe5de); border: var(--bfsp-icon-border-width, 1px) solid var(--bfsp-icon-border-color, #f7c2b2); border-radius: 12px;
}
#bfsp-root .bfsp-mark svg { width: 28px; height: 28px; }
#bfsp-root .bfsp-content { min-width: 0; flex: 1 1 auto; }
#bfsp-root .bfsp-body { display: block; font-size: 16px; font-weight: 400; line-height: 1.55; color: #494949; overflow-wrap: anywhere; }
#bfsp-root .bfsp-close {
  flex: 0 0 28px; width: 28px; height: 28px; margin: 0 0 0 2px; border: 0;
  background: transparent; color: #111; cursor: pointer;
  font: 400 24px/1 Arial, sans-serif; display: grid; place-items: center;
  padding: 0; border-radius: 7px;
}
#bfsp-root .bfsp-close:hover, #bfsp-root .bfsp-close:focus-visible { background: #f2f2f2; outline-offset: 2px; }
#bfsp-root .bfsp-progress-track { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; overflow: hidden; border-radius: 0 0 16px 16px; background: #f4f1f0; }
#bfsp-root .bfsp-progress { height: 100%; width: 100%; background: var(--bfsp-progress-color, #352622); transform-origin: left center; transform: scaleX(1); }
#bfsp-root .bfsp-visible .bfsp-progress { animation: bfsp-progress var(--bfsp-duration,7s) linear forwards; }
@keyframes bfsp-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 767px) {
  #bfsp-root .bfsp-toast {
    left: 50%; right: auto; width: min(420px, calc(100vw - 24px));
    min-height: 72px; padding: 10px 10px 12px; gap: 9px;
    transform: translate(-50%, -8px); border-radius: 13px;
  }
  #bfsp-root .bfsp-mobile-top, #bfsp-root .bfsp-mobile-top.bfsp-bottom-left, #bfsp-root .bfsp-mobile-top.bfsp-bottom-right {
    top: calc(var(--bfsp-mobile-offset,12px) + env(safe-area-inset-top,0px)); bottom: auto;
  }
  body.admin-bar #bfsp-root .bfsp-mobile-top, body.admin-bar #bfsp-root .bfsp-mobile-top.bfsp-bottom-left, body.admin-bar #bfsp-root .bfsp-mobile-top.bfsp-bottom-right {
    top: calc(var(--bfsp-mobile-offset,12px) + env(safe-area-inset-top,0px) + 46px);
  }
  #bfsp-root .bfsp-mobile-bottom, #bfsp-root .bfsp-mobile-bottom.bfsp-top-left, #bfsp-root .bfsp-mobile-bottom.bfsp-top-right {
    top: auto; bottom: calc(var(--bfsp-mobile-offset,12px) + env(safe-area-inset-bottom,0px));
    transform: translate(-50%, 8px);
  }
  body.admin-bar #bfsp-root .bfsp-mobile-bottom.bfsp-top-left,
  body.admin-bar #bfsp-root .bfsp-mobile-bottom.bfsp-top-right { top: auto; }
  #bfsp-root .bfsp-visible { transform: translate(-50%, 0) !important; }
  #bfsp-root .bfsp-mark { flex-basis: 44px; width: 44px; height: 44px; border-radius: 10px; }
  #bfsp-root .bfsp-mark svg { width: 23px; height: 23px; }
  #bfsp-root .bfsp-body { font-size: 13px; line-height: 1.45; }
  #bfsp-root .bfsp-close { flex-basis: 34px; width: 34px; height: 34px; font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  #bfsp-root .bfsp-toast { transition: none; }
  #bfsp-root .bfsp-visible .bfsp-progress { animation: none; }
}

/* v1.6.0: three additional orientation-specific layouts. Existing desktop and
   portrait-phone selectors above are retained exactly for saved settings. */
#bfsp-root .bfsp-responsive {
  left: auto; right: auto; top: auto; bottom: auto;
  width: min(516px, calc(100vw - 24px));
  transform: translateY(-9px);
}
#bfsp-root .bfsp-responsive.bfsp-device-phone-landscape {
  width: min(420px, calc(100vw - 24px));
  min-height: 66px; padding: 8px 10px 11px; gap: 9px;
}
#bfsp-root .bfsp-responsive.bfsp-device-tablet-portrait {
  width: min(470px, calc(100vw - 24px));
}
#bfsp-root .bfsp-responsive.bfsp-place-top-left,
#bfsp-root .bfsp-responsive.bfsp-place-top-center,
#bfsp-root .bfsp-responsive.bfsp-place-top-right {
  top: calc(var(--bfsp-layout-offset,12px) + env(safe-area-inset-top,0px)); bottom: auto;
}
#bfsp-root .bfsp-responsive.bfsp-place-bottom-left,
#bfsp-root .bfsp-responsive.bfsp-place-bottom-center,
#bfsp-root .bfsp-responsive.bfsp-place-bottom-right {
  top: auto; bottom: calc(var(--bfsp-layout-offset,12px) + env(safe-area-inset-bottom,0px));
  transform: translateY(9px);
}
#bfsp-root .bfsp-responsive.bfsp-place-top-left,
#bfsp-root .bfsp-responsive.bfsp-place-bottom-left {
  left: max(16px, env(safe-area-inset-left,0px)); right: auto;
}
#bfsp-root .bfsp-responsive.bfsp-place-top-right,
#bfsp-root .bfsp-responsive.bfsp-place-bottom-right {
  right: max(16px, env(safe-area-inset-right,0px)); left: auto;
}
#bfsp-root .bfsp-responsive.bfsp-place-top-center,
#bfsp-root .bfsp-responsive.bfsp-place-bottom-center {
  left: 50%; right: auto; transform: translate(-50%, -9px);
}
#bfsp-root .bfsp-responsive.bfsp-place-bottom-center { transform: translate(-50%, 9px); }
#bfsp-root .bfsp-responsive.bfsp-visible { transform: translateY(0); }
#bfsp-root .bfsp-responsive.bfsp-place-top-center.bfsp-visible,
#bfsp-root .bfsp-responsive.bfsp-place-bottom-center.bfsp-visible { transform: translate(-50%, 0); }
body.admin-bar #bfsp-root .bfsp-responsive.bfsp-place-top-left,
body.admin-bar #bfsp-root .bfsp-responsive.bfsp-place-top-center,
body.admin-bar #bfsp-root .bfsp-responsive.bfsp-place-top-right {
  top: calc(var(--bfsp-layout-offset,12px) + env(safe-area-inset-top,0px) + 32px);
}
@media (max-width: 782px) {
  body.admin-bar #bfsp-root .bfsp-responsive.bfsp-place-top-left,
  body.admin-bar #bfsp-root .bfsp-responsive.bfsp-place-top-center,
  body.admin-bar #bfsp-root .bfsp-responsive.bfsp-place-top-right {
    top: calc(var(--bfsp-layout-offset,12px) + env(safe-area-inset-top,0px) + 46px);
  }
}

/* Stronger than the legacy max-width:767px mobile animation rule, whose
   transform uses !important. Required for centered AND corner placements. */
#bfsp-root .bfsp-responsive.bfsp-visible { transform: translateY(0) !important; }
#bfsp-root .bfsp-responsive.bfsp-place-top-center.bfsp-visible,
#bfsp-root .bfsp-responsive.bfsp-place-bottom-center.bfsp-visible { transform: translate(-50%, 0) !important; }
