body.order-page-shell {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fafbfd 0%, #f7f8fb 28%, #f7f8fb 100%);
  color: var(--noon-text, #102a43);
  padding-bottom: 0 !important;
  overflow-x: hidden;
}

body.order-page-shell,
body.order-page-shell *,
body.order-page-shell *::before,
body.order-page-shell *::after {
  box-sizing: border-box;
}

.order-page-shell .app-header,
.order-page-shell .bottom-nav {
  display: none !important;
}

.order-page-main {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  padding: 8px clamp(6px, 2.8vw, 10px) 18px;
  display: grid;
  gap: 12px;
  box-sizing: border-box;
}

.order-page-header {
  min-height: 80px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 8px;
}

.order-page-header h1 {
  margin: 0;
  font-size: clamp(1.2rem, 4.4vw, 1.5rem);
  font-weight: 900;
  color: var(--noon-blue-strong, #2b4db2);
}

.order-back-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #dce4f2;
  border-radius: 50%;
  background: #ffffff;
  color: #2b4db2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.order-page-content {
  display: grid;
  gap: 12px;
}

.order-card {
  position: relative;
  border: 1px solid var(--noon-border, #e4e8f0);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  padding: 12px;
}

.order-card::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe600 0%, #3866df 100%);
}

.order-meta {
  display: grid;
  gap: 4px;
}

.order-meta strong {
  color: var(--noon-blue-strong, #2b4db2);
  font-size: 1.04rem;
  font-weight: 900;
}

.order-meta p {
  margin: 0;
  color: #5f7393;
  font-size: 0.92rem;
}

.order-status-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.order-status-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ebf1ff;
  color: var(--noon-blue, #3866df);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-status-icon.is-delivered {
  background: #e8f9ed;
  color: #1f7a39;
}

.order-status-icon.is-cancelled {
  background: #f5eee7;
  color: #5b6475;
}

.order-status-icon.is-pending,
.order-status-icon.is-preparing,
.order-status-icon.is-shipped {
  background: #e7efff;
  color: var(--noon-blue, #3866df);
}

.order-status-line {
  margin: 0;
  color: #17325c;
  font-size: clamp(0.94rem, 3.2vw, 1.05rem);
  font-weight: 900;
  line-height: 1.5;
}

.order-address-card h3,
.order-nav-card h3,
.order-product-card h3 {
  margin: 0 0 7px;
  color: var(--noon-blue-strong, #2b4db2);
  font-size: 1.08rem;
  font-weight: 900;
}

.order-address-card p {
  margin: 0;
  color: #334155;
  line-height: 1.75;
  font-size: 0.95rem;
}

.order-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
}

.order-nav-card p {
  margin: 0;
  color: #4f658d;
  line-height: 1.65;
  font-size: 0.9rem;
}

.order-nav-card .material-icons-outlined {
  color: var(--noon-blue, #3866df);
  font-size: 21px;
}

.order-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  gap: 10px;
  align-items: center;
  direction: ltr;
}

.order-product-copy {
  min-width: 0;
  direction: rtl;
  text-align: right;
}

.order-product-copy h4 {
  margin: 0;
  color: #1f3558;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.order-product-price {
  margin: 5px 0 0;
  color: #152a4a;
  font-size: 1.24rem;
  font-weight: 900;
}

.order-product-image {
  width: 98px;
  height: 98px;
  border: 1px solid #e0e6f1;
  border-radius: 11px;
  background: #fafbfd;
  overflow: hidden;
}

.order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-product-image img.is-fallback-image {
  object-fit: contain;
}

.order-product-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e6ebf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.order-express-pill {
  min-height: 21px;
  border-radius: 999px;
  background: var(--noon-yellow, #ffe600);
  color: #443c00;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-ref {
  color: #7f8ea8;
  font-size: 0.79rem;
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-empty {
  border: 1px dashed #d5deef;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px 12px;
  text-align: center;
  color: #5e718f;
  display: grid;
  gap: 8px;
}

.order-empty h3 {
  margin: 0;
  color: var(--noon-blue-strong, #2b4db2);
  font-size: 1.02rem;
}

.order-empty p {
  margin: 0;
  font-size: 0.86rem;
}

@media (max-width: 430px) {
  .order-page-main {
    padding-inline: 8px;
  }

  .order-page-header h1 {
    font-size: 1.16rem;
  }

  .order-product-row {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
  }

  .order-product-image {
    width: 86px;
    height: 86px;
  }

  .order-status-line {
    font-size: 0.95rem;
  }
}

@media (max-width: 390px) {
  .order-page-main {
    gap: 10px;
  }

  .order-card {
    border-radius: 14px;
    padding: 10px;
  }

  .order-meta strong {
    font-size: 0.98rem;
  }

  .order-status-line {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .order-page-main {
    padding-inline: 6px;
  }

  .order-product-row {
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 7px;
  }

  .order-product-image {
    width: 80px;
    height: 80px;
  }

  .order-product-copy h4 {
    font-size: 0.9rem;
  }

  .order-product-price {
    font-size: 1.12rem;
  }
}

@media (max-width: 320px) {
  .order-page-main {
    padding-inline: 5px;
  }

  .order-page-header h1 {
    font-size: 1.04rem;
  }

  .order-product-row {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 6px;
  }

  .order-product-image {
    width: 72px;
    height: 72px;
  }
}

@media (min-width: 1200px) {
  .order-page-shell .app-header {
    display: block !important;
  }
  .order-page-main {
    max-width: 1440px !important;
    padding: 20px 24px !important;
  }
}
