/* ============================================================
   LimitedLux — Manage Order page styles
   v2026-05-18 (timeline-rhythm)
   Self-contained; loaded only by sections/lux-manage-order.liquid.
   Mobile-first; matches lux-boost-sd.css design language.
   ============================================================ */

:root {
  --lux-noir: #1a1a1a;
  --lux-gold: #C5A15B;
  --lux-cream: #FAF7F0;
  --lux-cream-alt: #FAF8F4;
  --lux-muted: #737373;
  --lux-line: rgba(26, 26, 26, 0.12);
  --lux-line-strong: rgba(26, 26, 26, 0.32);
  --lux-ease: 180ms ease;
}

/* ---------- Global [hidden] reset for this section ----------
   The browser's default [hidden] { display: none } is overridden by any
   element that has an explicit display: rule (e.g. .lux-mo__topbar uses
   flex). That meant `el.hidden = true` from JS didn't actually hide things
   like the Share or Cancel-order buttons. Force [hidden] to win whenever
   it's set on any descendant of the section root. */
[data-lux-manage-order] [hidden],
[data-lux-manage-order][hidden] {
  display: none !important;
}

/* ---------- Order summary (customer / shipping / total) ---------- */
.lux-mo__order-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 14px auto 28px;
  padding: 18px 0;
  max-width: 640px;
  border-top: 1px solid var(--lux-line);
  border-bottom: 1px solid var(--lux-line);
  text-align: left;
}
.lux-mo__summary-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lux-mo__summary-label {
  font-family: var(--font-heading-family, "Lora", Georgia, serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lux-muted);
}
.lux-mo__summary-value {
  font-size: 14px;
  color: var(--lux-noir);
  line-height: 1.4;
}
@media (min-width: 640px) {
  .lux-mo__order-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
  }
  .lux-mo__summary-cell { align-items: center; }
}

/* ---------- Page shell ---------- */
.lux-mo {
  padding: 28px 16px 64px;
  background: #ffffff;
  color: var(--lux-noir);
  font-family: inherit;
  position: relative;
}
.lux-mo__container {
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.lux-mo__head {
  text-align: center;
  margin-bottom: 24px;
}
.lux-mo__title {
  font-family: var(--font-heading-family), Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--lux-noir);
}
.lux-mo__rule {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--lux-gold);
}
.lux-mo__tagline {
  margin: 12px auto 0;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--lux-muted);
  font-style: italic;
}
.lux-mo__order-meta {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-muted);
}

/* ---------- Confirmation block (customer self-confirm) ---------- */
.lux-mo__confirm {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: var(--lux-cream);
  border: 1px solid var(--lux-line);
  border-left: 2px solid var(--lux-gold);
  padding: 16px 18px;
  margin: 0 0 20px;
}
.lux-mo__confirm-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.lux-mo__confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 2px;
  line-height: 1.1;
}
.lux-mo__confirm-badge--pending {
  background: #fdf4dc;
  color: #7a5a16;
  border: 1px solid #e8c97a;
}
.lux-mo__confirm-badge--confirmed {
  background: var(--lux-cream);
  color: var(--lux-noir);
  border: 1px solid var(--lux-gold);
}
.lux-mo__confirm-check {
  font-size: 12px;
  line-height: 1;
  color: var(--lux-gold);
  letter-spacing: 0;
}
.lux-mo__confirm-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lux-noir);
}
.lux-mo__confirm-copy em {
  font-style: italic;
  color: var(--lux-muted);
}
.lux-mo__confirm-btn {
  width: 100%;
  min-height: 44px;
}
@media (min-width: 600px) {
  .lux-mo__confirm {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .lux-mo__confirm-btn {
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
  }
}

/* ---------- Delayed banner ---------- */
.lux-mo__delayed {
  background: var(--lux-cream);
  border: 1px solid var(--lux-line);
  border-left: 2px solid var(--lux-gold);
  padding: 16px 18px;
  margin: 0 0 20px;
}
.lux-mo__delayed-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.lux-mo__delayed-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--lux-noir);
}

