/**
 * COSPTY PWA - install banner + offline page styles.
 */
#cospty-pwa-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 99990;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #7C3AED;
  color: #fff;
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.25);
  font-size: 13px;
  line-height: 1.4;
}
@media (min-width: 768px) {
  #cospty-pwa-banner { display: none !important; }
}
#cospty-pwa-banner .cpb-icon { border-radius: 10px; flex: 0 0 auto; }
#cospty-pwa-banner .cpb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#cospty-pwa-banner .cpb-text strong { font-size: 14px; font-weight: 500; }
#cospty-pwa-banner .cpb-sub,
#cospty-pwa-banner .cpb-ios { font-size: 12px; opacity: 0.92; }
#cospty-pwa-banner .cpb-install {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #FACC15;
  color: #111827;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
#cospty-pwa-banner .cpb-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* offline page */
.cospty-pwa-offline {
  max-width: 480px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.cospty-pwa-offline .cpo-emoji { font-size: 56px; line-height: 1; }
.cospty-pwa-offline h1 { font-size: 22px; font-weight: 500; margin: 14px 0 6px; }
.cospty-pwa-offline p { color: #6B7280; font-size: 14px; }
.cospty-pwa-offline .cpo-retry {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #7C3AED;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

/* v1.0.2 — when the app bar (cosptyappbar) is active, float the banner above
   the 56px tab bar instead of overlapping it (it used to block taps on the
   Discover/cart tabs). 56px bar + 10px gap. */
body.ab-has-bar #cospty-pwa-banner {
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
}
