.wc-recharge-page-wrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px;
}
.wc-recharge-page-wrapper .container {
    min-width: 50%;
}
.wc-recharge-phone-input-section { 
            margin: 0 auto;
        }
        
        .wc-recharge-form-group {
            margin-bottom: 20px;
        }
        
        .wc-recharge-form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }
        
        .wc-recharge-form-group .required {
            color: #dc3232;
        }
        
        .wc-recharge-input {
            width: 100%;
            padding: 12px 15px;
            font-size: 16px;
            border: 2px solid #ddd;
            border-radius: 4px;
            transition: border-color 0.3s;
        }
        
        .wc-recharge-input:focus {
            outline: none;
            border-color: #0073aa;
        }
        
        .wc-recharge-input.valid {
            border-color: #46b450;
        }
        
        .wc-recharge-input.invalid {
            border-color: #dc3232;
        }
        
.wc-recharge-validation-message {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    min-height: 20px;
    position: relative;
    padding-left: 25px;
}
        
        .wc-recharge-validation-message.success {
            color: #46b450;
            padding-left: 0;
        }
        
        .wc-recharge-validation-message.error {
            color: #dc3232;
            margin: 0 !important;
            padding-left: 0;
        }
        
        .wc-recharge-help-text {
            margin: 5px 0 0;
            font-size: 13px;
            color: #666;
            line-height: 1.2;
        }
        
        .wc-recharge-sim-info,
        .wc-recharge-order-info {
            background: #f9f9f9;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            padding: 15px;
            margin-bottom: 20px;
        }
        
        .wc-recharge-sim-info h4,
        .wc-recharge-order-info h4 {
            margin: 0 0 10px;
            color: #0073aa;
        }
        
        .sim-info-grid {
            display: grid;
            gap: 10px;
        }
        
        .sim-info-item {
            display: flex;
            justify-content: space-between;
            padding: 8px;
            background: white;
            border-radius: 3px;
        }
.sim-status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    /* max-width: 100px; */
    align-items: center;
    justify-content: center;
}
        .sim-status-badge.status-suspended {
            background: #ffeb3b;
            color: #f57c00;
        }
        
        .sim-status-badge.status-available,
        .sim-status-badge.status-active {
            background: #4caf50;
            color: white;
        }
        
        .sim-status-badge.status-inactive {
            background: #9e9e9e;
            color: white;
        }
        
        .wc-recharge-order-item {
            background: white;
            padding: 10px;
            margin-bottom: 8px;
            border-left: 3px solid #0073aa;
            border-radius: 3px;
        }
        
        .wc-recharge-order-item strong {
            color: #0073aa;
        }
        
        .order-status {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 3px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }
        
        .order-status.status-processing {
            background: #ffeb3b;
            color: #f57c00;
        }
        
        .order-status.status-completed {
            background: #4caf50;
            color: white;
        }
        
        .order-status.status-pending {
            background: #ff9800;
            color: white;
        }
        
        #wc-recharge-start-button:disabled {
            background: #ccc;
            cursor: not-allowed;
            opacity: 0.6;
        }
        
        #wc-recharge-start-button.has-orders {
            background: #0073aa;
        }
        
        #wc-recharge-start-button.no-orders {
            background: #E1485B;
        }
        #wc-recharge-start-button.no-orders:hover{
                background-image: linear-gradient(150deg, #1E8389 0%, #3E4F0B 100%);
        }
