/*
 * this control is hastily hand-coded for a specific use case, so pardon some imperfections
 * note the use of d-none CSS class to show/hide content, which is Bootstrap 4
 */


.leaflet-control-layerpicker-panel a {
    color: #046B99;
    text-decoration: underline;
}

.leaflet-control-layerpicker-panel {
    background-color: white;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    border-radius: 4px;

    padding: 0.188rem 5px 5px;
}
.leaflet-control-layerpicker-panel > button.leaflet-control-layerpicker-closebutton {
    font-size: 1.563rem;
    font-weight: bold;
    line-height: 1;
    border: 0;
    background: none;
    height: 1.563rem;
    width: 1.563rem;
    position: absolute;
    top: -0.313rem;
    right: 0;
}

.leaflet-control-layerpicker-layer {
    font-size: 0.813rem;
    clear: both;
}
.leaflet-control-layerpicker-layer label {
    margin: 0 0 0.188rem;

    cursor: pointer;
}

#closebutton-wrapper {
    display: flex;
    justify-content: space-between;
}

.leaflet-control-layerpicker-title {
    font-size: 1rem !important;
    margin: 0.188rem !important;
}

.leaflet-control-layerpicker-closebutton {
    cursor: pointer;
    padding: 0 0.75rem;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
}

.leaflet-control-layerpicker-layer input {
    position: relative;
    top: 2px;
    margin-right: 0.313rem;
}

.leaflet-control-layerpicker-layer-legend {
    margin-left: 1.125rem;

    padding-bottom: 0.313rem;
}

.leaflet-control-layerpicker-layer-legend-wrapper {
    display: flex;
    align-items: center;
}

.leaflet-control-layerpicker-layer-legend-wrapper > span {
    display: inline-block;
}

.leaflet-control-layerpicker-layer-legend-swatch {
    height: 0.938rem;
    width: 0.938rem;

    margin-right: 0.313rem;
}

.leaflet-control-layerpicker-openbutton {
    background-color: white;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    border-radius: 4px;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 2.813rem;  
    height: 2.813rem;
}
.leaflet-control-layerpicker-openbutton span {
    font-size: 1.5rem;
}
