button:not(.rm-style-default), .button, input[type="submit"] {
    font-size: 14px;
    color: #000;
    padding: 0 30px;
    line-height: 52px;
    @include transition(all 200ms linear 0ms);
    @include border-radius(0px);
    @include transition(all .25s cubic-bezier(.645,.045,.355,1));
    position: relative;
    display: inline-block;
    cursor: pointer;
    border: none;
    background-color: $primary_color;
    background-size: 100%, 1px;
    background-position: 0%;
    height: auto;
    &:hover, &:focus, &:active, &:not([disabled]):not(.disabled).active, &:not([disabled]):not(.disabled):active {
        outline: medium none;
        text-decoration: none;
        color: black;
        background-color: #fff;
        background-position: 100%;
    }
}
button.search-submit {
    &:hover, &:focus, &:active, &:not([disabled]):not(.disabled).active, &:not([disabled]):not(.disabled):active {
        background-color: $primary_color;
        color: #fff;
    }
}
.btn {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    padding: 0 30px;
    line-height: 52px;
    @include transition(all 200ms linear 0ms);
    @include border-radius(0px);
    @include transition(all .25s cubic-bezier(.645,.045,.355,1));
    position: relative;
    cursor: pointer;
    border: none;
    background-color: $primary_color;
    height: auto;
    overflow: hidden;
    i {
        line-height: inherit;
    }
    &.pxl-icon--right {
        flex-direction: row-reverse;
    }
    &:hover, &:focus, &:active {
        outline: medium none;
        text-decoration: none;
        color: #fff;
    }
    &.btn-gradient {
        @include background-gradient-button(90deg, $gradient_color_from 0%, $gradient_color_to 50%, $gradient_color_from);
        background-size: 200%, 1px;
        background-position: 0%;
        &:hover, &:focus, &:active {
            background-position: 100%;
            @include box-shadow(0 5px 20px #{'rgba(var(--primary-color-rgb),0.5)'});
        }
    }
    /* Effect Style */
    &.btn-nina {
        .pxl--btn-text {
            position: relative;
            direction: ltr;
            &:before {
                content: attr(data-text);
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                padding: 0;
                -webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
                transition: transform 0.2s, opacity 0.2s;
                transition-timing-function: ease, ease;
                -webkit-transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
                transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
                white-space: nowrap;
            }
            > span {
                white-space: nowrap;
                display: inline-block;
                padding: 0;
                opacity: 0;
                -webkit-transform: translate3d(0, -14px, 0);
                transform: translate3d(0, -14px, 0);
                -webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
                transition: transform 0.2s, opacity 0.2s;
                transition-timing-function: ease, ease;
                -webkit-transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
                transition-timing-function: cubic-bezier(0.75, 0, 0.125, 1);
                line-height: normal;
            }
        }
        &:hover {
            @include transform(translateY(0px));
            .pxl--btn-text {
                &:before {
                    opacity: 0;
                    -webkit-transform: translate3d(0, 100%, 0);
                    transform: translate3d(0, 100%, 0);
                }
                span {
                    opacity: 1;
                    -webkit-transform: translate3d(0, 0, 0);
                    transform: translate3d(0, 0, 0);
                }
            }
        }
        &:not(:hover) .pxl--btn-text > span {
            transition-delay: 0s !important;
        }
    }
}
.btn-diagonals {
    position: relative;
    z-index: 1;
    &:before,
    &:after {
        content: "";
        z-index: -1;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        background: $primary_color;
        transition: transform 0.4s;
        will-change: transform;
        @include transform(skew(-20deg));
    }
    &:before {
        left: -110%;
        
    }
    &:after {
        left: 110%;
    }
    &:hover {
        &:before {
            @include transform(translateX(100%) skew(-30deg));
        }
        &:after {
            @include transform(translateX(-100%) skew(-30deg));
        }
    }
}
.btn-double-swipe {
        z-index: 1;
        color: #fff;
        .pxl--btn-text {
            z-index: 1;
            position: relative;
        }
        &:before, &:after {
            transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: -1;
            border-bottom: 80px solid $primary_color;
        }
        &:before {
            right: -50px;
            border-right: 50px solid transparent;
            @include transform(translateX(-35%)); 
        }
        &:after {
            left: -50px;
            border-left: 50px solid transparent;
            @include transform(translateX(35%));   
        }
        &:hover {
            color: #fff;
            &:before {
                @include transform(translateX(-100%));  
            }
            &:after {
                @include transform(translateX(100%));
            }
        }
    }
.btn-slash {
    z-index: 1;
    border: 1px solid $color_dark1;
    @include border-radius(0px);
    background-color: transparent;
    &:before {
        @include border-radius(3px);
        z-index: -1;
        position: absolute;
        top: 0;
        left: -20%;
        height: 100%;
        content: '';
        background: $color_dark1;
        width: 150%;
        @include transform(skew(45deg));
        @include transition(transform 0.4s cubic-bezier(0.3, 1, 0.8, 1));
    }
    &:hover {
        color: #fff;
        border-color: $primary_color;
        background-color: $primary_color;
        &:before {
            @include transform( translate3d(100%,0,0) skew(0deg) );
        }
    }
}

.pxl-button-theme {
    display: block;
    .btn {
        display: inline-flex;
        padding: 0;
        position: relative;
        z-index: 1;
        padding-left: 20px;
        &:before {
            width: 55px;
            height: 100%;
            position: absolute;
            content: "";
            z-index: -1;
            top: 0;
            right: 0;
            background-color: $third_color;
        }
        span.pxl--btn-text {
            padding: 0 25px 0 10px;
        }
        i.pxl-icon-plus {
            width: 55px;
            position: relative;
            &:before, &:after {
                content: '';
                position: absolute;
                height: 2px;
                width: 16px;
                top: 50%;
                left: 50%;
                @include transform(translate(-50%, -50%));
                transform-origin: 50% 50%;
                @include transition(all .15s cubic-bezier(.645,.045,.355,1));
                background-color: #fff;
            }
            &:before {
                @include transform(translate(-50%, -50%) rotate(90deg));
            }
            &:after {
                @include transform(translate(-50%, -50%) rotate(0deg));
            }
        }
        &:hover {
            color: #fff;
            span {
                border-color: transparent;
            }
            i.pxl-icon-plus {
                &:before {
                    @include transform(translate(-50%, -50%) rotate(45deg));
                    margin-top: -4px;
                    width: 12px;
                }
                &:after {
                    @include transform(translate(-50%, -50%) rotate(-45deg));
                    margin-top: 4px;
                    width: 12px;
                } 
            }
        }
        &:hover, &:active, &:focus {
            background-color: $secondary_color;
            color: $fourth_color;
            span {
                border-color: transparent;
            }
        }
    }
}