/* QRJam webplayer language switcher */
.qrjam-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}

.qrjam-lang-switcher button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: rgba(255,255,255,.58);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  cursor: pointer;
}

.qrjam-lang-switcher button.active {
  background: var(--wp-accent, #ff3d8a);
  color: #fff;
}

.wpa-sub,
.wpa-source-pill {
  display: none !important;
}

@media (max-width: 640px) {
  .qrjam-lang-switcher {
    gap: 2px;
    padding: 3px;
  }

  .qrjam-lang-switcher button {
    padding: 6px 8px;
    font-size: 9px;
  }
}

/* QRJam language switcher - main website style */
.qrjam-lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;

  width: auto !important;
  min-width: 104px !important;
  height: 34px !important;
  padding: 3px !important;

  border-radius: 999px !important;
  border: 1px solid rgba(255, 61, 138, .42) !important;
  background: rgba(18, 10, 34, .72) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 10px 26px rgba(0,0,0,.22),
    0 0 24px rgba(255,61,138,.10) !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
}

.qrjam-lang-switcher button {
  appearance: none !important;
  border: 0 !important;
  outline: 0 !important;

  height: 26px !important;
  min-width: 48px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;

  background: transparent !important;
  color: rgba(255,255,255,.55) !important;

  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .10em !important;
  line-height: 26px !important;
  text-align: center !important;

  cursor: pointer !important;
  transition:
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    opacity .18s ease !important;
}

.qrjam-lang-switcher button.active {
  background: linear-gradient(180deg, rgba(255,61,138,.26), rgba(255,61,138,.13)) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(255,61,138,.30) inset,
    0 0 18px rgba(255,61,138,.18) !important;
}

.qrjam-lang-switcher button:not(.active):hover {
  color: rgba(255,255,255,.82) !important;
}

@media (max-width: 640px) {
  .qrjam-lang-switcher {
    min-width: 102px !important;
    height: 34px !important;
    padding: 3px !important;
  }

  .qrjam-lang-switcher button {
    min-width: 47px !important;
    height: 26px !important;
    padding: 0 12px !important;
    font-size: 10px !important;
    line-height: 26px !important;
  }
}

/* QRJam language switcher - final website match */
.qrjam-lang-switcher {
  min-width: 108px !important;
  height: 33px !important;
  padding: 3px !important;
  gap: 0 !important;

  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  background: rgba(13, 12, 28, .72) !important;

  box-shadow:
    0 0 0 1px rgba(255, 61, 138, .12) inset,
    0 8px 22px rgba(0,0,0,.18) !important;

  backdrop-filter: blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
}

.qrjam-lang-switcher button {
  min-width: 51px !important;
  height: 25px !important;
  padding: 0 13px !important;

  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255,255,255,.42) !important;

  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  line-height: 25px !important;
}

.qrjam-lang-switcher button.active {
  background: rgba(255, 61, 138, .17) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(255, 61, 138, .33) inset,
    0 0 12px rgba(255, 61, 138, .10) !important;
}

.qrjam-lang-switcher button:not(.active):hover {
  color: rgba(255,255,255,.68) !important;
}

@media (max-width: 640px) {
  .qrjam-lang-switcher {
    min-width: 108px !important;
    height: 33px !important;
  }

  .qrjam-lang-switcher button {
    min-width: 51px !important;
    height: 25px !important;
    line-height: 25px !important;
    font-size: 9px !important;
  }
}

/* QRJam language switcher - closer to main website */
.qrjam-lang-switcher {
  min-width: 122px !important;
  height: 36px !important;
  padding: 3px !important;
  gap: 0 !important;

  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(9, 7, 19, .86) !important;

  box-shadow:
    0 0 0 1px rgba(255, 61, 138, .16) inset,
    0 8px 22px rgba(0,0,0,.20) !important;

  backdrop-filter: blur(14px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
}

.qrjam-lang-switcher button {
  min-width: 58px !important;
  height: 28px !important;
  padding: 0 15px !important;

  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255,255,255,.42) !important;

  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  line-height: 28px !important;
}

