.wdf-flex-container {
    display: flex;
    border-radius: 5px;
    border: 1px solid lightgrey;
    overflow: hidden;
}

.wdf-show-more-container[style*='block'] {
    display: flex !important;
}

.wdf-show-more-container {
    display: none;
    border-radius: 5px;
    background-color: white;
    border: 1px solid lightgrey;
    box-shadow: 0px 0px 5px lightgrey;
    justify-content: space-between;
    width: 100%;
    padding: 10px 10px 10px 10px;
    margin: 0px 0px 10px 10px;
}

.wdf-link.show-less {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #780D33;
    margin-top: -4px;
    margin-right: -4px;
    color: white !important;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    transition: all .5s ease-out;
}

.wdf-link.show-less:hover {
    transform: scale(1.1);
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    transition: all .5s ease-out;
}

.wdf-link.show-more {
    font-weight: bold;
}

.wdf-link:hover {
    text-decoration: underline;
    cursor: pointer;
}

#wdf-distributor-list-container {
    min-width: 300px;
    max-width: fit-content;
    width: 100%;
    z-index: 1;
}

#wdf-distributor-list {
    display: flex;
    flex-direction: column;
    overflow: auto;
    max-height: calc(500px - 40px);
    padding: 5px;
}

.wdf-distributor-element {
    display: flex;
    flex-direction: row;
}

.wdf-pre-text {
    white-space: pre-wrap;
}

.wdf-distributor-element-separator {
    margin-top: 5px !important;
    margin-bottom: 10px !important;
}

.wdf-element-icon-container {
    width: 20px;
}

input[name="wdf-view-distributor"] {
    width: 100%;
}

.wdf-distributor-details > div:first-child,
.wdf-distributor-container > div:first-child {
    font-weight: bold;
}

.wdf-distributor-element > div:nth-child(2) {
    margin-left: 5px;
}

.wdf-distributor-button {
    margin-top: 5px;
}

.wdf-distributor-container {
    padding: 15px;
    border-right: 0px;
    margin: 5px;
    box-shadow: 0px 0px 5px lightgrey;
    border: 1px solid lightgrey;
    border-radius: 5px;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    transition: all .5s ease-out;
}

.wdf-distributor-container:nth-child(n+2) {
    margin-top: 5px !important;
}

.wdf-distributor-container.active {
    background-color: #F4F4F4;
}

#wdf-map {
    border: 1px solid lightgrey;
    height: 500px;
    width: 100%;
    z-index: 0;
}

.leaflet-container {
    background: #F4F4F4;
    font-family: inherit !important;
}

.leaflet-container * a {
    font-size: 15px;
    color: inherit;
}

.leaflet-control-reset-map {
    font-size: 18px !important;
}

#wdf-distributor-filter {
    box-shadow: 0px 15px 20px -5px rgba(0, 0, 0, 0.125);
}

.leaflet-popup-content-wrapper {
    overflow: auto;
    border-radius: 5px;
}

.leaflet-popup-content {
    min-width: 200px;
    font-size: 15px;
}

@media screen and (max-width: 768px) {

    #wdf-map {
        height: 400px;
    }

    #wdf-distributor-filter {
        box-shadow: none;
    }

    .wdf-flex-container {
        flex-direction: column;
    }

    .wdf-distributor-container {
        padding: 20px;
        min-width: fit-content;
        border: 1px solid lightgrey;
        margin: 5px;
    }

    .wdf-distributor-container:nth-child(n+2) {
        margin-left: 5px;
    }

    #wdf-distributor-list-container {
        max-width: inherit;
        border: none;     
    }

    #wdf-distributor-list {
        margin: 10px 0 10px 0;
        flex-direction: row;
    }

    .wdf-distributor-element-fixed-content {
        margin-bottom: 5px;
    }
    
}