{% if error %}
<div class="flex items-start gap-2 rounded-md bg-red-50 border border-red-100 px-3 py-2.5 text-sm text-red-700">
  <svg class="w-4 h-4 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
  </svg>
  <span>{{ error }}</span>
</div>
{% elif price %}
<div class="flex items-start gap-2 rounded-md bg-green-50 border border-green-100 px-3 py-2.5 text-sm text-green-700">
  <svg class="w-4 h-4 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/>
  </svg>
  <span>
    Price detected: <strong>${{ price }}</strong>
    <span class="text-green-500 ml-1">(raw: "{{ raw_text }}", via {{ method }})</span>
  </span>
</div>
{% else %}
<div class="flex items-start gap-2 rounded-md bg-yellow-50 border border-yellow-100 px-3 py-2.5 text-sm text-yellow-700">
  <svg class="w-4 h-4 mt-0.5 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
  </svg>
  <span>Element found ("{{ raw_text }}") but no numeric price could be parsed from it.</span>
</div>
{% endif %}
