{% block subject %}PT Coffee: Confirmation for Order No. {{ order_id }}{% endblock %}
{% block html %}
    <h3>Thank you for your order!</h3>

    <p>Hi {{ full_name }}, we're getting your order ready to be shipped. We will notify you when it has been sent.</p>

    <h4>Shipping Information</h4>
    <p>
        <address>
            {{shipping_address.first_name}}
            {{shipping_address.last_name}}<br>
            {{shipping_address.street_address_1}}<br>
            {% if shipping_address.street_address_2 %}
                {{shipping_address.street_address_2}}<br>
            {% endif %}
            {{shipping_address.city}}, {{shipping_address.state}}, {{shipping_address.postal_code}}
        </address>
    </p>


    <h4>Order Summary</h4>
    <table style="text-align: left; width: 100%;">
        <tr>
            <th>Product</th>
            <th>Options</th>
            <th>Qty. / Price</th>
        </tr>
        {% for line in line_items %}
        <tr>
            <td>{{ line.variant }}</td>
            <td>{{ line.customer_note }}</td>
            <td style="text-align: right;">{{ line.quantity }} &times; ${{ line.unit_price }}</td>
        </tr>
        {% endfor %}
        <tr style="text-align: right;">
            <th colspan="2">Subtotal:</th>
            <td>${{ subtotal_amount }}</td>
        </tr>
        {% if coupon_amount != '0.00' %}
        <tr style="text-align: right;">
            <th colspan="2">Coupon:</th>
            <td>${{ coupon_amount }}</td>
        </tr>
        {% endif %}
        <tr style="text-align: right;">
            <th colspan="2">Shipping:</th>
            <td>${{ shipping_total }}</td>
        </tr>
        <tr style="text-align: right;">
            <th colspan="2">Total:</th>
            <td>${{ total_amount }}</td>
        </tr>
    </table>

    <p>If you have any questions, send us an email at <a href="mailto:support@ptcoffee.com">support@ptcoffee.com</a>.</p>

    <p>Thanks,<br>
    Port Townsend Roasting Co.</p>
{% endblock %}