/* ---------- Top bar (share) ---------- */
.lux-mo__topbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}
.lux-mo__share {
  font-size: 11px !important;
  padding: 8px 14px !important;
  min-height: 36px;
}

/* ---------- Buttons (shared) ---------- */
.lux-mo__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: background var(--lux-ease), color var(--lux-ease), border-color var(--lux-ease), opacity var(--lux-ease);
}
.lux-mo__btn:focus-visible {
  outline: 1.5px solid var(--lux-gold);
  outline-offset: 3px;
}
.lux-mo__btn--primary {
  background: var(--lux-noir);
  color: #ffffff;
  border-color: var(--lux-noir);
}
.lux-mo__btn--primary:hover {
  background: var(--lux-gold);
  color: var(--lux-noir);
  border-color: var(--lux-gold);
}
.lux-mo__btn--ghost {
  background: transparent;
  color: var(--lux-noir);
  border-color: var(--lux-noir);
}
.lux-mo__btn--ghost:hover {
  background: var(--lux-noir);
  color: #ffffff;
}
.lux-mo__btn--ghost-gold {
  background: transparent;
  color: var(--lux-noir);
  border-color: var(--lux-gold);
}
.lux-mo__btn--ghost-gold:hover {
  background: var(--lux-gold);
  color: var(--lux-noir);
  border-color: var(--lux-gold);
}
.lux-mo__btn[disabled],
.lux-mo__btn[aria-disabled="true"] {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.lux-mo__btn--loading {
  opacity: 0.6;
  cursor: progress;
}
.lux-mo__btn--loading::after {
  content: "";
  display: inline-block;
  margin-left: 10px;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: lux-mo-spin 0.7s linear infinite;
}
@keyframes lux-mo-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Skeleton ---------- */
.lux-mo__skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lux-mo-sk__card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--lux-cream);
  border: 1px solid var(--lux-line);
  border-radius: 2px;
}
.lux-mo-sk__img {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  background: linear-gradient(90deg, #f1ece1 0%, #faf6ec 50%, #f1ece1 100%);
  background-size: 200% 100%;
  animation: lux-mo-shimmer 1.4s linear infinite;
  border-radius: 2px;
}
.lux-mo-sk__lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.lux-mo-sk__line {
  height: 10px;
  background: linear-gradient(90deg, #f1ece1 0%, #faf6ec 50%, #f1ece1 100%);
  background-size: 200% 100%;
  animation: lux-mo-shimmer 1.4s linear infinite;
  border-radius: 2px;
}
.lux-mo-sk__line--lg { width: 70%; }
.lux-mo-sk__line--md { width: 45%; }
.lux-mo-sk__line--sm { width: 30%; }
@keyframes lux-mo-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- Items list ---------- */
.lux-mo__items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------- Item card ---------- */
.lux-mo-item {
  background: #ffffff;
  border: 1px solid var(--lux-gold);
  border-radius: 2px;
  padding: 16px;
  position: relative;
}
.lux-mo-item__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lux-mo-item__img {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  background: var(--lux-cream-alt);
  overflow: hidden;
  border-radius: 2px;
}
.lux-mo-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lux-mo-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lux-mo-item__vendor {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lux-gold);
  font-weight: 400;
  line-height: 1.2;
}
.lux-mo-item__title {
  font-family: var(--font-heading-family), Georgia, serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--lux-noir);
  margin: 0;
  font-weight: 400;
}
.lux-mo-item__variant {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--lux-muted);
  font-style: italic;
  margin: 0;
}
.lux-mo-item__price {
  font-size: 13px;
  font-weight: 500;
  color: var(--lux-noir);
  margin-top: 2px;
}

