/**
 * Frontend Styles for Cart to Cart Payment
 */

.c2c-payment-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.c2c-payment-form-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.c2c-order-info {
    background: #f0f0f1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.c2c-order-info h3 {
    margin-top: 0;
    color: #0073aa;
}

.c2c-order-info p {
    margin: 10px 0;
    font-size: 16px;
}

.c2c-payment-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.c2c-payment-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.c2c-form-group {
    margin-bottom: 20px;
}

.c2c-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.c2c-form-group label .required {
    color: #d63638;
}

.c2c-form-group input[type="text"],
.c2c-form-group input[type="tel"],
.c2c-form-group input[type="email"],
.c2c-form-group input[type="number"],
.c2c-form-group select,
.c2c-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.c2c-form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.c2c-form-group .description {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.c2c-bank-card-display {
    background: #f5f5f5;
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.c2c-bank-card-display h3 {
    margin-top: 0;
    color: #0073aa;
}

.c2c-bank-card-display p {
    margin: 10px 0;
    font-size: 16px;
}

.c2c-bank-card-display .c2c-card-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.c2c-qr-code-container {
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
}

.c2c-qr-code-container img {
    max-width: 200px;
    height: auto;
}

.c2c-submit-button {
    width: 100%;
    padding: 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.c2c-submit-button:hover {
    background: #005a87;
}

.c2c-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.c2c-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.c2c-message.c2c-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.c2c-message.c2c-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.c2c-message strong {
    display: block;
    margin-bottom: 5px;
}

.c2c-form-group .optional {
    color: #666;
    font-weight: normal;
    font-size: 0.9em;
}

#receipt-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#receipt-preview-img {
    max-width: 100%;
    height: auto;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#c2c-loading {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

#c2c-message {
    min-height: 100px;
}

#c2c-message.c2c-success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
}

#c2c-message.c2c-error {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 8px;
}

.c2c-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Customer Transactions */
.c2c-customer-transactions {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.c2c-transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.c2c-transactions-table th,
.c2c-transactions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.c2c-transactions-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.c2c-transaction-details td {
    background: #f9f9f9;
    padding: 20px;
}

.c2c-details-content h4 {
    margin-top: 0;
}

.c2c-details-table {
    width: 100%;
    margin: 15px 0;
}

.c2c-details-table th {
    width: 30%;
    font-weight: 600;
    padding: 8px;
}

.c2c-details-table td {
    padding: 8px;
}

.c2c-view-details {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
}

.c2c-view-details:hover {
    background: #005a87;
}

.c2c-pagination {
    margin-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .c2c-payment-form-wrapper {
        margin: 20px;
        padding: 10px;
    }
    
    .c2c-payment-form {
        padding: 20px;
    }
    
    .c2c-payment-form h2 {
        font-size: 20px;
    }
    
    .c2c-transactions-table {
        font-size: 14px;
}

    .c2c-transactions-table th,
    .c2c-transactions-table td {
        padding: 8px;
    }
}
