.button {
    display: inline-flex;
    @include font-size(7, mobile, true, false, true);
    @if ( get-font-size(7, desktop) != get-font-size(7, mobile) ) {
        @include media( '>medium' ) {
            @include font-size(7, desktop, true, false, true);
        }
    }
    @include font-weight(medium);
    line-height: 16px;
    text-decoration: none !important;
    background-color: color(bg, 1);
    color: color(primary, 1) !important;
    border: none;
    cursor: pointer;
    justify-content: center;
    padding: 16px 36px;
    text-align: center;
    white-space: nowrap;
    width: fit-content;

    &:active {
        outline: 0;
    }

    &.big{
        font-size: 20px;
    }
}

.button-shadow {
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        box-shadow: 0 8px 48px rgba(color(primary, 1), .48);
        transition: box-shadow .15s ease;
    }

    &:hover {

        &::before {
            box-shadow: 0 8px 48px rgba(color(primary, 1), .6);
        }
    }
}

.button-sm {
    padding: 8px 24px;
	height: 32px;

    &.button-shadow {

        &::before {
            box-shadow: 0 4px 32px rgba(color(primary, 1), .48);
        }

        &:hover {

            &::before {
                box-shadow: 0 4px 32px rgba(color(primary, 1), .6);
            }
        }
    }
}

.button-primary {
    color: color(typography, 1) !important;
    transition: all 0.4s;
}

.button-primary {
    background: mix(color(primary, 1), color(primary, 2));
    background: linear-gradient(65deg, color(primary, 1) 0, color(primary, 2) 100%);

    &:hover {
        background: lighten(mix(color(primary, 1), color(primary, 2)), 3%);
        background: linear-gradient(65deg, lighten(color(primary, 1), 3%) 0, lighten(color(primary, 2), 3%) 100%);
    }
}

.button-complimentary-color{
    color: black !important;

    background: mix(color(complementary, 1), color(complementary, 2));
    background: linear-gradient(65deg, color(complementary, 1) 0, color(complementary, 2) 100%);

    &:hover {
        background: darken(mix(color(complementary, 1), color(complementary, 2)), 8%);
        background: linear-gradient(65deg, darken(color(complementary, 1), 8%) 0, darken(color(complementary, 2), 8%) 100%);
    }
}

.button-block {
    display: flex;
}