/* Current state pill */
.lux-mo-item__pill-wrap {
  margin-top: 12px;
}
.lux-mo-item__pill {
  display: inline-block;
  background: var(--lux-gold);
  color: var(--lux-noir);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 2px;
}
.lux-mo-item__pill--terminal {
  background: var(--lux-cream);
  color: var(--lux-muted);
  border: 1px solid var(--lux-line);
}

/* Item actions row */
.lux-mo-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.lux-mo-item__actions .lux-mo__btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  min-height: 40px;
}

/* ---------- Timeline ---------- */
.lux-mo-item__history {
  margin-top: 16px;
  border-top: 1px solid var(--lux-line);
  padding-top: 14px;
}
.lux-mo-item__history > summary {
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lux-gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  user-select: none;
  outline: none;
}
.lux-mo-item__history > summary::-webkit-details-marker {
  display: none;
}
.lux-mo-item__history > summary::after {
  content: "+";
  font-size: 14px;
  letter-spacing: 0;
  color: var(--lux-gold);
  transition: transform var(--lux-ease);
}
.lux-mo-item__history[open] > summary::after {
  content: "-";
}
.lux-mo-item__history > summary:hover {
  color: var(--lux-noir);
}

/* Timeline rhythm — every node has identical structure (label + meta line)
   so vertical spacing is uniform regardless of which states have timestamps
   or extra metadata. Dot center aligns with the first line of the label. */
.lux-mo-tl {
  --lux-mo-tl-label-fs: 12px;       /* label font-size */
  --lux-mo-tl-label-lh: 1.3;        /* label line-height multiplier */
  --lux-mo-tl-row-gap: 14px;        /* vertical gap between dots */
  --lux-mo-tl-dot-d: 12px;          /* dot wrapper diameter */
  /* Center of the first label line, measured from top of the <li>. */
  --lux-mo-tl-dot-y: calc((var(--lux-mo-tl-label-fs) * var(--lux-mo-tl-label-lh)) / 2);

  list-style: none;
  margin: 14px 0 0;
  padding: 0 0 0 20px;
  position: relative;
}
/* Single connecting line — starts a touch above the first dot's center and
   ends a touch below the last dot's center so neither endpoint orphans. */
.lux-mo-tl::before {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(var(--lux-mo-tl-dot-y) - 4px);
  bottom: calc(var(--lux-mo-tl-dot-y) - 4px);
  width: 1px;
  background: var(--lux-line);
  pointer-events: none;
}
.lux-mo-tl__node {
  position: relative;
  /* Uniform inter-dot rhythm: gap is the same for every node regardless of
     content (1-line, 2-line, ref-bearing — all identical). */
  padding: 0 0 var(--lux-mo-tl-row-gap);
}
.lux-mo-tl__node:last-child { padding-bottom: 0; }

.lux-mo-tl__dot {
  position: absolute;
  left: -20px;
  top: calc(var(--lux-mo-tl-dot-y) - (var(--lux-mo-tl-dot-d) / 2));
  width: var(--lux-mo-tl-dot-d);
  height: var(--lux-mo-tl-dot-d);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Subtle background to mask the connecting line behind the dot for a
     cleaner contact point. */
  background: #ffffff;
  border-radius: 50%;
}
.lux-mo-tl__dot::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lux-gold);
}
.lux-mo-tl__node--current .lux-mo-tl__dot::after {
  background: transparent;
  border: 1.5px solid var(--lux-gold);
  width: 10px;
  height: 10px;
  animation: lux-mo-pulse 1.8s ease-in-out infinite;
}
@keyframes lux-mo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 161, 91, 0.35); }
  50%      { box-shadow: 0 0 0 4px rgba(197, 161, 91, 0); }
}
.lux-mo-tl__node--upcoming .lux-mo-tl__dot::after {
  background: transparent;
  border: 1px solid var(--lux-line-strong);
  width: 4px;
  height: 4px;
}

