/**
 * Wallet Credit Checkout Styles
 */

.wallet-credit-row td.wallet-credit-cell {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-bottom: 2px solid #ccc;
}

.wallet-credit-section {
    width: 100%;
}

.wallet-credit-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.wallet-selection p {
    margin-bottom: 15px;
}

.wallet-selection label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.wallet-selection input[type="text"],
.wallet-selection select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.wallet-info {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.wallet-info h5 {
    margin: 0 0 10px 0;
    color: #0c5460;
    font-size: 14px;
    font-weight: 600;
}

.wallet-info-row {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #d1ecf1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.wallet-info-row:last-child {
    border-bottom: none;
}

.wallet-info-row span {
    display: inline;
    line-height: 1.4;
    margin-right: 10px;
}

.wallet-info p {
    margin: 8px 0;
}

.amount-selection input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.amount-selection small {
    color: #666;
    font-style: italic;
}

#credit-options {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

#credit-options label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

#credit-options input[type="checkbox"] {
    margin-right: 8px;
}

.quick-amounts {
    margin: 20px 0;
    text-align: center;
}

.quick-amounts label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.quick-amount-btn {
    background: #0073aa;
    color: white;
    border: 1px solid #005a87;
    padding: 8px 16px;
    margin: 3px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-amount-btn:hover {
    background: #005a87;
    border-color: #004a73;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-amount-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Smart Quick Actions */
.smart-quick-actions {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.smart-action-btn {
    background: #28a745;
    color: white;
    border: 1px solid #1e7e34;
    padding: 12px 20px;
    margin: 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 160px;
}

.smart-action-btn:hover {
    background: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.smart-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

.smart-action-btn[data-action="custom-amount"] {
    background: #6c757d;
    border-color: #545b62;
}

.smart-action-btn[data-action="custom-amount"]:hover {
    background: #5a6268;
    border-color: #4e555b;
    box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3);
}

.wallet-credit-section .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.wallet-credit-section .button:hover {
    background: #005a87;
}

.wallet-credit-section .button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wallet-applied-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

.wallet-applied-notice strong {
    color: #0f3e0f;
}

.wallet-applied-notice small {
    color: #666;
    font-style: italic;
}

.wallet-applied-notice a {
    text-decoration: underline;
}

.wallet-applied-notice a:hover {
    text-decoration: none;
}

#wallet-credit-messages {
    margin: 15px 0;
}

#wallet-credit-messages .woocommerce-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

#wallet-credit-messages .woocommerce-message {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .wallet-credit-row td,
    .wallet-credit-row th {
        padding: 15px;
    }
    
    .quick-amounts div {
        text-align: center;
    }
    
    .quick-amount-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .smart-action-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
        min-width: unset;
    }
}

/* Order review integration */
.woocommerce-checkout-review-order-table .wallet-credit-fee {
    color: #0f9d58;
    font-weight: bold;
}

.woocommerce-checkout-review-order-table .wallet-credit-fee td {
    border-top: 1px dashed #ddd;
}

/* Admin order styling */
.wallet-usage-info {
    background: #f0f8ff;
    border: 1px solid #c3d9ff;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.wallet-usage-info h3 {
    margin-top: 0;
    color: #1e3a8a;
}
