/* Frontend Styles */
.lp-alipay-custom-payment-w {
    text-align: center;
    padding: 20px;
}

.alipay-qr-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
}

.alipay-qr-section h4 {
    color: #1677ff;
    margin-bottom: 15px;
    font-size: 16px;
}

.qr-code-display {
    margin: 15px 0;
}

.qr-code-display img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alipay-account {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.payment-amount {
    font-size: 18px;
    color: #1677ff;
    margin: 15px 0;
}

.alipay-confirmation-section {
    margin-top: 20px;
}

.alipay-confirm-payment {
    background: #1677ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.alipay-confirm-payment:hover {
    background: #0958d9;
}

.alipay-confirm-payment:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.alipay-confirm-payment.confirmed {
    background: #52c41a;
}

.alipay-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 6px;
    padding: 15px;
    color: #a8071a;
    text-align: center;
}

/* Admin Styles */
.alipay-qr-management {
    margin: 20px 0;
}

.service-qr-row {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.service-qr-row h3 {
    margin-top: 0;
    color: #1677ff;
}

.qr-upload-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 15px 0;
}

.qr-preview {
    min-height: 120px;
    min-width: 120px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.qr-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
}

.qr-upload-controls {
    flex: 1;
}

.qr-upload-controls input[type="file"] {
    margin-bottom: 10px;
}

.qr-upload-controls input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.qr-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.qr-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.save-qr-code {
    background: #1677ff;
    color: white;
}

.save-qr-code:hover {
    background: #0958d9;
}

.delete-qr-code {
    background: #ff4d4f;
    color: white;
}

.delete-qr-code:hover {
    background: #cf1322;
}

/* Payment Confirmations */
.confirmations-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.confirmations-table th,
.confirmations-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.confirmations-table th {
    background: #fafafa;
    font-weight: 600;
    color: #262626;
}

.confirmations-table tr:hover {
    background: #f5f5f5;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.status-customer-confirmed {
    background: #e6f7ff;
    color: #0958d9;
    border: 1px solid #91d5ff;
}

.status-confirmed {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.status-rejected {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffccc7;
}

.confirmation-actions {
    display: flex;
    gap: 8px;
}

.confirmation-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.confirm-payment {
    background: #52c41a;
    color: white;
}

.confirm-payment:hover {
    background: #389e0d;
}

.reject-payment {
    background: #ff4d4f;
    color: white;
}

.reject-payment:hover {
    background: #cf1322;
}

.view-confirmation-details {
    background: #1677ff;
    color: white;
}

.view-confirmation-details:hover {
    background: #0958d9;
}

.no-confirmations {
    text-align: center;
    padding: 40px;
    color: #8c8c8c;
}

/* Responsive */
@media (max-width: 768px) {
    .qr-upload-section {
        flex-direction: column;
    }
    
    .confirmations-table {
        font-size: 14px;
    }
    
    .confirmations-table th,
    .confirmations-table td {
        padding: 8px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
}