:root {
  --ft-button-primary-bg: #552EC2;
  --ft-button-primary-color: #ffffff;
  --ft-button-secondary-bg: #e9edf3;
  --ft-button-secondary-color: #1b2330;
  --ft-card-bg: #ffffff;
  --ft-text-color: #1b2330;
  --ft-border-color: #d9e0ea;
  --ft-shadow: 0 8px 24px rgba(14, 25, 41, 0.16);
}

.ft-pwa-banner {
  position: fixed;
  left: 50%;
  right: auto;
  top: 1rem;
  width: min(720px, calc(100vw - 2rem));
  transform: translate(-50%, -16px);
  z-index: 100000;
  background: var(--ft-card-bg);
  color: var(--ft-text-color);
  border: 1px solid var(--ft-border-color);
  border-radius: 14px;
  box-shadow: var(--ft-shadow);
  padding: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ft-pwa-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.ft-pwa-banner-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.ft-pwa-banner-copy {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.4;
  font-weight: 600;
}

.ft-pwa-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  align-items: center;
}

.ft-pwa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  border: 0;
  border-radius: 10px;
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.ft-pwa-btn-primary {
  background: var(--ft-button-primary-bg);
  color: var(--ft-button-primary-color);
}

.ft-pwa-btn-secondary {
  background: #ffffff;
  color: var(--ft-button-secondary-color);
  border: 1px solid #c8d2df;
}

#ft-pwa-update-banner {
  top: 6.7rem;
  border-left: 4px solid var(--ft-button-primary-bg);
}

@media (max-width: 640px) {
  .ft-pwa-banner-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ft-pwa-banner-actions {
    width: 100%;
  }

  .ft-pwa-btn {
    flex: 1 1 auto;
  }

  #ft-pwa-update-banner {
    top: 8.8rem;
  }
}
