/* FilePortal hover/focus tooltip. Dependency-free. Pair with tooltip.js.
   Usage: <button data-tip-title="Short title" data-tip="One or two sentences.">  */
.fp-tip {
  position: fixed;
  top: 0; left: 0;
  z-index: 20000;               /* above every modal in styles.css (max 10100) */
  max-width: 280px;
  padding: 9px 12px 10px;
  background: #fff;
  color: var(--text-color-dark, #333);
  font-family: var(--primary-font, "Open Sans", sans-serif);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s linear 140ms;
  white-space: normal;
  overflow-wrap: break-word;
}
.fp-tip[data-placement="bottom"] { transform: translateY(-4px); }
.fp-tip.fp-tip-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 0s;
}
.fp-tip-title {
  display: block;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text-color-dark, #333);
}
.fp-tip-text {
  display: block;
  color: var(--text-color-medium, #666);
}
.fp-tip-title + .fp-tip-text { margin-top: 2px; }
.fp-tip-arrow {
  position: absolute;
  width: 10px; height: 10px;
  background: #fff;
  transform: rotate(45deg);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.fp-tip[data-placement="top"] .fp-tip-arrow    { bottom: -6px; border-top: 0; border-left: 0; }
.fp-tip[data-placement="bottom"] .fp-tip-arrow { top: -6px; border-bottom: 0; border-right: 0; }
@media (prefers-reduced-motion: reduce) {
  .fp-tip, .fp-tip.fp-tip-visible { transition: none; transform: none; }
}
