/* WP Credit Wallets - Frontend Styles */

/* Base styles are included in the template inline for better compatibility */
/* This file can be used for additional customizations */

/* Terms & Conditions at Checkout */
.wcw-terms-checkout {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.wcw-terms-field label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
}

.wcw-terms-text {
    margin-top: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.wcw-terms-text p {
    margin: 0 0 10px 0;
}

.wcw-terms-text p:last-child {
    margin-bottom: 0;
}

/* RTL Support */
[dir="rtl"] .wcw-terms-field label {
    flex-direction: row-reverse;
}

/* Recent Orders Widget */
.wcw-recent-orders-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wcw-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.wcw-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.wcw-orders-table thead th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.wcw-orders-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    vertical-align: middle;
}

.wcw-orders-table tbody tr:hover {
    background: #f9fafb;
}

.wcw-currency-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wcw-currency-cell img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.wcw-amount {
    white-space: nowrap;
    text-align: center;
}

.wcw-amount .arrow {
    color: #f97316;
    margin: 0 5px;
    font-style: normal;
}

.wcw-date {
    text-align: center;
}

.wcw-date small {
    display: block;
    color: #f97316;
    margin-top: 4px;
}

.wcw-orders-table .text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wcw-orders-table {
        font-size: 12px;
    }
    
    .wcw-orders-table thead {
        display: none;
    }
    
    .wcw-orders-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 10px;
    }
    
    .wcw-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 8px 0;
    }
    
    .wcw-orders-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
    }
}
