.arrow {
  position: relative;
  justify-self: stretch;
  align-self: stretch;
  color: var(--rule);
  animation-duration: 0.38s;
  animation-timing-function: ease;
  animation-fill-mode: both;
}

.flow .arrow {
  color: rgba(255, 255, 255, 0.78);
}

.arrow--right {
  height: 1px;
  align-self: center;
  background: linear-gradient(currentColor, currentColor) left center / calc(100% - 0.42rem) 1px no-repeat;
  transform-origin: left center;
  animation-name: arrow-in-x;
}

.arrow--right::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.arrow--left {
  height: 1px;
  align-self: center;
  background: linear-gradient(currentColor, currentColor) right center / calc(100% - 0.42rem) 1px no-repeat;
  transform-origin: right center;
  animation-name: arrow-in-x;
}

.arrow--left::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
}

.arrow--down {
  width: 1px;
  justify-self: center;
  background: linear-gradient(currentColor, currentColor) center top / 1px calc(100% - 0.42rem) no-repeat;
  transform-origin: center top;
  animation-name: arrow-in-y;
}

.arrow--down::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.arrow--up {
  width: 1px;
  justify-self: center;
  background: linear-gradient(currentColor, currentColor) center bottom / 1px calc(100% - 0.42rem) no-repeat;
  transform-origin: center bottom;
  animation-name: arrow-in-y;
}

.arrow--up::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

@keyframes arrow-in-x {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes arrow-in-y {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow {
    animation: none;
  }
}
