/* BR Social Proof — front-end speech bubble */
.br-sp {
  --br-sp-teal: #568594;
  --br-sp-accent: var(--br-sp-teal);
  --br-sp-dark: #111;
  --br-sp-cream: #f5f1ee;
  --br-sp-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);

  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99990;
  max-width: min(340px, calc(100vw - 32px));
  font-family: "Centra Book", "CentraNo1-Book", system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.br-sp.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.br-sp.is-dismissed {
  display: none;
}

.br-sp__bubble {
  position: relative;
  background: #fff;
  color: var(--br-sp-dark);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: var(--br-sp-shadow);
}

/* Speech-bubble tail pointing down-right toward the corner. */
.br-sp__bubble::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(45deg);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.04);
}

.br-sp__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #888;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.br-sp__close:hover {
  color: var(--br-sp-dark);
  background: rgba(0, 0, 0, 0.05);
}

.br-sp__eyebrow {
  margin: 0 0 8px;
  padding-right: 24px;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #6b7280;
}

.br-sp__line {
  margin: 0 0 16px;
  min-height: 2.6em;
  font-family: "Centra Light", "CentraNo1-Light", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.3;
  color: #6b7280;
  transition: opacity 0.2s ease;
}

.br-sp__name {
  color: var(--br-sp-accent);
  font-weight: 400;
}

.br-sp__line.is-fading {
  opacity: 0;
}

.br-sp__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--br-sp-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1.2;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.br-sp__cta:hover,
.br-sp__cta:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 479px) {
  .br-sp {
    right: 12px;
    bottom: 12px;
  }

  .br-sp__line {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .br-sp,
  .br-sp__line,
  .br-sp__cta {
    transition: none;
  }
}
