.rm2-legend {
    position: relative;
}

.rm2-legend-panel {
    position: absolute;
    min-width: 300px;
    overflow-y: auto;
    top: .5em;
    right: .5em;
    pointer-events: all;
    z-index: 100;
    border: 1px solid #cccccc;
    background-color: white;
}

.rm2-legend-layer-icon {
    width: 20px;
    height: auto;
}

.rm2-legend-layer-icon-big {
    height: 4.25em !important;
}

.rm2-legend-transparent-border-bg {
    border-color: transparent;
    background-color: transparent;
}

.rm2-legend-pointer {
    cursor: pointer;
}