/**
 * Lo speech bubble — mount alongside lo-bubble.js
 * Requires parent .lo to be positioned (fixed / absolute / relative).
 */

.lo-bubble {
  display: none;
  position: absolute;
  right: calc(100% + 24px);
  bottom: 8px;
  width: 140px;
  max-width: min(320px, 72vw);
  padding: 10px 12px;
  background-color: #1f1f1f;
  color: #f2f0eb;
  border-radius: 12px; 
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 8px 20px #00000024;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1;
}

.lo-bubble.is-visible {
  display: block !important;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lo-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 18px;
  width: 12px;
  height: 12px;
  background: #1f1f1f;
  transform: rotate(45deg);
}

@media screen and (max-width: 479px) {
  .lo-bubble {
    right: 0;
    bottom: calc(100% + 14px);
    width: min(200px, 70vw);
  }

  .lo-bubble::after {
    right: 28px;
    bottom: -6px;
  }
}
