/* =============================================================================
   Thank-you page and order detail — DPL tokens

   One visual language for the confirmation, the line items, the totals and the
   addresses: the theme's card (20px radius, #F7F7F7), its type scale, and its
   own .button. Nothing bespoke — the values below are the ones already in
   CLAUDE.md's token table and in component-dpl-checkout.css.
   ============================================================================= */

.dpl-thankyou {
  max-width: 1280px;
  margin: 0 auto;
}

/* ── The confirmation, which leads ───────────────────────────────────────── */

.dpl-thankyou__header {
  margin: 0 0 32px;
}

.dpl-thankyou__eyebrow {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin: 0 0 8px;
}

.dpl-thankyou__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: #0D0D0D;
  margin: 0 0 12px;
}

.dpl-thankyou__lead {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #6B6B6B;
  margin: 0;
  max-width: 62ch;
}

/* The four states differ by one accent, not by four designs. */
.dpl-thankyou__header--failed .dpl-thankyou__title,
.dpl-thankyou__header--pending .dpl-thankyou__title {
  color: #0D0D0D;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.dpl-order__card {
  border-radius: 20px;
  background: #F7F7F7;
  padding: 24px;
  margin: 0 0 24px;
}

.dpl-order__heading {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0D0D0D;
  margin: 0 0 16px;
}

/* ── What happens next ───────────────────────────────────────────────────── */

.dpl-thankyou__next-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.dpl-thankyou__next-list li {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #0D0D0D;
  padding-left: 26px;
  position: relative;
}

.dpl-thankyou__next-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF9A01;
}

/* ── Line items ──────────────────────────────────────────────────────────── */

.dpl-order__items {
  margin: 0 0 8px;
  padding: 0;
}

.dpl-order__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas:
    'media text total'
    'media qty  total';
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid #E5E5E5;
}

.dpl-order__item:last-child {
  border-bottom: 0;
}

.dpl-order__item-media {
  grid-area: media;
}

.dpl-order__item-image,
.dpl-order__item-media img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  background: #FFFFFF;
}

.dpl-order__item-text {
  grid-area: text;
  min-width: 0;
}

/* The weight a product name carries elsewhere in the shop, not body text. */
.dpl-order__item-name {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  color: #0D0D0D;
  margin: 0;
}

.dpl-order__item-variant {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #6B6B6B;
  margin: 2px 0 0;
}

.dpl-order__item-qty {
  grid-area: qty;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #6B6B6B;
  margin: 0;
}

.dpl-order__item-total {
  grid-area: total;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #0D0D0D;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

/* ── Totals ──────────────────────────────────────────────────────────────── */

.dpl-order__totals {
  margin: 8px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #E5E5E5;
}

.dpl-order__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  color: #6B6B6B;
}

.dpl-order__total-row dt,
.dpl-order__total-row dd {
  margin: 0;
}

.dpl-order__total-row dd {
  color: #0D0D0D;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* An amount never breaks; a method's name may, on a phone. With the whole value on one line, a
   payment method longer than "Pay by bank" pushed the page 17px sideways at 390px (the rehearsal
   on Live, 2026-09-24). */
.dpl-order__total-row dd .woocommerce-Price-amount {
  white-space: nowrap;
}

/* The grand total is the one number a customer looks for. */
.dpl-order__total-row--order_total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #E5E5E5;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #0D0D0D;
}

.dpl-order__total-row--order_total dd {
  font-size: 18px;
  font-weight: 500;
}

/* WooCommerce puts the VAT note inside the total's value as a <small>. */
.dpl-order__total-row--order_total small {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6B6B6B;
  margin-top: 2px;
}

.dpl-order__note {
  margin-top: 16px;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #6B6B6B;
}

.dpl-order__note-label {
  font-weight: 500;
  color: #0D0D0D;
  margin: 0 0 2px;
}

/* ── Addresses ───────────────────────────────────────────────────────────── */

.dpl-order__addresses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.dpl-order__address address {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
  color: #0D0D0D;
}

.dpl-order__address-line {
  display: block;
}

/* ── Actions ─────────────────────────────────────────────────────────────── */

.dpl-thankyou__actions,
.dpl-order__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
}

/*
 * The theme carries its button tokens per component rather than on `.button` — `#place_order` and
 * `.dpl-checkout__coupon-apply` in component-dpl-checkout.css each set them out — so the base class
 * alone gave a square-cornered white link that read as body text. These are those same values:
 * 44px tall, 20px radius, 13px uppercase with 0.08em tracking, accent for primary.
 */
.dpl-thankyou .button,
.dpl-order .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: #FF9A01;
  color: #FFFFFF;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.dpl-thankyou .button:hover,
.dpl-order .button:hover {
  background: #E88A00;
  color: #FFFFFF;
}

.dpl-thankyou .button--secondary,
.dpl-order .button--secondary {
  border-color: #E5E5E5;
  background: #FFFFFF;
  color: #0D0D0D;
}

.dpl-thankyou .button--secondary:hover,
.dpl-order .button--secondary:hover {
  background: #F7F7F7;
  color: #0D0D0D;
}

/* A phone gets the full width, because a 44px target beside nothing else is easier to hit. */
@media screen and (max-width: 749px) {
  .dpl-thankyou__actions .button,
  .dpl-thankyou__shop .button,
  .dpl-order__actions .button {
    width: 100%;
  }
}

.dpl-thankyou__quiet {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  color: #6B6B6B;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dpl-thankyou__quiet:hover,
.dpl-thankyou__quiet:focus-visible {
  color: #0D0D0D;
}

.dpl-thankyou__shop {
  margin: 24px 0 0;
}

/* ── Order meta ──────────────────────────────────────────────────────────── */

.dpl-thankyou__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid #E5E5E5;
  border-bottom: 1px solid #E5E5E5;
}

.dpl-thankyou__meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dpl-thankyou__meta dt {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #6B6B6B;
  margin: 0;
}

.dpl-thankyou__meta dd {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: #0D0D0D;
  margin: 0;
  text-align: right;
}

/* ── Desktop ─────────────────────────────────────────────────────────────── */

@media screen and (min-width: 750px) {
  .dpl-thankyou__title {
    font-size: 34px;
  }

  .dpl-order__card {
    padding: 28px;
  }

  .dpl-order__item {
    grid-template-columns: 64px 1fr auto auto;
    grid-template-areas: 'media text qty total';
    column-gap: 20px;
  }

  .dpl-order__item-image,
  .dpl-order__item-media img {
    width: 64px;
    height: 64px;
  }

  .dpl-order__item-qty {
    text-align: right;
    min-width: 48px;
  }

  .dpl-order__item-total {
    min-width: 96px;
  }

  .dpl-order__addresses--two {
    grid-template-columns: 1fr 1fr;
  }

  .dpl-thankyou__meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .dpl-thankyou__meta div {
    display: block;
  }

  .dpl-thankyou__meta dd {
    text-align: left;
    margin-top: 2px;
  }
}
