.retrieval-timestamp-control {
    max-width: calc(100vw - 100px);
    padding: 5px 8px;
    border-radius: 4px;
    background-color: rgb(255 255 255 / 90%);
    box-shadow: 0 1px 5px rgb(0 0 0 / 65%);
    color: #333;
    font-size: 13px;
    line-height: 1.4;
}

.retrieval-timestamp-control__label {
    font-weight: bold;
}

.retrieval-timestamp-control__value {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .retrieval-timestamp-control {
        max-width: calc(100vw - 80px);
        padding: 4px 6px;
        font-size: 12px;
    }

    .retrieval-timestamp-control__value {
        white-space: normal;
    }
}

#map .leaflet-bottom.leaflet-right {
    display: grid;
    grid-template-columns: auto auto;
    align-items: end;
    justify-items: end;
    column-gap: 6px;
}

#map .leaflet-bottom.leaflet-right > .leaflet-control {
    float: none;
    clear: none;
}

#map .retrieval-timestamp-control {
    grid-row: 1;
    grid-column: 1 / -1;
}

#map .leaflet-control-scale {
    grid-row: 2;
    grid-column: 1;
    margin-right: 0;
    margin-bottom: 0;
}

#map .leaflet-control-attribution {
    grid-row: 2;
    grid-column: 2;
    margin-left: 0;
    margin-bottom: 0;
}

#map .leaflet-control-attribution,
#map .leaflet-control-scale-line {
    box-sizing: border-box;
    height: 18px;
    display: flex;
    align-items: center;
}

#map .leaflet-control-attribution {
    padding-top: 0;
    padding-bottom: 0;
}

#map .leaflet-control-scale-line {
    padding-top: 0;
    padding-bottom: 0;
    line-height: normal;
}