body:has(.secondary-page) {
  background: #f4f4f4;
}

.secondary-page {
  width: min(100%, 880px);
  min-height: 100svh;
  margin: 0;
  background: #f4f4f4;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.secondary-tabs {
  height: 106px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  padding: 0 10px;
  background: #fff;
}

.secondary-tabs a {
  position: relative;
  color: #77777c;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.secondary-tabs a.active {
  color: #111;
}

.secondary-tabs a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -25px;
  width: 28px;
  height: 10px;
  border-radius: 10px;
  background: #050505;
  transform: translateX(-50%);
}

.secondary-main {
  padding: 46px 32px 110px;
}

.secondary-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 148px;
}

.heading-mark {
  color: #ef9fb3;
  font-size: 74px;
  line-height: .8;
}

.secondary-heading h1,
.store-heading h1,
.history-heading h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.15;
}

.secondary-heading p,
.store-heading p {
  margin: 14px 0 0;
  color: #8b8b90;
  font-size: 25px;
  line-height: 1.45;
}

.group-list-reference {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.group-list-card {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr) 26px;
  gap: 24px;
  align-items: center;
  min-height: 245px;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}

.group-list-card > img {
  display: block;
  width: 185px;
  height: 185px;
  border-radius: 18px;
  background: #eee;
  object-fit: cover;
}

.group-list-copy {
  min-width: 0;
}

.group-list-copy > strong,
.group-list-copy > small,
.group-list-copy > em {
  display: block;
}

.group-list-copy > strong {
  font-size: 29px;
  line-height: 1.25;
}

.group-list-copy > small {
  margin-top: 12px;
  overflow: hidden;
  color: #99999e;
  font-size: 19px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-list-meta {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  color: #96969d;
  font-size: 19px;
}

.group-list-copy > em {
  width: fit-content;
  margin-top: 15px;
  padding: 7px 13px;
  border-radius: 9px;
  background: #fde8ed;
  color: #df8095;
  font-size: 18px;
  font-style: normal;
}

.group-list-card > b {
  color: #9c9da1;
  font-size: 48px;
  font-weight: 300;
}

.secondary-signoff {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 150px auto 0;
  max-width: 610px;
  color: #f0a4b9;
}

.secondary-signoff span {
  height: 1px;
  flex: 1;
  background: #f0b3c2;
}

.secondary-signoff b {
  font-size: 42px;
  font-weight: 300;
}

.secondary-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 92px 24px;
  color: #a1a1a5;
  text-align: center;
}

.secondary-empty strong {
  font-size: 27px;
}

.secondary-empty span {
  font-size: 18px;
}

.store-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 270px;
  padding: 10px 20px;
}

.store-heading h1 {
  font-size: 66px;
}

.store-hero-icon {
  display: grid;
  place-items: center;
  width: 230px;
  height: 170px;
  border-radius: 50%;
  background: #fbe5eb;
  color: #ef7e98;
  font-size: 94px;
  transform: rotate(-9deg);
}

.store-benefits,
.store-location {
  padding: 32px;
  border-radius: 24px;
  background: #fff;
}

.store-status {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.store-status img {
  width: 53px;
  height: 53px;
  object-fit: contain;
}

.store-status h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.2;
}

.store-status p {
  margin: 9px 0 0;
  color: #8f8f94;
  font-size: 19px;
}

.store-status > span {
  padding: 11px 18px;
  border-radius: 999px;
  background: #eff0f2;
  color: #8c8d91;
  font-size: 19px;
  white-space: nowrap;
}

.store-vip-strip {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 32px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 155px;
  margin-top: 30px;
  padding: 24px 30px;
  border: 0;
  border-radius: 20px;
  background: #222329;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.store-vip-strip > strong {
  color: #f4abbc;
  font-size: 30px;
  letter-spacing: .1em;
  text-align: center;
}

.store-vip-strip span,
.store-vip-strip small {
  display: block;
}

.store-vip-strip span > b {
  display: block;
  font-size: 27px;
}

.store-vip-strip small {
  margin-top: 10px;
  color: #c5c5ca;
  font-size: 17px;
  line-height: 1.45;
}

