.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    color: #fff;
    background-color: var(--green-600);
    transition: box-shadow 0.3s, background-color 0.3s, color 0.3s;

    &:disabled:not(:has(.btn-loader)) {
        background-color: var(--gray-300);
        cursor: auto;
    }

    &:disabled:has(.btn-loader) {
        background-color: var(--green-600);
        opacity: 0.7;
        cursor: auto;
    }

    &.btn-fit {
        width: fit-content;
    }

    &.btn-sm {
        font-size: 14px;
        line-height: 22px;
        padding: 5px 12px 6px;
        min-width: 75px;
    }

    &.btn-md {
        font-size: 16px;
        line-height: 24px;
        padding: 4px 16px;
        min-width: 125px;
        min-height: 44px;
    }

    &:not(:disabled):hover {
        background-color: var(--green-700);
    }

    &.btn-ligth {
        background: none;
        color: var(--green-600);

        &:hover {
            background-color: var(--green-50);
            color: var(--green-700);
        }
    }

    &.btn-bold {
        font-weight: 600;
    }

    & .btn-loader {
        font-size: 12px;
        margin: auto;
        width: 1.5em;
        height: 1.5em;
        vertical-align: text-bottom;
        border: 0.2em solid currentColor;
        border-right-color: transparent;
        border-radius: 50%;
        -webkit-animation: spinner 0.75s linear infinite;
        animation: spinner 0.75s linear infinite;
    }

    & .reload {
        width: 20px;
    }

    & .to-back {
        width: 27px;
    }
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

@media (width < 992px) {
    .btn {
        min-height: 36px;
    }
}

@media (width > 992px) {
    .btn {
        min-height: 34px;
    }
}
