.button.has-arrow {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding-right: 1.125rem;
  border: none;
  gap: 1rem;
  overflow: hidden;
  border-radius: var(--br-btns);
  text-decoration: none;
  -webkit-border-radius: var(--br-btns);
  -moz-border-radius: var(--br-btns);
  -ms-border-radius: var(--br-btns);
  -o-border-radius: var(--br-btns);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -o-backface-visibility: hidden;
}

.button.has-arrow .btn-text {
  z-index: 1;
  font-size: var(--font-size-btns);
  font-family: "Aeonik Medium", sans-serif;
}

.btn-arrow-wrapper {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.btn-arrow-wrapper svg {
  width: 0.75rem;
  height: 0.75rem;
}

.btn-arrow-wrapper svg path {
  fill: var(--color-sqb-oat);
}

.btn-arrow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.btn-arrow.animate-out {
  -webkit-animation: arrowOut 0.5s forwards;
  animation: arrowOut 0.5s forwards;
}

.btn-arrow.animate-in {
  -webkit-animation: arrowIn 0.5s forwards;
  animation: arrowIn 0.5s forwards;
}

/* Out arrow animation (translate + shrink + fade out) */
@-webkit-keyframes arrowOut {
  0% {
    -webkit-transform: translate(0, 0) scale(1);
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(100%, -100%) scale(0);
    transform: translate(100%, -100%) scale(0);
    opacity: 0;
  }
}
@keyframes arrowOut {
  0% {
    -webkit-transform: translate(0, 0) scale(1);
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: translate(100%, -100%) scale(0);
    transform: translate(100%, -100%) scale(0);
    opacity: 0;
  }
}

/* In arrow animation (translate + appear) */
@-webkit-keyframes arrowIn {
  0% {
    transform: translate(-250%, 250%) scale(0);
    -webkit-transform: translate(-250%, 250%) scale(0);
    -moz-transform: translate(-250%, 250%) scale(0);
    -ms-transform: translate(-250%, 250%) scale(0);
    -o-transform: translate(-250%, 250%) scale(0);
    opacity: 0;
  }
  100% {
    -webkit-transform: translate(0, 0) scale(1);
    transform: translate(0, 0) scale(1); /* grow to normal size */
    opacity: 1;
  }
}
@keyframes arrowIn {
  0% {
    transform: translate(-250%, 250%) scale(0);
    -webkit-transform: translate(-250%, 250%) scale(0);
    -moz-transform: translate(-250%, 250%) scale(0);
    -ms-transform: translate(-250%, 250%) scale(0);
    -o-transform: translate(-250%, 250%) scale(0);
    opacity: 0;
  }
  100% {
    -webkit-transform: translate(0, 0) scale(1);
    transform: translate(0, 0) scale(1); /* grow to normal size */
    opacity: 1;
  }
}
