.cpw-glossary-term {
  position: relative;
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--cpw-color-text-muted) 70%, transparent);
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: help;
}

.cpw-glossary-term__info {
  margin-left: 0.15em;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1;
  opacity: 0.58;
}

.cpw-glossary-term__popover {
  position: absolute;
  z-index: 90;
  bottom: calc(100% + 10px);
  left: 50%;
  width: min(280px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--cpw-color-dark-blue);
  color: var(--cpw-color-white);
  box-shadow: 0 2px 6px rgb(27 42 53 / 0.08), 0 20px 48px rgb(27 42 53 / 0.18);
  font-family: var(--cpw-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  transform: translateX(-50%);
  white-space: normal;
}

.cpw-glossary-term__popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-top-color: var(--cpw-color-dark-blue);
  transform: translateX(-50%);
}

.cpw-glossary-term__title {
  display: block;
  margin-bottom: 4px;
  color: #3bc0ff;
  font-family: var(--cpw-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.cpw-glossary-term__definition {
  display: block;
}

@media (max-width: 640px) {
  .cpw-glossary-term__popover {
    left: 0;
    transform: none;
  }

  .cpw-glossary-term__popover::after {
    left: 18px;
    transform: none;
  }
}
