/* Wrapper */
.st-donation-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
}

/* Preset Buttons Grid - Default is 3 columns */
.st-amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

/* Mobile Fallback: If screen is small, force 2 columns */
@media (max-width: 767px) {
    .st-amount-presets {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Buttons */
.st-preset-btn, .st-preset-other {
    padding: 12px 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 600;
    width: 100%; /* Fill the grid cell */
    text-align: center;
}

.st-preset-btn:hover, .st-preset-other:hover {
    background: #eee;
}

.st-preset-btn.active, .st-preset-other.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Inputs */
.st-donor-info input, #st_custom_amount {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* Crucial for responsive padding */
}

/* Submit Button */
.st-submit-btn {
    background-color: #28a745;
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s;
    display: block;
}

.st-submit-btn:hover {
    opacity: 0.9;
}

.st-submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}