/* Fox Affiliate Styles */

/* Register Form */
.foxaff-table {
    width: 100%;
    border-collapse: collapse;
}

.foxaff-table td {
    padding: 10px;
}

.foxaff-register-btn {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.foxaff-register-btn:hover {
    background: #005177;
}

/* Pending Status */
.foxaff-pending {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #7d581e;
    border-radius: 5px;
}


.foxaff-balance,
.foxaff-link,
.foxaff-payment-info,
.foxaff-register {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 5px;
}

.foxaff-withdraw-btn {
    background: #28a745;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.foxaff-tit {
    margin-bottom: 15px;
    padding-bottom: 7px;
    border-bottom: 1px dashed var(--color-2);
}

.foxaff-tit i {
    margin-right: 7px;
}

.foxaff-withdraw-btn:hover:not(:disabled) {
    background: #218838;
}

.foxaff-withdraw-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.foxaff-affiliate-url {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.foxaff-affiliate-url:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Payment Form */
.foxaff-payment-form {
    margin-top: 15px;
}

.foxaff-form-group {
    position: relative;
    margin-bottom: 20px;
}

.foxaff-form-group label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #f9f9f9;
    padding: 0 5px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    z-index: 1;
}

.foxaff-form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

.foxaff-form-group input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.foxaff-form-actions {
    margin-top: 20px;
}

/* Messages */

.foxaff-message.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.foxaff-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Styles */
.foxaff-approve-affiliate {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.foxaff-approve-affiliate:hover {
    background: #005177;
}

.foxaff-remove-affiliate {
    color: #dc3545;
    text-decoration: none;
}

.foxaff-remove-affiliate:hover {
    text-decoration: underline;
}

.foxaff-mark-paid {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 3px;
}

.foxaff-mark-paid:hover {
    background: #218838;
}

/* Pending Notice */
.foxaff-pending-notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border: 1px solid #ffc107;
    border-radius: 3px;
    font-size: 14px;
}

/* Withdraw History - Sử dụng style WooCommerce */
.foxaff-withdraw-history,
.foxaff-orders-history {
    margin-top: 30px;
}

.foxaff-withdraw-history h4,
.foxaff-orders-history h4 {
    margin-bottom: 15px;
}

/* Custom status colors */
.order-status.status-pending {
    color: #535353;
}

.order-status.status-completed {
    color: #2ea44f;
}

.order-status.status-processing {
    color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .foxaff-payment-form label {
        display: block;
        margin-bottom: 5px;
    }
}