.ub-btn {
    position: relative;
    display: inline-block;
}

.ub-btn .elementor-align-icon-right {
    order: 15;
}

.ub-btn .elementor-button-content-wrapper {
    display: flex;
    align-items: center;
}

/** === Keyframe animations === **/
@keyframes ub-pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

@keyframes pop-char-out {
    0%,
    40% {
        transform: translate(0);
        opacity: 0;
    }
    20% {
        transform: translate(0.05em, -0.1em);
        /* opacity: 0.1; */
    }
    to {
        transform: translate(0);
        opacity: 1;
    }
}

/** === Pulse Animation === **/
.ub-animation-pulse:hover::before {
    animation: ub-pulse 2s infinite;
    opacity: 1;
}

.ub-animation-pulse::before {
    width: 70%;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(55, 64, 255, 0.1);
    content: "";
    z-index: -1;
    opacity: 0;
}

/** === Line Button === **/
.ub-btn.ub-btn-line {
    display: inline-block;
}

.ub-btn.ub-btn-line::before {
    transform-origin: 100% 50%;
    transition: transform 0.4s ease;
    content: "";
    width: 100%;
    height: 1px;
    background: #666666;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: fadeInLeft 2s cubic-bezier(0.5, 0, 0.5, 1) both;
}

.ub-btn.ub-btn-line:hover::before {
    transform: scaleX(0);
}

.ub-btn.ub-btn-line::after {
    transform: scaleX(0);
    transform-origin: 0 50%;
    background-color: #000;
    transition: transform 0.4s ease 0.2s;
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.ub-btn.ub-btn-line:hover::after {
    transform: scaleX(1);
}

span.elementor-button-text.words.chars.splitting {
    position: relative;
    display: inline-block;
}

.ub-btn.ub-btn-line:hover i {
    margin-left: 12px;
    transition: margin 0.4s linear, color 0.5s;
}

/*** === 3D button === ***/
.ub-btn.three_d_btn {
    transition: box-shadow 0.2s ease-in-out;
    padding: 0;
    background-color: transparent;
    border-radius: 12px;
}
.ub-btn.three_d_btn .elementor-button-icon{
    margin-left: 0px;
}
.ub-btn.three_d_btn .elementor-button-content-wrapper{
    display: block;
}
.ub-btn.three_d_btn span.elementor-button-text {
    transition: transform 0.2s ease-in-out;
    display: inline-block;
    border-radius: 12px;
}
.ub-btn.three_d_btn:hover span.elementor-button-text {
    transform: translateY(4px);
}

/*** === 3D button 2 === ***/
.three_d_btn2 {
    z-index: 1;
}

.three_d_btn2::before {
    content: "";
    left: 6px;
    right: 6px;
    top: -6px;
    bottom: 0;
    position: absolute;
    background: #b68e05;
    z-index: -1;
    transition: all 0.2s linear;
}
.three_d_btn2:hover:before {
    top: 0;
}
.three_d_btn2::after {
    content: '';
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    background: #ffc600;
    z-index: -1;
}



/** === Left to Right Transition == **/
.ub-animation-left2right.ub-btn-link:hover::before {
    width: 100%;
}
.ub-animation-left2right.ub-btn-link::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    overflow: hidden;
    z-index: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

.elementor-button.ub-animation-left2right {
    z-index: 1;
}

.elementor-button.ub-animation-left2right:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.elementor-button.ub-animation-left2right::after {
    background: #222222;
}

.elementor-button.ub-animation-left2right::after {
    transform: scaleX(0);
    transform-origin: right;
    transition: all 0.7s linear;
    transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
    transition-property: transform;
    z-index: -1;
}

.elementor-button.ub-animation-left2right::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.ub-btn i {
    margin-left: 10px;
    transition: margin 0.2s linear, color 0.5s;
}
.ub-btn:hover i {
    margin-left: 15px;
    transition: margin 0.4s linear, color 0.5s;
}

/** === Divider Button === **/
.ub-btn {
    text-align: left;
    padding-left: 0;
}
/** === Video Button === **/
.ub-btn.popup-youtube i {
    text-align: center;
}

.ub-btn.elementor-button svg {
    background-color: transparent;
}

.post_btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 63px;
    font-size: 16px;
    color: #b8bbc0;
    position: relative;
    transition: all 0.2s linear;
    display: inline-block;
}