﻿.pix-error {
    text-align: center;
    padding: 3rem 2rem;
}

    .pix-error h3 {
        color: #dc3545;
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    .pix-error p {
        color: #6c757d;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        line-height: 1.6;
    }

.pix-btn-retry,
.pix-btn-back {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pix-btn-retry {
    background-color: #28a745;
    color: white;
}

    .pix-btn-retry:hover {
        background-color: #218838;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    }

.pix-btn-back {
    background-color: #6c757d;
    color: white;
}

    .pix-btn-back:hover {
        background-color: #5a6268;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
    }

/* =========================== */
/* ===== Layout Principal ===== */
/* =========================== */

.pix-page-wrapper {
    min-height: 50vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.pix-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pix-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 65vh;
}

/* =========================== */
/* ===== Cabeçalho ===== */
/* =========================== */

.pix-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #0000003d;
}

.pix-header-content {
    flex: 1;
}

.pix-badge {
    text-align: center;
    color: black;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pix-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.pix-order {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* =========================== */
/* ===== Mensagem de Sucesso ===== */
/* =========================== */

.pix-success-message {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .pix-success-message h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #32bcad;
        margin: 0;
    }

/* =========================== */
/* ===== Timer de Expiração ===== */
/* =========================== */

.pix-timer {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pix-timer > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        background: #ffeb3b;
        border-radius: 25px;
        padding: 0.75rem 1.25rem;
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .pix-timer svg {
        flex-shrink: 0;
        vertical-align: middle;
        margin-top: -0.3rem;
        margin-right: 0.5rem;
    }

    .pix-timer .expired {
        font-weight: 600;
    }

/* =========================== */
/* ===== Layout de Duas Colunas ===== */
/* =========================== */

.pix-content {
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

/* ===== Coluna Esquerda (QR Code) ===== */

.pix-left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
    flex: 1;
}

/* ===== QR Code Section ===== */

.pix-qr-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

/* Wrapper para alinhar overlay dentro do QR */
.pix-qr-wrapper {
    position: relative;

}

/* Imagem normal */
.pix-qr-image {
    width: 100%;
    max-width: 200px;
    max-height: 200px;
    height: 100%;
    border-radius: 12px;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.6s ease;
    object-fit: cover;
}

/* Efeito visual ao expirar */
.pix-qr-section.expired .pix-qr-image {
    filter: grayscale(100%) blur(3px) brightness(75%);
    opacity: 0.6;
}

/* Overlay dentro do QR Code */
.pix-qr-overlay {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Mostra overlay só quando expira */
.pix-qr-section.expired .pix-qr-overlay {
    opacity: 1;
    pointer-events: all; 
    user-select: none; 
    cursor: not-allowed;
}

/* Ícone e textos do overlay */
.pix-qr-overlay svg {
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
    color: #ff6b6b;
}

.pix-qr-overlay p {
    font-weight: 600;
    margin-bottom: 4px;
}

.pix-qr-overlay span {
    font-size: 1rem;
    opacity: 0.85;
}


/* Botão copiar */
.pix-btn-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.pix-btn-copy:hover {
    background-color: #0069d9;
}

/* Desativa botão ao expirar */
.pix-qr-section.expired .pix-btn-copy {
    background: red; /* cinza neutro */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .pix-qr-section.expired .pix-btn-copy:hover {
        background: black;
        transform: translateY(-2px);
    }




/* ===== Botão Copiar ===== */

.pix-btn-copy {
    width: 50%;
    background: #e40e18;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(228, 14, 24, 0.3);
}

    .pix-btn-copy:hover {
        background: #c00d15;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(228, 14, 24, 0.4);
    }

    .pix-btn-copy:active {
        transform: translateY(0);
    }

    .pix-btn-copy img {
        width: 20px;
        height: 20px;
    }

/* ===== Detalhes do Pagamento ===== */

.pix-payment-details {
    background: #e5e5e5;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pix-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pix-detail-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.pix-detail-value {
    font-size: 1.3rem;
    color: #222;
    font-weight: 600;
}

/* ===== Coluna Direita (Instruções) ===== */

.pix-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    width: auto;
    justify-content: space-between;
}

.pix-instructions-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 1rem 0;
}

.pix-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

    .pix-steps li {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.9rem;
        background: #f8f9fa;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

.pix-step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #e40e18 0%, #c00d15 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(228, 14, 24, 0.2);
}

.pix-step-text {
    flex: 1;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    padding-top: 0.4rem;
}
    .pix-step-text[data-step="1"]::after {
        content: " ao lado";
    }


/* ===== Alerta de Informação ===== */

.pix-info-alert {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    background: #fff5e6;
    border: 2px solid #ffd799c9;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

    .pix-info-alert svg {
        flex-shrink: 0;
        color: #1a1a1a;
        margin-bottom: -4px;
        margin-right: 0.5rem;
    }

    .pix-info-alert span {
        font-size: 0.95rem;
        color: #1a1a1a;
        line-height: 1.6;
    }

/* ===== Mensagem de Erro ===== */

.pix-error {
    text-align: center;
    padding: 3rem;
}

    .pix-error h3 {
        font-size: 1.5rem;
        color: #e40e18;
        margin: 0 0 1rem 0;
    }

    .pix-error p {
        font-size: 1rem;
        color: #666;
        margin: 0;
    }


/* O Overlay de Transição de Página */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    z-index: 9999;
    clip-path: circle(0% at 50% 50%); /* ✅ Começa invisível */
    transition: clip-path 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

    .page-transition-overlay.active {
        clip-path: circle(150% at 50% 50%); /* ✅ Expande */
    }
/* =========================== */
/* ===== Responsivo ===== */
/* =========================== */

@media (max-width: 968px) {
    .pix-content {
        flex-direction: column;
        gap: 2rem;
    }

    .pix-left-column {
        width: 100%;
        order: 2;
    }

    .pix-right-column {
        order: 1;
    }

    .pix-qr-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .pix-qr-image {
        max-height: 180px;
        max-width: 180px;
    }

    .pix-btn-copy {
        width: 100%;
    }

}

@media (max-width: 768px) {
    .pix-card {
        padding: 1.5rem;
    }

    .pix-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .pix-title {
        font-size: 1.4rem;
    }

    .pix-qr-section {
        flex-direction: column;
    }

    .pix-btn-copy {
        max-width: 100%;
    }
    .pix-step-text[data-step="1"]::after {
        content: " abaixo";
    }
}

@media (max-width: 480px) {
    .pix-page-wrapper {
        padding: 1rem 0.5rem;
    }

    .pix-card {
        padding: 1rem;
    }

    .pix-title {
        font-size: 1.2rem;
    }

    .pix-steps li {
        padding: 1rem;
    }

    .pix-step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
