/* Let the global storefront background selected in Configuraci?n show through. */
body:has(.order-status-page) .hero--hidden-page {
  display: none;
}

body:has(.order-status-page) .footer {
  margin-top: 0;
}

.order-status-page {
  position: relative;
  min-height: calc(100vh - var(--header-h, 80px));
  padding: 96px 0 110px;
  background: transparent;
  --os-border: color-mix(in srgb, var(--store-primary, #97652b) 20%, white);
  --os-surface: color-mix(in srgb, var(--store-primary, #97652b) 5%, white);
  --os-muted: #786958;
}

.os-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--os-border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(88, 54, 17, 0.10);
}

.os-card__top {
  padding: 32px 34px 24px;
  background: var(--os-surface);
  border-bottom: 1px solid var(--os-border);
}

.os-head {
  display: flex;
  gap: 18px;
  align-items: center;
}

.os-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--store-primary, #97652b);
  border-radius: 22px;
  font-size: 26px;
  box-shadow: 0 16px 30px color-mix(in srgb, var(--store-primary, #97652b) 26%, transparent);
  flex: 0 0 auto;
}

.os-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--store-primary, #97652b);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.os-head h2 {
  margin: 0 0 8px;
  color: #3d2c1b;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 900;
}

.os-head p {
  max-width: 640px;
  margin: 0;
  color: var(--os-muted);
  font-size: 16px;
  line-height: 1.55;
}

.os-card__body {
  padding: 30px 34px 34px;
}

.os-form label {
  display: block;
  margin-bottom: 10px;
  color: #3d2c1b;
  font-weight: 900;
}

.os-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px;
  background: var(--os-surface);
  border: 1px solid var(--os-border);
  border-radius: 18px;
}

.os-search input {
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #3d2c1b;
  background: #ffffff;
  font-weight: 700;
  outline: none;
  box-shadow: inset 0 0 0 1px var(--os-border);
}

.os-search input:focus {
  box-shadow: inset 0 0 0 2px var(--store-primary, #97652b), 0 0 0 4px color-mix(in srgb, var(--store-primary, #97652b) 12%, transparent);
}

.os-search button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  color: var(--store-button-text, #ffffff);
  background: var(--store-button, #8b602c);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 24px color-mix(in srgb, var(--store-primary, #97652b) 20%, transparent);
}

.os-search button:disabled {
  opacity: 0.75;
  cursor: progress;
}

.os-helper {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px 16px;
  color: var(--os-muted);
  background: var(--os-surface);
  border: 1px solid var(--os-border);
  border-radius: 16px;
  line-height: 1.45;
}

.os-helper i {
  margin-top: 3px;
  color: var(--store-primary, #97652b);
}

.os-result {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--os-border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(88, 54, 17, 0.08);
}

.os-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 22px;
  background: var(--os-surface);
  border-bottom: 1px solid var(--os-border);
}

.os-code span {
  display: block;
  margin-bottom: 3px;
  color: var(--os-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.os-code strong {
  color: #3d2c1b;
  font-size: 18px;
}

.os-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.os-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.os-badge.pending { background: #fff7d6; color: #946200; }
.os-badge.accepted { background: #defbea; color: #087a3d; }
.os-badge.cancelled { background: #ffe4e4; color: #b42318; }

.os-status-body {
  padding: 24px 22px 22px;
}

.os-description {
  margin: 0 0 18px;
  color: var(--os-muted);
  font-size: 15px;
  line-height: 1.55;
}

.os-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.os-step {
  position: relative;
  padding: 12px;
  background: var(--os-surface);
  border: 1px solid var(--os-border);
  border-radius: 16px;
  color: var(--os-muted);
  font-size: 13px;
  font-weight: 800;
}

.os-step strong {
  display: block;
  color: #3d2c1b;
  font-size: 14px;
}

.os-step.is-active {
  color: #0f6e3c;
  background: #ecfff4;
  border-color: #bdebcf;
}

.os-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.os-meta div {
  padding: 14px;
  background: var(--os-surface);
  border: 1px solid var(--os-border);
  border-radius: 16px;
}

.os-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--os-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.os-meta strong {
  color: #3d2c1b;
  font-size: 15px;
}

.os-products-title {
  margin: 4px 0 8px;
  color: #3d2c1b;
  font-weight: 900;
}

.os-products {
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-products li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--os-border);
  color: #3d2c1b;
}

.os-products small {
  display: block;
  margin-top: 3px;
  color: var(--os-muted);
  font-weight: 700;
}

.os-price {
  color: #168449;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .order-status-page { padding: 48px 0 66px; }
  .os-card__top, .os-card__body { padding-left: 20px; padding-right: 20px; }
  .os-head { align-items: flex-start; }
  .os-search { grid-template-columns: 1fr; }
  .os-search button { width: 100%; }
  .os-timeline { grid-template-columns: 1fr; }
  .os-meta { grid-template-columns: 1fr; }
  .os-products li { align-items: flex-start; flex-direction: column; }
}

