.modal_popup {
    position: relative;
    width: 100%;
    max-width: 680px;
    height: auto;
    background: #f8f8f8;
    margin: 0 auto;
    overflow: hidden;
}

header.popup_header {
    position: relative;
    background-color: #000;
    color: #fff;
    padding: 10px;
}

header.popup_header .controls {
    float: right;
    position: relative;
}

.close {
    right: 25px;
    top: 10px;
    width: 32px;
    height: 32px;
    opacity: 1;
    background: #fff;
}

.close:hover {
    opacity: 1;
}

.close:before, .close:after {
    right: 7px;
    content: '';
    height: 21px;
    width: 2px;
    background-color: #fff;
    top: -17px;
    position: absolute;
}

.close:before {
    transform: rotate(45deg);
}

.close:after {
    transform: rotate(-45deg);
}

.modal_panel {
    background-color: #f8f8f8;
    /* height: 35em; */
    overflow-y: scroll;
    margin: 0.3em;
}

.modal_badge {
    background: #fff;
    padding: 1.3em;
    margin: 1em;
    border-radius: 13px;
}

.modal_panel h1 {
    margin-top: 0;
}

.modal_badge .badge_card {
    float: left;
    border: 3px solid #ccc;
    height: auto;
    padding: 11px;
    width: 21%;
}

.badge_score span {
    font-weight: 700;
}

.modal_badge .badge_card img {
    width: 100%;
    float: left;
    height: auto;
}

.modal_badge .badge_summary {
    display: block;
}

.modal_badge .badge_desc {
    width: 69%;
    float: left;
    padding-left: 15px;
    padding-right: 15px;
}

.modal_badge .badge_desc .badge_desc_textarea {
    width: 100%;
    margin: 0 0 15px;
}

.modal_badge .badge_desc .badge_desc_textarea textarea {
    width: 100%;
    height: 88px;
}

.modal_badge .badge_desc .badge_links {
    float: left;
}

.modal_badge .badge_desc .badge_links a {
    color: #fff;
    text-decoration: none;
    background: #ed1f6e;
    padding: 8px;
}

.modal_badge .badge_desc .badge_social_share_buttons {
    float: right;
}

.modal_badge .badge_desc .badge_social_share_buttons ul {
    margin: 0;
}

.modal_badge .badge_desc .badge_social_share_buttons ul li {
    display: inline-block;
}

.modal_panel::-webkit-scrollbar {
    width: 10px;
}

/* Track */
.modal_panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
.modal_panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 50px;
}

/* Handle on hover */
.modal_panel::-webkit-scrollbar-thumb:hover {
    background: #555;
    border-radius: 50px;
}

@media only screen and (min-width: 461px) and (max-width: 760px) {

    .modal_panel {
        height: 17em !important;
    }

    .modal_badge .badge_desc {
        width: 65% !important;
    }
}


@media only screen and (min-width: 180px) and (max-width: 460px) {

    .modal_panel {
        height: 19em;
    }

    .modal_badge .badge_desc {
        width: 56% !important;
    }

    .modal_badge .badge_desc .badge_links a {
        font-size: 10px;
    }

    .modal_badge .badge_desc .badge_social_share_buttons {
        float: left;
    }

    .modal_badge .badge_desc .badge_social_share_buttons ul {
        margin: 18px 0 0;
        padding: 0;
    }
}

.badge-embed-code textarea {
    height: auto;
}
#bos_ss_popup_wrap {
    height: 325px;
}