.wpbn-wrap {
  position: relative;
  z-index: 999999;
}
.wpbn-bubble {
  position: fixed;
  box-sizing: border-box;
  display: block;
  max-width: min(var(--wpbn-max-width, 360px), calc(100vw - 24px));
  width: max-content;
  min-width: 220px;
  background: var(--wpbn-bg, #111827);
  color: var(--wpbn-text, #fff);
  padding: var(--wpbn-padding, 16px);
  padding-right: calc(var(--wpbn-padding, 16px) + 18px);
  border-radius: var(--wpbn-radius, 16px);
  border: var(--wpbn-border-width, 0) solid var(--wpbn-border-color, transparent);
  box-shadow: var(--wpbn-shadow, none);
  z-index: var(--wpbn-z, 9999);
  text-decoration: none;
  opacity: 0;
  pointer-events: auto;
  transform-origin: center center;
}
.wpbn-bubble__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.wpbn-bubble__inner--clickable {
  cursor: pointer;
}
.wpbn-bubble__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: var(--wpbn-text, #fff);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.wpbn-bubble__close:hover {
  background: rgba(255,255,255,.24);
}
.wpbn-bubble__image {
  display: block;
  max-width: 100px;
  height: auto;
  border-radius: calc(var(--wpbn-radius, 16px) * 0.6);
  flex: 0 0 auto;
}
.wpbn-bubble__content {
  color: var(--wpbn-text, #fff);
  line-height: 1.45;
}
.wpbn-bubble__content a {
  color: var(--wpbn-link, #93c5fd);
  text-decoration: underline;
  position: relative;
  z-index: 2;
}
.wpbn-bubble p:first-child { margin-top: 0; }
.wpbn-bubble p:last-child { margin-bottom: 0; }

.wpbn-pos-top-left,
.wpbn-pos-top-center,
.wpbn-pos-top-right {
  margin-top: calc(var(--wpbn-stack-index, 0) * 16px + var(--wpbn-stack-index, 0) * 100%);
}
.wpbn-pos-bottom-left,
.wpbn-pos-bottom-center,
.wpbn-pos-bottom-right {
  margin-bottom: calc(var(--wpbn-stack-index, 0) * 16px + var(--wpbn-stack-index, 0) * 100%);
}

.wpbn-bubble.is-visible {
  opacity: 1;
}

.wpbn-anim-slide-left { transform: translateX(-28px); }
.wpbn-anim-slide-right { transform: translateX(28px); }
.wpbn-anim-slide-up { transform: translateY(28px); }
.wpbn-anim-slide-down { transform: translateY(-28px); }
.wpbn-anim-fade { transform: none; }
.wpbn-anim-zoom-in { transform: scale(0.92); }

.wpbn-bubble.is-visible.wpbn-anim-slide-left,
.wpbn-bubble.is-visible.wpbn-anim-slide-right,
.wpbn-bubble.is-visible.wpbn-anim-slide-up,
.wpbn-bubble.is-visible.wpbn-anim-slide-down,
.wpbn-bubble.is-visible.wpbn-anim-fade,
.wpbn-bubble.is-visible.wpbn-anim-zoom-in,
.wpbn-bubble.is-closing {
  transition:
    opacity var(--wpbn-duration, 500ms) var(--wpbn-easing, ease) var(--wpbn-delay, 0ms),
    transform var(--wpbn-duration, 500ms) var(--wpbn-easing, ease) var(--wpbn-delay, 0ms);
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.wpbn-bubble.is-closing {
  transition:
    opacity var(--wpbn-close-duration, 400ms) var(--wpbn-close-easing, ease) var(--wpbn-close-delay, 0ms),
    transform var(--wpbn-close-duration, 400ms) var(--wpbn-close-easing, ease) var(--wpbn-close-delay, 0ms);
  opacity: 0;
}
.wpbn-bubble.is-closing.wpbn-close-anim-slide-left { transform: translateX(-28px); }
.wpbn-bubble.is-closing.wpbn-close-anim-slide-right { transform: translateX(28px); }
.wpbn-bubble.is-closing.wpbn-close-anim-slide-up { transform: translateY(-28px); }
.wpbn-bubble.is-closing.wpbn-close-anim-slide-down { transform: translateY(28px); }
.wpbn-bubble.is-closing.wpbn-close-anim-fade { transform: none; }
.wpbn-bubble.is-closing.wpbn-close-anim-zoom-in { transform: scale(0.92); }

@media (max-width: 640px) {
  .wpbn-bubble {
    min-width: 0;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .wpbn-bubble__inner {
    flex-direction: column;
  }

  .wpbn-bubble__image {
    max-width: 100%;
  }
}
