/* CamWox install banner — reuses the site's existing CSS custom properties
   (--surface, --border, --radius, --shadow-hover, --text, --text-muted,
   --accent, --accent-dark) where they're defined; falls back to the same
   literal values used elsewhere on the site so the banner still matches
   the brand on any page that hasn't defined those variables. */

#pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: -120px;
  z-index: 9999;
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #eae2f0);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow-hover, 0 14px 34px rgba(51, 18, 74, .18));
  transition: bottom .3s ease;
}

#pwa-install-banner.pwa-banner--visible {
  bottom: 16px;
}

.pwa-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.pwa-banner__inner img {
  border-radius: 10px;
  flex-shrink: 0;
}

.pwa-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text, #241a33);
  flex: 1;
  min-width: 0;
}

.pwa-banner__text strong {
  font-size: 14px;
}

.pwa-banner__text span {
  color: var(--text-muted, #6e6478);
}

#pwa-install-cta {
  background: var(--accent, #c4145a);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

#pwa-install-cta:hover {
  background: var(--accent-dark, #8f0e42);
}

#pwa-install-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted, #6e6478);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  #pwa-install-banner {
    left: 8px;
    right: 8px;
  }
}

/* Keep the install banner clear of the site's existing sticky mobile CTA
   (#mobile-cta), which docks at the bottom of the viewport on small
   screens once .sticky-cta-visible is toggled on. */
@media (max-width: 640px) {
  #pwa-install-banner.pwa-banner--visible {
    bottom: 78px;
  }
}
