/* Member Recharge System - Frontend Styles */

.mrs-recharge-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mrs-user-balance {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.mrs-balance-amount {
    font-size: 32px;
    font-weight: 600;
    color: #0073aa;
    margin: 10px 0;
}

.mrs-recharge-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.mrs-recharge-form h3 {
    margin-top: 0;
    color: #23282d;
}

.mrs-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.mrs-tier-card {
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mrs-tier-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
}

.mrs-tier-card.selected {
    background: #0073aa;
    color: white;
    border-color: #005a87;
}

.mrs-tier-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.mrs-tier-amount {
    margin-bottom: 15px;
}

.mrs-recharge-amount,
.mrs-bonus-amount,
.mrs-total-amount {
    margin: 5px 0;
}

.mrs-total-amount {
    font-size: 20px;
    font-weight: 600;
    color: #0073aa;
}

.mrs-tier-card.selected .mrs-total-amount {
    color: #fff;
}

.mrs-tier-select input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #0073aa;
}

.mrs-payment-method {
    margin-bottom: 20px;
}

.mrs-payment-method h4 {
    margin-bottom: 10px;
}

.mrs-payment-method select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.mrs-form-submit {
    text-align: center;
}

.mrs-form-submit .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mrs-form-submit .button:hover {
    background: #005a87;
}

.mrs-account-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mrs-balance-section {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.mrs-balance-display {
    text-align: center;
}

.mrs-current-balance {
    font-size: 18px;
    margin: 10px 0;
}

.mrs-amount {
    font-size: 24px;
    font-weight: 600;
    color: #0073aa;
}

.mrs-transactions-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.mrs-transactions-section h3 {
    margin-top: 0;
}

.mrs-transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.mrs-transactions-table th,
.mrs-transactions-table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    text-align: left;
}

.mrs-transactions-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.mrs-transactions-table tr:nth-child(even) {
    background: #f8f9fa;
}

.mrs-transactions-table tr:hover {
    background: #e2e8f0;
}

.mrs-balance-notice {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.mrs-balance-notice h3 {
    margin-top: 0;
    color: #0073aa;
}

.mrs-apply-balance-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.mrs-apply-balance-btn:hover {
    background: #005a87;
}

.mrs-checkout-balance {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.mrs-checkout-balance h3 {
    margin-top: 0;
    color: #23282d;
}

.mrs-checkout-balance label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.mrs-checkout-balance input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.mrs-checkout-balance .button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.mrs-checkout-balance .button:hover {
    background: #005a87;
}

.mrs-payment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.mrs-payment-details {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.mrs-payment-details table {
    width: 100%;
}

.mrs-payment-details td {
    padding: 10px 0;
}

.mrs-payment-details td:first-child {
    font-weight: 600;
}

.mrs-payment-actions {
    text-align: center;
}

#mrs-process-payment {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#mrs-process-payment:hover {
    background: #005a87;
}

#mrs-process-payment:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#mrs-payment-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

#mrs-payment-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#mrs-payment-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#mrs-payment-status.processing {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}