.btn { background: #179e83 !important; color: white !important; padding: 15px 30px !important; border: none !important; border-radius: 5px !important; text-decoration: none !important; display: inline-block !important; font-family: Arial, sans-serif !important; font-size: 16px !important; font-weight: bold !important; text-align: center !important; cursor: pointer !important; margin: 10px 0 !important; min-width: 150px !important; box-sizing: border-box !important; } .btn:hover { background: #11725e !important; color: white !important; } '; foreach ($files as $file) { $content = file_get_contents($file); if ($content === false) { continue; } // Add inline CSS right before if (strpos($content, '') !== false && strpos($content, 'btn-fix-inline') === false) { $content = str_replace('', $inline_css . "\n\n", $content); file_put_contents($file, $content); echo "Added inline CSS to: " . basename($file) . "\n"; } } echo "Inline CSS fix complete!\n"; ?>