/* ==========================================================================
   Payment Recovery Page
   ========================================================================== */

.payment-recovery {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 80px;
}

/* Card container (shared between error + main state) */
.pr-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

/* Icon containers */
.pr-icon {
    margin-bottom: 24px;
}

.pr-icon svg {
    display: inline-block;
}

.pr-icon-warning svg {
    color: var(--warning);
}

.pr-icon-alert svg {
    color: var(--error);
}

/* Headings */
.pr-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    line-height: 1.3;
}

.pr-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 32px;
}

/* Detail items (what-happens-next list) */
.pr-details {
    text-align: left;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pr-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pr-detail-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    margin-top: 1px;
}

.pr-detail-icon svg {
    display: block;
}

/* Actions */
.pr-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pr-actions .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
}

/* Footer note */
.pr-footer-note {
    margin-top: 24px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Error state specific */
.pr-error-state h1 {
    color: var(--warning);
}

/* Error message (token exchange failures) */
.pr-error-message {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid var(--error);
    border-radius: 8px;
    text-align: center;
}

.pr-error-text {
    margin: 0 0 12px;
    color: var(--error);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.pr-error-message .pr-retry-btn {
    margin-top: 4px;
}

/* Loading state on CTA button */
.pr-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 640px) {
    .payment-recovery {
        padding: 120px 16px 60px;
    }

    .pr-card {
        padding: 32px 24px;
    }

    .pr-card h1 {
        font-size: 1.375rem;
    }

    .pr-subtitle {
        font-size: 0.9375rem;
    }
}
