.chart-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, #ffffff 0, #f8fbff 52%, #eef7ff 100%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.chart-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chart-loader-lens {
  width: 112px;
  height: 112px;
  overflow: visible;
}

.chart-loader-track,
.chart-loader-arc {
  fill: none;
  stroke-width: 5;
}

.chart-loader-track {
  stroke: rgba(4, 102, 200, 0.12);
}

.chart-loader-arc {
  stroke: url(#chart-lens-loader-gradient);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(45deg);
  transform-origin: 26px 26px;
  animation: chart-lens-draw 0.75s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.chart-loader-handle {
  fill: none;
  stroke: url(#chart-lens-loader-gradient);
  stroke-width: 8.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: chart-lens-handle 0.3s ease 0.05s forwards;
}

.chart-fullscreen-chart,
.tv-chart-full {
  position: relative;
}

@keyframes chart-lens-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes chart-lens-handle {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .chart-loader-arc,
  .chart-loader-handle {
    animation: none;
    stroke-dashoffset: 0;
  }
}
