/* 
 * Donaco - Checkout Premium Styles
 * Desenvolvido com foco em estética minimalista e moderna.
 */

:root {
    --primary-color: #6C5DD3;
    --primary-hover: #5c4ebc;
    --primary-soft: #8B5CF6;
    --primary-deep: #1E1B4B;
    --accent-soft: #FFC107;
    --radius-card: 1rem;
    --radius-pill: 999px;
    --shadow-strength: 1;
    --warning-color: #F7921E;
    --success-color: #10B981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --text-main: #1F2937;
    --text-muted: #6B7280;
    /* A sombra e composta a partir do layout escolhido:
       --shadow-strength pesa o desfoque e --card-ring desenha (ou nao) uma
       linha de contorno. Assim um layout "sem sombra, so linhas" e um
       "cartoes elevados" saem da mesma regra, sem tocar em seletor nenhum. */
    --card-ring: 0 0 0 0 rgba(0, 0, 0, 0);
    --card-shadow:
        var(--card-ring),
        0 10px 30px rgba(0, 0, 0, calc(0.035 * var(--shadow-strength))),
        0 1px 8px rgba(0, 0, 0, calc(0.015 * var(--shadow-strength)));
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.6);
    --bg-gradient: linear-gradient(135deg, #F0F4FF 0%, #F5F3FF 50%, #FAF5FF 100%);
    --font-circular: 'Circular', 'Inter', -apple-system, sans-serif;
}

body.checkout-body {
    background: var(--bg-gradient);
    font-family: var(--font-circular);
    color: var(--text-main);
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Back Link */
.back-home-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-bottom: 2rem;
    cursor: pointer;
}

.back-home-link:hover {
    color: var(--primary-color);
    transform: translateX(-4px);
}

.back-home-link i {
    font-size: 0.8rem;
}

/* Glassmorphism Cards */
.checkout-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.checkout-card.impact-card {
    background: linear-gradient(135deg, rgba(30, 33, 41, 0.95) 0%, rgba(20, 22, 28, 0.98) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Impact Card Inner Details */
.impact-project-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--warning-color);
    margin-bottom: 1.5rem;
}

.impact-progress-section {
    margin: 2.5rem 0;
}

.impact-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.impact-progress-bar-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.impact-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--warning-color) 0%, var(--accent-soft) 100%);
    border-radius: 5px;
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(247, 146, 30, 0.5);
}

.impact-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.impact-stat-box {
    display: flex;
    flex-direction: column;
}

.impact-stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.impact-stat-num.highlight {
    color: var(--success-color);
}

.impact-stat-lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Avatars Stack */
.impact-avatars-section {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1a1c22;
    margin-left: -8px;
    object-fit: cover;
    background: #252830;
}

.avatar-stack-img:first-child {
    margin-left: 0;
}

.avatar-stack-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Quote card */
.impact-quote-box {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--warning-color);
    padding: 1.2rem;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* Form Headings */
.checkout-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-step-title span.step-number {
    background: rgba(108, 93, 211, 0.1);
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Payment Mode Grid */
.payment-methods-grid {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method-card {
    flex: 1;
    min-width: 0;
    border: 2px solid rgba(229, 231, 235, 0.8);
    background: white;
    border-radius: var(--radius-card);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.payment-method-card i {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.payment-method-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 93, 211, 0.08);
}

.payment-method-card:hover i {
    color: var(--primary-color);
}

.payment-method-card.selected {
    border-color: var(--primary-color);
    background: #F5F3FF;
}

.payment-method-card.selected i,
.payment-method-card.selected span {
    color: var(--primary-color);
}

.payment-method-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Fast Value Chips */
.value-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.value-chip {
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-card);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.value-chip:hover {
    background: #F9FAFB;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.value-chip.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 93, 211, 0.2);
}

/* Inputs & Form Controls */
.form-group-premium {
    margin-bottom: 1.5rem;
}

.form-group-premium label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    display: block;
}

.input-premium {
    width: 100%;
    background: white;
    border: 1.5px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-card);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

.input-premium:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 93, 211, 0.15);
}

