.page {
  background: var(--color-cream);
  color: var(--color-ink);
}

/* Native WooCommerce View Order endpoint. The data, links and hooks remain
   native; the endpoint is presented with the same card system as the custom
   account dashboard. */
.cacti-view-order-page .woocommerce-MyAccount-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 4px 0 34px;
  font-family: var(--font-body);
}

.cacti-view-order-page .woocommerce-MyAccount-content > p:first-child {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  padding: 15px 17px;
  color: rgba(13, 13, 13, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.cacti-view-order-page .woocommerce-MyAccount-content > p:first-child mark {
  background: transparent;
  color: #111;
  font-family: var(--font-heading);
  font-weight: 600;
}

.cacti-view-order-page .woocommerce-order-details {
  margin: 22px 0 0;
}

.cacti-view-order-page .woocommerce-order-details__title,
.cacti-view-order-page .woocommerce-customer-details .woocommerce-column__title,
.cacti-view-order-page .woocommerce-customer-details > .woocommerce-column__title {
  margin: 0 0 11px;
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.cacti-view-order-page .woocommerce-table--order-details {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.46);
  table-layout: fixed;
  overflow: hidden;
}

.cacti-view-order-page .woocommerce-table--order-details th,
.cacti-view-order-page .woocommerce-table--order-details td {
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.13);
  background: transparent;
  padding: 14px 16px;
  color: #111;
  font-size: 13px;
  line-height: 1.42;
  vertical-align: middle;
}

.cacti-view-order-page .woocommerce-table--order-details th:first-child,
.cacti-view-order-page .woocommerce-table--order-details td:first-child {
  width: 64%;
  text-align: left;
}

.cacti-view-order-page .woocommerce-table--order-details th:last-child,
.cacti-view-order-page .woocommerce-table--order-details td:last-child {
  width: 36%;
  text-align: right;
}

.cacti-view-order-page .woocommerce-table--order-details thead th {
  color: rgba(0, 0, 0, 0.65);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cacti-view-order-page .woocommerce-table--order-details .woocommerce-table__product-name a {
  color: #111;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.cacti-view-order-page .woocommerce-table--order-details .product-quantity {
  font-family: var(--font-heading);
  font-weight: 600;
}

.cacti-view-order-page .woocommerce-table--order-details .wc-item-meta {
  display: grid;
  gap: 3px;
  margin: 7px 0 0;
  padding: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  line-height: 1.4;
  list-style: none;
}

.cacti-view-order-page .woocommerce-table--order-details .wc-item-meta li,
.cacti-view-order-page .woocommerce-table--order-details .wc-item-meta p {
  margin: 0;
}

.cacti-view-order-page .woocommerce-table--order-details tfoot th {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
}

.cacti-view-order-page .woocommerce-table--order-details tfoot tr:nth-last-child(2) th,
.cacti-view-order-page .woocommerce-table--order-details tfoot tr:nth-last-child(2) td {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.cacti-view-order-page .woocommerce-table--order-details tfoot tr:last-child th,
.cacti-view-order-page .woocommerce-table--order-details tfoot tr:last-child td {
  border-bottom: 0;
}

.cacti-view-order-page .order-again {
  margin: 14px 0 0;
}

.cacti-view-order-page .order-again .button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  padding: 0 18px;
  color: #fffef5;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cacti-view-order-page .woocommerce-customer-details {
  margin: 26px 0 0;
}

.cacti-view-order-page .woocommerce-customer-details .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.cacti-view-order-page .woocommerce-customer-details .woocommerce-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  float: none;
  width: auto;
  margin: 0;
}

.cacti-view-order-page .woocommerce-customer-details address {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  padding: 16px 17px;
  color: #111;
  font-size: 13px;
  font-style: normal;
  line-height: 1.58;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.cacti-view-order-page .woocommerce-customer-details .woocommerce-customer-details--phone,
.cacti-view-order-page .woocommerce-customer-details .woocommerce-customer-details--email {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  line-height: 1.38;
}

.cacti-view-order-page .woocommerce-customer-details .woocommerce-customer-details--phone::before,
.cacti-view-order-page .woocommerce-customer-details .woocommerce-customer-details--email::before {
  position: static;
  flex: 0 0 auto;
  margin: 0.08em 0 0;
}

@media (max-width: 680px) {
  .cacti-view-order-page .woocommerce-MyAccount-content {
    padding-bottom: 26px;
  }

  .cacti-view-order-page .woocommerce-MyAccount-content > p:first-child {
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 11px;
    line-height: 1.52;
  }

  .cacti-view-order-page .woocommerce-order-details {
    margin-top: 17px;
  }

  .cacti-view-order-page .woocommerce-order-details__title,
  .cacti-view-order-page .woocommerce-customer-details .woocommerce-column__title,
  .cacti-view-order-page .woocommerce-customer-details > .woocommerce-column__title {
    margin-bottom: 9px;
    font-size: 23px;
  }

  .cacti-view-order-page .woocommerce-table--order-details {
    border-radius: 12px;
  }

  .cacti-view-order-page .woocommerce-table--order-details th,
  .cacti-view-order-page .woocommerce-table--order-details td {
    padding: 11px 12px;
    font-size: 11px;
    line-height: 1.42;
  }

  .cacti-view-order-page .woocommerce-table--order-details th:first-child,
  .cacti-view-order-page .woocommerce-table--order-details td:first-child {
    width: 58%;
  }

  .cacti-view-order-page .woocommerce-table--order-details th:last-child,
  .cacti-view-order-page .woocommerce-table--order-details td:last-child {
    width: 42%;
  }

  .cacti-view-order-page .woocommerce-table--order-details thead th {
    font-size: 9px;
  }

  .cacti-view-order-page .woocommerce-table--order-details .woocommerce-table__product-name a {
    font-size: 13px;
    line-height: 1.18;
  }

  .cacti-view-order-page .woocommerce-table--order-details .wc-item-meta {
    font-size: 9px;
  }

  .cacti-view-order-page .woocommerce-table--order-details tfoot th {
    font-size: 10px;
  }

  .cacti-view-order-page .woocommerce-table--order-details tfoot tr:nth-last-child(2) th,
  .cacti-view-order-page .woocommerce-table--order-details tfoot tr:nth-last-child(2) td {
    font-size: 15px;
  }

  .cacti-view-order-page .woocommerce-customer-details {
    margin-top: 22px;
  }

  .cacti-view-order-page .woocommerce-customer-details .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cacti-view-order-page .woocommerce-customer-details address {
    border-radius: 12px;
    padding: 14px;
    font-size: 11px;
    line-height: 1.55;
  }
}

.main {
  width: min(1480px, calc(100vw - 48px));
  margin-inline: auto;
  padding: 18px 0 0;
}

.authShell,
.dashboardShell,
.orderShell,
.unavailableShell {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  padding-top: 18px;
}

.cactiAccountConfirmation {
  margin: 0 0 18px;
}

.cactiAuthConfirmation {
  margin: 0 0 14px;
}

.authLayout,
.dashboardLayout,
.orderLayout {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.28fr);
  gap: 26px;
  align-items: start;
}

.leadBlock {
  max-width: 420px;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.title {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.copy {
  margin-top: 12px;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(13, 13, 13, 0.8);
}

.authCard,
.panel,
.orderCard,
.orderItem,
.statCard {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 18px;
}

.authCard,
.panel,
.orderCard {
  padding: 20px 20px 18px;
}

.authTabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.authCard form.authForm {
  margin: 0;
}

.authTab,
.secondaryButton,
.ghostButton,
.actionLink,
.orderLink,
.signOutButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.68);
  background: transparent;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.authTab:disabled,
.secondaryButton:disabled,
.secondaryButton[aria-disabled="true"],
.ghostButton:disabled,
.actionLink:disabled,
.orderLink:disabled,
.signOutButton:disabled {
  opacity: 0.6;
  cursor: default;
}

.secondaryButton[aria-disabled="true"] {
  pointer-events: none;
}

.authTab[data-active="true"],
.secondaryButton,
.actionLink,
.orderLink {
  background: #101010;
  color: #fffef5;
}

.ghostButton,
.signOutButton {
  background: transparent;
  color: #111;
}

.authForm,
.detailsForm {
  display: grid;
  gap: 12px;
}

.rememberMe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: var(--font-body);
  font-size: 12px;
  cursor: pointer;
}

.authCard .woocommerce-password-strength,
.authCard .woocommerce-password-hint,
.authCard .woocommerce-privacy-policy-text {
  display: block;
  margin: 6px 0 0;
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.68);
}

