/* Global Wine Score Index tooltip, activated with data-wsi-tooltip + data-tooltip. */
.wsi-toggle-tooltip {
  position: fixed;
  z-index: 2200;
  max-width: 260px;
  padding: 9px 12px;
  border: 1px solid rgba(218, 181, 91, 0.62);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(60, 14, 33, 0.98), rgba(31, 9, 21, 0.98));
  box-shadow: 0 12px 30px rgba(8, 2, 6, 0.42), 0 0 0 1px rgba(255, 236, 180, 0.04) inset;
  color: #f8edda;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 140ms ease, transform 140ms ease;
}

.wsi-toggle-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(218, 181, 91, 0.62);
  border-bottom: 1px solid rgba(218, 181, 91, 0.62);
  background: #1f0915;
  transform: translate(-50%, -5px) rotate(45deg);
}

.wsi-toggle-tooltip.is-below::after {
  top: auto;
  bottom: 100%;
  border: 0;
  border-top: 1px solid rgba(218, 181, 91, 0.62);
  border-left: 1px solid rgba(218, 181, 91, 0.62);
  transform: translate(-50%, 5px) rotate(45deg);
}

.wsi-toggle-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
