/* Language switch + cookie consent (shared across themes) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  margin-left: auto;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  opacity: 0.65;
  transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.lang-switch button:hover {
  opacity: 1;
}

.lang-switch button.on {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}

.nv-header .lang-switch,
.studio-header .lang-switch,
.neo-header .lang-switch {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nv-header .lang-switch button.on,
.studio-header .lang-switch button.on,
.neo-header .lang-switch button.on {
  background: rgba(255, 255, 255, 0.18);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  margin: 0;
  padding: 18px 24px;
  border-radius: 0;
  background: rgba(18, 20, 26, 0.96);
  color: #f4f5f7;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner > p {
  margin: 0;
  flex: 1;
  max-width: 920px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.95;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.cookie-banner button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 11px 22px;
  border-radius: 999px;
  line-height: 1;
}

.cookie-banner .cookie-accept {
  background: #f4f5f7;
  color: #12141a;
  min-width: 96px;
}

.cookie-banner .cookie-accept:hover {
  background: #fff;
}

.qq-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #12b7f5;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 183, 245, 0.38);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qq-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 183, 245, 0.48);
}

.qq-float svg {
  width: 30px;
  height: 30px;
  display: block;
}

body:has(.cookie-banner.is-visible) .qq-float {
  bottom: 108px;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 16px;
  }

  .cookie-banner .cookie-actions {
    width: 100%;
    margin-left: 0;
  }

  .cookie-banner .cookie-accept {
    width: 100%;
  }

  body:has(.cookie-banner.is-visible) .qq-float {
    bottom: 168px;
  }

  .lang-switch {
    order: 3;
  }
}
