.popover {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: 568px;
    width: 100%;
    user-select: none;

    &.leftArrow {
        .arrowCustom {
            transform: none;
            left: 22px;
        }
    }

    &.rightArrow {
        .arrowCustom {
            transform: none;
            right: 22px;
            left: auto;
        }
    }

    > .container-fluid {
        overflow: hidden;
    }
}

.nav-tabs > li {
    overflow: hidden;
}

.arrowCustom {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 41px;
    height: 16px;

    &:before {
        content: '';
        width: 0;
        height: 0;
        border-left: 21px solid transparent;
        border-right: 21px solid transparent;
        border-bottom: 17px solid rgba(0, 0, 0, 0.2);
        display: block;
        position: absolute;
        top: -1px;
    }

    &:after {
        content: '';
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 16px solid #f7f7f7;
        display: block;
        position: absolute;
        top: 0;
    }
}

.popover-action {
    padding: 8px 14px;
    margin: 0;
    font-size: 14px;
    background-color: #f7f7f7;
    border-top: 1px solid #ebebeb;
    border-radius: 0 0 5px 5px;
    text-align: right;
}

.popover-title {
    &.menu-tabs {
        padding: 0.5rem 0.5rem 0;
        display: block;

        .nav-tabs {
            position: relative;
            top: 1px;
            display: flex;

            .menu-tabs--item {
                display: flex;
                align-items: center;
                cursor: pointer;

                i {
                    margin-right: 0.25em;
                }
            }
        }
    }
}

.popover-content {
    padding: 10px 24px;
}

.popover-overlay {
    position: fixed;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0);
    transition: background 200ms ease-out, height 0ms 200ms linear;

    &.display {
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        transition: background 200ms ease-out;
    }
}

.select2-item {
    position: relative;
    font-size: 1.5rem;

    &.keymap-name--wrapper {
        padding-left: 50px;
    }

    .layout-segment-code {
        height: 2rem;
        position: absolute;
        left: 0;
        top: 50%;
        margin-top: -1rem;
    }
}