.input-premium.is-invalid {
    border-color: #EF4444;
}

.input-premium.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-group-premium {
    position: relative;
    display: flex;
    align-items: center;
}

/* O display:flex acima venceria o [hidden] da folha do navegador, entao o
   atributo precisa ser reforcado aqui para o campo de valor livre poder
   ficar oculto ate o usuario escolher "Outro Valor". */
.input-group-premium[hidden] {
    display: none;
}

.input-group-addon-left {
    position: absolute;
    left: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

.input-premium.with-addon-left {
    padding-left: 2.2rem;
}

/*
 * Alerta de erro do checkout.
 *
 * Substitui o modal do SweetAlert2, que trazia uma biblioteca inteira (JS e
 * CSS) para dois avisos. O modal ainda tomava o foco e obrigava a fecha-lo
 * antes de voltar ao campo errado; este fica no topo do proprio formulario,
 * junto do que precisa ser corrigido.
 */
.checkout-alerta {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 12px 14px;
    border: 1px solid #FECACA;
    border-left: 3px solid #EF4444;
    border-radius: var(--radius-card, 12px);
    background: #FEF2F2;
    color: #991B1B;
    font-size: 0.875rem;
}

.checkout-alerta i {
    margin-top: 2px;
    color: #EF4444;
}

.checkout-alerta strong {
    display: block;
    font-weight: 600;
}

.checkout-alerta p {
    margin: 2px 0 0;
}

/*
 * Prazo esgotado na espera do PIX. Antes as classes eram atribuidas pelo
 * JavaScript numa string de utilitarios do Tailwind -- que esta pagina nao
 * carrega, entao o aviso saia sem estilo nenhum.
 */
.success-badge-timeout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #FDE68A;
    border-radius: 999px;
    background: #FFFBEB;
    color: #B45309;
    font-size: 0.75rem;
    font-weight: 600;
}

.form-feedback-invalid {
    font-size: 0.8rem;
    color: #EF4444;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* File Upload Button */
.upload-premium-container {
    border: 2px dashed rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-card);
    background: white;
    padding: 1.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.upload-premium-container:hover {
    border-color: var(--primary-color);
    background: #FDFDFD;
}

.upload-premium-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.upload-premium-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2px;
}

.upload-premium-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.upload-premium-input {
    display: none;
}

/* Submit Button Glistening */
.btn-submit-premium {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-soft) 100%);
    border: none;
    border-radius: var(--radius-card);
    padding: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 93, 211, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit-premium:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 93, 211, 0.4);
}

.btn-submit-premium:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit-premium:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-submit-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
    transition: none;
}

.btn-submit-premium:hover:not(:disabled)::after {
    left: 150%;
    transition: left 0.9s ease-in-out;
}

/* Terms Checkbox */
.terms-checkbox-premium {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 2rem 0;
}

.terms-checkbox-premium input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(229, 231, 235, 0.8);
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

.terms-checkbox-premium label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: justify;
    user-select: none;
    cursor: pointer;
}

/* Success & QR Code Container */
.checkout-success-view {
    text-align: center;
    padding: 1.5rem;
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.success-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.success-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.qr-code-box {
    background: white;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 2rem;
}

.qr-code-box img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.pix-copy-box {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 2rem auto;
    text-align: left;
}

.pix-copy-box label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    display: block;
}

.pix-copy-textarea {
    width: 100%;
    height: 80px;
    background: #F9FAFB;
    border: 1.5px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-card);
    padding: 0.75rem 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    resize: none;
    color: var(--text-main);
    outline: none;
    margin-bottom: 12px;
}

.btn-copy-pix {
    width: 100%;
    background: white;
    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius-card);
    padding: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-copy-pix:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 93, 211, 0.15);
}

