.c-text-link {
  transition: all 0.6s ease;
  
  @screen md {
    &:hover {
      letter-spacing: 4px;
    }
  }
}

.c-plus-link {
  min-height: 80px;

  @screen md {
    min-height: 120px;
  }

  &__icon {
    width: 64px;

    @apply ease-in-out transition-all duration-300;

    @screen md {
      width: 112px;
    }
  }

  &__svg {
    width: 32px;
    height: 32px;

    @screen md {
      width: 48px;
      height: 48px;
    }
  }

  &__text {
    width: calc(100% - 64px);

    @apply ease-in-out transition-all duration-300;

    @screen md {
      width: calc(100% - 112px);
    }
  }

  &--small {
    min-height: 42px;

    @screen md {
      min-height: 42px;
    }

    .c-plus-link {
      &__icon {
        width: 64px;
    
        @screen md {
          width: 64px;
        }
      }

      &__svg {
        width: 22px;
        height: 22px;
    
        @screen md {
          width: 22px;
          height: 22px;
        }
      }

      &__text {
        @apply text-xs normal-case;

        @screen md {
          width: calc(100% - 64px);
        }
      }
    }
  }
}

.c-plus-link--light {
  .c-plus-link__icon,
  .c-plus-link__text {
    @apply border-white;
  }

  .c-plus-link__svg {
    @apply fill-white;
  }

  .c-plus-link__text {
    @apply text-white;
  }
}

.c-plus-link--dark {
  .c-plus-link__icon,
  .c-plus-link__text {
    @apply border-black bg-white;
  }

  .c-plus-link__svg {
    @apply fill-black;
  }

  .c-plus-link__text {
    @apply text-black;
  }
}

.c-plus-link__icon::after,
.c-plus-link__text::after {
  content: '';
  transform: scaleY(0);
  transform-origin: center bottom;
  
  @apply absolute h-full w-full bottom-0 left-0 ease-in-out transition-all duration-300;
}

.c-plus-link--light {
  .c-plus-link__icon::after,
  .c-plus-link__text::after {
    @apply bg-white;
  }
}

.c-plus-link--dark {
  .c-plus-link__icon::after,
  .c-plus-link__text::after {
    @apply bg-black;
  }
}

.c-plus-link:hover {
  @screen md {
    .c-plus-link__svg {
      transform: rotate(45deg);
    }

    .c-plus-link__icon::after,
    .c-plus-link__text::after {
      transform: scaleY(1);
    }
  }
}

.c-plus-link--light:hover {
  @screen md {
    .c-plus-link__icon,
    .c-plus-link__text {
      @apply border-black;
    }

    .c-plus-link__svg {
      @apply fill-black;
    }

    .c-plus-link__text {
      @apply text-black;
    }
  }
}

.c-plus-link--dark:hover {
  @screen md {
    .c-plus-link__icon {
      border-right-color: #fff;
    }

    .c-plus-link__svg {
      @apply fill-white;
    }

    .c-plus-link__text {
      @apply text-white;
    }
  }
}

.js-button-is-loading {
  @apply cursor-not-allowed opacity-75 pointer-events-none;

  .c-plus-link__svg {
    @apply opacity-0 invisible;
  }

  .o-spinner {
    @apply opacity-100 visible;
  }
}

.o-spinner {
  height: 24px;
  width: 24px;
  border-top: 2px solid rgba(0, 0, 0, 1);
  border-right: 2px solid transparent;
  border-radius: 50%;
  animation: rotation 0.8s linear infinite;
  opacity: 0;
  visibility: hidden;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
