/* Estilos para integração PIX inline */

/* Container PIX */
.pix-container {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--bordas);
    animation: fadeIn 0.4s ease-out;
}

.pix-divider {
    height: 1px;
    background: var(--bordas);
    margin-bottom: 24px;
}

.pix-header {
    text-align: center;
    margin-bottom: 24px;
}

.pix-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--texto-principal);
    margin-bottom: 8px;
}

.pix-subtitle {
    font-size: 14px;
    color: var(--texto-secundario);
    line-height: 1.5;
}

/* QR Code */
.pix-qr-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.pix-qr-card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--bordas);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-qr-card canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

/* PIX Copia e Cola */
.pix-copy-wrapper {
    margin-bottom: 20px;
}

.pix-copy-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--texto-principal);
    margin-bottom: 8px;
}

.pix-copy-box {
    position: relative;
    border: 2px solid var(--bordas);
    border-radius: 8px;
    background: #f9fafb;
}

.pix-copy-text {
    width: 100%;
    padding: 12px 50px 12px 16px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    border: none;
    background: transparent;
    resize: none;
    color: var(--texto-principal);
    line-height: 1.6;
}

.pix-copy-text:focus {
    outline: none;
}

.btn-copy-pix {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    background: var(--azul-principal);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-copy-pix:hover {
    background: var(--azul-escuro);
}

.btn-copy-pix:active {
    transform: scale(0.95);
}

/* Tempo de expiração */
.pix-expires {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #92400e;
}

.pix-expires svg {
    flex-shrink: 0;
}

.pix-expires strong {
    color: #78350f;
    font-weight: 600;
}

/* Botão Novo PIX */
.btn-novo-pix {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--azul-principal);
    border: 2px solid var(--azul-principal);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-novo-pix:hover {
    background: var(--azul-principal);
    color: #ffffff;
}

/* Botão Gerar PIX */
.btn-pagamento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-pix-text {
    display: inline-block;
}

.btn-pix-loader {
    display: inline-flex;
    align-items: center;
}

.spinner-pix {
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Toast de erro */
.toast-pix {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUpToast 0.3s ease-out;
    max-width: 90%;
}

@keyframes slideUpToast {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-pix-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-pix-icon {
    flex-shrink: 0;
}

.toast-pix-message {
    font-size: 14px;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 480px) {
    .pix-container {
        margin-top: 24px;
        padding-top: 24px;
    }

    .pix-title {
        font-size: 18px;
    }

    .pix-qr-card {
        padding: 20px;
    }

    .pix-copy-text {
        font-size: 12px;
    }
}





