/* ============================================================
   Hero Widget — wrapper + annotation only
   The widget itself lives in a Shadow DOM (exact extension CSS)
   ============================================================ */

/* ── Wrapper — fixed to viewport bottom-right ────────────── */
#hw-wrapper {
  position: fixed;
  bottom: 0;
  right: 30px;
  width: 360px; /* fixed so annotation positioning stays consistent */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 200;
  pointer-events: none; /* re-enabled per child */
  transition: opacity 0.3s ease;
}

/* Hide on anything narrower than 1100px */
@media (max-width: 1100px) {
  #hw-wrapper { display: none; }
}

/* ── Annotation ─────────────────────────────────────────── */
/* Text on top, arrow below pointing down-right toward lemon button */
#hw-annotation {
  position: absolute;
  bottom: 160px; /* above lemon btn (84px) + its 30px margin-bottom + gap */
  right: 32px;   /* arrow tip lands near lemon button centre */
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#hw-annotation.hw-hidden {
  opacity: 0;
  pointer-events: none;
}

#hw-annotation span {
  font-family: var(--font-body, 'Atkinson Hyperlegible', 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  align-self: stretch;
  text-align: center;
  line-height: 1.35;
}

/* Chrome icon inline in text */
#hw-annotation .hw-chrome-icon {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin: 0 2px -1px;
}

/* Arrow: natural direction top-left → bottom-right, tip points at lemon button */
#hw-annotation .hw-arrow {
  width: 50px;
  height: 40px;
  opacity: 0.6;
}

/* ── Shadow host — re-enable pointer events ──────────────── */
#hw-host {
  pointer-events: auto;
}

/* ── Gone — fully scrolled off, fade out ─────────────────── */
#hw-wrapper.hw-gone {
  opacity: 0;
  pointer-events: none;
}
