
.legend {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    max-width: 300px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
    z-index: 50000;
    background-color: #ED1505;
    color: white;
}

.legend-img {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.legend-inner {
    display: none;
    padding-top: 10px;
}


.legend.is-open {
    background-color: white;
    color: black;
}

.legend.is-open .legend-inner {
    display: block;
}


.legend-toggle {
    cursor: pointer;
}

.legend-close {
    position: absolute;
    pointer-events: none;
    right: 5px;
    font-weight: normal;
    font-size: 30px;
    top: 2px;
    line-height: 1;
    cursor: pointer;
}

body[data-type="form"] .legend {
    display: none !important;
}

#legend-0,
#legend-1,
#legend-2 {
    display: none;
}


body[data-step="0"] #legend-0,
body[data-step="1"] #legend-1,
body[data-step="2"] #legend-2 {
    display: block;
}



@media (max-width: 768px) {
    .legend {
        display: none !important;
    }

    body.is-mobile-draw-mode .legend {
        display: block !important;
        bottom: 95px;
        left: 20px;
    }
}
