/**
 * WC Pre-Order My Account Styles
 */

.wc-preorder-my-account h2 {
    margin-bottom: 20px;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-partial {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

/* Pay Balance Button */
.pay-balance-btn {
    background: #28a745 !important;
    color: #fff !important;
    border-color: #28a745 !important;
}

.pay-balance-btn:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}

/* Payment History */
.payment-history-row td {
    background: #f8f9fa;
}

.payment-history-content {
    padding: 15px;
}

.payment-history-content h4 {
    margin: 0 0 15px;
    font-size: 14px;
    color: #333;
}

.payment-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 20px;
}

.payment-history-table th,
.payment-history-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.payment-history-table th {
    background: #e9ecef;
    font-weight: 600;
}

/* Pre-Order Updates */
.preorder-updates {
    border-left: 3px solid #0073aa;
    padding-left: 15px;
}

.update-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #dee2e6;
}

.update-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.update-date {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 5px;
}

.update-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

/* View History Button */
.view-history-btn {
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-preorder-my-account table {
        font-size: 13px;
    }
    
    .wc-preorder-my-account th,
    .wc-preorder-my-account td {
        padding: 8px 5px;
    }
    
    .pay-balance-btn,
    .view-history-btn {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
}