.store-vip-strip > b {
  color: #f0a9bd;
  font-size: 46px;
  font-weight: 300;
}

.store-location {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
}

.store-location-icon {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border-radius: 16px;
  background: #f7dbe3;
  color: #e87c97;
  font-size: 31px;
}

.store-location strong {
  display: block;
  font-size: 29px;
}

.store-location p {
  margin: 8px 0 0;
  color: #8f8f94;
  font-size: 20px;
}

.store-primary {
  width: 100%;
  height: 92px;
  margin-top: 44px;
  border: 0;
  border-radius: 46px;
  background: #222329;
  color: #fff;
  font-size: 29px;
  font-weight: 700;
  cursor: pointer;
}

.store-login-tip {
  margin: 20px 0 0;
  color: #929297;
  font-size: 16px;
  text-align: center;
}

.store-login-tip a {
  text-decoration: underline;
}

.store-qr-modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .58);
}

.store-qr-modal.show {
  display: flex;
}

.store-qr-sheet {
  position: relative;
  width: min(100%, 880px);
  padding: 38px 30px 58px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  text-align: center;
}

.store-qr-sheet > button {
  position: absolute;
  top: 25px;
  left: 33px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.store-qr-sheet h2 {
  margin: 0 0 22px;
  font-size: 28px;
}

.store-qr-sheet img {
  width: 360px;
  height: 360px;
  object-fit: contain;
}

.store-qr-sheet p {
  margin: 16px 0 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
}

.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 95px;
}

.history-heading a {
  color: #88888e;
  font-size: 18px;
}

.history-heading a span {
  font-size: 30px;
  vertical-align: -2px;
}

.history-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 530px;
  margin: 18px 0 38px;
}

.history-filter button {
  height: 54px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: #77777d;
  font-size: 20px;
  cursor: pointer;
}

.history-filter button.active {
  background: #222329;
  color: #fff;
}

.history-list {
  display: grid;
  gap: 16px;
}

.history-tab-panel[hidden],
.history-tab-panel[aria-hidden="true"] {
  display: none;
}

.history-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 150px;
  padding: 24px 28px;
  border-radius: 22px;
  background: #fff;
}

.history-item[hidden] {
  display: none;
}

.history-item > img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
}

.history-item strong,
.history-item small,
.history-item p {
  display: block;
}

.history-item strong {
  font-size: 25px;
}

.history-item strong i {
  margin-right: 8px;
  font-style: normal;
}

.gender-1 { color: #5c9bf3; }
.gender-2 { color: #ee82aa; }

.history-item small {
  margin-top: 8px;
  color: #8e8f95;
  font-size: 18px;
}

.history-item p {
  max-width: 520px;
  margin: 9px 0 0;
  overflow: hidden;
  color: #8e8f95;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item time {
  align-self: start;
  color: #9b9ca1;
  font-size: 16px;
  white-space: nowrap;
}

.history-empty {
  padding-top: 135px;
}

.history-empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 22px;
  border-radius: 22px;
  background: #222329;
  color: #fff;
  font-size: 16px;
}

.content-page {
  width: min(100%, 880px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 42px 28px 84px;
  background: #f4f4f4;
  color: #111;
}

.content-page-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #596f9e;
  font-size: 18px;
  font-weight: 700;
}

.content-page-article {
  margin-top: 18px;
  padding: 40px;
  border-radius: 16px;
  background: #fff;
}

.content-page-article h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.3;
}

