/* "Install app" / "Create shortcut" dialog (app/pwa.php). Centered on
   desktop, a bottom sheet on phones. */
.btn-install {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--red); color: var(--red); font-weight: 700; font-size: 0.85rem; margin-right: 8px;
}
.btn-install:hover { background: var(--red); color: #fff; }
.btn-install svg { width: 16px; height: 16px; }
.btn-install[hidden] { display: none; }
@media (max-width: 860px) {
  .btn-install span { display: none; }
  .btn-install { width: 40px; padding: 0; justify-content: center; margin-right: 6px; }
}

.cc-pwa { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-pwa[hidden] { display: none; }
.cc-pwa-backdrop { position: absolute; inset: 0; background: rgba(13, 13, 28, 0.5); opacity: 0; transition: opacity 0.2s ease; }
.cc-pwa-panel {
  position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); border-top: 3px solid var(--primary);
  box-shadow: 0 18px 44px rgba(13, 13, 28, 0.28); padding: 20px; font-size: 0.9rem; line-height: 1.5;
  opacity: 0; transform: translateY(12px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.cc-pwa.is-visible .cc-pwa-backdrop, .cc-pwa.is-visible .cc-pwa-panel { opacity: 1; transform: none; }
.cc-pwa p { margin: 0; }
.cc-pwa-close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; color: var(--slate);
}
.cc-pwa-close:hover { background: var(--panel); color: var(--ink); }
.cc-pwa-title { font-weight: 800; font-size: 1.05rem; padding-right: 36px; margin-bottom: 12px !important; }
.cc-pwa-option { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; }
.cc-pwa-head { font-weight: 800; }
.cc-pwa-desc { color: var(--slate); font-size: 0.84rem; margin-top: 2px !important; }
.cc-pwa-steps { margin: 10px 0 0; padding-left: 20px; font-size: 0.86rem; }
.cc-pwa-steps li + li { margin-top: 4px; }
.cc-pwa-steps[hidden], .cc-pwa-btn[hidden] { display: none; }
.cc-pwa-btn {
  margin-top: 10px; width: 100%; min-height: 44px; border-radius: 10px; font-weight: 700; font-family: var(--body);
  background: var(--primary); color: var(--white);
}
.cc-pwa-btn:hover { background: var(--primary-hover); }
.cc-pwa-note { color: var(--slate); font-size: 0.8rem; margin-top: 12px !important; }
.cc-pwa-note:empty { display: none; }
@media (max-width: 640px) {
  .cc-pwa { align-items: flex-end; padding: 0; }
  .cc-pwa-panel { width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
