/* China's servers: their submenu in the region choice, and the banner asking for help with the data.
   No color-mix(): the League client's Chromium 108 does not support it. */

/* "CN" and its servers are buttons (region.js), styled as the region list's other rows. */
.region-dropdown .china-region-toggle,
.region-dropdown .china-region-server {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
  line-height: inherit;
  text-align: left;
  white-space: nowrap;
}

.region-dropdown .china-region-toggle {
  justify-content: space-between;
  gap: 10px;
}

.region-dropdown .china-region-toggle:hover,
.region-dropdown .china-region-server:hover,
.region-dropdown .china-region-toggle:focus-visible,
.region-dropdown .china-region-server:focus-visible {
  background: var(--highlight-color);
  outline: none;
}

.region-dropdown .china-region-toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(180deg);
}

.china-region-menu {
  border-left: 2px solid var(--primary-color);
  background: rgba(0, 0, 0, 0.25);
}

.china-region-menu[hidden] {
  display: none;
}

.region-dropdown .china-region-server {
  padding-left: 22px;
}

.region-dropdown .china-region-server[aria-current="true"] {
  color: var(--primary-color);
}

/* The banner asking for the collector (index.html, china-banner.js): one of the site's own banners
   (.season-live-banner: the red-tinted strip with bold centred text and an x), taller than the rotating ones, which
   sit below it: the request, then a row with the Download button, the source link and how complete the server's
   data is, as words and a bar. */
.china-banner {
  row-gap: 7px;
  padding: 8px 42px 9px;
}

.china-banner[hidden],
.china-banner [hidden] {
  display: none;
}

.china-banner-text {
  margin: 0;
  line-height: 1.45;
}

.china-banner-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
}

/* The site's primary button, as Search and Login. */
.china-banner-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.45em 1.3em;
  border-radius: 4px;
  background: var(--secondary-color);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.china-banner-download svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.china-banner-download:hover,
.china-banner-download:focus-visible {
  transform: translateY(-1px);
  background: #b8544c;
  box-shadow: 0 5px 15px rgba(166, 75, 68, 0.45);
}

.china-banner-source {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.china-banner-source:hover,
.china-banner-source:focus-visible {
  color: #fff;
}

.china-banner-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.china-banner-goal,
.china-banner-too-few {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.china-banner-bar {
  width: 220px;
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.china-banner-bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--primary-color);
}

/* The banner is taller than the site's others, so its x sits in the corner rather than half way down. */
.china-banner .china-banner-close {
  top: 4px;
  transform: none;
}

/* A phone: the bar takes the rest of its row. */
@media (max-width: 700px) {
  .china-banner {
    padding: 8px 34px 9px 12px;
  }

  .china-banner-progress {
    flex: 1 1 100%;
    justify-content: center;
  }

  .china-banner-bar {
    flex: 1 1 auto;
    width: auto;
    max-width: 240px;
  }
}

/* The Pages "Look up" tip hangs under the player search row on narrow screens (pages-pick.js), right over this banner:
   on China's servers' pages it is not shown there. */
body.china-region .pages-inline .pages-pick-hint {
  display: none;
}

/* What China's servers do not have: a Bravery queue, and live games (no spectator data). */
body.china-region .filter-preset-btn[data-filter-preset="bravery"],
body.china-region .profile-modal[data-player-region^="cn_"] .tab-btn[data-tab="live-game"] {
  display: none;
}

/* MAX passes in the purchase window, for buyers in China (donate.js mountMaxPasses): a heading where the passes or
   the subscription follow the other, one button per pass, where the buyer stands, and the terms. */
.china-max-heading {
  margin: 16px 0 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-align: center;
  text-transform: uppercase;
}

.china-max-passes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.china-max-passes:empty {
  display: none;
}

/* The passes sit right under the section's title, or the heading above them. */
.china-max-passes .max-pass-option-btn {
  margin: 0;
  padding: 12px 15px;
}

.china-max-passes .upgrade-text {
  width: auto;
  text-align: left;
}

.china-max-passes .price-display {
  padding: 0;
}

.china-max-status,
.china-max-terms {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.china-max-status:empty {
  display: none;
}

/* "Login needed", on the MAX passes and on the card packs: buying needs an account to add the purchase to. */
.china-login-needed {
  padding: 6px 10px;
  border-left: 3px solid #f7c843;
  background: rgba(247, 200, 67, 0.1);
  color: #f7c843 !important;
  opacity: 1 !important;
}

@media (max-width: 480px) {
  .china-max-passes {
    grid-template-columns: 1fr;
  }
}

.china-max-terms:empty {
  display: none;
}

