.site-tooltip {
  position: fixed;
  z-index: 99999;
  max-width: min(320px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 12px;
  background: #0c261f;
  color: #fffaf0;
  box-shadow: 0 16px 40px rgba(12, 38, 31, 0.22);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.site-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.site-tooltip::after {
  content: "";
  position: absolute;
  left: var(--tooltip-arrow-left, 50%);
  width: 10px;
  height: 10px;
  background: #0c261f;
  border-right: 1px solid rgba(245, 241, 232, 0.18);
  border-bottom: 1px solid rgba(245, 241, 232, 0.18);
  transform: translateX(-50%) rotate(45deg);
}

.site-tooltip[data-placement="top"]::after {
  bottom: -6px;
}

.site-tooltip[data-placement="bottom"]::after {
  top: -6px;
  transform: translateX(-50%) rotate(225deg);
}

@media (hover: none) and (pointer: coarse) {
  .site-tooltip {
    display: none;
  }
}
