.animation_button {
    display: flex;
    justify-content: center;
    position: relative;
    background: var(--primary);
    border-radius: 45px;
    padding-block: 11px;
    cursor: pointer;
    transition: ease-in-out 0.4s;
    a{
      width: 100%;
      @include Flex;
    }
    p {
      z-index: 9999;
      color: var(--white);
      font-size: 14px;
      margin-bottom: 0;
      font-weight: normal;
      z-index: 9999;
    }
  
    span {
      z-index: 999;
      transition: ease-in-out 0.2s;
      visibility: hidden;
  
      svg {
        position: absolute;
        bottom: 6px;
        right: -10px;
        font-size: 30px;
        color: transparent;
        transition: ease-in-out 0.2s;
      }
  
      &::after {
        content: "";
        background-color: var(--primary);
        position: absolute;
        right: 0px;
        bottom: 0px;
        height: 43px;
        width: 40px;
        border-radius: 0 45px 45px 0;
        z-index: -1;
        transition: ease-in 0.2s;
      }
    }
  
    &:hover {
      background: var(--secondary);
  
      span {
        z-index: 999;
        right: -5px;
        visibility: visible;
  
        svg {
          color: var(--white);
        }
  
        &::after {
          background: var(--secondary);
          right: -20px;
        }
      }
    }    
}

@media screen and (max-width:600px) {
  .animation_button {
    border-radius: 45px;
    padding-block: 8px;
    p {
      font-size: 10px;
    }
  
    span {
      svg {
        right: -12px;
        bottom: 5px;
        font-size: 20px;
      }
  
      &::after {
        height: 31px;
        width: 40px;
      }
    }    
  }
}