/* Dotty Retro DS · chips.css */

/* ─────────────────────────────────────────
   8. CHIPS
   ───────────────────────────────────────── */
.ds-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ds-chip img { width: 18px; height: 18px; opacity: 0.9; }
.ds-chip-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.ds-chip-dot-green { background: #3cb03a; }
.ds-chip-dot-yellow { background: #e0b020; }
.ds-chip-dot-gray { background: #b0b0b0; }
.ds-chip-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  color: #888;
  background: none;
}
.ds-chip-tag.ok {
  color: #2e9020;
  background: none;
}
.ds-chip-tag.warn {
  color: #c06010;
  background: none;
}
.ds-chip.is-muted {
  color: #888;
  font-weight: 500;
}
.ds-chip.is-muted img {
  opacity: 0.55;
}

.ds-chip[data-tooltip] {
  position: relative;
  cursor: default;
}
.ds-chip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(2px);
  padding: 5px 8px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: #333;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 5;
}
.ds-chip[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 5;
}
.ds-chip[data-tooltip]:hover::after,
.ds-chip[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ds-chip[data-tooltip]:hover::before,
.ds-chip[data-tooltip]:focus-visible::before {
  opacity: 1;
}
