/* QR modal + minor fixes on top of TradingView official CSS */
.qr-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
}
.qr-mask[hidden] {
  display: none !important;
}
.qr-modal {
  width: min(420px, 100%);
  background: #fff;
  color: #111;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.qr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #666;
  z-index: 2;
  cursor: pointer;
}
.qr-frame {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
  background: #fff;
  transition: height 0.15s ease;
}
.tv-header__language-button {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.tv-lang-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: currentColor;
  letter-spacing: 0.02em;
  user-select: none;
}
@media (max-width: 768px) {
  .qr-frame {
    height: 380px;
  }
}

/* Hide market summary if any SSR fragment remains */
body[data-site-mode="B"] [data-an-section-id="main"],
body[data-site-mode="B"] #main-market-summary,
body[data-site-mode="B"] [data-an-widget-id="main-market-summary"] {
  display: none !important;
}