.lux-mo-tl__label {
  display: block;
  font-family: var(--font-heading-family), Georgia, serif;
  font-size: var(--lux-mo-tl-label-fs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-noir);
  font-weight: 400;
  line-height: var(--lux-mo-tl-label-lh);
}
.lux-mo-tl__node--upcoming .lux-mo-tl__label {
  color: var(--lux-muted);
}
/* Meta line — always rendered (even when empty) so every node has the same
   vertical footprint. When empty we keep the line height via inline-block +
   min-height: 1em so the row reserves space without printing any glyph. */
.lux-mo-tl__time {
  display: block;
  margin-top: 2px;
  min-height: 1em;
  font-size: 11px;
  font-style: italic;
  color: var(--lux-muted);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.lux-mo-tl__time[data-empty="true"] {
  /* Reserve the line height invisibly — no glyph, no ambiguity. */
  visibility: hidden;
}
/* Ref rendered INLINE with the timestamp (not a third row) so it never
   disrupts the uniform 2-line node footprint. */
.lux-mo-tl__sep {
  display: inline-block;
  margin: 0 6px;
  color: var(--lux-line-strong);
  font-style: normal;
}
.lux-mo-tl__ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--lux-muted);
}

/* ---------- Review prompt card ---------- */
.lux-mo__review {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--lux-gold);
  border-radius: 2px;
  background: var(--lux-cream);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lux-mo__review-copy {
  margin: 0;
  font-family: var(--font-heading-family), Georgia, serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--lux-noir);
}
.lux-mo__review-copy em {
  color: var(--lux-muted);
  font-style: italic;
  font-family: inherit;
}

/* ---------- Footer ---------- */
.lux-mo__footer {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* ---------- Error panel — "Order not found" luxury treatment ---------- */
.lux-mo__error {
  margin: 24px 0 56px;
  padding: 56px 20px;
  background: var(--lux-cream);
  border-top: 1px solid var(--lux-line);
  border-bottom: 1px solid var(--lux-line);
  display: flex;
  justify-content: center;
  /* override the older flex/column rules from below */
  flex-direction: row;
}
.lux-mo__error[hidden] { display: none !important; }
.lux-mo__error-inner {
  max-width: 540px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lux-mo__error-ornament {
  color: var(--lux-gold);
  display: inline-flex;
  margin-bottom: 4px;
}
.lux-mo__error-title {
  font-family: var(--font-heading-family, "Lora", Georgia, serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lux-noir);
  margin: 0;
  line-height: 1.3;
}
.lux-mo__error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
}
.lux-mo__error-actions .lux-mo__btn {
  min-width: 200px;
}
@media (min-width: 750px) {
  .lux-mo__error { padding: 88px 24px; }
  .lux-mo__error-title { font-size: 24px; letter-spacing: 0.20em; }
}

/* Legacy block kept for safety in case anything else used it; superseded above. */
.lux-mo__error--legacy {
  padding: 24px 18px;
  border: 1px solid var(--lux-line);
  background: var(--lux-cream);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.lux-mo__error-copy {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--lux-noir);
  font-style: italic;
  opacity: 0.82;
}
@media (min-width: 750px) {
  .lux-mo__error-copy { font-size: 15px; }
}

/* ---------- Toast ---------- */
.lux-mo__toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--lux-noir);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--lux-ease), transform var(--lux-ease);
  z-index: 9999;
  max-width: calc(100% - 32px);
  text-align: center;
}
.lux-mo__toast[data-visible="true"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.lux-mo__toast[data-tone="error"] {
  background: #8a2a2a;
}

/* ---------- Modal ---------- */
.lux-mo__modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.lux-mo__modal[hidden] { display: none; }
.lux-mo__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
}
.lux-mo__modal-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--lux-noir);
  width: 100%;
  max-width: 100%;
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.lux-mo__modal-x {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--lux-noir);
  cursor: pointer;
  padding: 6px 10px;
  font-family: inherit;
}
.lux-mo__modal-x:hover { color: var(--lux-gold); }
.lux-mo__modal-title {
  font-family: var(--font-heading-family), Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  color: var(--lux-noir);
}
.lux-mo__modal-intro {
  margin: 0;
  font-family: var(--font-heading-family), Georgia, serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lux-noir);
}

