.with-tooltip {
  display: inline-block;
  cursor: pointer;
}

.with-tooltip .tooltip {
  position: fixed;
  margin-left: 16px;
  margin-top: 16px;
  z-index: 1;
  padding: 8px;
  background: #000;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.with-tooltip .tooltip::before {
  --icon-color: #ffffff;
  --icon-size: 32px;
  display: block;
  content: '';
  position: absolute;
  top: 12px; right: 12px;
  width: var(--icon-size);
  height: var(--icon-size);
  color: var(--icon-color);
}

.with-tooltip .tooltip.linux::before {
  mask-image: url(/theme/images/linux.svg);
  mask-size: var(--icon-size) var(--icon-size);
  mask-repeat: no-repeat;
  background: var(--icon-color);
}

.with-tooltip .tooltip.windows::before {
  content: '\ecd8';
  font-family: 'tabler-icons';
  font-size: var(--icon-size);
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
}

.with-tooltip .tooltip.mac::before {
  content: '\ec17';
  font-family: 'tabler-icons';
  font-size: var(--icon-size);
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
}

.with-tooltip .tooltip.sunos::before {
  mask-image: url(/theme/images/sunos.png);
  mask-size: var(--icon-size) var(--icon-size);
  mask-repeat: no-repeat;
  background: var(--icon-color);
}

.with-tooltip .tooltip p {
  margin-top: 0;
  width: 300px;
  word-break: break-word;
  white-space: normal;
}

.with-tooltip .tooltip .no-tooltip {
  display: none;
}

.with-tooltip:hover .tooltip {
  opacity: 1;
}

@media (hover: none) {
  .with-tooltip:hover .tooltip {
    opacity: 0;
  }
}