@keyframes lovely-chart--animation-shake {
  0% {
    transform: translateX(-3px);
  }
  16.66% {
    transform: translateX(3px);
  }
  33.33% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  66.66% {
    transform: translateX(-1px);
  }
  83.33% {
    transform: translateX(1px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes lovely-chart--animation-fadeIn {
  from {
    transform: scale3d(0.5, 0.5, 1);
    opacity: 0;
  }
  40% {
    transform: scale3d(0.75, 0.75, 1);
  }
  to {
    transform: scale3d(1, 1, 1);
    opacity: 1;
  }
}

@keyframes lovely-chart--animation-fadeOut {
  from {
    transform: scale3d(1, 1, 1);
    opacity: 1;
  }
  60% {
    transform: scale3d(0.75, 0.75, 1);
  }
  to {
    transform: scale3d(0.5, 0.5, 1);
    opacity: 0;
  }
}

@keyframes lovely-chart--animation-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.lovely-chart--transition-container {
  position: relative;
}

.lovely-chart--transition {
  position: absolute;
  top: 0;
  bottom: 0;
}

.lovely-chart--transition.lovely-chart--position-top {
  transform-origin: top left;
}

.lovely-chart--transition.lovely-chart--position-top.lovely-chart--position-right {
  transform-origin: top right;
}

.lovely-chart--transition.lovely-chart--position-bottom {
  transform-origin: bottom left;
}

.lovely-chart--transition.lovely-chart--position-bottom.lovely-chart--position-right {
  transform-origin: bottom right;
}

.lovely-chart--transition.lovely-chart--position-left {
  left: 0;
}

.lovely-chart--transition.lovely-chart--position-right {
  right: 0;
}

.lovely-chart--transition.lovely-chart--state-hidden {
  opacity: 0;
}

.lovely-chart--state-animated {
  animation-duration: 200ms;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.lovely-chart--state-animated.lovely-chart--state-hidden {
  animation-name: lovely-chart--animation-fadeOut;
  animation-duration: 300ms;
}

.lovely-chart--state-animated:not(.lovely-chart--state-hidden) {
  animation-name: lovely-chart--animation-fadeIn;
}

.lovely-chart--container {
  --background-color: #FFFFFF;
  --text-color: #222222;
  --minimap-mask: rgba(226, 238, 249, 0.6);
  --minimap-slider: #C0D1E1;
  --grid-lines: rgba(24, 45, 59, 0.1);
  --zoom-out-text: #108BE3;
  --tooltip-background: #FFFFFF;
  --tooltip-arrow: #D2D5D7;

  -webkit-user-select: none;
  user-select: none;

  position: relative;

  overflow: hidden;

  font: 300 13px "-apple-system", "HelveticaNeue", Helvetica, Arial, sans-serif;
  color: #222222;
  text-align: left;

  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html.theme-dark .lovely-chart--container {
  --background-color: #242F3E;
  --text-color: #FFFFFF;
  --minimap-mask: rgba(48, 66, 89, 0.6);
  --minimap-slider: #56626D;
  --grid-lines: rgba(255, 255, 255, 0.1);
  --zoom-out-text: #48AAF0;
  --tooltip-background: #1C2533;
  --tooltip-arrow: #D2D5D7;
}

.lovely-chart--container > canvas,
.lovely-chart--container .lovely-chart--tooltip canvas {
  margin-top: 10px;
}

.lovely-chart--container-type-pie.lovely-chart--state-animating > canvas {
  transform-origin: center calc(50% - 7.5px);
}

.lovely-chart--container-type-pie.lovely-chart--state-animating.lovely-chart--state-zoomed-in > canvas {
  animation: lovely-chart--animation-pie-transition-in 0.6s;
  animation-timing-function: ease-out;
}

.lovely-chart--container-type-pie.lovely-chart--state-animating:not(.lovely-chart--state-zoomed-in) > canvas {
  animation: lovely-chart--animation-pie-transition-out 0.55s;
  animation-timing-function: ease-in;
}

@keyframes lovely-chart--animation-pie-transition-in {
  0% {
    transform: rotate(-360deg);
    -webkit-clip-path: circle(80% at center calc(50% - 7.5px));
    clip-path: circle(80% at center calc(50% - 7.5px));
  }
  25% {
    transform: rotate(-360deg);
    -webkit-clip-path: circle(32% at center calc(50% - 7.5px));
    clip-path: circle(32% at center calc(50% - 7.5px));
  }
  75% {
    transform: rotate(0);
    -webkit-clip-path: circle(32% at center calc(50% - 7.5px));
    clip-path: circle(32% at center calc(50% - 7.5px));
  }
}

@media (max-width: 480px) {
  @keyframes lovely-chart--animation-pie-transition-in {
    0% {
      transform: rotate(-360deg);
      -webkit-clip-path: circle(80% at center calc(50% - 7.5px));
      clip-path: circle(80% at center calc(50% - 7.5px));
    }
    25% {
      transform: rotate(-360deg);
      -webkit-clip-path: circle(40% at center calc(50% - 7.5px));
      clip-path: circle(40% at center calc(50% - 7.5px));
    }
    75% {
      transform: rotate(0);
      -webkit-clip-path: circle(40% at center calc(50% - 7.5px));
      clip-path: circle(40% at center calc(50% - 7.5px));
    }
  }
}

@keyframes lovely-chart--animation-pie-transition-out {
  0% {
    transform: rotate(360deg);
    -webkit-clip-path: circle(32% at center calc(50% - 7.5px));
    clip-path: circle(32% at center calc(50% - 7.5px));
  }
  50% {
    transform: rotate(0);
    -webkit-clip-path: circle(32% at center calc(50% - 7.5px));
    clip-path: circle(32% at center calc(50% - 7.5px));
  }
  75% {
    transform: rotate(0);
    -webkit-clip-path: circle(80% at center calc(50% - 7.5px));
    clip-path: circle(80% at center calc(50% - 7.5px));
  }
}

@media (max-width: 480px) {
  @keyframes lovely-chart--animation-pie-transition-out {
    0% {
      transform: rotate(360deg);
      -webkit-clip-path: circle(40% at center calc(50% - 7.5px));
      clip-path: circle(40% at center calc(50% - 7.5px));
    }
    50% {
      transform: rotate(0);
      -webkit-clip-path: circle(40% at center calc(50% - 7.5px));
      clip-path: circle(40% at center calc(50% - 7.5px));
    }
    75% {
      transform: rotate(0);
      -webkit-clip-path: circle(80% at center calc(50% - 7.5px));
      clip-path: circle(80% at center calc(50% - 7.5px));
    }
  }
}

.lovely-chart--spinner {
  position: relative;
  width: 16px;
  height: 16px;
}

.lovely-chart--spinner::after {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='512px' height='512px' viewBox='0 0 16 16'%3E%3Cg%3E%3Cpath fill='%23D2D5D7' d='M9.9 0.2l-0.2 1c3 0.8 5.3 3.5 5.3 6.8 0 3.9-3.1 7-7 7s-7-3.1-7-7c0-3.3 2.3-6 5.3-6.8l-0.2-1c-3.5 0.9-6.1 4.1-6.1 7.8 0 4.4 3.6 8 8 8s8-3.6 8-8c0-3.7-2.6-6.9-6.1-7.8z' data-original='%23444444' class='active-path' data-old_color='%23444444'/%3E%3C/g%3E%3C/svg%3E%0A");
  background-size: 100%;

  animation: lovely-chart--animation-spin 1s infinite linear;
}

.lovely-chart--spinner.lovely-chart--size-big {
  width: 64px;
  height: 64px;
}

.lovely-chart--header {
  height: 30px;
  margin: 0 10px;
  font-weight: bold;
}

.lovely-chart--header-title, .lovely-chart--header-caption {
  line-height: 30px;
  color: var(--text-color);
}

.lovely-chart--header-title.lovely-chart--state-hidden, .lovely-chart--header-caption.lovely-chart--state-hidden {
  pointer-events: none;
  opacity: 0;
}

.lovely-chart--header-title {
  float: left;
  font-size: 16px;
}

.lovely-chart--header-caption {
  float: right;
  font-size: 12px;
  text-align: right;
}

.lovely-chart--header-zoom-out-control {
  cursor: var(--custom-cursor, pointer);

  display: flex;
  align-items: center;

  color: var(--zoom-out-text);
  text-transform: none;
}

.lovely-chart--header-zoom-out-control::before {
  content: "";

  display: inline-block;

  width: 16px;
  height: 16px;
  margin-right: 6px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Capa_1' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve' width='512px' height='512px'%3E%3Cg%3E%3Cg%3E%3Cpath d='M497.938,430.063l-112-112c-0.367-0.367-0.805-0.613-1.18-0.965C404.438,285.332,416,248.035,416,208 C416,93.313,322.695,0,208,0S0,93.313,0,208s93.305,208,208,208c40.035,0,77.332-11.563,109.098-31.242 c0.354,0.375,0.598,0.813,0.965,1.18l112,112C439.43,507.313,451.719,512,464,512c12.281,0,24.57-4.688,33.938-14.063 C516.688,479.203,516.688,448.797,497.938,430.063z M64,208c0-79.406,64.602-144,144-144s144,64.594,144,144 c0,79.406-64.602,144-144,144S64,287.406,64,208z' data-original='%23000000' class='active-path' data-old_color='%232d98e6' fill='%232d98e6'/%3E%3Cpath d='M272,176H144c-17.672,0-32,14.328-32,32s14.328,32,32,32h128c17.672,0,32-14.328,32-32S289.672,176,272,176z' data-original='%23000000' class='active-path' data-old_color='%232d98e6' fill='%232d98e6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.lovely-chart--minimap {
  position: relative;

  overflow: hidden;

  margin: 0 10px 16px 10px;
  border-radius: 6px;

  opacity: 1;

  transition: opacity 400ms ease;
}

.lovely-chart--minimap.lovely-chart--state-hidden {
  display: none;
}

.lovely-chart--minimap.lovely-chart--state-transparent {
  opacity: 0;
}

.lovely-chart--minimap-ruler {
  -webkit-user-select: none;
  user-select: none;

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  white-space: nowrap;
}

.lovely-chart--minimap-mask {
  display: inline-block;
  width: 33.3%;
  height: 100%;
  background: var(--minimap-mask);
}

.lovely-chart--minimap-mask:last-child {
  position: relative;
}

.lovely-chart--minimap-mask:last-child::after {
  content: "";

  position: absolute;
  top: 0;
  right: -5px;
  bottom: 0;

  display: block;

  width: 5px;

  background: var(--minimap-mask);
}

.lovely-chart--minimap-slider {
  display: inline-block;

  box-sizing: border-box;
  width: 33.3%;
  min-width: 16px;
  height: 100%;
}

.lovely-chart--minimap-slider-inner {
  cursor: var(--custom-cursor, grab);

  float: left;

  box-sizing: border-box;
  width: calc(100% - 16px);
  height: 100%;
  border-top: 1px solid var(--minimap-slider);
  border-bottom: 1px solid var(--minimap-slider);

  background: transparent !important;
}

.lovely-chart--minimap-slider-handle {
  cursor: var(--custom-cursor, ew-resize);

  position: relative;

  width: 8px;
  height: 100%;

  background: var(--minimap-mask);
}

.lovely-chart--minimap-slider-handle::before, .lovely-chart--minimap-slider-handle::after {
  content: "";
  position: absolute;
  display: block;
}

.lovely-chart--minimap-slider-handle::before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: var(--minimap-slider);
}

.lovely-chart--minimap-slider-handle-pin {
  pointer-events: none;

  position: absolute;
  top: calc(50% - 4px);
  left: calc(50% - 1px);

  display: block;

  width: 2px;
  height: 8px;

  background: #FFFFFF;
}

.lovely-chart--minimap-slider-handle:first-child {
  float: left;
}

.lovely-chart--minimap-slider-handle:first-child::before {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.lovely-chart--minimap-slider-handle:last-child {
  float: right;
}

.lovely-chart--minimap-slider-handle:last-child::before {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

@media (pointer: coarse) {
  .lovely-chart--minimap-slider-handle:after {
    z-index: 1;
    top: -10px;
    bottom: -10px;
  }
  .lovely-chart--minimap-slider-handle:first-child:after {
    right: 0;
    left: -26px;
  }
  .lovely-chart--minimap-slider-handle:last-child:after {
    right: -26px;
    left: 0;
  }
}

.lovely-chart--tooltip {
  position: absolute;
  top: 30px;
  left: 0;
}

.lovely-chart--tooltip-balloon {
  pointer-events: none;
  cursor: var(--custom-cursor, pointer);

  position: absolute;
  top: 5px;
  left: 0;

  overflow: auto;

  min-width: 130px;
  max-height: 320px;
  padding: 8px 10px;
  border-radius: 8px;

  color: var(--text-color);
  white-space: nowrap;

  opacity: 0;
  background: var(--tooltip-background);
  box-shadow: 0 1px 2px 1px rgba(211, 211, 211, 0.8);

  transition: opacity 200ms ease-out;

  -webkit-overflow-scrolling: touch;
}

.lovely-chart--tooltip-balloon.lovely-chart--state-shown {
  pointer-events: auto;
  opacity: 1;
}

.lovely-chart--tooltip-balloon.lovely-chart--state-inactive {
  cursor: var(--custom-cursor, default);
}

.lovely-chart--tooltip-balloon.lovely-chart--state-inactive .lovely-chart--tooltip-title::after {
  display: none;
}

.lovely-chart--tooltip-balloon.lovely-chart--state-loading .lovely-chart--spinner {
  display: block;
}

.lovely-chart--tooltip-balloon .lovely-chart--spinner {
  position: absolute;
  top: 7px;
  right: 8px;
  display: none;
}

.lovely-chart--tooltip-title {
  position: relative;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: bold;
}

.lovely-chart--tooltip-title::after {
  content: "";

  position: absolute;
  top: 0;
  right: 0;

  display: block;

  width: 12px;
  height: 12px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Capa_1' x='0px' y='0px' width='512px' height='512px' viewBox='0 0 451.846 451.847' style='enable-background:new 0 0 451.846 451.847;' xml:space='preserve' class=''%3E%3Cg%3E%3Cg%3E%3Cpath d='M345.441,248.292L151.154,442.573c-12.359,12.365-32.397,12.365-44.75,0c-12.354-12.354-12.354-32.391,0-44.744 L278.318,225.92L106.409,54.017c-12.354-12.359-12.354-32.394,0-44.748c12.354-12.359,32.391-12.359,44.75,0l194.287,194.284 c6.177,6.18,9.262,14.271,9.262,22.366C354.708,234.018,351.617,242.115,345.441,248.292z' data-original='%23000000' class='active-path' data-old_color='%23757B84' fill='%23D2D5D7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 75%;
}

.lovely-chart--tooltip-dataset {
  height: 20px;
  line-height: 20px;
  color: var(--text-color);
}

.lovely-chart--tooltip-dataset .lovely-chart--tooltip-dataset-value {
  float: right;
  margin-left: 12px;
  font-weight: bold;
}

.lovely-chart--tooltip-dataset.lovely-chart--tooltip-dataset-total {
  margin-top: 6px;
  font-weight: bold;
}

.lovely-chart--percentage-title {
  display: inline-block;

  width: 35px;
  margin-right: 5px;

  font-weight: bold;
  text-align: right;
}

.lovely-chart--percentage-title.lovely-chart--transition ~ .lovely-chart--dataset-title {
  padding-left: 30px;
}

html.theme-dark .lovely-chart--tooltip-balloon {
  box-shadow: none;
}

.lovely-chart--tools {
  padding: 0 10px 16px 10px;
  opacity: 1;
  transition: opacity 400ms ease;
}

.lovely-chart--tools.lovely-chart--state-hidden {
  display: none;
}

.lovely-chart--tools.lovely-chart--state-transparent {
  opacity: 0;
}

.lovely-chart--button {
  position: relative;

  display: inline-block;

  margin: 0 6px 8px 0;
  padding: 7px 7px;
  border: 1px solid #E6ECF0;
  border-color: var(--text-color);
  border-radius: 18px;

  color: var(--text-color);
  text-align: center;
  text-decoration: none;

  background-color: transparent;

  transition: opacity 150ms ease;
}

.lovely-chart--button:hover {
  opacity: 0.85;
}

.lovely-chart--button.lovely-chart--state-checked {
  background-color: var(--text-color);
  animation-duration: 500ms;
}

.lovely-chart--button.lovely-chart--state-checked .lovely-chart--button-check {
  opacity: 1;
}

.lovely-chart--button.lovely-chart--state-checked .lovely-chart--button-label {
  transform: translateX(6px);
  color: #FFFFFF;
}

.lovely-chart--button.lovely-chart--state-checked.lovely-chart--dark-content .lovely-chart--button-label {
  color: #222222;
}

.lovely-chart--button.lovely-chart--state-checked.lovely-chart--dark-content .lovely-chart--button-check::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -256 1792 1792' version='1.1'%0A%3E%3Cg transform='matrix(1,0,0,-1,7.5932203,1217.0847)' id='g3003'%3E%3Cpath d='m 1671,970 q 0,-40 -28,-68 L 919,178 783,42 Q 755,14 715,14 675,14 647,42 L 511,178 149,540 q -28,28 -28,68 0,40 28,68 l 136,136 q 28,28 68,28 40,0 68,-28 l 294,-295 656,657 q 28,28 68,28 40,0 68,-28 l 136,-136 q 28,-28 28,-68 z' style='fill:%23222222'/%3E%3C/g%3E%3C/svg%3E");
}

.lovely-chart--button.lovely-chart--state-shake {
  animation-name: lovely-chart--animation-shake;
}

.lovely-chart--button-check {
  position: absolute;
  top: 7px;
  left: 7px;

  display: inline-block;

  width: 20px;
  height: 20px;

  opacity: 0;

  transition: opacity 300ms ease-out;
}

.lovely-chart--button-check::after {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;

  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -256 1792 1792' version='1.1'%0A%3E%3Cg transform='matrix(1,0,0,-1,7.5932203,1217.0847)' id='g3003'%3E%3Cpath d='m 1671,970 q 0,-40 -28,-68 L 919,178 783,42 Q 755,14 715,14 675,14 647,42 L 511,178 149,540 q -28,28 -28,68 0,40 28,68 l 136,136 q 28,28 68,28 40,0 68,-28 l 294,-295 656,657 q 28,28 68,28 40,0 68,-28 l 136,-136 q 28,-28 28,-68 z' style='fill:white'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100%;
}

.lovely-chart--button-label {
  display: inline-block;

  padding: 0 13px;

  font-weight: 300;
  line-height: 20px;
  color: inherit;

  transition: transform 300ms ease-out, color 300ms ease-out;
}
