/**
 * DELTA_TOUCH_TIP v1 — docs/MOBILE-TOUCH-TOOLTIPS.md
 * Fonte canônica: shared/delta-touch-tooltips/
 */
#delta-global-tooltip {
  position: fixed;
  z-index: 10000000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  background: #1e2633;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.2px;
  text-transform: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  font-synthesis: none;
  color: #E6E6E6;
  white-space: nowrap;
}

#delta-global-tooltip.visible {
  opacity: 1;
}

#delta-global-tooltip.is-rich {
  font-weight: 400;
  font-size: 13px;
  white-space: normal;
  max-width: 300px;
  min-width: 210px;
  line-height: 1.5;
  color: #E6E6E6;
  padding: 12px 14px;
  box-sizing: border-box;
  text-align: center;
  background: linear-gradient(165deg, #242c3a 0%, #171d27 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#delta-global-tooltip.is-rich .tip-block + .tip-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#delta-global-tooltip.is-rich .tip-title {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #F3F4F6;
  margin: 0 0 6px;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

#delta-global-tooltip.is-rich .tip-block + .tip-block .tip-title {
  margin: 0;
  color: #D1D5DB;
  font-weight: 600;
}

#delta-global-tooltip.is-rich .tip-body {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: #B8C0CC;
  white-space: pre-line;
  line-height: 1.55;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/* Compacto — data/hora FM (2 linhas, sem min-width largo) */
#delta-global-tooltip.is-rich.is-compact {
  min-width: 0;
  max-width: 160px;
  width: max-content;
  padding: 5px 8px;
  line-height: 1.25;
  text-align: left;
}
#delta-global-tooltip.is-rich.is-compact .tip-title {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #E6E6E6;
}
#delta-global-tooltip.is-rich.is-compact .tip-body {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  color: #E6E6E6;
}

#delta-global-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: var(--tip-arrow-x, 50%);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e2633;
}

#delta-global-tooltip.is-rich::after {
  border-top-color: #171d27;
}

#delta-global-tooltip.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1e2633;
}

#delta-global-tooltip.is-rich.is-below::after {
  border-bottom-color: #242c3a;
}

@media (hover: none), (pointer: coarse) {
  #delta-global-tooltip {
    max-width: calc(100vw - 20px);
    white-space: normal;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2px;
    text-transform: none;
    box-sizing: border-box;
  }

  [data-tip]::after,
  [data-tip]::before,
  [data-tooltip]::after,
  [data-tip-act]::after,
  [data-tip-side]::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
  }
}
