.building-editor-tooltip {
  position: fixed;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 8px 10px;
  transform: translate(-50%, -100%);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  background: #181d24;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, .42),
    0 1px 3px rgba(0, 0, 0, .34);
  color: #f4f6f8;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  pointer-events: none;
  white-space: nowrap;
}

.building-editor-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  transform: translate(-50%, -4px) rotate(45deg);
  border-right: 1px solid rgba(255, 255, 255, .13);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  background: #181d24;
}

.building-editor-tooltip__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.building-editor-tooltip__shortcut {
  min-width: 22px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 3px;
  background: rgba(255, 255, 255, .07);
  color: #aeb7c4;
  font: 600 10px/1.2 "Montserrat", "Segoe UI", sans-serif;
  text-align: center;
  box-shadow: inset 0 -1px rgba(0, 0, 0, .28);
}

.building-editor-tooltip[hidden] {
  display: none;
}
