.cmf-container {
    max-width: 600px;
}

.cmf-group {
    margin-bottom: 1rem;
}

.cmf-group label {
    font-size: 18px;
    font-weight: 600;
}

.cmf-amount-buttons, 
.cmf-membership-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.cmf-amount-buttons, 
.cmf-membership-buttons {
    border: 1px solid #825834;
    border-radius: 5px;
}
.amount-input, .membership-input {
    display: none; /* Hide underlying radio inputs */
}

.amount-button,
.membership-button {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #4d4d4d;
    box-sizing: border-box;
    position: relative;
    display: flex;
    border-right: 1px solid #825834;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    cursor: pointer;
    transition: background-color 0.3s, border 0.3s;
}

.amount-button:hover,
.membership-button:hover,
.amount-button.selected,
.membership-button.selected {
    background-color: #825834; /* Adjust for pushpay color */
    color: #fff;
    border-color: #825834; /* Adjust for pushpay outline */
}

.amount-custom {
    width: 100%;
    padding: 10px;
    border: 1px solid #825834 !important;
    border-radius: 15px !important;
    margin-top: 10px;
    box-sizing: border-box;
}

.amount-custom:focus, .amount-custom:hover {
    border: 2px solid #825834 !important;
}
.cmf-next-button {
    background-color: #825834;
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 45px;
    transition: background-color 0.2s;
    margin: 20px auto;
    width: 460px;
}

.cmf-next-button:hover, .cmf-next-button:focus {
    background-color: #6f4b2c;
    color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    outlline: none;
}

.last-child {
    border-right: none;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .cmf-amount-buttons, 
    .cmf-membership-buttons {
        flex-direction: column;
    }

    .amount-button,
    .membership-button {
        width: 100%;
        border-bottom: 1px solid #825834;
        border-right: none;
    }
    
    .last-child {
        border-bottom: none;
    }
    
    .cmf-next-button {
        width: 100%;
    }
}
