Snippets Email

Bootstrap 5 Order Confirmation Card

A modern order confirmation message with a success badge, an itemised summary, totals, delivery details and tracking actions. It works as an email-style card or a thank-you page and follows light and dark themes.

Bootstrap 5 No jQuery Dec 2019 3.7K views

<section class="wdw-stage">
  <div class="container" style="max-width:640px">
    <article class="wdw-card overflow-hidden" aria-labelledby="order-title">
      <header class="wdw-aurora px-4 px-md-5 py-4 d-flex justify-content-between align-items-center">
        <span class="fs-5 fw-bold" style="letter-spacing:-.02em">Northwind</span>
        <a href="#" class="link-light link-underline-opacity-0 link-underline-opacity-100-hover small fw-semibold">Visit shop</a>
      </header>
      <div class="p-4 p-md-5">
        <div class="text-center mb-4">
          <span class="order-check mb-3" aria-hidden="true">
            <svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>
          </span>
          <h1 id="order-title" class="wdw-heading h2 mb-2">Thank you for your order</h1>
          <p class="wdw-muted mb-0">Hi Alex, we are getting your items ready. A shipping update will land in your inbox as soon as they leave the warehouse.</p>
        </div>

        <div class="d-flex justify-content-between align-items-center rounded-3 bg-body-tertiary px-3 py-3 mb-4">
          <div>
            <div class="wdw-eyebrow">Order number</div>
            <div class="fw-bold">#2345678</div>
          </div>
          <span class="badge rounded-pill bg-success-subtle text-success-emphasis px-3 py-2">Confirmed</span>
        </div>

        <ul class="list-unstyled mb-0">
          <li class="d-flex align-items-center gap-3 pb-3">
            <img src="https://images.unsplash.com/photo-1505740420928-5e560c06d30e?auto=format&fit=crop&w=120&q=70" width="56" height="56" class="rounded-3 object-fit-cover flex-none" alt="Wireless over-ear headphones">
            <div class="flex-grow-1">
              <div class="fw-semibold">Wireless headphones</div>
              <div class="small wdw-muted">Matte black · Qty 1</div>
            </div>
            <div class="fw-semibold">$100.00</div>
          </li>
        </ul>
        <dl class="mb-0 pt-3 border-top">
          <div class="d-flex justify-content-between mb-2"><dt class="fw-normal wdw-muted">Shipping & handling</dt><dd class="mb-0">$10.00</dd></div>
          <div class="d-flex justify-content-between mb-3"><dt class="fw-normal wdw-muted">Sales tax</dt><dd class="mb-0">$5.00</dd></div>
          <div class="d-flex justify-content-between pt-3 border-top fs-5"><dt class="fw-bold">Total</dt><dd class="mb-0 fw-bold text-primary">$115.00</dd></div>
        </dl>

        <div class="row g-3 mt-3">
          <div class="col-sm-6">
            <div class="wdw-eyebrow mb-1">Delivery address</div>
            <address class="mb-0 small">Alex Morgan<br>675 Massachusetts Avenue<br>Cambridge, MA 02139</address>
          </div>
          <div class="col-sm-6">
            <div class="wdw-eyebrow mb-1">Estimated delivery</div>
            <p class="mb-0 small">January 1st, 2026<br><span class="wdw-muted">Standard shipping</span></p>
          </div>
        </div>

        <div class="d-grid d-sm-flex gap-2 mt-4 pt-2">
          <a href="#" class="btn btn-primary rounded-pill px-4 flex-fill">Track your order</a>
          <a href="#" class="btn btn-outline-primary rounded-pill px-4 flex-fill">View invoice</a>
        </div>
      </div>
      <footer class="px-4 px-md-5 py-3 bg-body-tertiary small wdw-muted text-center">
        Questions? Reply to this email or visit our <a href="#" class="link-primary">help centre</a>.
      </footer>
    </article>
  </div>
</section>

Built on Bootstrap 5.3.8 with plain JavaScript — no jQuery. Supports light and dark mode via data-bs-theme.

Free to use in personal and commercial projects under the MIT license.