/* Form fields */
.lux-mo__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lux-mo__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lux-noir);
  font-weight: 500;
}
.lux-mo__optional {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--lux-muted);
  font-style: italic;
  font-weight: 400;
}
.lux-mo__select,
.lux-mo__textarea {
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--lux-line-strong);
  border-radius: 2px;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--lux-noir);
  outline: none;
  min-height: 44px;
  transition: box-shadow var(--lux-ease);
}
.lux-mo__select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23C5A15B' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.lux-mo__textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}
.lux-mo__select:focus,
.lux-mo__textarea:focus {
  box-shadow: inset 0 0 0 2px var(--lux-gold);
}
.lux-mo__refund-note {
  margin: 0;
  padding: 12px 14px;
  background: var(--lux-cream);
  border-left: 2px solid var(--lux-gold);
  font-size: 12px;
  line-height: 1.5;
  color: var(--lux-noir);
}
.lux-mo__refund-note em { font-style: italic; }
.lux-mo__refund-note strong {
  font-weight: 600;
  color: var(--lux-noir);
}

.lux-mo__modal-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #8a2a2a;
  background: #fdf3f3;
  color: #8a2a2a;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 2px;
}
.lux-mo__modal-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  margin-top: 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 750px) {
  .lux-mo {
    padding: 48px 24px 80px;
  }
  .lux-mo__title { font-size: 28px; }
  .lux-mo__rule  { width: 72px; }
  .lux-mo__delayed-body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .lux-mo-item { padding: 20px; }
  .lux-mo-item__img {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
  }
  .lux-mo-item__title { font-size: 16px; }
  .lux-mo-item__actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .lux-mo-item__actions .lux-mo__btn {
    flex: 0 0 auto;
    min-width: 0;
  }

  /* Desktop: timeline always expanded; hide the toggle. */
  .lux-mo-item__history {
    margin-top: 18px;
  }
  .lux-mo-item__history > summary {
    display: none;
  }
  .lux-mo-item__history .lux-mo-tl {
    display: block !important;
  }

  /* Centered modal card */
  .lux-mo__modal {
    align-items: center;
    padding: 24px;
  }
  .lux-mo__modal-card {
    max-width: 480px;
    border-radius: 2px;
  }
  .lux-mo__modal-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
  .lux-mo__modal-actions .lux-mo__btn {
    min-width: 140px;
  }
}

/* On mobile, when <details> is closed, the inner timeline must be hidden by
   the native details collapse — no extra CSS needed. Ensure inner <ol> uses
   block display when open. */
.lux-mo-item__history .lux-mo-tl {
  display: block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lux-mo-sk__img,
  .lux-mo-sk__line { animation: none; }
  .lux-mo-tl__node--current .lux-mo-tl__dot::after { animation: none; }
}

/* ---------- Account page "Manage" button (inline, doesn't touch global) ---------- */
.lux-mo-manage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--lux-noir);
  border-radius: 2px;
  color: var(--lux-noir);
  background: transparent;
  transition: background var(--lux-ease), color var(--lux-ease);
  white-space: nowrap;
}
.lux-mo-manage-link:hover {
  background: var(--lux-noir);
  color: #ffffff;
}

/* Order detail page hero button */
.lux-mo-manage-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--lux-noir);
  color: #ffffff;
  border: 1px solid var(--lux-noir);
  border-radius: 2px;
  margin: 12px 0 18px;
  transition: background var(--lux-ease), color var(--lux-ease), border-color var(--lux-ease);
}
.lux-mo-manage-hero:hover {
  background: var(--lux-gold);
  color: var(--lux-noir);
  border-color: var(--lux-gold);
}
