/* Srovnávačka – vzhled tlačítka „Nainstalovat“ a nápovědy pro iPhone.
 * Drží se stejných barev jako zbytek appky (navy #0F172A + zlatá #D4AF37).
 */

.pwa-install {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  pointer-events: none;
}

.pwa-install--videt {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pwa-install:hover {
  background: #1e293b;
}

.pwa-install:active {
  transform: scale(0.97);
}

.pwa-install-ikona {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d4af37;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

/* ---------- nápověda pro iOS ---------- */

.pwa-hint {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.pwa-hint--videt {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pwa-hint-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.pwa-hint-text strong {
  font-size: 14px;
  color: #fff;
}

.pwa-hint-text em {
  font-style: normal;
  color: #d4af37;
  font-weight: 700;
}

.pwa-hint-zavrit {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.pwa-hint-zavrit:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Tisk a export do PDF – do výstupu srovnávačky nic z tohohle nepatří. */
@media print {
  .pwa-install,
  .pwa-hint {
    display: none !important;
  }
}