.authCard .woocommerce-password-strength {
  border-left: 3px solid #8d1d1d;
  padding-left: 8px;
}

.authCard .woocommerce-password-strength.good,
.authCard .woocommerce-password-strength.strong {
  border-left-color: #1d6a35;
}

.authCard .woocommerce-privacy-policy-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lostPasswordShell {
  min-height: clamp(460px, 62vh, 650px);
}

.lostPasswordCard {
  align-self: start;
}

.recoveryHelper {
  max-width: 520px;
}

.recoveryFooter {
  margin-top: 2px;
}

.recoveryConfirmation {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.recoveryCheck {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.68);
  border-radius: 50%;
}

.recoveryCheck::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 11px;
  width: 13px;
  height: 7px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(-45deg);
}

.recoveryTitle {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.authGrid,
.addressGrid,
.statsGrid,
.panelsGrid {
  display: grid;
  gap: 12px;
}

.authGrid,
.addressGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.fieldWide {
  display: grid;
  gap: 5px;
}

.fieldWide {
  grid-column: 1 / -1;
}

.label,
.sectionLabel {
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.46);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #111;
}

.textarea {
  min-height: 92px;
  padding-block: 10px;
  resize: vertical;
}

.formFooter,
.panelActions,
.orderHeader,
.orderTotalsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.formFooter {
  padding-top: 2px;
}

.authMetaRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.errorText,
.successText,
.helperText,
.metaText,
.emptyText,
.lineMeta,
.addressText,
.unavailableText {
  font-family: var(--font-body);
}

.errorText,
.successText,
.helperText,
.metaText,
.emptyText,
.addressText,
.unavailableText {
  font-size: 12px;
  line-height: 1.5;
}

.errorText {
  color: #871818;
}

.successText {
  color: #1d5e2a;
}

.helperText,
.metaText,
.emptyText,
.addressText,
.unavailableText {
  color: rgba(13, 13, 13, 0.68);
}

.inlineTextLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.inlineTextLink:hover {
  background: #111;
  border-color: #111;
  color: #fffef5;
}

.accountHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.accountIdentity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.accountAvatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
}

.accountAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accountName {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.accountMeta {
  margin-top: 5px;
}

.statsGrid {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.statCard {
  padding: 14px 16px;
}

.statValue {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 0.95;
}

.statLabel {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.35;
  color: rgba(13, 13, 13, 0.7);
}

.panelsGrid {
  margin-top: 18px;
  grid-template-columns: 1.08fr 0.92fr;
}

.panelTitle,
.orderTitle,
.sectionTitle,
.orderNumber {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.panelTitle,
.orderTitle,
.sectionTitle {
  font-size: 24px;
}

.orderList {
  display: grid;
  gap: 12px;
}

.orderOpsGrid,
.fulfillmentGrid,
.policyList,
.exchangeForm,
.timeline {
  display: grid;
  gap: 12px;
}

.orderCard {
  display: grid;
  gap: 12px;
}

.orderStatusRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.orderStatus {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.07);
  font-family: var(--font-heading);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orderStatusSummary {
  display: grid;
  justify-items: end;
  gap: 7px;
  text-align: right;
}

.orderInlineTotal {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 0.95;
  white-space: nowrap;
}

.orderStatus[data-status="completed"] {
  background: rgba(39, 123, 59, 0.14);
}

.orderStatus[data-status="processing"] {
  background: rgba(182, 132, 4, 0.16);
}

.orderStatus[data-status="cancelled"],
.orderStatus[data-status="failed"] {
  background: rgba(136, 21, 21, 0.12);
}

.orderMetaBlock {
  display: grid;
  gap: 4px;
}

.orderNumber {
  font-size: 30px;
}

.orderDate {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: rgba(13, 13, 13, 0.68);
}

.orderItemsPreview,
.trackingList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.trackingPill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.58);
  font-family: var(--font-body);
  font-size: 12px;
}

.orderOpsGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.orderOpsGridSingle {
  grid-template-columns: minmax(0, 1fr);
}

.orderOpsItem,
.fulfillmentCard,
.policyCard,
.exchangeCard,
.helpCard {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
}

.orderOpsItem,
.fulfillmentCard {
  padding: 12px 14px;
}

.orderOpsValue,
.exchangeHeadline {
  margin-top: 4px;
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1;
}

.orderTotalsRow {
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}

.totalBlock {
  display: grid;
  gap: 4px;
}

.totalLabel {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.totalValue {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 0.95;
}

.addressColumns,
.orderInfoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.addressCard {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.addressTitle {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
}

.orderItemsList {
  display: grid;
  gap: 10px;
}

.fulfillmentSection,
.policyCard,
.exchangeCard,
.helpCard {
  margin-top: 18px;
}

.policyCard,
.exchangeCard,
.helpCard {
  padding: 18px 20px;
}

.exchangeHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.timeline {
  margin-top: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timelineStep {
  display: grid;
  gap: 8px;
}

.timelineDot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.28);
  background: transparent;
}

.timelineStep[data-state="done"] .timelineDot,
.timelineStep[data-state="active"] .timelineDot {
  border-color: #111;
  background: #111;
}

.timelineStep[data-state="active"] .timelineDot {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.timelineLabel {
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.policyList,
.exchangeForm {
  margin-top: 14px;
}

.policyItem {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(13, 13, 13, 0.82);
}

.exchangeStatePill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  font-family: var(--font-heading);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exchangeStatePill[data-state="open"],
.exchangeStatePill[data-state="approved"],
.exchangeStatePill[data-state="scheduled"],
.exchangeStatePill[data-state="completed"] {
  background: rgba(29, 94, 42, 0.12);
  color: #1d5e2a;
}

.exchangeStatePill[data-state="closed"],
.exchangeStatePill[data-state="rejected"] {
  background: rgba(126, 32, 32, 0.1);
  color: #7e2020;
}

.exchangeStatePill[data-state="submitted"] {
  background: rgba(179, 118, 20, 0.12);
  color: #8a5b0e;
}

.exchangeSummary {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.orderItem {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.orderItemImage {
  width: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.orderItemImage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.orderItemName {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1;
}

.lineMeta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(13, 13, 13, 0.7);
}

.inlineActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.unavailableCard {
  max-width: 760px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1024px) {
  .main {
    width: calc(100vw - 40px);
  }

  .authLayout,
  .dashboardLayout,
  .orderLayout,
  .panelsGrid {
    grid-template-columns: 1fr;
  }

  .leadBlock,
  .copy {
    max-width: none;
  }

  .statsGrid,
  .addressColumns,
  .orderInfoGrid,
  .orderOpsGrid,
  .fulfillmentGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 680px) {
  .main {
    width: calc(100vw - 16px);
    padding-top: 10px;
  }

  .authShell,
  .dashboardShell,
  .orderShell,
  .unavailableShell {
    padding-top: 12px;
  }

  .lostPasswordShell {
    min-height: clamp(500px, 66vh, 620px);
  }

  .lostPasswordCard .authTabs,
  .recoveryFooter {
    flex-wrap: wrap;
  }

  .lostPasswordCard .authTab,
  .recoveryFooter .secondaryButton,
  .recoveryFooter .ghostButton {
    width: 100%;
  }

  .authCard,
  .panel,
  .orderCard,
  .unavailableCard {
    padding: 14px 14px 12px;
    border-radius: 14px;
  }

  .orderCard {
    gap: 10px;
  }

  .orderStatusRow {
    align-items: flex-start;
  }

  .orderStatusSummary {
    gap: 6px;
  }

  .orderInlineTotal {
    font-size: 19px;
  }

  .authGrid,
  .addressGrid,
  .statsGrid,
  .addressColumns,
  .orderInfoGrid,
  .orderOpsGrid,
  .fulfillmentGrid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .title {
    font-size: 34px;
  }

  .copy,
  .errorText,
  .successText,
  .helperText,
  .metaText,
  .emptyText,
  .addressText,
  .unavailableText {
    font-size: 10px;
  }

  .inlineTextLink {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .label,
  .sectionLabel,
  .eyebrow,
  .totalLabel {
    font-size: 10px;
  }

  .input,
  .textarea,
  .select,
  .authTab,
  .secondaryButton,
  .ghostButton,
  .actionLink,
  .orderLink,
  .signOutButton {
    min-height: 34px;
    font-size: 10px;
  }

  .authMetaRow,
  .formFooter {
    flex-direction: column;
    align-items: stretch;
  }

  .accountHeader {
    flex-direction: column;
    gap: 12px;
  }

  .accountIdentity {
    gap: 10px;
  }

  .accountAvatar {
    width: 48px;
    height: 48px;
  }

  .accountName {
    font-size: 24px;
  }

  .statValue,
  .orderNumber,
  .totalValue {
    font-size: 22px;
  }

  .panelTitle,
  .orderTitle,
  .sectionTitle {
    font-size: 18px;
  }

  .addressTitle {
    font-size: 13px;
  }

  .orderItem {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .orderItemImage {
    width: 64px;
  }

  .orderItemName {
    font-size: 14px;
  }

  .pill,
  .trackingPill,
  .lineMeta,
  .orderDate {
    font-size: 10px;
  }
}
