/* ============================================================
   EuroMóveis Tooltips — Reusable tooltip component
   Used across all configurators and service forms.
   Scoped via .em-tooltip-* classes to avoid style conflicts.
   ============================================================ */

/* ── Tooltip Bubble ── */
.em-tooltip-bubble {
  position: absolute;
  z-index: 10000;
  max-width: 260px;
  padding: 10px 14px;
  background: #2d2d2d;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  word-wrap: break-word;
}
.em-tooltip-bubble.em-tooltip-visible {
  opacity: 1;
}

/* ── Arrow ── */
.em-tooltip-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
}
.em-tooltip-bubble.em-tooltip-above::after {
  top: 100%;
  border-top-color: #2d2d2d;
  border-bottom: none;
}
.em-tooltip-bubble.em-tooltip-below::after {
  bottom: 100%;
  border-bottom-color: #2d2d2d;
  border-top: none;
}

/* ── Parent items need position:relative ── */
[data-em-tooltip] {
  position: relative;
}

/* ── Info icon: base (hidden by default) ── */
/* Ícone "ℹ" escondido — tooltip aparece via hover (desktop) ou tap no botão (mobile) */
.em-tooltip-icon {
  display: none;
}

/* ── DESKTOP (992px+): tooltip on hover ── */
@media (min-width: 992px) {
  [data-em-tooltip] {
    cursor: help;
  }
}

/* ── Responsive bubble ── */
@media (max-width: 480px) {
  .em-tooltip-bubble {
    max-width: 220px;
    font-size: 12px;
    padding: 8px 12px;
  }
}
