/* Base overlay styles (shared look) */
.zas-pwa-overlay {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,32,96,0.6);
  backdrop-filter: blur(4px);
  z-index: 2147483647;
  opacity: 0;
  transition: opacity .28s ease, visibility .28s ease;
  visibility: hidden;
}

.zas-pwa-overlay.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

/* Separate overlay containers */
.zas-install-overlay { /* inherits base styles */ }
.zas-notif-overlay { /* inherits base styles */ }

/* Card styles (shared) */
.zas-pwa-card {
  background: linear-gradient(180deg,#ffffff 0%,#f2f7ff 100%);
  border-radius: 14px;
  padding: 20px;
  max-width: 520px;
  width: 92%;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,20,60,0.18);
  transform: translateY(8px);
  transition: transform .28s ease, opacity .28s ease;
}

.zas-pwa-overlay.show .zas-pwa-card {
  transform: translateY(0);
}

/* Logo */
.zas-pwa-logo {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 12px;
}

/* Title & description */
.zas-pwa-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.zas-pwa-desc {
  font-size: .95rem;
  color: #243041;
  margin-bottom: 14px;
  line-height: 1.35;
}

/* Actions */
.zas-pwa-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.zas-pwa-btn {
  min-width: 150px;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.zas-pwa-btn.primary {
  background: linear-gradient(135deg,#007bff,#0056d2);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,86,210,0.18);
}

.zas-pwa-btn.secondary {
  background: #fff;
  color: #0056d2;
  border: 1px solid rgba(0,123,255,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.zas-pwa-btn:hover { transform: translateY(-2px); }

/* Toast */
.zas-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 2147483648;
  opacity: 0;
  transition: opacity .3s ease;
}

/* Responsive */
@media (max-width:640px) {
  .zas-pwa-card {
    width: 96%;
    padding: 16px;
    border-radius: 12px;
  }
  .zas-pwa-btn {
    width: 100%;
  }
}

/* Unified footer buttons */
#zasInstallBtn,
#zasEnableNotificationsBtn {
  background: linear-gradient(135deg,#007bff,#0056d2);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 150px;
  box-shadow: 0 6px 18px rgba(0,86,210,0.18);
  transition: all 0.25s ease-in-out;
}

#zasInstallBtn:hover,
#zasEnableNotificationsBtn:hover {
  transform: translateY(-2px);
}