.dm-order-progress {
  --progress-olive: #546447;
  --progress-muted: #5d6754;
  --progress-line: #ced6c3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px clamp(24px, 5vw, 72px);
  margin-bottom: 28px;
  padding: clamp(20px, 3vw, 40px);
  background: #edf0e6;
  border: 1px solid #d8dfce;
  border-radius: 8px;
  color: #30372c;
}

.dm-order-progress--neutral,
.dm-order-progress--attention { background: #f4f1e9; border-color: #e3dbcc; }
.dm-order-progress--attention { border-inline-start: 4px solid #9b6848; }

.dm-order-progress-intro { min-width: 0; }
.dm-order-progress-reference {
  margin: 0 0 10px;
  color: var(--progress-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.dm-order-progress-reference strong {
  margin-inline-start: 5px;
  color: #30372c;
  letter-spacing: .06em;
}

.dm-order-progress h1 {
  margin: 0 0 10px;
  color: inherit;
  font-size: clamp(28px, 3.3vw, 43px);
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.dm-order-progress-copy {
  max-width: 52ch;
  margin: 0;
  color: var(--progress-muted);
  font-size: 15px;
  line-height: 1.55;
}

.dm-order-progress-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 15px 6px 13px;
  list-style: none;
  border: 1px solid var(--progress-line);
  border-radius: 6px;
  background: #fafbf6;
}

.dm-order-progress-steps::before {
  position: absolute;
  top: 28px;
  inset-inline: calc(100% / 6);
  height: 1px;
  background: var(--progress-line);
  content: '';
}

.dm-order-progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding-inline: 3px;
  text-align: center;
  color: var(--progress-muted);
  line-height: 1.3;
}

.dm-order-progress-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0 0 5px;
  border: 1px solid #abb6a0;
  border-radius: 50%;
  background: #fafbf6;
}

.dm-order-progress-dot::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #abb6a0;
  content: '';
}

.dm-order-progress-step.is-current,
.dm-order-progress-step.is-complete { color: var(--progress-olive); }
.dm-order-progress-step.is-current .dm-order-progress-dot { background: var(--progress-olive); border-color: var(--progress-olive); }
.dm-order-progress-step.is-current .dm-order-progress-dot::after { background: #fff; }
.dm-order-progress-step.is-complete .dm-order-progress-dot { background: #e5ecda; border-color: #b8c6ac; }
.dm-order-progress-step.is-complete .dm-order-progress-dot::after {
  width: 6px;
  height: 11px;
  transform: translateY(-1px) rotate(45deg);
  border: solid var(--progress-olive);
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: transparent;
}

.dm-order-progress-label { color: #30372c; font-size: 14px; font-weight: 700; }
.dm-order-progress-step small { font-size: 12px; line-height: 1.3; }
.dm-order-progress-step.is-current small { font-weight: 700; }

.dm-order-progress-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding-top: 6px;
  border-top: 1px solid var(--progress-line);
}

.dm-order-progress-footer p { margin: 0; color: var(--progress-muted); font-size: 13px; }
.dm-order-progress-footer p strong { margin-inline-start: 4px; }
.dm-order-progress-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.dm-order-progress-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  color: var(--progress-olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dm-order-progress-actions a:focus-visible { outline: 2px solid #30372c; outline-offset: 3px; }
.dm-order-progress-actions .dm-order-progress-track {
  padding: 0 15px;
  border-radius: 5px;
  background: var(--progress-olive);
  color: #fff;
  text-decoration: none;
}
.dm-order-progress-actions .dm-order-progress-track:hover { background: #414f36; }
.dm-order-overview .dm-order-summary-heading { letter-spacing: -.02em; }
.dm-order-history-title { font-size: 20px; line-height: 1.3; margin: 0 0 18px; }
.dm-order-detail #order-history { scroll-margin-top: 72px; }

@media (max-width: 767px) {
  .dm-order-progress { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
  .dm-order-progress-copy { font-size: 14px; }
}

@media (max-width: 375px) {
  .dm-order-progress { padding: 16px; }
  .dm-order-progress-label { font-size: 13px; }
  .dm-order-progress-actions a { font-size: 13px; }
}
