/* PWA install guide modal (mobile iOS + Android) */
#pwa_install_overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190000;
  background: rgba(0, 0, 0, 0.55);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  font-family: Tahoma, "IRANSans", "Vazirmatn", sans-serif;
  direction: rtl;
}

#pwa_install_overlay.is-open {
  display: flex;
}

#pwa_install_sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 20px 22px 28px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  animation: pwaSheetIn 0.28s ease-out;
}

@keyframes pwaSheetIn {
  from { transform: translateY(40px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

#pwa_install_close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #333;
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
  padding: 0;
}

#pwa_install_logo {
  display: block;
  width: 88px;
  height: auto;
  margin: 8px auto 16px;
}

.pwa-install-intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  text-align: justify;
}

.pwa-install-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.pwa-install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #222;
}

.pwa-install-steps .pwa-step-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1870B7;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.pwa-install-steps .pwa-step-body {
  flex: 1;
}

.pwa-install-steps .pwa-ico {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 4px;
  color: #1870B7;
}

#pwa_install_actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pwa-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}

.pwa-btn-primary {
  background: #1870B7;
  color: #fff;
}

.pwa-btn-primary:active {
  background: #145a92;
}

.pwa-btn-ghost {
  background: #f3f5f7;
  color: #333;
}

#pwa_android_install_btn {
  display: none;
}

#pwa_android_install_btn.is-visible {
  display: block;
}

@media screen and (min-width: 768px) {
  #pwa_install_overlay {
    display: none !important;
  }
}
