.CurrencyRateChart {
	position: relative;
	font-family: AvenirNextCyr-Medium, Arial, sans-serif;
}

.CurrencyRateChart__Title {
	font-family: AvenirNextCyr-Bold, Arial, sans-serif;
	font-size: 20px;
	color: #3c3e43;
	padding: 20px 20px 16px 20px;
}

.CurrencyRateChart__ChartLoading {
	width: 100%;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	font-family: AvenirNextCyr-Medium, Arial, sans-serif;
	font-size: 14px;
}

.CurrencyRateChart__Container {
	width: 100%;
	position: relative;
	display: flex;
	min-height: 300px;
	padding-top: 10px;
	padding-bottom: 20px;
	border-radius: 12px;
}

.CurrencyRateChart__SideInfoTitle-Container {
	display: flex;
}

.CurrencyRateChart__TooltipPoint {
	fill: #995ce2;
	stroke: white;
	stroke-width: 2;
	r: 6;
}

.CurrencyRateChart__Tooltip {
	background-color: white;
	border-radius: 8px;
	padding: 8px 12px;
	border: 1px solid #7f6be5;
	pointer-events: none;
	white-space: nowrap;
	z-index: 9999 !important;
	filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1));
}

.CurrencyRateChart__SideInfo {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	background-color: white;
	padding: 10px;
	border-radius: 8px;
	max-width: 280px;
}

.CurrencyRateChart__SideInfoTitle {
	font-size: 20px;
	font-family: AvenirNextCyr-Bold, Arial, sans-serif;
	color: #333;
	margin-bottom: 4px;
}

.CurrencyRateChart__SideInfoSubtitle {
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
}

.CurrencyRateChart__UpdatedTitle {
	font-size: 20px;
	font-family: AvenirNextCyr-Bold, Arial, sans-serif;
	margin-bottom: 4px;
	margin-left: 4px;
}

.CurrencyRateChart__UpdatedTitle--green {
	color: #22c55e;
}

.CurrencyRateChart__UpdatedTitle--red {
	color: #ef4444;
}

.CurrencyRateChart__TabsContainer {
	display: flex;
	position: relative;
	padding: 0 20px 30px 4px;
}

.CurrencyRateChart__Tab {
	padding: 8px 16px;
	margin-right: 8px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	color: #333333; /* Более темный цвет текста для лучшего контраста */
	border: none;
	transition: all 0.2s ease;
	text-decoration: none;
	font-weight: 500; /* Немного более жирный шрифт для лучшей читаемости */
}

.CurrencyRateChart__Tab:hover {
	background: #f0f0f0;
	color: #333333; /* Обеспечиваем хороший контраст при наведении */
}

.CurrencyRateChart__Tab--active {
	color: #6429b7; /* Более темный оттенок фиолетового для лучшего контраста */
	text-decoration-color: #6429b7;
	text-underline-offset: 8px;
	text-decoration: underline;
	font-weight: 700;
}

.CurrencyRateChart__CurrencyButtons {
	display: flex;
	padding: 0 20px 14px 20px;
	overflow-x: auto;
	overflow-y: hidden;
	max-width: 100%;
	white-space: nowrap;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 5px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.CurrencyRateChart__CurrencyButtons::-webkit-scrollbar {
	display: none;
}

.CurrencyRateChart__CurrencyButton {
	font-family: AvenirNextCyr-Medium, Arial, sans-serif;
	padding: 6px 12px;
	margin-right: 8px;
	border-radius: 19px;
	font-size: 16px;
	cursor: pointer;
	background: #757575; /* Темнее серый для лучшего контраста с белым текстом */
	color: white;
	border: 1px solid #e0e0e0;
	transition: all 0.2s ease;
	text-decoration: none;
	flex-shrink: 0;
	white-space: nowrap;
	display: inline-block;
}

.CurrencyRateChart__CurrencyButton:hover {
	background: #5d5d5d;
	color: white;
}

.CurrencyRateChart__CurrencyButton--active {
	background: linear-gradient(135deg, #995ce2 0, #7f6be5 100%);
	color: white;
	border-color: #995ce2;
}

.CurrencyRateChart__CurrencyButton--active:hover {
	background: linear-gradient(135deg, #7f6be5, 0, #995ce2 100%);
	color: white;
	border-color: #995ce2;
}

.CurrencyRateChart__CurrencyButtons::-webkit-scrollbar {
	height: 4px;
	background-color: transparent;
}

.CurrencyRateChart__CurrencyButtons::-webkit-scrollbar-thumb {
	background-color: rgba(153, 92, 226, 0.3);
	border-radius: 4px;
}

.CurrencyRateChart__CurrencyButtons::-webkit-scrollbar-thumb:hover {
	background-color: rgba(153, 92, 226, 0.5);
}

.VictoryContainer {
	touch-action: manipulation !important;
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	-khtml-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
}

.VictoryContainer svg,
.VictoryContainer svg * {
	-webkit-touch-callout: none !important;
	-webkit-user-select: none !important;
	-khtml-user-select: none !important;
	-moz-user-select: none !important;
	-ms-user-select: none !important;
	user-select: none !important;
}

tspan {
	font-family: AvenirNextCyr-Medium, Arial, sans-serif;
	font-size: 14px;
}

/* Стилизация адаптивности */
@media (max-width: 768px) {
	.CurrencyRateChart__Container {
		display: block;
		flex-direction: column;
		min-height: 200px;
		padding-bottom: 10px;
	}

	.CurrencyRateChart__SideInfo {
		position: relative;
		top: auto;
		right: auto;
		margin: 0 10px 10px 10px;
		padding: 0;
		max-width: 100%;
	}

	.CurrencyRateChart__SideInfoTitle {
		font-size: 18px;
	}

	.CurrencyRateChart__SideInfoSubtitle {
		font-size: 14px;
	}

	.CurrencyRateChart__UpdatedTitle {
		font-size: 18px;
	}

	.CurrencyRateChart__CurrencyButtons {
		flex-wrap: nowrap;
		padding: 0 10px 5px 10px;
		overflow-x: auto;
	}

	.CurrencyRateChart__CurrencyButton {
		font-size: 14px;
		padding: 5px 10px;
		flex-shrink: 0;
		white-space: nowrap;
	}

	.CurrencyRateChart__TabsContainer {
		flex-wrap: wrap;
		padding: 0 10px 10px 2px;
	}

	.CurrencyRateChart__Tab {
		font-size: 14px;
		padding: 5px 10px;
		margin-bottom: 5px;
	}

	.CurrencyRateChart__Title {
		font-size: 18px;
		padding: 10px 10px 8px 10px;
	}

	tspan {
		font-size: 9px;
	}
}
