
/*btn*/
@media all {
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        vertical-align: middle;
        background: none;
        border: none;
        font-size: 18px;
        height: 60px;
        padding: 0 20px;
        font-weight: 600;
        line-height: 1.2;
        border-radius: 4px;
        text-align: center;

        width: auto; /*default size*/
        max-width: 100%;

        -webkit-transition: background-color .15s ease, color .15s ease, border-color .15s ease;
        transition: background-color .15s ease, color .15s ease, border-color .15s ease;

        cursor: pointer;
    }
    .btn.btn-small {
        height: 50px;
        width: 230px;
        font-size: 16px;
    }
    a.btn {
        text-decoration: none;
    }
    .btn:not(.btn-link):active {
        -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    }

    /*btn-primary*/
    .btn.btn-primary span.btn-label+span.btn-icon {
        margin: 0 0 0 8px;
    }
    .btn.btn-primary {
        color: #fff;
        box-shadow: 0px 4px 15px rgba(56, 89, 241, 0.51);
        border-radius: 3px;
        min-width: 259px;
    }

    /*btn-primary._shadow*/
    .btn.btn-primary._shadow {
        color: #fff;
        box-shadow: 0px 4px 15px rgba(56, 89, 241, 0.51);
        border-radius: 3px;
        font-weight: 600;
    }
    .bx-no-touch .btn.btn-primary._shadow:not(.is-active):hover, .btn.btn-primary._shadow:not(.is-active):active {
        box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.35);
    }
    .btn.btn-primary._shadow:hover {
        box-shadow: 0px 4px 17px rgba(47, 118, 255, 0.71);
        background-color: #6B9CFF;
        color: #fff;
    }

    /*btn-secondary*/
    .btn-secondary {
        color: #fff;
        box-shadow: 0px 4px 15px rgba(56, 89, 241, 0.51);
        border-radius: 3px;
        font-weight: 600;
        background-color: #3778FE;
        min-width: 259px;
    }


    /*btn-transparent*/
    .btn.btn-transparent{
        border:2px solid #fff;
        background: transparent;
        color: #fff;
        min-width: 259px;
    }
    .bx-no-touch .btn.btn-transparent:hover,
    .btn.btn-transparent:focus {
        color: var(--primary-color);
        background: #fff;
        outline: none;
    }

    .btn.btn-big {
        padding: 14px 25px;
        color: #fff;
        background-color: var(--primary-color);
        box-shadow: 0px 4px 15px rgba(56, 89, 241, 0.51);
        border-radius: 3px;
        border: none;
        font-weight: 600;
        min-width: 259px;
    }
    .btn.btn-big span.btn-label {
        text-transform: uppercase;
        font-size: 16px;
    }

    .btn-secondary:hover {
        box-shadow: 0px 4px 17px rgba(47, 118, 255, 0.71);
        background-color: #6B9CFF;
        color: #fff;
    }

    .btn[disabled] {
        opacity: .5;
        cursor: default;
        pointer-events: none;
    }

    .theme--bg-color .btn.btn-big.btn-transparent {
        border: 1px solid white;
    }
}
@media (max-width: 479px) {
    .btn {
        height: 50px;
        font-size: 16px;
        padding: 0 14px;
    }
}

