/* Credit-Schätz-Badge — dependency-frei (kein JS-Tooltip nötig). */
.credit-estimate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--muted-foreground, #6b7280);
  white-space: nowrap;
}
.credit-estimate .ce-amount {
  font-weight: 600;
  color: var(--foreground, #111827);
}
.credit-estimate[data-ce-insufficient] .ce-amount {
  color: var(--destructive, #dc2626);
}
.credit-estimate .ce-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 9999px;
  border: 1px solid currentColor;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: help;
  opacity: 0.7;
  user-select: none;
}
.credit-estimate .ce-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 15rem;
  max-width: 70vw;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  background: var(--popover, #1f2937);
  color: var(--popover-foreground, #f9fafb);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  z-index: 60;
}
.credit-estimate .ce-help:hover .ce-tip,
.credit-estimate .ce-help:focus .ce-tip,
.credit-estimate .ce-help:focus-within .ce-tip {
  opacity: 1;
  visibility: visible;
}
