/* Priority Review (2026-11-22). Shared by the "Application Received" screen on /apply and the
   standalone /priority-review page (email link, and the return from Stripe checkout).
   Uses the colour and type tokens from apply-styles.css. */

/* The received screen can now be taller than a phone: let it scroll, centred when short. */
.apply-success { overflow-y: auto; -webkit-overflow-scrolling: touch; align-items: flex-start; }
.apply-success__content { margin: auto; width: 100%; max-width: 560px; }
.apply-success__content.is-waiting #successStandard,
.apply-success__content.has-priority #successStandard { display: none; }
#priorityMount[hidden] { display: none; }

.pr { font-family: var(--font-body); color: var(--text-primary); text-align: center; }
.pr-fade { animation: prFade 500ms ease both; }
@keyframes prFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pr__heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.4vw, 2.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--text-primary);
  margin: 0 0 1rem;
}
.pr__heading:focus { outline: none; }
.pr__lead { font-size: 1rem; font-weight: 300; line-height: 1.7; color: #a9a9b8; margin: 0 0 0.55rem; }
.pr__lead:last-of-type { margin-bottom: 0; }

.pr-offer {
  margin: 1.9rem 0 0;
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  background: var(--accent-subtle);
  text-align: left;
}
.pr-offer__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--text-accent);
  margin: 0 0 0.95rem;
}
.pr-offer p { font-size: 0.95rem; font-weight: 300; line-height: 1.65; color: #d6d6de; margin: 0 0 0.75rem; }
.pr-offer p:last-of-type { margin-bottom: 0; }

.pr-actions { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.5rem 0 0; }
.pr-actions .apply-btn { width: 100%; justify-content: center; text-align: center; line-height: 1.3; }
.pr-actions .apply-btn--primary { font-size: 1rem; padding: 1rem 1.25rem; }
.pr-actions .apply-btn--primary:disabled { opacity: 0.7; cursor: progress; }
.pr-actions .apply-btn--ghost { color: #b4b4c2; border-color: #55556a; }
.pr-actions .apply-btn--ghost:hover,
.pr-actions .apply-btn--ghost:focus-visible { color: var(--text-primary); border-color: var(--text-secondary); }
.pr-actions .apply-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.pr__fine { font-size: 0.84rem; font-weight: 400; line-height: 1.55; color: #9a9aab; margin: 1.1rem 0 0; }
.pr__fine a { color: var(--text-accent); }
.pr__error { margin: 0.9rem 0 0; font-size: 0.9rem; line-height: 1.5; color: #fca5a5; }
.pr__error:empty { display: none; }
.pr__note {
  display: block; max-width: 38ch; margin: 1.4rem auto 0; padding: 0.75rem 1rem;
  border: 1px solid var(--accent-strong); border-radius: 14px; background: var(--accent-glow);
  color: var(--text-accent); font-size: 0.9rem; font-weight: 500; line-height: 1.5;
}
.pr__cta { margin-top: 1.6rem; }
.pr__spinner {
  display: inline-block; width: 22px; height: 22px; margin: 0 0 1rem;
  border: 2px solid var(--accent-strong); border-top-color: var(--accent); border-radius: 50%;
  animation: prSpin 800ms linear infinite;
}
@keyframes prSpin { to { transform: rotate(360deg); } }

/* Standalone page */
.pr-page { position: relative; z-index: 1; min-height: 100vh; display: flex; padding: 72px var(--page-pad) 96px; }
.pr-page__inner { margin: auto; width: 100%; max-width: 560px; }
.pr-page__icon { display: block; margin: 0 auto 1.75rem; }

@media (max-width: 480px) {
  .pr-offer { padding: 1.3rem 1.05rem 1.25rem; }
  .pr-actions .apply-btn--primary { font-size: 0.98rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-fade { animation: none; }
  .pr__spinner { animation-duration: 2s; }
}
