/* Disabled-control title tooltip (core/disabledTitle.ts, issue #200).
   The UA will not show `title` on a disabled form control; this is the
   replacement. Colours follow the theme popup pair so a dark theme is
   not a yellow Windows balloon. */

.lf-disabled-title {
  position: fixed;
  pointer-events: none;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  /* Invert the panel pair so the chip reads against the toolbar it sits on,
     in both the light and the dark theme. The popup pair is the panel itself
     and would vanish into the function bar. */
  background: var(--lf-theme-panel-fg, #212529);
  color: var(--lf-theme-panel-bg, #fff);
  border: 1px solid color-mix(in srgb, var(--lf-theme-panel-fg, #212529) 70%, var(--lf-theme-panel-bg, #fff));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--lf-theme-body-fg, #000) 28%, transparent);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: pre-wrap;
  max-width: min(22rem, calc(100vw - 16px));
  opacity: 0;
}

.lf-disabled-title.is-visible {
  opacity: 1;
}