.qrjam-lang-switcher button.active {
  background: rgba(255, 61, 138, .18) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(255, 61, 138, .38) inset,
    0 0 10px rgba(255, 61, 138, .10) !important;
}

@media (max-width: 640px) {
  .qrjam-lang-switcher {
    min-width: 118px !important;
    height: 36px !important;
  }

  .qrjam-lang-switcher button {
    min-width: 56px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 10px !important;
  }
}

/* QRJam webplayer language switcher - use same structure as main website */
.wpa-head .topbar-lang-switch.qrjam-lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;

  min-width: 112px !important;
  width: 112px !important;
  height: 34px !important;
  padding: 3px !important;
  margin-left: auto !important;

  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(8, 7, 18, .86) !important;

  box-shadow:
    0 0 0 1px rgba(255, 61, 138, .14) inset,
    0 10px 24px rgba(0,0,0,.22) !important;

  backdrop-filter: blur(14px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(135%) !important;
}

.wpa-head .topbar-lang-switch.qrjam-lang-switcher .lang-btn {
  appearance: none !important;
  border: 0 !important;
  outline: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 53px !important;
  min-width: 53px !important;
  height: 26px !important;
  padding: 0 !important;
  margin: 0 !important;

  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255,255,255,.42) !important;

  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0 !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;

  cursor: pointer !important;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease !important;
}

.wpa-head .topbar-lang-switch.qrjam-lang-switcher .lang-btn.active {
  background: rgba(255, 61, 138, .18) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(255, 61, 138, .38) inset,
    0 0 10px rgba(255, 61, 138, .10) !important;
}

.wpa-head .topbar-lang-switch.qrjam-lang-switcher .lang-btn:not(.active):hover {
  color: rgba(255,255,255,.70) !important;
}

.wpa-head .topbar-lang-switch.qrjam-lang-switcher .flag-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  height: auto !important;

  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .08em !important;
  color: currentColor !important;
}

.wpa-head .topbar-lang-switch.qrjam-lang-switcher .flag-nl::before {
  content: "NL";
}

.wpa-head .topbar-lang-switch.qrjam-lang-switcher .flag-en::before {
  content: "EN";
}

@media (max-width: 640px) {
  .wpa-head .topbar-lang-switch.qrjam-lang-switcher {
    width: 112px !important;
    min-width: 112px !important;
    height: 34px !important;
    padding: 3px !important;
  }

  .wpa-head .topbar-lang-switch.qrjam-lang-switcher .lang-btn {
    width: 53px !important;
    min-width: 53px !important;
    height: 26px !important;
  }

  .wpa-head .topbar-lang-switch.qrjam-lang-switcher .flag-icon {
    font-size: 10px !important;
  }
}

/* QRJam language switcher - slightly bigger */
.wpa-head .topbar-lang-switch.qrjam-lang-switcher {
  width: 126px !important;
  min-width: 126px !important;
  height: 38px !important;
  padding: 4px !important;
}

.wpa-head .topbar-lang-switch.qrjam-lang-switcher .lang-btn {
  width: 59px !important;
  min-width: 59px !important;
  height: 30px !important;
}

.wpa-head .topbar-lang-switch.qrjam-lang-switcher .flag-icon {
  font-size: 11px !important;
  letter-spacing: .09em !important;
}

@media (max-width: 640px) {
  .wpa-head .topbar-lang-switch.qrjam-lang-switcher {
    width: 122px !important;
    min-width: 122px !important;
    height: 37px !important;
    padding: 4px !important;
  }

  .wpa-head .topbar-lang-switch.qrjam-lang-switcher .lang-btn {
    width: 57px !important;
    min-width: 57px !important;
    height: 29px !important;
  }

  .wpa-head .topbar-lang-switch.qrjam-lang-switcher .flag-icon {
    font-size: 11px !important;
  }
}
