/* Custom Amount Payment Section */
.phonepe-custom-payment-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin: 30px auto;
    max-width: 450px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.phonepe-input-group {
    margin-bottom: 20px;
    text-align: left;
}

.phonepe-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

.phonepe-input-field {
    width: calc(100% - 20px); /* Account for padding */
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.phonepe-input-field:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    outline: none;
}

/* Style for the custom pay button - inherits 'button' base style and adds specifics */
.phonepe-custom-pay-button {
    width: 100%; /* Make button full width */
    font-size: 1.2em; /* Slightly larger text for the main button */
    padding: 16px; /* More padding */
}

/* Message Area (for success/error messages for custom amount) */
.phonepe-message-area {
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid transparent; /* Default transparent border */
    display: none; /* Hidden by default */
}

.phonepe-message-area.show {
    display: block; /* Show when 'show' class is added by JS */
}

.phonepe-message-area.error {
    background-color: #fcebeb; /* Light red */
    color: #c0392b; /* Dark red */
    border-color: #c0392b;
}

.phonepe-message-area.success {
    background-color: #e9f5e9; /* Light green */
    color: #27ae60; /* Dark green */
    border-color: #27ae60;
}

/* Responsive adjustments for custom amount section */
@media (max-width: 600px) {
    .phonepe-custom-payment-container {
        padding: 20px;
        margin: 15px;
    }
    .phonepe-input-field {
        width: calc(100% - 20px);
    }
    .phonepe-custom-pay-button {
        font-size: 1.1em;
        padding: 14px;
    }
}

/* PhonePe Payment Button Styling */
#phonepe-pay-button {
    display: inline-flex; /* Use flexbox for centering text/icons if added */
    align-items: center;
    justify-content: center;
    background-color: #4A90E2; /* Primary PhonePe-like blue */
    color: #ffffff; /* White text */
    padding: 15px 35px; /* Generous padding */
    border: none;
    border-radius: 10px; /* Modern rounded corners */
    font-family: 'Inter', sans-serif; /* Consistent font */
    font-size: 1.15em; /* Slightly larger text */
    font-weight: 600; /* Semi-bold */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3); /* Soft, prominent shadow */
    outline: none; /* Remove outline on focus */
    text-transform: uppercase; /* Optional: Make text uppercase */
    letter-spacing: 0.5px; /* Optional: Slight letter spacing */
}

#phonepe-pay-button:hover {
    background-color: #357ABD; /* Darker blue on hover */
    transform: translateY(-3px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4); /* Enhanced shadow on hover */
}

#phonepe-pay-button:active {
    transform: translateY(0); /* Press down effect on active */
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

#phonepe-pay-button:disabled {
    background-color: #a0a0a0; /* Grey out when disabled */
    cursor: not-allowed;
    box-shadow: none;
    transform: translateY(0);
}

/* Optional: Add a subtle loading spinner style if you show "Processing..." */
#phonepe-pay-button.loading {
    background-color: #6c757d; /* A neutral color for loading state */
}

/* Style for the payment result div */
#phonepe-payment-result {
    margin-top: 15px;
    font-size: 0.95em;
    font-weight: 500;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

#phonepe-payment-result.error {
    color: #d9534f; /* Red for errors */
    background-color: #fdd;
    border: 1px solid #d9534f;
}

#phonepe-payment-result.success {
    color: #5cb85c; /* Green for success */
    background-color: #dfd;
    border: 1px solid #5cb85c;
}