.handmade-chip {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  color: rgba(17, 24, 39, 0.72);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 16px rgba(30, 41, 59, 0.16);
  cursor: pointer;
  backdrop-filter: blur(8px) saturate(140%);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.handmade-chip svg {
  width: 15px;
  height: 15px;
}

.handmade-chip::after {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: max-content;
  max-width: min(260px, calc(100vw - 44px));
  padding: 8px 9px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  color: rgba(17, 24, 39, 0.86);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(30, 41, 59, 0.18);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.28;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.handmade-chip:hover,
.handmade-chip:focus-visible,
.handmade-chip.is-open {
  color: rgba(17, 24, 39, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(30, 41, 59, 0.2);
  transform: translateY(-1px);
}

.handmade-chip:hover::after,
.handmade-chip:focus-visible::after,
.handmade-chip.is-open::after {
  opacity: 1;
  transform: translateY(0);
}
