@import "../../../styles/modules/importAll";

.LayerMenuItem {
    display: flex;
    flex: 1;
    height: 4rem;
    border-bottom: 1px solid $lightGrey;
    position: relative;

    &:last-child {
        margin-bottom: 1rem;
    }

    .titleInputContainer {
        display: flex;
        flex: 1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        input {
            height: 2.8em;
            line-height: 1.4em;
            padding: 0.5rem;
            margin-left: 0.5rem;
        }

        button {
            height: 2.8em;
            line-height: 1.4rem;
            padding: 0.5rem 1rem;
        }
    }

    .container {
        display: flex;
        flex: 1;
        padding: 0.5rem 0;
        align-items: center;
        justify-content: space-between;

        .titleContainer,
        .toggleContainer,
        .overflowButtonContainer {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .titleContainer {
            align-self: stretch;
            display: flex;
            flex: 4;
            border: 2px solid transparent;

            /* So text position is same as input mode */

            .title {
                display: flex;
                flex: 1;
                align-self: stretch;
                align-items: center;
                line-height: 1.4em;
            }
        }
        .orderButtonSection {
            width: 4rem;
            display: flex;
            justify-content: flex-end;
        }
        .orderButtonContainer {
            width: 2rem;
            text-align: center;
        }
        .orderButton i {
            font-size: 1.5rem;
        }

        .toggleContainer, .overflowButtonContainer {
            position: relative;
            flex: 1;

            .ToggleInput, .overflowButton {
                padding-top: 0;
                padding-bottom: 0;
                height: 2.8rem;
                line-height: 2.8rem;
            }
        }

        .overflowButtonContainer {
            justify-content: flex-end;

            button{
                font-size: 1.5em;
                padding: 0 0.5rem;

                &.active {
                    color: $midGrey;
                }
            }
        }
    }
}