/* CMS Button */
.btn,
button,
.button,
input[type="submit"] {
    background-color: $primary_color;
    font-size: 15px;
    color: #fff;
    text-transform: capitalize;
    padding: 0 25px;
    line-height: 46px;
    @include transition(all 300ms linear 0ms);
    @include border-radius(25px);
    position: relative;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    border: 2px solid $primary_color;

    &:hover, &:focus {
        @include box-shadow(none);
        outline: medium none;
        text-decoration: none;
        color: #fff;
        background-color: $button_secondary_color;
        border-color: $button_secondary_color;
    }
    @media #{$max-xs} {
        font-size: 14px;
    }
}

.btn {
    i {
        margin-left: 6px;
        font-size: 15px;
        position: relative;
        top: 1px;
        &.space-right {
            margin-left: 0;
            margin-right: 6px;
        }
    }

    &.btn-outline {
        background-color: transparent;
        color: $primary_color;
        border: 2px solid $primary_color;
        &:hover {
            background-color: $primary_color;
            color: #fff;
        }
    }

    &.btn-secondary {
        background-color: $button_secondary_color;
        border-color: $button_secondary_color;

        &:hover, &:focus {
            background-color: $primary_color;
            border-color: $primary_color;
        }
    }

    &.btn-white {
        background-color: #fff;
        border-color: #fff;
        color: $primary_color;
        i{
            color: $primary_color;
            transition: all 300ms ease 0s;
        }

        &:hover {
            background-color: transparent;
            color: #fff;
            i{
                color: #fff;
            }
        }
    }
    &.btn-white-secondary {
        background-color: #fff;
        border-color: #fff;
        color: $button_secondary_color;
        i{
            color: $button_secondary_color;
            transition: all 300ms ease 0s;
        }

        &:hover {
            background-color: transparent;
            color: #fff;
            i{
                color: #fff;
            }
        }
    }

    &.btn-outline-white {
        background-color: transparent;
        border-color: #fff;
        padding: 0 40px;

        &:hover {
            background-color: #fff;
            color: $primary_color;
        }
    }
    &.btn-outline-secondary{
        background-color: transparent;
        border-color: rgba($button_secondary_color, 0.9);
        padding: 0 30px;
        color: $button_secondary_color;
        &:hover {
            background-color: rgba($button_secondary_color, 0.9);
            color: #fff;
        }
    }
    &.white-hover{
        &:hover {
            background-color: #fff;
            border-color: #fff;
            color: $primary_color;
        }
    }
    &.btn-fullwidth{
        width: 100%;
    }
}

.btn-text {
    font-size: 14px;
    color: $button_secondary_color;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid $button_secondary_color;
    font-weight: 700;
    line-height: 1;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 5px !important;
    background-color: transparent;
    @include border-radius(0px);
    display: inline-block;

    &:hover {
        color: $primary_color;
        border-color: $primary_color;
    }
}

.btn-text-primary {
    font-size: 15px;
    font-weight: 700;

    i {
        margin-left: 9px;

        &.space-left {
            margin-left: 0;
            margin-right: 9px;
        }
    }
}

.btn-more {
    background-color: $button_secondary_color;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0;
    padding: 8px 21px;
    display: inline-flex;
    align-items: center;
    @include border-radius(20px);
    color: #fff;
    &:hover{
        background-color: $button_secondary_color;
        color: #fff;
    }
    i {
        margin-left: 10px;
        margin-right: 0;
        font-size: 14px;
        position: relative;
        text-align: left;
    }
}

.btn-align-center {
    text-align: center;
}

.btn-align-right {
    text-align: right;
}

.btn-group .btn + .btn {
    margin-left: 30px;
}

.btn-block {
    display: block;
}

.elementor-widget-wrap > .btn-inline.elementor-widget {
    display: inline-block;
    width: auto;

    .cms-button-wrapper {
        margin-right: 40px;
        margin-bottom: 30px;
    }

    + .elementor-widget-image {
        float: left;
        width: auto;
        margin-bottom: 30px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
}
.elementor-button-icon i.zmdi{
    font-size: 22px;
}