.nyan-pie-chart-wrap {
    width: 100%;
    max-width: 100%;
    margin: 1.2em 0;
}

.nyan-pie-chart-title {
    margin: 0 0 12px;
}

.nyan-pie-chart-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: min(100%, 760px);
    margin: 0;
    aspect-ratio: 1 / 1;
}

.nyan-pie-chart-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.nyan-pie-chart-legend {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    max-width: min(100%, 760px);
}

.nyan-pie-chart-legend li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.nyan-pie-chart-legend-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nyan-pie-chart-swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex: 0 0 12px;
}

.nyan-pie-chart-label {
    font-weight: 600;
}

.nyan-pie-chart-value {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .nyan-pie-chart-canvas-wrap,
    .nyan-pie-chart-legend {
        max-width: 100%;
    }
}
