.rich-tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.rich-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: #1e3740;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(30, 55, 64, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s;
  z-index: 1000;
  pointer-events: none;
}

.rich-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #1e3740;
}

.rich-tooltip-wrapper:hover .rich-tooltip {
  opacity: 1;
  visibility: visible;
}

.rich-tooltip-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fadfa9;
  margin-bottom: 6px;
}

.rich-tooltip-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.rich-tooltip-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.safety-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  margin-left: 8px;
  position: relative;
}

.safety-flag--l3 {
  background: #ef4444;
  color: #ffffff;
}

.safety-flag--l2 {
  background: #f59e0b;
  color: #1f2937;
}

.safety-flag--l1 {
  background: #facc15;
  color: #1f2937;
}
