#tongluc-pwa-install-banner,
#tongluc-pwa-ios-instruction {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.tongluc-pwa-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  background: #0f172a;
  color: #f8fafc;
  z-index: 9999;
  transform: translateY(-120%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.tongluc-pwa-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.tongluc-pwa-banner[hidden] {
  display: none !important;
}

.tongluc-pwa-banner__content {
  flex: 1 1 auto;
  min-width: 220px;
}

.tongluc-pwa-banner__content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.tongluc-pwa-banner__content p {
  margin: 0;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.tongluc-pwa-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tongluc-pwa-button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: inherit;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tongluc-pwa-button--primary {
  background: #10b981;
  border-color: #10b981;
  color: #0f172a;
  font-weight: 600;
}

.tongluc-pwa-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tongluc-pwa-button--primary:hover {
  background: #0ea371;
  border-color: #0ea371;
}

.tongluc-pwa-ios {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: #ffffff;
  color: #0f172a;
  border-radius: 0.75rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.tongluc-pwa-ios.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.tongluc-pwa-ios p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

#tongluc-pwa-ios-close {
  position: absolute;
  top: 0.25rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

@media (max-width: 600px) {
  .tongluc-pwa-banner {
    flex-direction: column;
    text-align: center;
  }

  .tongluc-pwa-banner__actions {
    justify-content: center;
  }
}
