/**
 * Compact "welcome" popup anchored above the existing chatbot toggle
 * (see #angstrom-chatbot-widget .angstrom-chatbot-toggle in style.css
 * for its own position: fixed; bottom: 20px; right: 20px; 60x60px
 * size -- this sits directly above it at bottom: 90px, same right
 * offset). Kept in its own file under its own #angstromWelcomePopup
 * id, entirely separate from style.css, so nothing here can affect --
 * and nothing in the chatbot's own styles can accidentally affect --
 * this popup.
 *
 * Hidden by default (opacity: 0, pointer-events: none) until
 * welcome-popup.js adds the `is-visible` class -- this keeps it both
 * invisible and unclickable on any page/tab where it has already been
 * shown or dismissed, with no flash of visible content before that
 * script runs.
 */
#angstromWelcomePopup {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 999998;
  width: 300px;
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  padding: 18px 30px 18px 18px;
  /* Matches the site's own typography (confirmed in the live page's
     own CSS: "Poppins" is its primary font, already reused this same
     way for the AI Search header CTA) rather than introducing an
     unrelated font. */
  font-family: "Poppins", Arial, sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

#angstromWelcomePopup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/**
 * Fully removed from layout/interaction once the fade-out transition
 * above has finished playing (see HIDE_TRANSITION_MS in
 * welcome-popup.js), rather than left behind as an invisible but
 * still-present, still-hit-testable box.
 */
#angstromWelcomePopup.is-dismissed {
  display: none;
}

#angstromWelcomePopup .angstrom-welcome-popup-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/**
 * Reuses the chatbot panel's own "AS" badge concept (see .logo in
 * style.css), just with its colors swapped for a white card instead
 * of the panel header's purple one -- the same brand mark, not a new
 * one, which is also why it's a plain two-letter badge rather than a
 * new persona image: there is no existing bot avatar asset to reuse.
 */
#angstromWelcomePopup .angstrom-welcome-popup-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #5140a8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

#angstromWelcomePopup .angstrom-welcome-popup-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #5140a8;
}

#angstromWelcomePopup .angstrom-welcome-popup-message {
  /* flex: 1 1 auto + min-width: 0 (overriding the flex item default
     of min-width: auto) is what lets this wrap naturally across
     multiple lines within the remaining row width next to the fixed
     34px avatar, instead of trying to render on one line and
     overflowing the popup. */
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555555;
  text-align: left;
}

#angstromWelcomePopup .angstrom-welcome-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #999999;
  cursor: pointer;
  padding: 0;
}

#angstromWelcomePopup .angstrom-welcome-popup-close:hover {
  color: #333333;
}

@media (max-width: 480px) {
  #angstromWelcomePopup {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
  }
}
