@import '../../settings/keyframes';
@import '../../tools/mixins/breakpoints';

$arrow-length: 203;
$arrowhead-length: 88;
$arrow-width: 5;

.c-vessel-discharging-icon {
  position: relative;
  width: 100%;
  height: 100%;

  &__arrow {
    width: 17.25px;
    position: absolute;
    top: 23.5px;
    right: 15.5px;

    @include media-breakpoint-up(xl, true) {
      width: 22px;
      top: 30px;
      right: 20px;
    }

    .arrow {
      stroke: $color-primary-deep;
      stroke-dasharray: $arrow-length;
      stroke-dashoffset: $arrow-length;
      stroke-width: $arrow-width;
      animation: draw-stroke 2.0s infinite;
    }

    .arrowhead {
      stroke: $color-primary-deep;
      stroke-dasharray: $arrowhead-length;
      stroke-dashoffset: $arrowhead-length;
      stroke-width: $arrow-width;
      animation: draw-arrowhead 2.0s infinite;
    }

    @keyframes draw-arrowhead {
      0%, 48%, 100% {
        stroke-dashoffset: $arrowhead-length;
      }

      99% {
        stroke-dashoffset: 0;
      }
    }
  }
}