/* The notification offer.
 *
 * Deliberately not a modal. A browser grants one permission prompt per site
 * and a denial is close to permanent, so this is a card somebody can ignore
 * twice and still say yes to on the third visit — the browser's own prompt
 * only appears once they press the button.
 */

.pp-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--ebid-gold);
  background: rgba(214, 158, 46, 0.1);
}

.pp-icon { font-size: 22px; flex: none; }

.pp-body { flex: 1; min-width: 0; }
.pp-title { font-size: 14px; font-weight: 800; margin-bottom: 2px; }
.pp-text { font-size: 12.5px; opacity: 0.85; line-height: 1.45; }

.pp-actions { display: flex; gap: 8px; flex: none; }
.pp-yes, .pp-no { padding: 9px 14px; font-size: 12.5px; white-space: nowrap; }

@media (max-width: 620px) {
  .pp-card { flex-wrap: wrap; }
  .pp-actions { width: 100%; }
  .pp-yes, .pp-no { flex: 1; }
}

/* The floating variant, shown right after a tender is saved — the feed and the
   detail page have no natural slot for a banner. Above the dock, and clear of
   the home indicator on iOS. */
.pp-float {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: flex;
  justify-content: center;
  animation: pp-rise 0.24s ease-out;
}

.pp-float .pp-card {
  margin: 0;
  max-width: 560px;
  box-shadow: 0 12px 34px rgba(8, 12, 22, 0.32);
}

@keyframes pp-rise {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-float { animation: none; }
}
