/*
 * White Label styling.
 *
 * The main TradingView logo in the chart area is drawn on the chart canvas and
 * is hidden via the "widget_logo" and "link_to_tradingview" disabled_features
 * in each page's widget configuration (this cannot be done with CSS alone).
 *
 * The rules below are a defensive net that hides any residual TradingView
 * attribution, link, or copyright elements the library may inject as DOM.
 *
 * Custom brand assets (logo image, colors, fonts) will be added here later.
 */

.tradingview-widget-copyright,
.tv-attribution,
.tv-copyright,
#tvattribution,
.trademark,
[class*="tv-copyright"],
[class*="tradingsymbols-copyright"],
[class*="tv-credit"],
[class*="credit-logo"],
[data-name="powered-by"],
[data-name="powered_by"],
[data-name="tradingview-logo"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/*
 * Containers that render a TradingView watermark or "powered by TradingView"
 * text at the bottom of the chart.
 */
[class*="tradingview-watermark"],
[class*="watermark"] svg [id*="TradingView"],
svg [id*="tradingview-logo"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/*
 * Scoped to the widget container so external links owned by the host page are
 * not affected. Only anchors pointing at the TradingView domain in the chart
 * frame are considered attribution and are disabled.
 */
#tv_chart_container a[href*="tradingview.com"],
#tv_chart_container [href*="tradingview.com/logos"],
#tv_chart_container [href*="tradingview.com/chart"] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
