/* PWA install banner + status toast.
   Loaded on all storefront pages; hidden until activated by pwa.js. */

.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #262626;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  width: min(450px, calc(100vw - 32px));
  box-sizing: border-box;
}

.pwa-install-banner.is-visible {
  display: flex;
}

.pwa-install-banner__label {
  font-size: 13px;
  line-height: 1.4;
  color: #a1a1aa;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.pwa-install-banner__label strong {
  color: #fff;
  font-weight: 600;
}

.pwa-install-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pwa-install-banner__install {
  background: #e11d48;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.pwa-install-banner__dismiss {
  background: transparent;
  color: #71717a;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  line-height: 1;
}

.pwa-toast {
  display: none;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #323232;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-width: calc(100% - 32px);
  text-align: center;
}

.pwa-toast.is-visible {
  display: block;
}


/* Hide install banner on desktop - users can install via browser address bar icon */
@media (min-width: 1025px) {
  .pwa-install-banner,
  .pwa-install-banner.is-visible {
    display: none !important;
  }
}
