.thank-page {
  background: linear-gradient(180deg, #fffaf0 0%, #fff 42%, #f7fff8 100%);
  padding-bottom: 54px;
}

.success-hero {
  padding: 38px 0 28px;
}

.success-box {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(135deg, #eaffef 0%, #fff8e8 48%, #fff0b8 100%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .8);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 500px;
}

.success-box::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -150px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

.hero-copy {
  padding: 62px 58px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #7b6c5c;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.breadcrumb span {
  color: var(--green);
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #f1e0b7;
  color: var(--green);
  font-weight: 900;
  font-size: 13px;
}

.checkmark {
  width: 92px;
  height: 92px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--green), #35aa58);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 48px;
  box-shadow: 0 24px 48px rgba(23, 116, 58, .25);
  margin: 18px 0;
}

.thank-page h1 {
  font-size: 56px;
  line-height: .98;
  letter-spacing: -2.7px;
  margin: 18px 0 16px;
  color: #2b251f;
}

.lead {
  font-size: 17px;
  line-height: 1.78;
  color: #6e6257;
  max-width: 680px;
  margin: 0;
}

.order-code {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  background: #fff;
  border: 1px dashed #b9d8c0;
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 800;
}

.order-code b {
  color: var(--green);
  font-size: 18px;
}

.thank-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-side {
  padding: 42px 44px 42px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.receipt-card,
.thank-panel,
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.receipt-card {
  width: 100%;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(54, 32, 15, .16);
}

.receipt-top,
.receipt-row,
.panel-head,
.thank-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.receipt-top {
  border-bottom: 1px dashed #eadfce;
  padding-bottom: 18px;
}

.receipt-top h2,
.panel-head h2 {
  margin: 0;
  color: var(--brown);
  font-size: 24px;
}

.receipt-top span {
  display: inline-flex;
  background: var(--mint);
  color: var(--green);
  border-radius: 99px;
  padding: 8px 12px;
  font-weight: 950;
  font-size: 12px;
}

.receipt-row {
  padding: 12px 0;
  border-bottom: 1px solid #f0e5d6;
  color: var(--muted);
}

.receipt-row b {
  color: var(--brown);
  text-align: right;
}

.receipt-row.total {
  border-bottom: none;
  font-size: 22px;
  font-weight: 950;
  color: var(--brown);
}

.receipt-row.total b,
.order-price,
.thank-totals .total b {
  color: var(--green);
}

.voucher-win {
  margin-top: 18px;
  background: linear-gradient(135deg, #fff8e8, #f4fff6);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.voucher-win b,
.voucher-win span,
.voucher-win code {
  display: block;
}

.voucher-win b {
  color: var(--green);
  font-size: 20px;
}

.voucher-win span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin-top: 5px;
}

.voucher-win code {
  margin-top: 12px;
  background: #fff;
  border: 1px dashed #b9d8c0;
  border-radius: 14px;
  padding: 12px;
  color: var(--brown);
  font-weight: 950;
}

.mini-card {
  position: absolute;
  left: -30px;
  bottom: 62px;
  background: #fff;
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .14);
  font-weight: 900;
  color: var(--green);
  max-width: 255px;
}

.mini-card small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-top: 5px;
  line-height: 1.45;
}

.thank-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 42px;
}

.thank-steps .step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.thank-steps .step.done {
  border-color: #bfe0c7;
  background: linear-gradient(135deg, #fff, #f4fff6);
}

.thank-steps .step.current {
  background: #fff8e8;
  border-color: #e9c879;
}

.thank-steps i {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 22px;
  margin-bottom: 12px;
}

.thank-steps .done i {
  background: var(--green);
  color: #fff;
}

.thank-steps b {
  display: block;
  color: var(--brown);
  margin-bottom: 6px;
}

.thank-steps span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.thank-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.thank-panel {
  padding: 28px;
  margin-bottom: 22px;
}

.panel-head {
  margin-bottom: 18px;
}

.view {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 950;
  cursor: pointer;
}

.order-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0e5d6;
}

.order-item:last-child {
  border-bottom: none;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8e8, #f4fff6);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.thumb img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.qty-badge {
  position: absolute;
  right: -4px;
  top: -4px;
  background: var(--green);
  color: #fff;
  border-radius: 99px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 950;
}

.order-item h3 {
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
  color: var(--brown);
}

.order-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

.order-price {
  font-weight: 950;
  white-space: nowrap;
}

.thank-totals {
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.thank-totals div {
  padding: 10px 0;
  color: var(--muted);
}

.thank-totals b {
  color: var(--brown);
}

.thank-totals .total {
  font-size: 22px;
  font-weight: 950;
  color: var(--brown);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.info b {
  display: block;
  color: var(--green);
  margin-bottom: 6px;
}

.info span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.thank-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.points-card {
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #fff;
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.points-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.points-card p {
  color: #e9ffee;
  line-height: 1.6;
}

.points {
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -1.8px;
  margin: 10px 0;
}

.side-card {
  padding: 24px;
}

.side-card h3 {
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--brown);
}

.support {
  border-top: 1px solid #f0e5d6;
  padding: 13px 0;
}

.support:first-of-type {
  border-top: 0;
}

.support b,
.support span {
  display: block;
}

.support b {
  color: var(--brown);
}

.support span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 3px;
}

.thank-empty {
  max-width: 860px;
  padding-top: 70px;
  padding-bottom: 80px;
}

.thank-empty h1 {
  font-size: 44px;
}

.thank-empty p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

@media (max-width: 1050px) {
  .success-box,
  .thank-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    padding: 0 34px 34px;
  }

  .mini-card {
    left: 54px;
  }

  .thank-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .thank-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .success-hero {
    padding-top: 18px;
  }

  .success-box {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 34px 22px;
  }

  .thank-page h1 {
    font-size: 38px;
  }

  .checkmark {
    width: 76px;
    height: 76px;
    font-size: 38px;
  }

  .hero-side {
    padding: 0 22px 28px;
  }

  .mini-card {
    display: none;
  }

  .thank-steps {
    grid-template-columns: 1fr;
  }

  .thank-panel,
  .side-card {
    padding: 22px;
  }

  .panel-head {
    display: grid;
    justify-content: stretch;
  }

  .order-item {
    grid-template-columns: 64px 1fr;
  }

  .order-price {
    grid-column: 2;
  }
}
