/**
 * Order detail page — Figma via f2c-mcp (fileKey: hXnn2EVDC1V3zh4nYJxfs5).
 * Nodes: 14:1458 (unpaid — delivery/address/payment+invoice), 17:989 (paid),
 *        191:1386 (shipped — banner + logistics),
 *        191:1098 (paid — summary VAT/points), 23:3920 (view logistics modal),
 *        191:515 (track order modal),
 *        17:1298 (received), 17:1453 (cancelled).
 */

.order-detail-page-wrap .page-width {
  background-color: #fff;
}

.order-detail-page-wrap .order-detail-page {
  position: relative;
  display: block;
  min-height: 240px;
  background-color: #fafafa;
}

.order-detail-page__inner {
  box-sizing: border-box;
  max-width: 944px;
  margin: 0 auto;
  padding: 24px 28px 42px;
}

.order-detail-page__back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
  text-decoration: none;
}

.order-detail-page__back-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.order-detail-page__header {
  margin-top: 24px;
}

.order-detail-page__header-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.order-detail-page__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #000;
  letter-spacing: -0.45px;
}

.order-detail-page__status {
  flex-shrink: 0;
  font-size: 12.25px;
  font-weight: 500;
  line-height: 17.5px;
  color: #000;
  letter-spacing: -0.02px;
}

.order-detail-page[data-status="unpaid"] .order-detail-page__status {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.15px;
}

.order-detail-page__header-heading {
  display: flex;
  flex-direction: column;
}

.order-detail-page__header-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page[data-status="cancelled"] .order-detail-page__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 30px;
  color: #000;
}

.order-detail-page[data-status="cancelled"] .order-detail-page__meta {
  padding-top: 8px;
  margin-top: 8px;
}

.order-detail-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-items: center;
  padding-top: 8px;
}

.order-detail-page__number,
.order-detail-page__time,
.order-detail-page__order-id,
.order-detail-page__order-time {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page[data-status="received"] .order-detail-page__status {
  min-width: 78px;
  text-align: center;
}

.order-detail-page__meta.hidden,
.order-detail-page__header-subtitle.hidden,
.order-detail-page__time.hidden,
.order-detail-page__order-id.hidden,
.order-detail-page__order-time.hidden,
.order-detail-page__ship-banner.hidden,
.order-detail-page__order-info.hidden,
.order-detail-page__main-info.hidden,
.order-detail-page__return-details.hidden,
.order-detail-page__logistics-card.hidden,
.order-detail-page__address-cards.hidden,
.order-detail-page__section-card.hidden,
.order-detail-page__payment-invoice-block.hidden,
.order-detail-page__summary-vat.hidden,
.order-detail-page__summary-points.hidden,
.order-detail-page__item-review.hidden {
  display: none;
}

/* Shipped banner — Figma 191:1386: bg #e3f2fd, h 52px, px 16px, mt 22px */
.order-detail-page__ship-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: 52px;
  margin-top: 22px;
  padding: 0 16px;
  background-color: #e3f2fd;
}

.order-detail-page__ship-banner-main {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.order-detail-page__ship-banner-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.order-detail-page__ship-banner-text {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1976d2;
  letter-spacing: -0.15px;
}

.order-detail-page__ship-banner-text strong {
  font-weight: 500;
}

/* Pill link — Track order (h 28px) / View logistics (h 20px) */
.order-detail-page__pill-link {
  display: inline-flex;
  flex-shrink: 0;
  gap: 8px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1976d2;
  letter-spacing: -0.15px;
  white-space: nowrap;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  border-radius: 100px;
  padding: 0;
}

.order-detail-page__pill-link--track {
  height: 28px;
}

.order-detail-page__pill-link--track span {
  display: inline-block;
  min-width: 98px;
}

.order-detail-page__pill-link--logistics {
  height: 20px;
  padding: 0 8px;
}

.order-detail-page__pill-link-chevron {
  flex-shrink: 0;
  width: 8px;
  height: 16px;
  object-fit: contain;
}

.order-detail-page__copy-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
}

