.shortcode-container {
    width: 100%;
}

.shortcode-container .map-container {
    max-width: 600px;
    flex-shrink: 0;
    flex-grow: 0;
    margin: 0 auto;
}

.map-container .districts.hidden, .map-container .areas.hidden {
    display: none;
}

.map-container svg.districts text, .map-container svg.areas text {
    pointer-events: none;
    user-select: none;
}

.map-container svg.districts, .map-container svg.areas {
    width: 100%;
}

.map-container .districts-container {
    position: relative;
}
.map-container .district-info {
    position: absolute;
    bottom: 0;
    left: 100%;
    margin-left: -34px;
    background-color: white;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
    width: 340px;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 18px 20px;
}
.map-container .district-info::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -19px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 17px 22px 17px 0;
    border-color: transparent #ffffff transparent transparent;
}
.map-container .district-info .person {
    display: flex;
    align-items: flex-start;
}
.map-container .district-info .person .person-photo {
    flex-shrink: 0;
    flex-grow: 0;
    margin-right: 20px;
}
.map-container .district-info .person .person-photo img {
    width: 90px;
    height: 90px;
    border-radius: 50px;
}
.map-container .district-info .person .person-info-content .person-info-header {
    font-size: 14px;
    line-height: 21px;
    font-weight: bold;
    color: #E66E00;
    text-transform: uppercase;
}
.map-container .district-info .person .person-info-content .person-full-name {
    font-size: 16px;
    line-height: 25px;
    font-weight: bold;
    color: #0A5F6E;
}
.map-container .district-info .person .person-info-content .person-description {
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    color: #0A5F6E;
}
.map-container .district-info .person .person-info-content .person-link {
    font-size: 14px;
    line-height: 24px;
    font-weight: bold;
    color: #E66E00;
    text-decoration: underline;
    margin-top: 8px;
    text-transform: uppercase;
}
.map-container .district-info .person-separator {
    margin-top: 28px;
    margin-bottom: 28px;
    height: 1px;
    width: 100%;
    background-color: #DCC8AA;
}
.map-container .district-info .person-separator:last-child {
    display: none;
}
.map-container .district-info .district-info-header {
    font-weight: 600;
    font-size: 16px;
    line-height: 21px;
    color: #E66E00;
    margin-bottom: 21px;
    text-transform: uppercase;
}
.map-container .district-info .district-info-header.hidden, .map-container .district-info.hidden {
    display: none;
}

.map-container .cwkmbutton-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container .cwkmbutton-container a {
    background-color: #E66E00;
    color: white;
    text-decoration: none;
    border-radius: 70px;
    padding: 19px 36px;
    font-size: 16px;
    line-height: 25px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}
.map-container .cwkmbutton-container a:focus, .map-container .cwkmbutton-container a:hover {
    background-color: #E66E00 !important;
    outline: none !important;
    text-decoration: none !important;
}
.map-container .cwkmbutton-container a img {
    margin-left: 12px;
}
.map-container .cwkmbutton-container a:focus img, .map-container .cwkmbutton-container a:hover img {
    outline: none !important;
}
.map-container .cwkmbutton-container a.hidden {
    display: none;
}
.map-container .districts-map-container-hint {
    display: none;
}

@media screen and (max-width: 1230px) {
    .map-container .district-info {
        position: relative;
        margin-left: 100%;
        transform: translateX(-100%);
        bottom: unset;
        left: unset;
        width: 340px;
    }

    .map-container .district-info::before {
        top: -20px;
        left: auto;
        right: 63px;
        transform: rotateZ(90deg);
    }
}

@media screen and (max-width: 720px) {
    .map-container .district-info {
        width: 100%;
    }

    .map-container .district-info::before {
        top: -20px;
        left: auto;
        right: 63px;
        transform: rotateZ(90deg);
    }

    .map-container .district-info .district-info-header {
        font-size: 14px;
        line-height: 21px;
    }

    .map-container .district-info .person .person-photo {
        margin-right: 18px;
    }

    .map-container .district-info .person .person-photo img {
        width:  56px;
        height: 56px;
    }

    .map-container .districts-map-container {
        overflow: scroll;
        max-height: 80vh;
    }

    .map-container .districts-map-container-hint {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        background-color: rgba(0, 0, 0, .75);
        color: white;
        box-sizing: border-box;;
        padding: 10px 30px;
        border-radius: 3px;
        max-width: 65vw;
        width: 100%;
        text-align: center;
        pointer-events: none;
    }

    .map-container .districts-map-container-hint.hidden {
        display: none;
    }
}
