/* Estilos do plugin VeoPag */

.veopag-payment-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.veopag-payment-info h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

.veopag-qr-code {
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 2px solid #007cba;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 124, 186, 0.1);
    position: relative;
}

.veopag-qr-code img {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.veopag-qr-code::before {
    content: "📱";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #007cba;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 16px;
}

.veopag-payment-details {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.veopag-payment-details p {
    margin: 8px 0;
    font-size: 14px;
}

.veopag-status-check {
    margin-top: 20px;
}

.veopag-status-check button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.veopag-status-check button:hover {
    background: #005a87;
}

.veopag-status-check button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Status badges */
.status-pending {
    color: #856404;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-completed {
    color: #155724;
    background: #d4edda;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-cancelled,
.status-failed,
.status-expired {
    color: #721c24;
    background: #f8d7da;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Admin styles */
.veopag-admin-container {
    display: flex;
    gap: 20px;
}

.veopag-main-content {
    flex: 2;
}

.veopag-sidebar {
    flex: 1;
}

.veopag-widget {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.veopag-widget h3 {
    margin-top: 0;
    color: #23282d;
}

#connection-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#connection-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#connection-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Força o QR Code a aparecer no topo */
.woocommerce-thankyou-order-received {
    position: relative;
}

.veopag-payment-info {
    position: relative;
    z-index: 999;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
}

/* Garante que o QR Code seja visível */
.veopag-qr-code {
    position: relative;
    z-index: 1000;
    margin: 20px auto !important;
}

.veopag-qr-code img {
    position: relative;
    z-index: 1001;
    max-width: 300px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Responsive */
@media (max-width: 768px) {
    .veopag-admin-container {
        flex-direction: column;
    }
    
    .veopag-qr-code img {
        max-width: 250px !important;
    }
    
    .veopag-payment-info {
        margin: 10px 0 !important;
        padding: 15px !important;
    }
}
