.spwac-install-cta,
.spwac-connection-notice,
.spwac-preloader {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.spwac-install-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 18px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease;
}

.spwac-install-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.spwac-install-cta__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.spwac-install-cta__content strong {
  font-size: 15px;
  line-height: 1.2;
}

.spwac-install-cta__content span {
  font-size: 13px;
  line-height: 1.35;
  opacity: .84;
}

.spwac-install-cta__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.spwac-install-cta button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 13px;
}

.spwac-install-cta__install {
  background: #ffffff;
  color: #111827;
}

.spwac-install-cta__later {
  background: rgba(255,255,255,.12);
  color: #ffffff;
}

.spwac-connection-notice {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1000000;
  width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: 999px;
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .2s ease, transform .2s ease;
}

.spwac-connection-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.spwac-connection-notice.is-offline {
  background: #b91c1c;
}

.spwac-connection-notice.is-online {
  background: #047857;
}

.spwac-preloader {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: #ffffff;
  color: #111827;
  opacity: 1;
  transition: opacity .35s ease, visibility .35s ease;
}

.spwac-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.spwac-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(17, 24, 39, .16);
  border-top-color: #111827;
  border-radius: 50%;
  animation: spwac-spin .8s linear infinite;
}

@keyframes spwac-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .spwac-install-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .spwac-install-cta__actions {
    width: 100%;
  }
  .spwac-install-cta button {
    flex: 1;
  }
}
