.rg-tv-widget {
	--tv-widget-accent-color: #70e6ff;
	--tv-widget-text-color: #f7fbff;
	--tv-widget-background-color: transparent;
	--tv-widget-font-family: Inter, Aptos, "Helvetica Neue", Arial, sans-serif;
	--tv-widget-price-text-color: #f7fbff;
	--tv-widget-positive-color: #39d6a4;
	--tv-widget-negative-color: #ff7f91;
	--tv-widget-positive-area-top-color: rgba(57, 214, 164, .22);
	--tv-widget-positive-area-bottom-color: rgba(57, 214, 164, .04);
	--tv-widget-negative-area-top-color: rgba(255, 127, 145, .2);
	--tv-widget-negative-area-bottom-color: rgba(255, 127, 145, .04);
	--tv-widget-scales-font-color: #9caec5;
	--tv-widget-popup-background-color: #071832;
	--tv-widget-tooltip-text-color: #f7fbff;
	--tv-widget-tooltip-background-color: #0a2041;
	position: relative;
	width: 100%;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	color-scheme: dark;
}

.rg-tv-widget__surface {
	position: relative;
	min-height: 0;
}

.rg-tv-widget__surface,
.rg-tv-widget .tradingview-widget-container,
.rg-tv-widget .tradingview-widget-container__widget,
.rg-tv-widget iframe,
.rg-tv-widget tv-ticker-tape {
	width: 100%;
	height: 100%;
}

.rg-tv-widget iframe {
	display: block;
	border: 0;
}

.rg-tv-widget tv-ticker-tape {
	display: block;
}

.rg-tv-widget__embed {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.rg-tv-widget.is-ready .rg-tv-widget__embed {
	opacity: 1;
}

.rg-tv-widget__fallback {
	position: absolute;
	inset: 0;
	min-height: inherit;
	padding: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background:
		linear-gradient(rgba(112, 230, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(112, 230, 255, .045) 1px, transparent 1px),
		#020c20;
	background-size: 64px 64px;
}

.rg-tv-widget__fallback strong {
	color: #f7fbff;
	font-size: 24px;
	line-height: 1.2;
}

.rg-tv-widget__fallback small {
	max-width: 430px;
	margin-top: 10px;
	color: #9caec5;
	font-size: 14px;
	line-height: 1.5;
}

.rg-tv-widget__pulse {
	width: 54px;
	height: 54px;
	margin-bottom: 22px;
	border: 1px solid rgba(112, 230, 255, .38);
	border-radius: 16px;
	background: radial-gradient(circle, rgba(112, 230, 255, .28), transparent 62%);
	box-shadow: 0 0 32px rgba(112, 230, 255, .12);
	animation: rg-tv-widget-pulse 1.4s ease-in-out infinite alternate;
}

.rg-tv-widget.has-error .rg-tv-widget__pulse {
	animation: none;
	border-color: rgba(255, 184, 107, .55);
	background: rgba(255, 184, 107, .08);
}

@keyframes rg-tv-widget-pulse {
	to { opacity: .45; transform: scale(.92); }
}

.rg-tv-widget__source {
	margin: 0;
	padding: 8px 14px;
	border-top: 1px solid rgba(112, 230, 255, .1);
	background: #020c20;
	color: #788ba7;
	font-size: 14px;
	line-height: 1.5;
	text-align: right;
}

.rg-tv-widget__source a {
	color: #70e6ff;
	text-decoration: none;
}

.rg-tv-widget__source a:hover,
.rg-tv-widget__source a:focus-visible {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.rg-tv-widget--ticker-tape,
.rg-tv-widget--ticker-tape .rg-tv-widget__surface {
	height: 100%;
}

.rg-tv-widget--ticker-tape .rg-tv-widget__fallback {
	min-height: 100%;
	padding: 10px 20px;
	align-items: flex-start;
	text-align: left;
	background: transparent;
}

.rg-tv-widget--ticker-tape .rg-tv-widget__fallback strong,
.rg-tv-widget--ticker-tape .rg-tv-widget__pulse,
.rg-tv-widget--ticker-tape .rg-tv-widget__source {
	display: none;
}

.rg-tv-widget--advanced-chart { height: 643px; }
.rg-tv-widget--forex-table { height: 443px; }
.rg-tv-widget--economic-calendar { height: 523px; }

@media (max-width: 640px) {
	.rg-tv-widget--advanced-chart { height: 483px; }
	.rg-tv-widget__fallback { padding: 28px 20px; }
	.rg-tv-widget__source { text-align: left; }
}
