/* ============================
   TNBH Order Styles
   ============================ */

/* Order List */
.tnbh-order-list {
    max-width: 900px;
    margin: 0 auto;
}
.tnbh-order-list h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a2e;
}
.tnbh-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.tnbh-orders-table thead {
    background: #f8fafc;
}
.tnbh-orders-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #666;
    border-bottom: 2px solid #e5e7eb;
}
.tnbh-orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.tnbh-orders-table tbody tr:hover {
    background: #fafbfc;
}
.tnbh-order-status {
    font-weight: 600;
    font-size: 13px;
}
.tnbh-order-status.status-completed { color: #16a34a; }
.tnbh-order-status.status-processing { color: #f59e0b; }
.tnbh-order-status.status-on-hold { color: #f59e0b; }
.tnbh-order-status.status-cancelled,
.tnbh-order-status.status-failed { color: #dc2626; }
.tnbh-order-status.status-refunded { color: #7c3aed; }
.tnbh-order-status.status-pending { color: #6b7280; }

.tnbh-view-order-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #333;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.tnbh-view-order-btn:hover {
    background: #ff6b35;
    color: #fff;
}

/* ============================
   Order Detail
   ============================ */
.tnbh-order-detail {
    max-width: 700px;
    margin: 0 auto;
}
.tnbh-order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.tnbh-order-detail-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
.tnbh-order-date {
    color: #888;
    font-size: 14px;
}

/* Order Items */
.tnbh-order-items {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.tnbh-order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.tnbh-order-item:last-child {
    border-bottom: none;
}
.tnbh-item-name {
    font-weight: 500;
}
.tnbh-item-price {
    font-weight: 600;
    color: #333;
}
.tnbh-order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid #e5e7eb;
    font-size: 16px;
}
.tnbh-order-total strong {
    color: #ff6b35;
    font-size: 18px;
}

/* ============================
   Account Display Card
   ============================ */
.tnbh-account-display {
    margin-bottom: 24px;
}
.tnbh-account-card {
    background: #fff;
    border: 2px solid #16a34a;
    border-radius: 16px;
    overflow: hidden;
}
.tnbh-account-header {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tnbh-account-icon {
    font-size: 24px;
}
.tnbh-account-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.tnbh-account-fields {
    padding: 20px 24px;
}
.tnbh-account-field {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}
.tnbh-account-field:last-child {
    border-bottom: none;
}
.tnbh-field-label {
    min-width: 90px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}
.tnbh-field-value {
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    word-break: break-all;
    user-select: all;
}
.tnbh-copy-field {
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
    white-space: nowrap;
}
.tnbh-copy-field:hover {
    background: #e5e7eb;
}
.tnbh-copy-field.copied {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

/* Copy All */
.tnbh-account-actions {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}
.tnbh-copy-all {
    width: 100%;
    padding: 12px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.tnbh-copy-all:hover {
    background: #2d2d4e;
}
.tnbh-copy-all.copied {
    background: #16a34a;
}

/* Pending state */
.tnbh-account-pending {
    text-align: center;
    padding: 40px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
}
.tnbh-pending-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}
.tnbh-account-pending p {
    color: #92400e;
    font-weight: 500;
}

/* Error state */
.tnbh-account-error {
    text-align: center;
    padding: 40px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
}
.tnbh-error-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}
.tnbh-account-error p {
    color: #dc2626;
    font-weight: 500;
}

/* Payment info */
.tnbh-order-payment-info {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}
.tnbh-order-payment-info p {
    margin: 6px 0;
    font-size: 14px;
    color: #555;
}

/* Responsive */
@media (max-width: 600px) {
    .tnbh-account-field {
        flex-wrap: wrap;
        gap: 6px;
    }
    .tnbh-field-label {
        min-width: 100%;
    }
    .tnbh-order-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .tnbh-orders-table {
        font-size: 13px;
    }
    .tnbh-orders-table th,
    .tnbh-orders-table td {
        padding: 10px 8px;
    }
}
