/* buy page first paint: left config, right order; hide original summary */
html.xd-buy .purchase-layout,
.purchase-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) !important;
  align-items: start;
  gap: 24px;
}
html.xd-buy .purchase-layout > .purchase-panel--form,
.purchase-layout > .purchase-panel--form {
  order: 1 !important;
}
html.xd-buy .purchase-layout > .purchase-summary,
.purchase-layout > .purchase-summary {
  order: 2 !important;
  display: block !important;
}
html.xd-buy .purchase-form__header,
html.xd-buy .account-box,
html.xd-buy form.purchase-form > button[type="submit"],
html.xd-buy .purchase-form button.w-full {
  display: none !important;
}
.purchase-layout > .purchase-summary > :not(.xd-order),
html.xd-buy .purchase-summary > :not(.xd-order),
html.xd-buy [data-xd-hide-sum] {
  display: none !important;
}

/* 会员后台左侧导航：跟主栏一样高，避免 sticky 矮块下面露白 */
.member-shell {
  align-items: stretch !important;
}
.member-shell .member-side,
.member-side.member-side {
  background-color: var(--sidebar, #0f1729) !important;
  color: var(--sidebar-foreground, #f8fafc);
  align-self: stretch !important;
  min-height: 100% !important;
  height: auto !important;
  position: relative !important;
  top: auto !important;
}
.member-side .member-nav,
.member-side .member-side__content {
  background: transparent !important;
}
