/**
 * Pie Chart Tooltip styles section
 */
.pie-chart__chart-container {
	position: relative;

	.pie-chart__chart-drawing {
		max-width: unset;
	}
}

.pie-chart__tooltip {
	display: flex;
	align-items: center;
	visibility: hidden;
	box-sizing: border-box;
	position: absolute;
	width: 244px;
	background-color: var(--studio-gray-100);
	color: var(--studio-white);
	padding: 16px 24px;
	border-radius: 4px;
	pointer-events: none;

	&::after {
		content: "";
		position: absolute;
		top: -12px;
		right: 30px;
		border-top: 7px solid transparent;
		border-bottom: 7px solid var(--studio-gray-100);
		border-left: 7px solid transparent;
		border-right: 7px solid transparent;
	}

	& > svg {
		margin-right: 8px;
	}

	.pie-chart__tooltip-content {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-family: Inter, $sans;
		font-size: $font-body-small;
		font-weight: 500;
		line-height: 20px;
	}
}
/**
 * Pie Chart Tooltip styles section
 */

.pie-chart__placeholder,
.pie-chart {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pie-chart__placeholder-drawing,
.pie-chart__chart-drawing {
	max-width: 40%;
}
.pie-chart__placeholder-title,
.pie-chart__title {
	margin-top: 15px;
	font-size: $font-body;
	font-weight: 600;
}

.pie-chart__chart-section-0,
.pie-chart__legend-sample-0 {
	fill: var(--color-primary-dark);
}

.pie-chart__chart-section-1,
.pie-chart__legend-sample-1 {
	fill: var(--color-accent);
}

.pie-chart__chart-section-2,
.pie-chart__legend-sample-2 {
	fill: var(--color-primary-light);
}

.pie-chart__chart-drawing-empty {
	fill: var(--color-neutral-light);
}

.pie-chart__legend {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: wrap;

	.legend-item:not(:first-child) {
		margin-top: 20px;
	}
}

.pie-chart__placeholder-legend {
	display: flex;
	flex-direction: column;
	align-items: flex-start;

	.legend-item__placeholder:not(:first-child) {
		margin-top: 20px;
	}
}

.pie-chart__placeholder-legend-drawing {
	height: 12px;
	width: 12px;
	margin-right: 7px;
}

.pie-chart__placeholder-title {
	@include placeholder();
}

.pie-chart__placeholder-drawing-element {
	@include placeholder();
	fill: var(--color-neutral-0);
}
