/* Privilege shop: aligned sidebar and taller cards. */
#b16Store > .b16-store__layout {
  --privilege-card-height: 580px;
  display: grid !important;
  grid-template-columns: minmax(280px, 30%) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
}
#b16Store .b16-store__sidebar {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 8px;
  min-width: 0;
}
#b16Store .b16-store__sidebar > .b16-store__servers {
  box-sizing: border-box !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  flex-shrink: 0;
}
#b16Store .b16-store__help {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  flex: 1 0 auto;
  gap: 8px;
}
#b16Store .b16-store__help-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid rgba(245,197,24,.5);
  border-radius: 13px;
  background: linear-gradient(145deg, #17171f, #0e0e13);
}
#b16Store .b16-store__help-title {
  margin: 0 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 18px;
}
#b16Store .b16-store__help-description {
  margin: 0 !important;
  color: #f5c518 !important;
  font-size: 11px;
  line-height: 14px;
}
#b16Store .b16-store__help-code {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 7px;
  border: 1px solid rgba(245,197,24,.22);
  border-radius: 7px;
  background: rgba(0,0,0,.35);
  color: #ffd54a;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 11px;
  line-height: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
#b16Store .b16-store__main {
  display: flex;
  min-width: 0;
}
#b16Store #b16StoreGrid {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  flex: 1 1 auto;
  align-items: stretch !important;
  align-content: stretch;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
#b16Store #b16StoreGrid > .b16-store__card {
  box-sizing: border-box;
  height: auto !important;
  min-height: var(--privilege-card-height) !important;
  max-height: none !important;
}
@media (max-width: 1199px) and (min-width: 992px) {
  #b16Store > .b16-store__layout { grid-template-columns: 280px minmax(0,1fr) !important; }
  #b16Store #b16StoreGrid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 991.98px) {
  #b16Store > .b16-store__layout { grid-template-columns: minmax(0,1fr) !important; }
  #b16Store .b16-store__help { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; }
  #b16Store .b16-store__help-card:last-child { grid-column: 1 / -1; }
  #b16Store #b16StoreGrid > .b16-store__card { min-height: 0 !important; }
}
@media (max-width: 575.98px) {
  #b16Store .b16-store__help { grid-template-columns: minmax(0,1fr); }
}

/* Help and catalogue share the full page width; server selection is in checkout. */
html body.gx-body #b16Store > .b16-store__layout {
  grid-template-columns: minmax(0,1fr) !important;
  gap: 18px !important;
}
html body.gx-body #b16Store .b16-store__help {
  grid-template-columns: repeat(5,minmax(0,1fr));
  grid-template-rows: none;
  gap: 12px;
  width: 100%;
}
html body.gx-body #b16Store .b16-store__help-card { min-height: 116px; }
html body.gx-body #b16Store #b16StoreGrid > .b16-store__card { min-height: 0 !important; }
@media(max-width:1199.98px) {
  html body.gx-body #b16Store .b16-store__help { grid-template-columns: repeat(2,minmax(0,1fr)); }
  html body.gx-body #b16Store .b16-store__help-card:last-child { grid-column: 1 / -1; }
}
@media(max-width:767.98px) {
  html body.gx-body #b16Store .b16-store__help { grid-template-columns: minmax(0,1fr); gap: 8px; }
  html body.gx-body #b16Store .b16-store__help-card { min-height: 0; padding: 10px 12px; }
  html body.gx-body #b16Store #b16StoreGrid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
  html body.gx-body #b16Store #b16StoreGrid > .b16-store__card { padding: 9px !important; gap: 8px !important; border-radius: 12px !important; }
  html body.gx-body #b16Store #b16StoreGrid .b16-store__card-head { font-size: 14px !important; padding-bottom: 10px !important; }
  html body.gx-body #b16Store #b16StoreGrid .b16-store__card-media { height: auto !important; aspect-ratio: 1200/1700 !important; margin: 0 !important; }
  html body.gx-body #b16Store #b16StoreGrid .b16-store__card-price { font-size: 13px !important; padding: 7px 4px !important; }
  html body.gx-body #b16Store #b16StoreGrid .b16-store__card-cart { font-size: 13px !important; min-height: 40px !important; height: 40px !important; }
}
