/* ═══════════════════════════════════════════════
   SV-TOOLTIP — Global Tooltip System
   ═══════════════════════════════════════════════ */

/* The trigger icon (?) */
.sv-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
  margin-left: 4px;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  border: none;
  padding: 0;
}
.sv-tip:hover {
  background: #16a34a;
  color: #fff;
  transform: scale(1.15);
}

/* Tooltip bubble */
.sv-tip-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: #1e293b;
  color: #f1f5f9;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
  width: max-content;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  text-align: left;
}
.sv-tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
}

/* Show on hover */
.sv-tip:hover .sv-tip-bubble {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

/* FAQ link inside tooltip */
.sv-tip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4ade80;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  font-size: 11px;
}
.sv-tip-link:hover {
  text-decoration: underline;
  color: #86efac;
}

/* Position variants */
.sv-tip.tip-right .sv-tip-bubble {
  left: calc(100% + 8px);
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
}
.sv-tip.tip-right:hover .sv-tip-bubble {
  transform: translateY(-50%) scale(1);
}
.sv-tip.tip-right .sv-tip-bubble::after {
  top: 50%;
  left: auto;
  right: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #1e293b;
}

.sv-tip.tip-down .sv-tip-bubble {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateX(-50%) scale(0.95);
}
.sv-tip.tip-down:hover .sv-tip-bubble {
  transform: translateX(-50%) scale(1);
}
.sv-tip.tip-down .sv-tip-bubble::after {
  top: auto;
  bottom: 100%;
  border: 6px solid transparent;
  border-bottom-color: #1e293b;
}

.sv-tip.tip-left .sv-tip-bubble {
  right: calc(100% + 8px);
  left: auto;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
}
.sv-tip.tip-left:hover .sv-tip-bubble {
  transform: translateY(-50%) scale(1);
}
.sv-tip.tip-left .sv-tip-bubble::after {
  top: 50%;
  right: auto;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1e293b;
}

/* Inline variant (no icon, just the text underline) */
.sv-tip-inline {
  position: relative;
  border-bottom: 1px dashed #94a3b8;
  cursor: help;
  display: inline;
}
.sv-tip-inline .sv-tip-bubble {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
}
.sv-tip-inline:hover .sv-tip-bubble {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

/* Responsive: on very small screens, widen tooltips */
@media (max-width: 480px) {
  .sv-tip-bubble {
    max-width: 220px;
    font-size: 11px;
  }
}
