/* Source desktop: 1871 viewport, 1253 + 350 columns, 16px gap.
   Outer headings/content of cards 2/3/5 remain unobserved. */
.main:has(.order-detail-page) {
  padding-top: 0;
}
.order-detail-page {
  width: 100%;
  min-width: 0;
  color: #171718;
  font-size: 14px;
  line-height: 21px;
}
.order-detail-page *,
.order-detail-page *::before,
.order-detail-page *::after {
  box-sizing: border-box;
}
.order-detail-page h1,
.order-detail-page h2,
.order-detail-page p,
.order-detail-page dl,
.order-detail-page dd,
.order-detail-page ul {
  margin: 0;
}
.order-detail-page button {
  font: inherit;
}
.order-detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  padding: 24px 0 16px;
}
.order-detail-header h1 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}
.order-detail-back {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #171718;
}
.order-detail-back svg {
  transform: rotate(180deg);
  flex: none;
}
.order-detail-back:hover {
  background: #ececed;
}
.order-detail-header-actions {
  margin-left: auto;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.order-detail-action {
  min-height: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #171718;
  background: #ececed;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.order-detail-more {
  width: 102px;
}
.order-detail-action.primary {
  background: #009995;
  color: #fff;
}
.order-detail-action:disabled {
  cursor: default;
  opacity: 1;
}
.order-detail-action:not(:disabled):hover {
  filter: brightness(0.97);
}
.order-detail-page button:focus-visible {
  outline: 2px solid #009995;
  outline-offset: 2px;
}
.order-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 16px;
  min-width: 0;
}
.order-detail-left,
.order-detail-right {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}
.order-detail-card {
  min-width: 0;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow-wrap: anywhere;
}
.order-detail-card h2 {
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
}
.order-detail-summary {
  min-height: 288px;
}
.order-detail-summary .order-detail-status {
  color: #171718;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}
.order-detail-metadata {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 16px;
  margin-top: 32px !important;
}
.order-detail-metadata .order-detail-field {
  padding-right: 24px;
}
.order-detail-field {
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
}
.order-detail-field dt {
  margin-bottom: 4px;
  color: #8f98b2;
}
.order-detail-field dd {
  min-height: 20px;
  color: #171718;
  overflow-wrap: anywhere;
}
.order-detail-shipping {
  min-height: 317px;
}
.order-detail-shipment {
  padding-top: 76px;
}
.order-detail-shipment-status {
  margin-bottom: 20px !important;
  font-size: 16px;
  line-height: 24px;
}
.order-detail-shipment dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.order-detail-items {
  min-height: 333px;
}
.order-detail-products {
  padding: 0;
  list-style: none;
}
.order-detail-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px 96px;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  min-width: 0;
}
.order-detail-product + .order-detail-product {
  border-top: 1px solid #ececed;
}
.order-detail-product:first-child {
  padding-top: 0;
}
.order-detail-product > img,
.order-detail-image-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
}
.order-detail-image-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8bac3;
  background: #f5f5f5;
}
.order-detail-product-copy {
  min-width: 0;
}
.order-detail-product-copy p:not(:first-child) {
  margin-top: 4px;
  color: #6c6d6f;
  font-size: 12px;
  line-height: 18px;
}
.order-detail-product-name {
  overflow-wrap: anywhere;
}
.order-detail-product-quantity,
.order-detail-product-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: right;
}
.order-detail-product-quantity span,
.order-detail-product-price span {
  color: #6c6d6f;
  font-size: 12px;
  line-height: 18px;
}
.order-detail-source-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.order-detail-source-gallery img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}
.order-detail-payment {
  min-height: 318px;
}
.order-detail-payment-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
}
.order-detail-payment-heading bdi {
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
}
.order-detail-payment > dl {
  margin-top: 24px;
}
.order-detail-payment dt {
  color: #6c6d6f;
}
.order-detail-additional {
  min-height: 120px;
}
.order-detail-customer {
  display: flex;
  flex-direction: column;
  min-height: 384px;
}
.order-detail-customer-name {
  margin-top: 16px !important;
  line-height: 20px;
}
.order-detail-address {
  margin-top: auto !important;
  min-height: 156px;
  padding-top: 0;
}
.order-detail-unknown {
  color: #8f98b2;
}
.order-detail-error {
  margin-bottom: 16px;
  padding: 16px 24px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.order-detail-error p {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-detail-error .order-detail-action {
  flex: none;
}
@media (max-width: 1100px) {
  .order-detail-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-detail-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-detail-customer {
    grid-column: 1 / -1;
  }
}
@media (max-width: 768px) {
  .order-detail-header {
    flex-wrap: wrap;
    padding-top: 20px;
  }
  .order-detail-header h1 {
    flex: 1;
    font-size: 24px;
    line-height: 32px;
  }
  .order-detail-header-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .order-detail-metadata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-detail-metadata > div:first-child {
    display: none;
  }
  .order-detail-metadata .order-detail-field {
    padding-right: 16px;
  }
  .order-detail-right {
    display: flex;
  }
  .order-detail-card {
    padding: 20px;
  }
  .order-detail-product {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }
  .order-detail-product > img,
  .order-detail-image-placeholder {
    width: 48px;
    height: 48px;
  }
  .order-detail-product-quantity {
    grid-column: 2;
    text-align: left;
    flex-direction: row;
  }
  .order-detail-product-price {
    grid-column: 2;
    text-align: left;
    flex-direction: row;
  }
  .order-detail-shipment dl {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-detail-shipping {
    min-height: 317px;
  }
  .order-detail-shipment {
    padding-top: 24px;
  }
}
@media (max-width: 400px) {
  .order-detail-header h1 {
    font-size: 22px;
    line-height: 30px;
  }
  .order-detail-card {
    padding: 16px;
  }
  .order-detail-metadata {
    grid-template-columns: minmax(0, 1fr);
  }
  .order-detail-metadata .order-detail-field {
    padding-right: 0;
  }
  .order-detail-payment-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .order-detail-error {
    padding: 16px;
  }
}