/* Modal Base Styles */
.wc-recharge-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.wc-recharge-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.wc-recharge-modal-container {
    position: relative;
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.wc-recharge-modal-header { 
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.wc-recharge-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.wc-recharge-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #f11c1c;
    transition: color 0.3s;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border: #f11c1c solid 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.wc-recharge-modal-close:hover {
    color: #fff;
    background: #f11c1c;
}
 
/* Modal Phone Info */
.wc-recharge-modal-phone-info {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.modal-sim-details {
    display: grid;
    gap: 10px;
}
.sim-detail-row {
    display: grid;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    gap: 20px;
    grid-template-columns: 50px 1fr 100px;
}
.sim-detail-row strong {
    color: #0073aa; 
}

.change-phone-btn {
    background: #e1485b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}
.button.wc-recharge-pay-now{
     background: #e1485b !important;
}
.change-phone-btn:hover ,.button.wc-recharge-pay-now:hover{
    background-image: linear-gradient(150deg, #1E8389 0%, #3E4F0B 100%) !important;
}

/* Steps */
.wc-recharge-step {
    display: none;
}

.wc-recharge-step.active {
    display: block;
    text-align: center;
}
#wc-recharge-close-result{
    margin: 0 auto;
}
/* Orders List in Modal (NEW) */
.modal-orders-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.wc-recharge-modal-order-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.wc-recharge-modal-order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-order-header strong {
    font-size: 16px;
    color: #0073aa;
}

.modal-order-body {
    margin-bottom: 12px;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.order-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-meta-item .label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.order-meta-item .value {
    font-size: 14px;
    color: #333;
}

.order-items-summary {
    background: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.matched-items {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    padding: 10px;
    font-size: 13px;
}

.matched-items ul {
    margin: 5px 0 0;
    padding-left: 20px;
}

.matched-items li {
    margin: 5px 0;
}

.sim-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.modal-order-footer {
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.view-order-external-link {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s;
}

.view-order-external-link:hover {
    color: #005a87;
    text-decoration: underline;
}

#wc-recharge-continue-to-products {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

#wc-recharge-continue-to-products:hover {
    background: #005a87;
}

/* Products Grid */
#wc-recharge-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.wc-recharge-product-card {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.wc-recharge-product-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wc-recharge-product-card.selected {
    border-color: #0073aa;
    background: #e3f2fd;
}

.wc-recharge-product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.wc-recharge-product-card h3 {
    font-size: 16px;
    margin: 10px 0;
}

.wc-recharge-product-card .price {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.wc-recharge-product-card .description {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* Payment Methods */
#wc-recharge-payment-methods {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}
div#wc-recharge-payment-methods img {
    max-height: 20px;
}
.wc-recharge-payment-method {
    /* display: flex; */
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    flex-wrap: wrap;
}

.wc-recharge-payment-method:hover {
    border-color: #0073aa;
}

.wc-recharge-payment-method.selected {
    border-color: #0073aa;
    background: #e3f2fd;
}

.wc-recharge-payment-method .payment-info {
    flex: 1;
}

.wc-recharge-payment-method h4 {
    margin: 0 0 5px;
    font-size: 16px;
}

.wc-recharge-payment-method p {
    margin: 0;
    font-size: 13px;
    color: #666;
}
 
div#wc-recharge-selected-product p {
    margin: 0;
    line-height: 1.2;
}
/* Selected Product Info */
.wc-recharge-selected-product-info {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px; 
}
.wc-recharge-selected-product-info h4 {
    margin: 0 0 10px;
    color: #2e7d32;
    width: 100%;
}
.wc-recharge-selected-product-info .price {
    font-size: 20px;
    font-weight: bold;
    color: #2e7d32;
    margin: 5px 0;
}

/* Processing */
.wc-recharge-processing {
    text-align: center;
    padding: 40px 20px;
}

.wc-recharge-processing .spinner.large {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

/* Result */
.wc-recharge-result {
    text-align: center;
   margin: 0 0 20px;
}

.wc-recharge-result .result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-recharge-result .result-icon .dashicons {
    font-size: 40px;
    color: white;
    width: 40px;
    height: 40px;
}

.wc-recharge-result h3 {
    font-size: 24px;
    margin: 0 0 10px;
}

.wc-recharge-result p {
    font-size: 16px;
    color: #666;
    margin: 0 0 5px;
    line-height: 1.2;
}
.spinner { 
    margin: 0;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    height: 40px;
    width: 40px;
    
}
.wc-recharge-validation-message .spinner{
    position: absolute;
    top: 0;
    left: 0;
     height: 20px;
    width: 20px;
     display: inline-flex;
}
/* Payment method selection styling */
.wc-recharge-payment-method {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.wc-recharge-payment-method:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.wc-recharge-payment-method.selected {
    border-color: #46b450;
    background-color: #f0f9f0;
}

.wc-recharge-payment-method.selected::after {
    content: "✓ Selected";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #46b450;
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* Payment button styling */
.wc-recharge-payment-button-container {
    margin-top: 20px;
    text-align: center;
}
#wc-recharge-phone-number{
    border-radius: 5px; 
    outline: none;
    box-shadow: none;
    background: #fff;
    border: #E1485B solid 1px;
    min-height: 48px;
}
#wc-recharge-phone-number:focus{ 
    border: #ffb5be solid 1px;
    outline: none;
    box-shadow: none;
    background: #e2ffff;
}
.wc-recharge-pay-now {
    width: 100%;
    max-width: 300px;
    padding: 16px 24px !important;
    font-size: 16px;
    font-weight: 600;
}

.wc-recharge-pay-now:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Stripe card element validation */
#stripe-card-errors {
    color: #fa755a;
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}
.payment-method-details.stripe-details {
    padding: 0 !important;
    background: transparent !important;
}
.stripe-card-element-container {
    margin-top: 15px;
    padding: 0;
    background: transparent;
    border-radius: 4px;
}

#stripe-card-element {
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#stripe-card-element.StripeElement--focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

#stripe-card-element.StripeElement--invalid {
    border-color: #fa755a;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .wc-recharge-modal-container {
        margin: 20px auto;
        max-height: calc(100vh - 40px);
    }
    
    #wc-recharge-products-list {
        grid-template-columns: 1fr;
    }
    
    .order-meta {
        grid-template-columns: 1fr;
    }
    .sim-detail-row { 
        gap: 5px;
        grid-template-columns: 1fr;
    }
}