.content-page-body {
  margin-top: 28px;
  color: #47474c;
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .secondary-tabs {
    height: 74px;
    padding: 0 4px;
  }

  .secondary-tabs a {
    font-size: 16px;
  }

  .secondary-tabs a.active::after {
    bottom: -16px;
    width: 20px;
    height: 6px;
  }

  .secondary-main {
    padding: 25px 10px 70px;
  }

  .secondary-heading {
    min-height: 105px;
    gap: 8px;
  }

  .heading-mark {
    font-size: 47px;
  }

  .secondary-heading h1,
  .history-heading h1 {
    font-size: 28px;
  }

  .secondary-heading p {
    margin-top: 7px;
    font-size: 16px;
  }

  .group-list-reference {
    gap: 12px;
    margin-top: 12px;
  }

  .group-list-card {
    grid-template-columns: 82px minmax(0, 1fr) 16px;
    gap: 11px;
    min-height: 118px;
    padding: 13px;
    border-radius: 14px;
  }

  .group-list-card > img {
    width: 82px;
    height: 82px;
    border-radius: 11px;
  }

  .group-list-copy > strong {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .group-list-copy > small {
    margin-top: 5px;
    font-size: 12px;
  }

  .group-list-meta {
    gap: 9px;
    margin-top: 5px;
    font-size: 12px;
  }

  .group-list-copy > em {
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 11px;
  }

  .group-list-card > b {
    font-size: 30px;
  }

  .secondary-signoff {
    gap: 15px;
    margin-top: 75px;
  }

  .secondary-signoff b {
    font-size: 28px;
  }

  .store-heading {
    min-height: 174px;
    padding: 0 10px;
  }

  .store-heading h1 {
    font-size: 42px;
  }

  .store-heading p {
    margin-top: 8px;
    font-size: 16px;
  }

  .store-hero-icon {
    width: 120px;
    height: 88px;
    font-size: 50px;
  }

  .store-benefits,
  .store-location {
    padding: 17px;
    border-radius: 14px;
  }

  .store-status {
    grid-template-columns: 37px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .store-status img {
    width: 37px;
    height: 37px;
  }

  .store-status h2 {
    font-size: 17px;
  }

  .store-status p {
    margin-top: 5px;
    font-size: 12px;
  }

  .store-status > span {
    padding: 6px 9px;
    font-size: 12px;
  }

  .store-vip-strip {
    grid-template-columns: 54px minmax(0, 1fr) 20px;
    gap: 8px;
    min-height: 88px;
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 11px;
  }

  .store-vip-strip > strong {
    font-size: 17px;
  }

  .store-vip-strip span > b {
    font-size: 16px;
  }

  .store-vip-strip small {
    margin-top: 4px;
    font-size: 10px;
  }

  .store-vip-strip > b {
    font-size: 30px;
  }

  .store-location {
    gap: 11px;
    margin-top: 12px;
  }

  .store-location-icon {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    font-size: 19px;
  }

  .store-location strong {
    font-size: 17px;
  }

  .store-location p {
    margin-top: 4px;
    font-size: 12px;
  }

  .store-primary {
    height: 62px;
    margin-top: 22px;
    border-radius: 31px;
    font-size: 19px;
  }

  .store-qr-sheet {
    padding: 28px 16px 34px;
    border-radius: 17px 17px 0 0;
  }

  .store-qr-sheet > button {
    top: 15px;
    left: 19px;
    font-size: 36px;
  }

  .store-qr-sheet h2 {
    margin-bottom: 12px;
    font-size: 19px;
  }

  .store-qr-sheet img {
    width: 230px;
    height: 230px;
  }

  .store-qr-sheet p {
    margin-top: 9px;
    font-size: 17px;
  }

  .history-heading {
    min-height: 58px;
  }

  .history-heading a {
    font-size: 14px;
  }

  .history-heading a span {
    font-size: 24px;
  }

  .history-filter {
    gap: 6px;
    max-width: none;
    margin: 10px 0 17px;
  }

  .history-filter button {
    height: 38px;
    border-radius: 19px;
    font-size: 15px;
  }

  .history-list {
    gap: 10px;
  }

  .history-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 86px;
    padding: 13px;
    border-radius: 14px;
  }

  .history-item > img {
    width: 52px;
    height: 52px;
  }

  .history-item strong {
    font-size: 16px;
  }

  .history-item strong i {
    margin-right: 4px;
  }

  .history-item small {
    margin-top: 4px;
    font-size: 12px;
  }

  .history-item p {
    max-width: 210px;
    margin-top: 4px;
    font-size: 12px;
  }

  .history-item time {
    font-size: 10px;
  }

  .history-empty {
    padding-top: 85px;
  }

  .content-page {
    padding: 22px 14px 56px;
  }

  .content-page-back {
    min-height: 36px;
    font-size: 15px;
  }

  .content-page-article {
    margin-top: 10px;
    padding: 25px 20px;
    border-radius: 12px;
  }

  .content-page-article h1 {
    font-size: 25px;
  }

  .content-page-body {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.8;
  }
}

/* Store page uses a centered, readable content column across viewport sizes. */
body:has(.store-page) { background: #eef2fb; }
.store-page { width: min(100%, 660px); margin: 0 auto; background: #fff; }
.store-page .secondary-main.store-main { padding: 20px 30px 48px; background: #fff; }
.store-page + .store-qr-modal { align-items: center; }
.store-banner-image { display: block; width: 100%; aspect-ratio: 840 / 476; object-fit: cover; }
.store-owner-subtitle { margin: 12px 0 0; color: #7a7a7a; font-size: 14px; line-height: 1.6; text-align: center; }
.store-content-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; padding: 5px; border: 1px solid #dedede; border-radius: 13px; background: #f4f4f4; }
.store-content-tabs button { min-height: 52px; border: 0; border-radius: 9px; background: transparent; color: #777; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.store-content-tabs button.active { background: #111; color: #fff; }
.store-tab-panel[hidden], .store-tab-panel[aria-hidden="true"] { display: none; }
.store-copy { display: grid; gap: 48px; padding: 56px 0 0; text-align: center; }
.store-state-bar { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 100px; margin-top: 26px; padding: 20px 18px; border: 1px solid #ececec; border-radius: 14px; background: #fafafa; }
.store-state-bar > div { display: grid; gap: 4px; min-width: 0; }
.store-state-label { color: #999; font-size: 12px; }
.store-state-bar strong { color: #111; font-size: 16px; }
.store-state-bar small { color: #999; font-size: 12px; }
.store-entitlement-note, .store-sync-result { margin: 18px 0 0; color: #777; font-size: 14px; text-align: center; }
.store-sync-result.success { color: #00a34a; }
.store-sync-result.failed { color: #d9534f; }
.store-referral-share { display: grid; gap: 12px; margin-top: 22px; padding: 17px; border: 1px solid #ececec; border-radius: 14px; background: #fafafa; }
.store-referral-share > div:first-child { display: grid; gap: 5px; }
.store-referral-share[aria-label="店主佣金账户"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.store-referral-share[aria-label="店主佣金账户"] > div { display: grid; gap: 6px; min-width: 0; padding: 17px; }
.store-referral-share[aria-label="店主佣金账户"] > div + div { border-left: 1px solid #ececec; }
.store-referral-share[aria-label="店主佣金账户"] strong { color: #111; font-size: 22px; font-weight: 800; }
.store-referral-share[aria-label="店主佣金账户"] small { color: #8d8d8d; font-size: 12px; line-height: 1.45; }
.store-referral-share span { color: #111; font-size: 14px; font-weight: 800; }
.store-referral-share strong { color: #8d8d8d; font-size: 12px; font-weight: 400; }
.store-referral-share-row { display: flex; gap: 8px; min-width: 0; }
.store-referral-share-row input { min-width: 0; flex: 1; height: 40px; padding: 0 10px; border: 1px solid #e1e1e1; border-radius: 8px; background: #fff; color: #666; font: inherit; font-size: 12px; }
.store-referral-share-row button { flex: 0 0 auto; padding: 0 15px; border: 0; border-radius: 8px; background: #111; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.store-copy p { width: 100%; max-width: 560px; margin: 0 auto; color: #f00; font-size: clamp(21px, 4vw, 30px); line-height: 1.45; overflow-wrap: anywhere; }
.store-copy p.store-copy-primary { color: #111; margin-bottom: 0; }
.store-primary { display: block; width: 100%; height: 98px; margin: 24px 0 0; border: 0; border-radius: 22px; background: #000; color: #fff; font-size: 30px; font-weight: 700; cursor: pointer; }
.store-sync { display: block; margin: 40px auto 0; padding: 10px 20px; border: 0; border-radius: 9px; background: #f2f2f2; color: #00af50; font-size: 23px; font-weight: 700; cursor: pointer; }
.store-qr-sheet { width: min(640px, calc(100% - 120px)); padding: 64px 30px 28px; border-radius: 25px; align-self: center; }
.store-qr-sheet > button { top: 20px; left: auto; right: 24px; font-size: 42px; }
.store-qr-sheet h2 { margin-bottom: 26px; font-size: 29px; }
.store-qr-sheet img { width: 360px; height: 360px; }
.store-qr-sheet p { margin: 18px 0 0; font-size: 23px; line-height: 1.45; }
.store-referral-page { width: min(100%, 660px); margin: 0 auto; background: #f7f6f7; }
.store-referral-main { display: grid; min-height: 100svh; align-content: center; gap: 20px; padding: 44px 30px; }
.store-referral-kicker { color: #c9778f; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.store-referral-card { padding: 32px; border: 1px solid #ece5e7; border-radius: 18px; background: #fff; box-shadow: 0 16px 36px rgba(54, 37, 43, .08); }
.store-referral-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #171317; color: #fff; font-size: 22px; font-weight: 900; }
.store-referral-card > p:first-of-type { margin: 26px 0 8px; color: #9b9296; font-size: 14px; }
.store-referral-card h1 { margin: 0; color: #211d20; font-size: 30px; line-height: 1.25; }
.store-referral-card dl { display: grid; gap: 14px; margin: 28px 0; padding: 18px 0; border-top: 1px solid #f0ecee; border-bottom: 1px solid #f0ecee; }
.store-referral-card dl div { display: grid; gap: 5px; }
.store-referral-card dt { color: #9b9296; font-size: 12px; }
.store-referral-card dd { margin: 0; color: #403a3d; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.store-referral-note { margin: 0; color: #686167; font-size: 15px; line-height: 1.7; }
.store-referral-action { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 30px; border-radius: 10px; background: #171317; color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; }
.store-referral-footer { margin: 0; color: #b1a8ac; font-size: 13px; text-align: center; }
@media (max-width: 620px) {
  .store-page .secondary-main.store-main { padding: 16px 16px 40px; }
  .store-content-tabs { gap: 5px; margin-top: 12px; padding: 4px; border-radius: 10px; }
  .store-content-tabs button { min-height: 39px; border-radius: 7px; font-size: 14px; }
  .store-copy { gap: 30px; padding-top: 42px; }
  .store-state-bar { min-height: 75px; align-items: flex-start; margin-top: 16px; padding: 13px 14px; }
  .store-state-bar strong { font-size: 14px; }
  .store-state-label, .store-state-bar small { font-size: 11px; }
  .store-copy p { margin: 0 auto; font-size: clamp(20px, 5.2vw, 27px); line-height: 1.4; }
  .store-copy p.store-copy-primary { margin-bottom: 0; }
  .store-primary { height: 76px; margin-top: 18px; border-radius: 20px; font-size: 25px; }
  .store-sync { margin-top: 32px; padding: 8px 16px; font-size: 20px; }
  .store-qr-sheet { width: min(640px, calc(100% - 64px)); padding: 48px 20px 28px; }
  .store-qr-sheet h2 { margin-bottom: 18px; font-size: 21px; }
  .store-qr-sheet img { width: min(360px, 72vw); height: min(360px, 72vw); }
  .store-qr-sheet p { font-size: 17px; }
  .store-referral-main { padding: 28px 18px; }
  .store-referral-card { padding: 25px 22px; border-radius: 15px; }
  .store-referral-card h1 { font-size: 26px; }
}

/* User order history */
.orders-page { background: #f7f5f3; }
.orders-secondary-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.orders-main { padding-top: 36px; }
.orders-heading { min-height: 118px; }
.orders-heading .heading-mark { color: #ef9fb3; font-size: 58px; }
.orders-content-tabs { display: flex; gap: 8px; margin: 16px 0 20px; overflow-x: auto; padding-bottom: 4px; }
.orders-content-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 1px solid #e1dcdd; border-radius: 22px; background: #fff; color: #77727b; font-size: 16px; cursor: pointer; }
.orders-content-tabs button.active { border-color: #1b1a1e; background: #1b1a1e; color: #fff; }
.orders-view-tabs { display: flex; gap: 8px; margin: 16px 0 20px; overflow-x: auto; padding-bottom: 4px; border-bottom: 1px solid #e8e2e2; }
.orders-view-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #77727b; font-size: 16px; cursor: pointer; }
.orders-view-tabs button.active { border-bottom-color: #1b1a1e; color: #1b1a1e; font-weight: 700; }
.orders-view-panel[hidden], .orders-view-panel[aria-hidden="true"] { display: none; }
.orders-tab-panel[hidden], .orders-tab-panel[aria-hidden="true"] { display: none; }
.orders-list { display: grid; gap: 12px; }
.order-item, .order-detail { padding: 20px; border: 1px solid #e8e2e2; border-radius: 16px; background: #fff; }
.order-item-heading, .order-detail-heading, .order-item-meta, .order-detail-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-item-heading strong { min-width: 0; font-size: 18px; line-height: 1.4; }
.order-item-meta { margin-top: 11px; color: #333037; font-size: 16px; }
.order-item-no { margin: 9px 0 0; color: #a09aa1; font-size: 12px; overflow-wrap: anywhere; }
.order-status { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 13px; font-size: 12px; white-space: nowrap; }
.order-status-success { background: #e7f7ed; color: #218c58; }
.order-status-warning { background: #fff0e7; color: #c86d45; }
.order-status-muted { background: #f0eff1; color: #858087; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.order-action { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 13px; border: 1px solid #ded9dc; border-radius: 17px; background: #fff; color: #5e5960; font-size: 13px; cursor: pointer; }
.order-action-primary { border-color: #1b1a1e; background: #1b1a1e; color: #fff; }
.order-action-danger { border-color: #e4a2a4; color: #c5535b; }
.orders-empty { display: grid; justify-items: center; gap: 8px; padding: 72px 20px; border: 1px dashed #d8d1d1; border-radius: 16px; color: #9c969d; text-align: center; }
.orders-empty strong { color: #625d64; font-size: 18px; }
.orders-empty span { font-size: 13px; }
.order-detail { margin-bottom: 20px; }
.order-detail-heading { align-items: flex-start; }
.order-detail-heading h2 { margin: 0; font-size: 21px; }
.order-detail-heading small { display: block; margin-top: 5px; color: #99939a; font-size: 12px; overflow-wrap: anywhere; }
.order-text-link { color: #77727b; font-size: 13px; white-space: nowrap; }
.order-detail-summary { align-items: flex-start; margin-top: 22px; padding-top: 18px; border-top: 1px solid #eee9e9; }
.order-detail-summary > div { display: grid; gap: 6px; min-width: 0; }
.order-detail-summary span { color: #99939a; font-size: 12px; }
.order-detail-summary strong { color: #27242a; font-size: 15px; overflow-wrap: anywhere; }
.order-events { margin-top: 20px; padding-top: 18px; border-top: 1px solid #eee9e9; }
.order-events h3 { margin: 0 0 12px; font-size: 16px; }
.order-events ol { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: #5f5a62; }
.order-events li { padding-left: 4px; }
.order-events li span, .order-events li small { display: block; }
.order-events li small { margin-top: 3px; color: #a09aa1; font-size: 12px; }
.order-refund-note { margin: 10px 0 0; color: #a06e59; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 620px) {
  .orders-secondary-tabs { grid-template-columns: repeat(5, minmax(72px, 1fr)); overflow-x: auto; justify-content: start; }
  .orders-main { padding: 28px 16px 64px; }
  .orders-heading { min-height: 90px; }
  .orders-heading .heading-mark { font-size: 42px; }
  .orders-content-tabs { gap: 6px; margin-top: 8px; }
  .orders-content-tabs button { min-height: 38px; padding: 0 13px; border-radius: 19px; font-size: 13px; }
  .orders-view-tabs { gap: 6px; margin-top: 8px; }
  .orders-view-tabs button { min-height: 38px; padding: 0 13px; font-size: 13px; }
  .order-item, .order-detail { padding: 15px; border-radius: 13px; }
  .order-item-heading strong { font-size: 16px; }
  .order-item-meta { font-size: 14px; }
  .order-detail-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .order-actions { justify-content: flex-start; }
}
