/* Shop layout update: outer server panels 154 x 104 px. */
body.gx-body :is(.rcon-shop-server-panel,.b16-store__servers,.b16-skins__servers,.gx-anew__servers) {
  box-sizing: border-box !important;
  width: 400px !important;
  min-width: 400px !important;
  max-width: 400px !important;
  height: 94px !important;
  min-height: 94px !important;
  max-height: 94px !important;
  padding: 8px !important;
  margin: 0 !important;
  border: 1px solid rgba(245,197,24,.55) !important;
  border-radius: 13px !important;
}
body.gx-body :is(.rcon-shop-server-panel__title,.b16-store__servers-title,.b16-skins__servers-title,.gx-anew__servers-title) {
  margin: 0 0 7px 2px !important;
  font-size: 9px !important;
  line-height: 11px !important;
  gap: 5px !important;
}
body.gx-body :is(.rcon-shop-server-list,.b16-store__server-list,.b16-skins__server-list,.gx-anew__server-list) {
  display: flex;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  height: 67px;
  max-height: 67px !important;
  overflow-y: auto;
  scrollbar-width: thin;
}
body.gx-body .b16-store__server-list[hidden] { display: none !important; }
body.gx-body :is(.rcon-shop-server-btn,.b16-store__server-btn,.b16-skins__server-btn,.gx-anew__server-btn) {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 31px !important;
  min-height: 31px !important;
  flex: 0 0 31px !important;
  padding: 7px !important;
  gap: 7px !important;
  border-radius: 9px !important;
  font-size: 10px !important;
  line-height: 12px !important;
  text-align: left;
}
body.gx-body :is(.rcon-shop-server-btn,.b16-store__server-btn,.b16-skins__server-btn,.gx-anew__server-btn) span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body.gx-body :is(.rcon-shop-server-btn,.b16-store__server-btn,.b16-skins__server-btn,.gx-anew__server-btn) i {
  flex-shrink: 0;
  font-size: 14px !important;
}
body.gx-body .b16-store__servers .gx-server-select__toggle {
  box-sizing: border-box;
  height: 50px;
  min-height: 50px;
  padding: 8px 10px;
  gap: 8px;
  font-size: 11px;
  line-height: 18px;
}
body.gx-body .rcon-shop-server-panel__hint { display: none; }
@media (min-width: 992px) {
  body.gx-body :is(.b16-store__layout,.b16-skins__layout,.gx-anew__layout,.rcon-shop-product-layout) {
    grid-template-columns: 400px minmax(0,1fr) !important;
    gap: 12px !important;
  }
}

/* Center the shop hub and case catalogue like the case opening page. */
.col-lg-9:has(.gx-shop-hub),
.col-lg-9:has(:is(.gx-cases-store, .gx-anew, .gx-pshop)) {
  flex: 0 0 calc(100% - 420px) !important;
  max-width: calc(100% - 420px) !important;
  width: calc(100% - 420px) !important;
  margin-left: 210px !important;
  margin-right: 210px !important;
}
.col-lg-9:has(.gx-shop-hub) + .col-lg-3,
.col-lg-9:has(:is(.gx-cases-store, .gx-anew, .gx-pshop)) + .col-lg-3 {
  display: none !important;
}
@media (max-width: 991px) {
  .col-lg-9:has(.gx-shop-hub),
  .col-lg-9:has(:is(.gx-cases-store, .gx-anew, .gx-pshop)) {
    flex-basis: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    width: calc(100% - 24px) !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}
/* Hide the case catalogue introduction. */
.gx-cases-store > .gx-cases-store__info { display: none !important; }