.btn-copy-pix.copied {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.success-badge-checking {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1D4ED8;
    padding: 6px 16px;
    border-radius: var(--radius-card);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Transitions */
.fade-transition {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive grid changes */
@media (max-width: 991px) {
    body.checkout-body {
        padding-top: 1rem;
    }
    
    .checkout-card {
        padding: 1.8rem;
    }
    
    .checkout-card.impact-card {
        margin-bottom: 2rem;
        height: auto;
    }
}

@media (max-width: 575px) {
    .impact-project-title {
        font-size: 1.5rem;
    }
}

/* Sidebar Donors List */
.impact-donors-section {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.donor-row-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.donor-row-premium:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.donor-badge-multi {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--warning-color);
    color: #1a1c22;
    font-size: 8px;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1a1c22;
}

/* Sidebar Donors List Medals */
.ranking-medal-premium {
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 1.25rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    animation: bounceMedal 2s infinite ease-in-out;
}

@keyframes bounceMedal {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* ============================================================
   Tela de pagamento confirmado
   ============================================================ */

.payment-approved {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

/* Selo de confirmacao: o circulo e o "check" sao desenhados por
   stroke-dashoffset, em vez de um icone estatico piscando. */
.approved-check {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 1.75rem;
}

.approved-check::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--success-bg);
    transform: scale(0.6);
    opacity: 0;
    animation: approvedHalo 0.7s ease-out 0.15s forwards;
}

.approved-check svg {
    position: relative;
    width: 100%;
    height: 100%;
}

.approved-check__circle {
    stroke: var(--success-color);
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: approvedDraw 0.65s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.approved-check__mark {
    stroke: var(--success-color);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 42;
    stroke-dashoffset: 42;
    animation: approvedDraw 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes approvedDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes approvedHalo {
    to { transform: scale(1); opacity: 1; }
}

/* Entrada escalonada: o texto sobe depois que o selo termina de desenhar. */
.payment-approved > *:not(.approved-check) {
    opacity: 0;
    animation: approvedRise 0.5s ease-out forwards;
}

.payment-approved > *:nth-child(2) { animation-delay: 0.75s; }
.payment-approved > *:nth-child(3) { animation-delay: 0.85s; }
.payment-approved > *:nth-child(4) { animation-delay: 0.95s; }
.payment-approved > *:nth-child(5) { animation-delay: 1.05s; }
.payment-approved > *:nth-child(6) { animation-delay: 1.15s; }
.payment-approved > *:nth-child(7) { animation-delay: 1.25s; }

@keyframes approvedRise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.approved-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0 0 0.35rem;
}

.approved-greeting {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.approved-greeting strong {
    color: var(--text-main);
    font-weight: 600;
}

/* O valor doado e o centro emocional da tela: ele carrega o destaque. */
.approved-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.65rem 1.6rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--success-bg);
    color: var(--success-color);
}

.approved-amount__currency {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.7;
}

.approved-amount__value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.approved-desc {
    max-width: 24rem;
    margin: 0 auto 1.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.approved-action {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    background: var(--primary-color);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 18px rgba(108, 93, 211, 0.25);
}

.approved-action:hover,
.approved-action:focus-visible {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(108, 93, 211, 0.3);
}

.approved-redirect {
    margin: 1.25rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.approved-redirect__cancel {
    background: none;
    border: 0;
    padding: 0 0 0 0.35rem;
    font: inherit;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.approved-redirect__cancel:hover {
    color: var(--primary-hover);
}

/* Quem pediu menos movimento ve a tela final direto, sem desenho nem subida. */
@media (prefers-reduced-motion: reduce) {
    .approved-check::before,
    .approved-check__circle,
    .approved-check__mark,
    .payment-approved > *:not(.approved-check) {
        animation: none;
        opacity: 1;
        transform: none;
        stroke-dashoffset: 0;
    }
}

/* ============================================================
   Aguardando pagamento PIX (QR + copia e cola lado a lado)
   ============================================================ */

/* Enquanto se espera o pagamento a tarefa e unica: pagar. O painel lateral
   recolhe ranking e citacao - os blocos mais altos - e as respiracoes da
   pagina encolhem, para QR, codigo e status caberem numa tela de notebook. */
body.is-awaiting-payment {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
}

body.is-awaiting-payment .impact-donors-section,
body.is-awaiting-payment .impact-quote-box {
    display: none;
}

body.is-awaiting-payment .checkout-card {
    padding: 1.75rem;
}

body.is-awaiting-payment .back-home-link {
    margin-bottom: 0;
}

body.is-awaiting-payment .impact-progress-section {
    margin: 1.5rem 0;
}

body.is-awaiting-payment .impact-stats-grid {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.pix-await {
    padding: 0.25rem 0;
}

.pix-await__head {
    margin-bottom: 1.25rem;
}

.pix-await__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0 0 0.25rem;
}

.pix-await__sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.pix-await__sub strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Coluna do QR com largura propria; a do lado ocupa o resto sem estourar
   (minmax(0,1fr) impede que o textarea empurre o grid). */
.pix-await__grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    text-align: left;
    margin-bottom: 1.25rem;
}

.pix-await__qr {
    margin: 0;
    padding: 0.9rem;
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    line-height: 0;
}

.pix-await__qr img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.pix-await__steps {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.pix-await__steps strong {
    color: var(--text-main);
    font-weight: 600;
}

/* A caixa de copiar herda estilos da versao empilhada; aqui ela vira coluna. */
.pix-await .pix-copy-box {
    max-width: none;
    margin: 0;
}

.pix-await .pix-copy-textarea {
    height: 58px;
    font-size: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 8px;
}

.pix-await .btn-copy-pix {
    padding: 0.6rem;
}

.pix-await .success-badge-checking {
    margin-top: 0;
}

/* Telas estreitas: volta a empilhar, com o QR centralizado. */
@media (max-width: 700px) {
    .pix-await__grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .pix-await__side {
        width: 100%;
    }

    .pix-await__steps {
        text-align: left;
    }
}

/* Notebooks baixos (~768px de altura): aperta mais um pouco. */
@media (min-width: 992px) and (max-height: 820px) {
    body.is-awaiting-payment .checkout-card {
        padding: 1.5rem;
    }

    .pix-await__qr img {
        width: 156px;
        height: 156px;
    }

    .pix-await__head {
        margin-bottom: 1rem;
    }

    .pix-await__steps {
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }
}

/* ==========================================================================
   Método de pagamento indisponível
   ==========================================================================
   O cartão continua visível de propósito. Escondê-lo faria a pessoa pensar
   que a opção nunca existiu; cinza com aviso comunica "existe, mas não
   agora" — e evita o e-mail perguntando cadê o PIX online.
   ========================================================================== */

.payment-method-card.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    background: #f8fafc;
    border-color: #e2e8f0;
    /* Sem hover e sem foco: não é interativo, e deixar que pareça clicável
       é pior do que deixá-lo claramente inerte. */
    pointer-events: auto;
}

.payment-method-card.is-disabled:hover {
    border-color: #e2e8f0;
    box-shadow: none;
    transform: none;
}

.payment-method-card.is-disabled i,
.payment-method-card.is-disabled span {
    color: #94a3b8;
}

.payment-method-card__aviso {
    display: block;
    margin-top: .35rem;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.2;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.payment-method-card__aviso i {
    color: #b45309;
    margin-right: .2rem;
}

/* Aviso de nenhuma forma de pagamento ativa. */
.checkout-sem-pagamento {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.15rem;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-card, .75rem);
    background: #fffbeb;
    color: #92400e;
    font-size: .9rem;
    line-height: 1.5;
}
