.btn {
    display: flex;
    align-items: center;
    border-radius: 99px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

@media screen and (min-width:768px){
    .btn {
        padding: 20px 20px 20px 32px;
    }
}

@media screen and (max-width:767px){
    .btn {
        padding: 16px 16px 16px 24px;
    }
}

.btn .text {
    line-height: 1.2;
    position: relative;
    z-index: 5;
    
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

@media screen and (min-width:768px){
    .btn .text{
        margin-right: 24px;
    }
}

@media screen and (max-width:767px){
    .btn .text{
        margin-right: 16px;
    }
}

.btn svg {
    display: inline-block;
    position: relative;
    z-index: 5;
    transform: rotate(0deg) translateX(0);
    transform-origin: left;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.btn svg path{
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.btn::before {
    content: '';
    width: 32px;
    height: 32px;
    display: block;
    position: absolute;
    z-index: 1;
    border-radius: 99px;
    top: 50%;
    
    transform: translateY(-50%);
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

@media screen and (min-width:768px){
    .btn::before {
        right: 12px;
    }
}

@media screen and (max-width:767px){
    .btn::before {
        right: 9px;
    }
}

.btn:hover svg {
    transform: rotate(45deg) translateX(-8px);
}
.btn:hover::before {
    content: '';
    width: 100%;
    height: 100%;
    right: 0;
}
