.bfg-pwa-bar {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2147483000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: min(560px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(15, 35, 60, 0.96);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-family: 'Noto Sans Thai', Sarabun, sans-serif;
}

.bfg-pwa-bar[hidden] {
  display: none !important;
}

.bfg-pwa-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.bfg-pwa-bar-text {
  flex: 1 1 180px;
  min-width: 0;
}

.bfg-pwa-bar-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.bfg-pwa-bar-text span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.35;
}

.bfg-pwa-bar-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.bfg-pwa-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: 600 0.82rem 'Noto Sans Thai', Sarabun, sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.bfg-pwa-btn-primary {
  background: #059669;
  color: #fff;
}

.bfg-pwa-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bfg-pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: grid;
  place-items: end center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.45);
}

.bfg-pwa-modal[hidden] {
  display: none !important;
}

.bfg-pwa-modal-card {
  width: min(420px, 100%);
  border-radius: 18px;
  background: #fff;
  color: #1e293b;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.bfg-pwa-modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.bfg-pwa-modal-card ol {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.bfg-pwa-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bfg-pwa-modal-head img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .bfg-pwa-bar {
    bottom: 20px;
  }
}
