/* ===== Página de Checkout PIX ===== */
.pix-checkout-page {
    padding: 20px 16px 40px;
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.pix-checkout-page .pix-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pix-checkout-page .pix-header .back-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 4px;
}

.pix-checkout-page .pix-header h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.pix-amount-box {
    background: linear-gradient(135deg, #ff2c55 0%, #ee1d52 100%);
    color: #fff;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(238, 29, 82, 0.25);
}

.pix-amount-box .label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.pix-amount-box .value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.pix-loading {
    padding: 40px 20px;
    text-align: center;
}

.pix-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #ff2c55;
    border-radius: 50%;
    animation: pix-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes pix-spin {
    to { transform: rotate(360deg); }
}

.pix-loading p {
    color: #555;
    font-size: 14px;
}

.pix-qrcode-container {
    background: #fff;
    border: 2px solid #ff2c55;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    display: inline-block;
}

.pix-qrcode-container img {
    width: 220px;
    height: 220px;
    display: block;
}

.pix-instructions {
    text-align: left;
    background: #fff8f0;
    border-left: 4px solid #ff9500;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.pix-instructions strong {
    color: #ff2c55;
}

.pix-copy-section {
    margin: 16px 0;
}

.pix-copy-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-align: left;
}

.pix-copy-wrapper {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 12px;
    align-items: center;
}

.pix-copy-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 12px;
    color: #333;
    outline: none;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pix-copy-btn {
    background: #ff2c55;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
}

.pix-copy-btn:hover { background: #ee1d52; }
.pix-copy-btn.copied { background: #4caf50; }

.pix-status {
    margin: 20px 0;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}

.pix-status.pending {
    background: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffd54f;
}

.pix-status.paid {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
    animation: pix-pulse 1s infinite;
}

@keyframes pix-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.02); }
}

.pix-status .status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.pix-status.pending .status-dot {
    background: #ff9800;
    animation: pix-blink 1s infinite;
}

.pix-status.paid .status-dot { background: #4caf50; }

@keyframes pix-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.pix-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    padding: 14px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 14px;
}

.pix-footer-info {
    margin-top: 20px;
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}