{% extends 'emails/_layout.twig' %}
{% block content %}
    <p style="color:#192a3d;font-size:16px;"><strong>{{ is_new ? 'A new ticket has been opened' : 'A customer has replied' }}</strong></p>
    <table role="presentation" width="100%" style="background:#f2f5f7;border:1px solid #e1e8ed;border-radius:6px;margin:16px 0;">
        <tr><td style="padding:14px 18px;color:#3A4F66;">
            <strong style="color:#192a3d;">Ticket:</strong> #{{ ticket.number }} — {{ ticket.subject }}<br>
            <strong style="color:#192a3d;">From:</strong> {{ ticket.customer_name ?: ticket.customer_email }}<br>
            <strong style="color:#192a3d;">Priority:</strong> {{ ticket.priority }}
        </td></tr>
    </table>
    {% if reply %}
        <div style="background:#fff;border:1px solid #e1e8ed;border-radius:6px;padding:14px 18px;margin:16px 0;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;white-space:pre-wrap;color:#3A4F66;">{{ reply }}</div>
    {% endif %}
    <p style="margin-top:24px;">
        <a href="{{ url }}" style="background:{{ brand.primary_color }};color:#fff;padding:12px 22px;border-radius:6px;text-decoration:none;display:inline-block;font-weight:600;">Open in admin</a>
    </p>
{% endblock %}
