/* IMDb-style Places app install prompt */

.places-app-prompt {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(15, 23, 42, 0.45);
  pointer-events: auto;
}

.places-app-prompt__sheet {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
  animation: places-app-prompt-slide-up 0.28s ease-out;
}

.places-app-prompt__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.places-app-prompt__btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.places-app-prompt__btn--primary {
  background-color: #00B9FF;
  color: #fff;
}

.places-app-prompt__btn--primary:hover,
.places-app-prompt__btn--primary:focus-visible {
  background-color: #00A4E6;
  color: #fff;
  text-decoration: none;
}

.places-app-prompt__btn--secondary {
  background: transparent;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.places-app-prompt__btn--secondary:hover,
.places-app-prompt__btn--secondary:focus-visible {
  background: #f8fafc;
  color: #0f172a;
}

@keyframes places-app-prompt-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .places-app-prompt__sheet {
    animation: none;
  }
}

@media (min-width: 480px) {
  .places-app-prompt {
    align-items: center;
    padding: 1rem;
  }

  .places-app-prompt__sheet {
    border-radius: 16px;
    padding: 1.5rem;
  }
}
