@mixin overlay-btn() {
    border-radius: 3px;
    box-shadow:
        0 0 2px 1px rgba(0, 0, 0, 0.5),
        inset 0 3px 5px -2px rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    height: 48px;
    line-height: 46px;
    margin-left: 16px;
    min-width: 64px;
    padding: 0 16px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);

    transition:
        background-color 0.1s linear,
        box-shadow 0.1s linear;

    &:first-child {
        margin-left: 0;
    }

    &:hover {
        box-shadow:
            0 0 2px 1px rgba(0, 0, 0, 0.75),
            inset 0 3px 5px -2px rgba(255, 255, 255, 0.5);

        &::after {
            opacity: 1.0;
        }
    }

    &:active {
        background-color: rgba(0, 0, 0, 0.1);
        box-shadow:
            0 0 2px 1px rgba(0, 0, 0, 0.05),
            inset 0 1px 5px 1px rgba(0, 0, 0, 0.35);

        &::after {
            margin-top: 1px;
        }
    }

    &::after {
        background-position: center center;
        background-repeat: no-repeat;
        background-size: 24px 24px;
        content: '';
        display: block;
        height: inherit;
        opacity: 0.9;
        width: inherit;

        transition:
            margin-top 0.1s linear,
            opacity 0.1s linear;
    }

    @media (min-width: 600px) {
        min-width: 96px;
    }
}

.mh-overlay {
    background: rgba(30, 39, 46, 0.99);
    background-image: radial-gradient(
        ellipse at center,
        rgba(199, 236, 238, 0.15) 0,
        rgba(199, 236, 238, 0) 80%
    );
    bottom: 0;
    color: #fff;
    font-family: sans-serif;
    font-size: 16px;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2000;

    transition: opacity 0.25s linear;

    &--visible {
        opacity: 1;
    }

    &__close {
        background:
            transparent
            url('#{$manhattan-manage-asset-root}/assets/cancel.svg')
            center center
            no-repeat;
        background-size: 32px;
        cursor: pointer;
        height: 32px;
        opacity: 0.1;
        position: absolute;
        right: 32px;
        top: 32px;
        width: 32px;

        transition:
            background-size 0.1s linear,
            opacity 0.1s linear;

        &:active {
            background-size: 28px;
        }

        &:hover {
            opacity: 1;
        }
    }

    &__content {
        bottom: 128px;
        left: 32px;
        position: absolute;
        right: 32px;
        top: 32px;


        @media (min-width: 600px) {
            left: 96px;
            right: 96px;
        }
    }

    &__buttons {
        bottom: 48px;
        display: flex;
        flex-wrap: nowrap;
        height: 48px;
        justify-content: center;
        left: 96px;
        position: absolute;
        right: 96px;


        @media (min-width: 600px) {
            min-width: 96px;
        }
    }

    &__rotate {
        @include overlay-btn();

        margin-right: 32px;

        @media (min-width: 600px) {
            margin-right: 48px;
        }

        &::after {
            background-image: url('#{$manhattan-manage-asset-root}/assets/rotate.svg');
        }
    }

    &__okay {
        @include overlay-btn();

        &::after {
            background-image: url('#{$manhattan-manage-asset-root}/assets/okay.svg');
        }
    }

    &__cancel {
        @include overlay-btn();

        &::after {
            background-image: url('#{$manhattan-manage-asset-root}/assets/cancel.svg');
        }
    }
}
