.bg__segment-layer-header {
    border-left: 3px solid $clGreyTint;
    padding: 5px 30px 5px 7px;
    font-size: 14px;
    font-weight: bold;
    font-family: $fontHeading;
    cursor: pointer;
    transition: background-color 0.3s ease-out, border-color 0.3s ease-out;

    background-image: $arrowDownDarkUrl;
    background-position: right 9px center;
    background-repeat: no-repeat;
    background-size: 12px;

    &:hover {
        background-color: $clGrey;

        > .delete-layer-button {
            opacity: 0.7;
        }
    }

    &.active {
        background-color: $clGrey;
        background-image: $arrowUpDarkUrl;
        border-left: 3px solid $clSecondary;
        &:hover {
            background-color: white;
        }

        > .left {
            > .bg__editable-text {
                border-bottom-color: $clSecondary;
            }
        }
    }

    > .left {
        > span.bg__editable-text {
            font-weight: 600;
            line-height: 25px;
            max-width: calc(100% - 80px);
        }

        > input.bg__editable-text {
            margin-top: 2px;
            margin-bottom: 1px;
            max-width: calc(100% - 80px);
            width: calc(100% - 80px);
        }

        > .layer-icon {
            width: 20px;
            margin-right: 0;
            padding-right: 10px;
            padding-left: 0;
            box-sizing: border-box;
            display: inline-block;
            height: 30px;
            width: 25px;
            background-image: $iconLayersUrl;
            background-repeat: no-repeat;
            background-position: center;
            background-size: 15px;
            margin-left: -5px;
            vertical-align: top;
        }
    }

    > .delete-layer-button {
        float: right;
        background-image: $iconTrashUrl;
        background-size: 20px;
        width: 30px;
        height: 40px;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.1;
        transition: opacity 0.3s ease-out;
        cursor: pointer;
        margin-top: -5px;

        &:hover {
            opacity: 1;
        }
    }

    > .count {
        margin-top: 5px;
        float: right;
        vertical-align: middle;
        font-size: 12px;
        line-height: 12px;
        color: white;
        background-color: $clSecondary;
        border-radius: 15px;
        padding: 3px;
        min-width: 18px;
        text-align: center;
    }
}
