.custom-layer-item {
    margin-bottom: 12px;
    position: relative;
    padding: 0;
    width: 100%;
    background-color: #ffffff;
    border: 5px solid #EAEAEA;
    border-radius: 5px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    box-sizing: border-box;
}

.custom-layer-colored-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border-top-left-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.custom-layer-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #000000;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    i {
        color: #000000;
        font-size: 12px;
        font-weight: 900;
        -webkit-text-stroke: 0.5px #000000;
    }
}

.custom-layer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 6px;
    padding-right: 12px;
    padding-left: 48px;
    min-height: 40px;
    background-color: #EAEAEA;
    position: relative;
    z-index: 1;
}

.custom-layer-title {
    font-weight: bold;
    font-size: 1em;
    color: #000000;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.remove-custom-layer-btn {
    background: none;
    border: none;
    padding: 6px 10px;
    padding-right: 4px;
    margin-right: -8px;
    font-size: 1.1em;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
    &:hover {opacity: 0.7;}
}

.custom-layer-content {
    padding: 12px;
    font-size: 0.9em;
    line-height: 1.6;
}

.custom-layer-parameter {
    margin-bottom: 4px;
}

.custom-layer-parameter-label {
    font-weight: 900;
    font-size: 1.05em;
    color: #000000;
    i {
        font-weight: bold;
        margin-right: 6px;
    }
}

.custom-layer-parameter-value {
    margin-left: 8px;
}

.custom-layer-speed-value {
    margin-left: 12px;
}

.custom-layer-speed-icon {
    color: #000000;
    font-weight: bold;
    margin-right: 4px;
}

.custom-layer-speed-value-small {
    font-size: 0.9em;
}

.custom-layers-full-width {
    margin-left: 0;
    width: 100%;
}

#add-custom-layer-btn {
    width: 100%;
    display: block;
}

#active-custom-layers-container, #active-custom-layers {
    width: 100%;
}


/* OVERRIDES */
/* TODO - Incorporate Overrides to CSS designCustom Coverage Layers */
.layer-sidebar-override {

    & .custom-layer-header {
        /* min-height: 0;
        padding-left: 0;
        padding-top: 0;
        padding-bottom: 0;
        justify-content: flex-end; */

        all: unset;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0px 5px 3px 5px;

        & .toggle-custom-layer-btn {
            font-size: 1.3em;
            line-height: 1;

            & [data-icon-on],[data-icon-off] { display: none; }

            &.toggle-on {
                & [data-icon-on] { display: block; }
            }

            &.toggle-off {
                & [data-icon-off] { 
                    display: block;
                }
            }
        }

        & .toggle-custom-layer-btn i {
            --fa-primary-color: #000;
            --fa-secondary-color: #fff;
            --fa-secondary-opacity: 1.0
        }
    }
    & .custom-layer-title {
        display: none;
    }
    & .custom-layer-title {
        padding: inherit;
    }
    & .custom-layer-colored-box {
        display: none;
    }
    & .custom-layer-content {
        padding: 10px 10px 5px 17px;
        line-height: 1.4;
    }
    
    &.override-ff2626 {
        border: 5px solid #f5a0a0;
        background-color: #f5a0a0;

        & .custom-layer-header {
            background-color: #f5a0a0
        }
        & .custom-layer-content {
            background-color: #fff1f1;
        }
    }
    &.override-3232fe {
        border: 5px solid #afaff4;
        background-color: #afaff4;

        & .custom-layer-header {
            background-color: #afaff4
        }
        & .custom-layer-content {
            background-color: #efefff;
        }
    }
    &.override-00ff00 {
        border: 5px solid #a7f4a7;
        background-color: #a7f4a7;

        & .custom-layer-header {
            background-color: #a7f4a7
        }
        & .custom-layer-content {
            background-color: #ebffeb;
        }
    }
}
#toggle-old-implementation-btn {
    display: none;
}
#add-custom-layer-btn {
    width: auto;
    border-radius: 25px;
}
#lg-bb-speed, #lg-bb-filter, #lg-bb-tech {
    display: none;
}
.legend-override-ff2626 {
    background-color: #f5a0a0;
}
.legend-override-3232fe {
    background-color: #afaff4;
}
.legend-override-00ff00 {
    background-color: #a7f4a7;
}
#lg-bb-custom-layers {

    & .horizontal-flex {
        all: unset;
        display: flex;
    }

    & .circle-legend {
        width: 35px;
        height: 15px;
        margin-right: 0;
    }
}
.remove-custom-layer-btn {
    all: unset;
    display: block;
}