/**
- Plain Button
- Button SVG
- Button Icon Img
- Button Shadow
- Button Dropdown
- Button Loading
- Button Block
- Size
    - SM
    - MD
    - LG
- Variation
    - Primary
    - Secondary
    - Outline
*/

.lokus-btn {
    cursor: pointer;
    border-radius: 4px;
    padding: 12px;
    line-height: 16px;
    box-shadow: none !important;
    text-decoration: none !important;
}

.lokus-btn.btn-block {
    display: block;
    width: 100%;
    text-align: center
}

.lokus-btn.btn-icon {
    display: flex;
    justify-content: center;
    align-items: center
}

.lokus-btn.btn-icon svg {
    font-size: 18px;
    margin-right: 5px;
    fill: none !important;
}

.lokus-btn.btn-sm {
    padding: 3px 10px !important;
    text-transform: unset;
    font-size: .9rem;
}

.lokus-btn.btn-shadow {
    box-shadow: 0px 4px 4px #DFE5F2 !important
}

.lokus-btn.btn-dropdown {
    border: 1px solid #E8F0FE;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05) !important;
    border: none;
    padding: 10px 15px;
    padding-right: 26px;
    color: #000;
    font-weight: 600;
    position: relative;
    min-width: 175px;
    text-transform: unset
}

@keyframes loading {
    0% {
        transform: rotate(0)
    }
    100% {
        transform: rotate(360deg)
    }
}

.lokus-btn.loading {
    color: transparent !important;
    min-height: .8rem;
    pointer-events: none;
    position: relative;
    background: red;
}

.lokus-btn.loading::after {
    animation: loading .5s infinite linear;
    background: 0 0;
    border: 2px solid #fff;
    border-radius: 50%;
    border-right-color: transparent;
    border-top-color: transparent;
    content: "";
    display: block;
    height: 1rem;
    left: 50%;
    margin-left: -.5rem;
    margin-top: -.5rem;
    opacity: 1;
    padding: 0;
    position: absolute;
    top: 50%;
    width: 1rem;
    z-index: 1;
}

.lokus-btn .icon {
    position: absolute;
    left: 15px;
    top: 55%;
    transform: translateY(-50%)
}

.lokus-btn .icon img {
    height: 20px;
    width: auto;
    filter: invert(1)
}

.lokus-btn.btn-sm {
    padding: 5px 10px
}

.lokus-btn.btn-primary {
    background-color: var(--lokuswp-secondary-color);
    border-color: var(--lokuswp-secondary-color);
    color: #fff;
}

.lokus-btn.btn-primary.btn-dark {
    background-color: var(--lokuswp-secondary-darker-color);
    border-color: var(--lokuswp-secondary-darker-color) !important;
    color: #fff;
}

.lokus-btn.btn-primary:hover,
.lokus-btn.btn-primary:focus,
.lokus-btn.btn-primary:active {
    border-color: var(--lokuswp-secondary-darker-color) !important;
    box-shadow: none !important;
    background-color: var(--lokuswp-secondary-darker-color) !important;
    color: #fff;
}

.lokus-btn.btn-secondary {
    background-color: var(--lokuswp-secondary-color);
    border-color: var(--lokuswp-secondary-color);
    color: #fff;
}

.lokus-btn.btn-secondary:hover,
.lokus-btn.btn-secondary:focus,
.lokus-btn.btn-secondary:active {
    border-color: #fff !important;
    box-shadow: none !important;
    background-color: #fff !important;
    color: #fff;
}


.lokus-btn.btn-outline {
    background-color: transparent;
    border-color: var(--lokuswp-secondary-color);
    color: var(--lokuswp-secondary-color);
    border-width: 1px
}

.lokus-btn.btn-outline-secondary {
    cursor: pointer;
    background-color: transparent;
    border-color: var(--lokuswp-secondary-color);
    color: #fff;
}

.lokus-btn.btn-outline-secondary:hover,
.lokus-btn.btn-outline-secondary:focus,
.lokus-btn.btn-outline-secondary:active {
    border-color: var(--lokuswp-secondary-color) !important;
    box-shadow: none !important;
    background-color: var(--lokuswp-secondary-color) !important;
    color: var(--lokuswp-secondary-color)
}

.lokus-btn.btn-outline-dark {
    background-color: transparent;
    border-color: #e5e5e5;
    color: #484848
}

.lokus-btn.btn-outline-dark:hover,
.lokus-btn.btn-outline-dark:focus,
.lokus-btn.btn-outline-dark:active {
    border-color: #e5e5e5 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    color: #484848
}

.lokus-radio-toolbar {
    margin: 0;
    margin-right: 10px;
    padding: 10px 0;
}

.lokus-radio-toolbar input[type="radio"] {
    opacity: 0;
    position: fixed;
    width: 0;
}

.lokus-radio-toolbar label {
    display: inline-block;
    background-color: #fff;
    padding: .5rem 1rem;
    font-family: sans-serif, Arial;
    border: 1px solid #444;
    border-radius: 4px;
}

.lokus-radio-toolbar label:hover {
    background-color: var(--lokuswp-secondary-color);
    color: white;
}

.lokus-radio-toolbar input[type="radio"]:checked + label {
    background-color: var(--lokuswp-secondary-color);
    border-color: var(--lokuswp-secondary-color);
    color: #fff;
    cursor: pointer;
}