/* Legacy permanent card — always hidden (one-shot banner only) */
#anapa-app-download {
  display: none !important;
}

/* Install banner — mobile only, one-shot via JS */
#anapa-install-banner {
  display: none;
}

@media (max-width: 900px) {
  body.anapa-show-install #anapa-install-banner {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--anapa-nav-h, 58px) + env(safe-area-inset-bottom) + 12px);
    z-index: 99970;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2a0a2d 0%, #1a3a28 100%);
    border: 1px solid rgba(201, 162, 39, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    color: #f8eef9;
    font-family: var(--anapa-font, "Manrope", sans-serif);
  }

  #anapa-install-banner .anapa-install__text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
  }

  #anapa-install-banner .anapa-install__text small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.75;
  }

  #anapa-install-banner .anapa-install__cta {
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    padding: 9px 12px;
    background: #1a7f4e;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
  }

  #anapa-install-banner .anapa-install__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
  }
}

/* iOS tip sheet */
#anapa-install-ios {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 4, 12, 0.72);
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

#anapa-install-ios.is-open {
  display: flex;
}

#anapa-install-ios .anapa-install-ios__card {
  width: min(400px, 100%);
  background: #1f021e;
  border: 1px solid rgba(222, 39, 215, 0.28);
  border-radius: 16px;
  padding: 18px 16px;
  color: #f8eef9;
  font-family: var(--anapa-font, "Manrope", sans-serif);
}

#anapa-install-ios h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

#anapa-install-ios ol {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}

#anapa-install-ios button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 11px;
  background: #1a7f4e;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
