/* Floating mobile QR — keep outside template {var} processing */
#code,
#code.site-qrcode {
  position: fixed !important;
  left: auto !important;
  right: 16px !important;
  bottom: 48px !important;
  z-index: 10008;
  padding: 0 !important;
  margin: 0;
  background: #fff;
  font-size: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  text-align: center;
  border: 1px solid #eee;
}

#code .code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
}

#code .code-title {
  font-size: 12px;
  color: #333;
  line-height: 1.2;
  white-space: nowrap;
}

#code .close-btn {
  border: 0;
  background: transparent;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
}

#code .close-btn:hover {
  color: #333;
  background: #eee;
}

#code .code-content {
  padding: 10px;
}

#code .code-content img,
#code img {
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 120px;
  border: 0;
}

#code p {
  display: none !important;
}

@media (max-width: 768px) {
  #code {
    display: none !important;
  }
}