.order-detail-page__copy-btn img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Progress */
.order-detail-page__progress {
  margin-top: 22px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
}

.order-detail-page[data-status="shipped"] .order-detail-page__progress,
.order-detail-page[data-status="received"] .order-detail-page__progress {
  margin-top: 24px;
}

.order-detail-page__progress.hidden {
  display: none;
}

.order-detail-page__stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 32px 24px;
}

.order-detail-page__step {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  align-items: center;
  min-width: 28px;
}

.order-detail-page__step-dot {
  display: block;
  width: 12px;
  height: 12px;
  background-color: #e5e5e5;
  border-radius: 50%;
}

.order-detail-page__step-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: #999;
  letter-spacing: -0.15px;
  white-space: nowrap;
}

.order-detail-page__step-line {
  flex: 1;
  min-width: 16px;
  height: 1px;
  margin-top: 5px;
  background-color: #e5e5e5;
}

.order-detail-page__step.is-active .order-detail-page__step-dot {
  background-color: #000;
}

.order-detail-page__step.is-active .order-detail-page__step-label {
  color: #000;
}

.order-detail-page__step-line.is-active {
  background-color: #000;
}

/* Unpaid / paid / received — Figma 14:1458 red-box area */
.order-detail-page__order-info,
.order-detail-page__main-info {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.order-detail-page__delivery-method-card {
  margin-top: 0;
}

.order-detail-page__order-info .order-detail-page__address-cards,
.order-detail-page__main-info .order-detail-page__address-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.order-detail-page__order-info .order-detail-page__card,
.order-detail-page__main-info .order-detail-page__card {
  min-height: 0;
}

.order-detail-page__payment-invoice-card {
  margin-top: 24px;
}

.order-detail-page__payment-invoice-block--invoice {
  margin-top: 24px;
}

.order-detail-page__download-invoice {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 20px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1976d2;
  letter-spacing: -0.15px;
  white-space: nowrap;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  border-radius: 0;
}

.order-detail-page__download-invoice-icon {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.order-detail-page[data-status="cancelled"] .order-detail-page__order-info,
.order-detail-page[data-status="cancelled"] .order-detail-page__main-info {
  margin-top: 24px;
}

.order-detail-page[data-status="cancelled"] .order-detail-page__order-info .order-detail-page__card,
.order-detail-page[data-status="cancelled"] .order-detail-page__main-info .order-detail-page__card {
  min-height: 0;
}

.order-detail-page__card,
.order-detail-page__logistics-card,
.order-detail-page__section-card,
.order-detail-page__items-card,
.order-detail-page__help-card {
  box-sizing: border-box;
  padding: 24px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
}

.order-detail-page__card {
  min-height: 275px;
}

.order-detail-page__card-title,
.order-detail-page__items-title,
.order-detail-page__help-title,
.order-detail-page__subsection-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #000;
  letter-spacing: -0.31px;
}

.order-detail-page__card-divider {
  height: 1px;
  margin-top: 12px;
  background-color: #e5e5e5;
}

.order-detail-page__card-body {
  padding-top: 16px;
}

.order-detail-page__contact {
  padding-top: 4px;
}

.order-detail-page__contact p {
  margin: 0;
}

.order-detail-page__contact-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__contact-email {
  margin-top: 8px !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__address {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__payment-field + .order-detail-page__payment-field {
  padding-top: 12px;
}

.order-detail-page__field-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #000;
}

.order-detail-page__field-value {
  display: block;
  padding-top: 4px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__payment-method {
  padding-top: 16px;
}

.order-detail-page__payment-method .order-detail-page__field-label {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.31px;
}

/* Shipped: logistics card — Figma 191:1386, h 260px content, padding 24px */
.order-detail-page__logistics-card {
  margin-top: 24px;
}

.order-detail-page__logistics-card .order-detail-page__card-body {
  padding-top: 16px;
}

.order-detail-page__logistics-service {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__logistics-rows {
  margin-top: 8px;
}

.order-detail-page__logistics-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  min-height: 20px;
}

.order-detail-page__logistics-row + .order-detail-page__logistics-row {
  margin-top: 8px;
}

.order-detail-page__logistics-number {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
  white-space: nowrap;
}

.order-detail-page__subsection {
  margin-top: 24px;
}

.order-detail-page__logistics-info.hidden + .order-detail-page__subsection {
  margin-top: 0;
}

.order-detail-page__subsection-value {
  margin: 0;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

/* Shipped: address cards */
.order-detail-page__address-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.order-detail-page__address-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__address-block strong {
  font-weight: 500;
}

.order-detail-page__phone-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__phone-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Payment method / invoice section cards */
.order-detail-page__section-card {
  margin-top: 24px;
}

.order-detail-page__section-card-value {
  margin: 0;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__delivery-method-card .order-detail-page__section-card-value {
  padding-top: 4px;
}

.order-detail-page__invoice-body {
  padding-top: 8px;
}

.order-detail-page__invoice-type {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__invoice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

/* Items card */
.order-detail-page__items-card {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

/* Items — Figma 17:1520 */
.order-detail-page__items {
  margin: 0;
  padding-top: 16px;
}

.order-detail-page__item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.order-detail-page__item + .order-detail-page__item,
.order-detail-page__items > .order-detail-page__item-group + .order-detail-page__item {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.order-detail-page__item-media {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 80px;
  height: 80px;
  background-color: #f5f5f5;
}

.order-detail-page__item-media img,
.order-detail-page__item-media .image-fallback {
  display: block;
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.order-detail-page__item-info {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.order-detail-page__item-info p {
  margin: 0;
}

.order-detail-page__item-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__item-variant {
  padding-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #000;
}

.order-detail-page__item-info .energy-efficiency {
  margin-top: 8px;
}

.order-detail-page__item-review {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 32px;
  margin-top: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1976d2;
  letter-spacing: -0.15px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
}

.order-detail-page__item-review-icon {
  width: 12px;
  height: 12px;
}

.order-detail-page__item-pricing {
  flex-shrink: 0;
  width: 96px;
  padding-top: 8px;
  text-align: right;
}

.order-detail-page__item-pricing p {
  margin: 0;
}

.order-detail-page__item-qty {
  padding-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #999;
}

.order-detail-page__item-qty span {
  color: #000;
}

.order-detail-page__item-price {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

/* Item group — Figma 17:1520 (gift / bundle) */
.order-detail-page__item-group {
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.order-detail-page__item-group-inner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.order-detail-page__item-body {
  flex: 1;
  min-width: 0;
}

.order-detail-page__item-main {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.order-detail-page__item-main .order-detail-page__item-info {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.order-detail-page__item-main .order-detail-page__item-pricing {
  flex-shrink: 0;
  width: 96px;
  padding-top: 8px;
}

.order-detail-page__item-addon {
  padding: 7px 0 12px;
  margin-top: 8px;
  background-color: #fff;
}

.order-detail-page__item-addon-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__item-addon-row {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin-top: 12px;
}

.order-detail-page__item-addon-media {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  background-color: #f5f5f5;
}

.order-detail-page__item-addon-media .image-fallback,
.order-detail-page__item-addon-media img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.order-detail-page__item-addon-info {
  flex: 1;
  min-width: 0;
  margin-left: 14px;
}

.order-detail-page__item-addon-name {
  margin: 0;
  padding-top: 3.5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__item-addon-variant {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 17.5px;
  color: #999;
  letter-spacing: -0.02px;
}

.order-detail-page__item-addon-pricing {
  flex-shrink: 0;
  width: 93.85px;
  padding-top: 8px;
  text-align: right;
}

.order-detail-page__item-addon-price {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__item-addon-qty {
  margin: 4px 0 0;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #999;
}

.order-detail-page__item-addon-qty span {
  color: #000;
}

.order-detail-page__return-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 32px;
  margin-top: 8px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 100px;
}

/* Summary footer — Figma 191:1098 (paid), shipped uses same pattern */
.order-detail-page__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  margin-top: 16px;
  padding: 16px 0;
}

.order-detail-page__summary-rows,
.order-detail-page__summary-total-block,
.order-detail-page__summary-points {
  width: 100%;
  max-width: 243px;
}

.order-detail-page__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.order-detail-page__summary-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #999;
  letter-spacing: -0.15px;
}

.order-detail-page__summary-value {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__summary-total-block {
  border-top: 1px solid #e5e5e5;
}

.order-detail-page__summary-row--total {
  padding-top: 12px;
  margin-top: 0;
  border-top: none;
}

.order-detail-page__summary-row--total .order-detail-page__summary-label,
.order-detail-page__summary-row--total .order-detail-page__summary-value {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #000;
  letter-spacing: -0.31px;
}

.order-detail-page__summary-vat {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #999;
  letter-spacing: -0.15px;
  text-align: right;
}

.order-detail-page__summary-points {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
  text-align: right;
}

.order-detail-page__summary-points-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.order-detail-page__summary-points span {
  flex: 0 1 auto;
  white-space: nowrap;
}

/* Actions */
.order-detail-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-end;
  margin-top: 24px;
}

.order-detail-page__btn {
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  padding: 6px 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background-color: #fff;
  border-radius: 100px;
}

.order-detail-page__btn:not(.hidden) {
  display: inline-flex;
}

.order-detail-page__btn--muted {
  min-width: 136px;
  border: 1px solid #e5e5e5;
}

.order-detail-page__btn--primary {
  border: 1px solid #000;
}

.order-detail-page__btn--return,.order-detail-page__btn--paid-cancel {
  border: 1px solid rgba(229, 229, 229, 1);
}

.order-detail-page__btn[data-action="rebuy"],.order-detail-page__btn--paid-cancel {
  min-width: 112px;
}

.order-detail-page__actions--rebuy-only {
  justify-content: flex-end;
}

.order-detail-page[data-status="cancelled"] .order-detail-page__return-details,
.order-detail-page[data-status="cancelled"] .order-detail-page__download-invoice {
  display: none !important;
}

/* Help card */
.order-detail-page__help-card {
  margin-top: 24px;
}

.order-detail-page__help-body {
  padding-top: 16px;
}

.order-detail-page__help-label {
  display: block;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #999;
}

.order-detail-page__help-email {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  letter-spacing: -0.15px;
  text-decoration: none;
}

/* Modals — Figma 23:3920, 191:515 (2x → 1x) */
.order-detail-page__modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.45);
}

.order-detail-page__modal-overlay.hidden {
  display: none;
}

.order-detail-page__modal {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background-color: #fff;
  border-radius: 16px;
}

.order-detail-page__modal--track {
  max-height: calc(100vh - 48px);
}

.order-detail-page__modal-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.order-detail-page__modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  color: #111;
  text-transform: capitalize;
}

.order-detail-page__modal-close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #111;
  cursor: pointer;
  background-color: #e1e1e4;
  border: none;
  border-radius: 50%;
}

.order-detail-page__modal-close svg {
  width: 14px;
  height: 14px;
}

.order-detail-page__modal-divider {
  height: 1px;
  margin: 20px 20px 0;
  background-color: #e5e5e5;
}

.order-detail-page__modal-body {
  flex: 1;
  padding: 0 20px;
  overflow-y: auto;
}

.order-detail-page__modal-body--logistics {
  padding-top: 0;
}

.order-detail-page__modal-package {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.order-detail-page__modal-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #111;
}

.order-detail-page__modal-package-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-top: 4px;
  background-color: #f5f5f5;
}

.order-detail-page__modal-package-media img,
.order-detail-page__modal-package-media .image-fallback {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.order-detail-page__modal-logistics-meta {
  padding: 16px 0;
}

.order-detail-page__modal-logistics-text {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  color: #666;
}

.order-detail-page__modal-logistics-text strong {
  font-weight: 400;
  color: #000;
}

.order-detail-page__track-timeline {
  flex: 1;
  margin: 0;
  padding: 24px 10px 32px;
  overflow-y: auto;
}

.order-detail-page__track-timeline--simple {
  padding: 24px 30px 32px;
}

.order-detail-page__track-event {
  position: relative;
  display: flex;
  gap: 8px;
  padding-bottom: 24px;
}

.order-detail-page__track-event:not(:last-child)::before {
  position: absolute;
  top: 14px;
  left: 4px;
  width: 1px;
  height: calc(100% - 6px);
  content: "";
  background-color: #e5e5e5;
}

.order-detail-page__track-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  background-color: #2563eb;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #2563eb;
}

.order-detail-page__track-content p,
.order-detail-page__track-content time {
  margin: 0;
}

.order-detail-page__track-status {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: #111;
}

.order-detail-page__track-time {
  display: block;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #bbb;
}

.order-detail-page__track-desc {
  padding-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 22px;
  color: #666;
}

@media (max-width: 959px) {
  .order-detail-page__inner {
    padding: 20px 16px 32px;
  }

  .order-detail-page__cards,
  .order-detail-page__address-cards,
  .order-detail-page__order-info .order-detail-page__address-cards,
  .order-detail-page__main-info .order-detail-page__address-cards {
    grid-template-columns: 1fr;
  }

  .order-detail-page__card {
    min-height: 0;
  }

  .order-detail-page__ship-banner {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    height: auto;
    padding: 12px 16px;
  }

  .order-detail-page__stepper {
    padding: 24px 16px 20px;
  }

  .order-detail-page__item {
    flex-wrap: wrap;
  }

  .order-detail-page__item-pricing {
    width: 100%;
    text-align: left;
  }

  .order-detail-page__logistics-row {
    flex-wrap: wrap;
  }

  .order-detail-page__summary {
    max-width: none;
  }

  .order-detail-page__actions {
    justify-content: stretch;
  }

  .order-detail-page__btn {
    flex: 1;
    min-width: 0;
  }

  .order-detail-page__modal {
    max-width: none;
  }

  .order-detail-page__summary-points {
    flex-wrap: wrap;
  }

  .order-detail-page__summary-points span {
    white-space: normal;
  }
}

.order-detail-page__guest-error {
  box-sizing: border-box;
  max-width: 944px;
  margin: 24px auto 0;
  padding: 24px 28px;
}

.order-detail-page__guest-loading {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  z-index: 3;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 20px;
  color: #707070;
  text-align: center;
  background-color: rgb(255 255 255 / 88%);
  border-radius: 4px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.order-detail-page__guest-loading.hidden {
  display: none;
}

.order-detail-page__loading-icon {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.order-detail-page__guest-loading .spinner-border {
  animation: order-detail-spinner-border 1.5s linear infinite;
}

@keyframes order-detail-spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.order-detail-page__guest-error {
  text-align: center;
}

/* Cancel confirm modal */
.order-detail-page__cancel-modal-trigger {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  border: none;
  opacity: 0;
}

.order-detail-page__cancel-modal-panel {
  box-sizing: border-box;
  width: min(420px, calc(100vw - 48px));
  padding: 40px 32px 32px;
  text-align: center;
  border-radius: 12px;
}

.order-detail-page__cancel-modal-text {
  margin: 0 0 32px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  letter-spacing: -0.15px;
}

.order-detail-page__cancel-modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.order-detail-page__cancel-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 120px;
  height: 40px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.15px;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 100px;
  transition: opacity 0.2s ease;
}

.order-detail-page__cancel-modal-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.order-detail-page__cancel-modal-btn--secondary {
  color: #000;
  background-color: #fff;
  border: 1px solid #000;
}

.order-detail-page__cancel-modal-btn--primary {
  color: #fff;
  background-color: #000;
  border: 1px solid #000;
}

.order-detail-page__cancel-modal-btn:not(:disabled):hover {
  opacity: 0.85;
}

.order-detail-page__guest-error p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #000;
}
