.fex-tooltip {
  position: absolute;
  z-index: 10000;
  background-color: rgba(30, 41, 59, 0.94);
  color: var(--color-text-light);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  max-width: min(420px, calc(100vw - 24px));
  max-height: min(320px, calc(100vh - 24px));
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.fex-tooltip.show {
  opacity: 1;
}

.fex-tooltip p,
.fex-tooltip ul,
.fex-tooltip ol,
.fex-tooltip table {
  margin: 0 0 8px;
}

.fex-tooltip p:last-child,
.fex-tooltip ul:last-child,
.fex-tooltip ol:last-child,
.fex-tooltip table:last-child {
  margin-bottom: 0;
}

.fex-tooltip ul,
.fex-tooltip ol {
  padding-left: 18px;
}

.fex-tooltip li + li {
  margin-top: 4px;
}

.fex-tooltip table {
  width: 100%;
  border-collapse: collapse;
}

.fex-tooltip td,
.fex-tooltip th {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 6px;
  vertical-align: top;
}

.fex-tooltip a {
  color: inherit;
  text-decoration: underline;
}