/*status*/
@media all {
    .btn._is_status_icon .btn-icon:before, .btn._is_status_icon .btn-icon>* {
        opacity: 0;
        pointer-events: none;
    }
    .cui-btn__icon .cui-icon {
        cursor: inherit;
        display: inline-block;
        font-size: 1.5em;
        height: 1em;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        vertical-align: middle;
        width: 1em;
    }

    .btn._is_status_icon .btn-icon>.cui-status-icon {
        width: 1em;
        height: 1em;
        /*position: absolute;*/
        margin: auto;
        opacity: 1;
        pointer-events: all;
        top: 0;
        display: flex;
        align-items: center;
    }
    .cui-btn-progress {
        animation: cui-btn-status-icon-rotate .7s linear infinite, .2s cui-btn-status-icon-fadein .1s linear forwards;
        transform-origin: center center;
        opacity: 0;
    }
    .cui-btn-progress__indeterminate {
        width: 100%;
    }
    .cui-btn-progress__indeterminate-path {
        stroke: #fff;
        stroke-dasharray: 89,200;
        stroke-dashoffset: -35px;
        stroke-linecap: round;
    }
    .cui-btn-success {
        animation: .2s cui-progress-circular-fallin .1s linear forwards, .2s cui-btn-status-icon-fadein .1s linear forwards;
        transform: translate(0, -.3em);
        opacity: 0;
    }
    .cui-btn-success svg {
        flex: 1;
    }
    .cui-btn-success path{
        fill: #8dff8d;
    }

    /*.cui-btn-progress__spinner*/
    .cui-btn-progress__spinner {
        top: 0;
        right: 0;
    }
        .cui-btn-progress__spinner > span {
            width: 4px;
            height: 4px;
            background-color: #fff;
            border-radius: 100%;
            display: inline-block;
            -webkit-animation: sk-bouncedelay 1s infinite ease-in-out both;
            animation: sk-bouncedelay 1s infinite ease-in-out both;
        }
        .cui-btn-progress__spinner .bounce1 {
            -webkit-animation-delay: -0.32s;
            animation-delay: -0.32s;
        }
        .cui-btn-progress__spinner .bounce2 {
            -webkit-animation-delay: -0.16s;
            animation-delay: -0.16s;
        }
    .cui-btn-progress__spinner > span + span {
        margin-left: 3px;
    }
}
/*material click*/
@media all {
    .cui-material-click {
        position: relative;
        z-index: 0;
        overflow: hidden;
    }
    .cui-material-click .cui-material-ink {
        display: block; position: absolute;
        background: rgba(35, 180, 234, 0.53);
        border-radius: 100%;
        transform: scale(0);
    }
    .cui-material-click .cui-material-ink {
        background: rgba(255, 255, 255, 0.53);
    }
    .cui-material-click .cui-material-ink._animate {
        animation: ripple 0.4s linear;
    }
}

/*btn grid*/
@media all {
    .btn-row {
        margin: -10px -15px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .btn-row--xs-center {
        justify-content: center;
    }
    .btn-row--xs-start {
        justify-content: flex-start;
    }
    .btn-row--xs-end {
        justify-content: flex-end;
    }
    .btn-row--xs-column {
        flex-direction: column;
    }

    .btn-row>.btn {
        margin: 10px 15px;
    }

    .btn.btn-xs-b {
        width: 100%;
    }
    .btn.btn-xs-if {
        display: inline-flex;
    }
}
@media (min-width: 480px) {
    .btn.btn-sm-b {
        width: 100%;
    }
    .btn.btn-sm-if {
        width: auto;
    }

    .btn-row--sm-center {
        justify-content: center;
    }
    .btn-row--sm-start {
        justify-content: flex-start;
    }
    .btn-row--sm-end {
        justify-content: flex-end;
    }
    .btn-row--sm-column {
        flex-direction: column;
    }
}
@media (min-width: 768px) {
    .btn.btn-md-b {
        width: 100%;
    }
    .btn.btn-md-if {
        width: auto;
    }
    .btn-row--md-center {
        justify-content: center;
    }
    .btn-row--md-start {
        justify-content: flex-start;
    }
    .btn-row--md-end {
        justify-content: flex-end;
    }
    .btn-row--md-column {
        flex-direction: column;
    }
}
@media (min-width: 1024px) {
    .btn.btn-lg-b {
        width: 100%;
    }
    .btn.btn-lg-if {
        width: auto;
    }
    .btn-row--lg-center {
        justify-content: center;
    }
    .btn-row--lg-start {
        justify-content: flex-start;
    }
    .btn-row--lg-end {
        justify-content: flex-end;
    }
    .btn-row--lg-column {
        flex-direction: column;
    }
}
@media (min-width: 1280px) {
    .btn.btn-dt-b {
        width: 100%;
    }
    .btn.btn-dt-if {
        width: auto;
    }

    .btn-row--dt-center {
        justify-content: center;
    }
    .btn-row--dt-start {
        justify-content: flex-start;
    }
    .btn-row--dt-end {
        justify-content: flex-end;
    }
    .btn-row--dt-column {
        flex-direction: column;
    }
}


/*animation*/
@keyframes cui-progress-circular-fallin {
    to {
        transform: translate(0, 0);
    }
}
@keyframes cui-btn-status-icon-rotate {
    to {
        transform: rotate(1turn)
    }
}
@keyframes cui-btn-status-icon-fadein {
    to {
        opacity: 1;
    }
}
@keyframes ripple {
    100% {opacity: 0; transform: scale(2.5);}
}
@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.btn-outline {
    border-radius: 3px;
    border: 2px solid #3778fe;
    color: #3778fe;
  }
  
  .btn-outline:hover, .btn-outline:focus {
    color: #6B9CFF;
    border-color: #6B9CFF;
  }