/*
Theme Name: Beigene
Author: Beigene
Description: This theme for Beigene
Version: 1.0.0
*/

strong, b {
    font-weight: 600;
}

.accordion-panel h4 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.three-col-list { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    grid-gap: 25px; 
} 

@media (max-width: 768px) { 
    .three-col-list { 
        display: block; 
    } 
}


.card-horiz-primary .card-img-col.col-w-1 {
    width: calc(8.3333333333% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-2 {
    width: calc(16.6666666666% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-3 {
    width: calc(25% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-4 {
    width: calc(33.3333333333% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-5 {
    width: calc(41.6666666666% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-6 {
    width: calc(50% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-7 {
    width: calc(58.3333333333% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-8 {
    width: calc(66.6666666666% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-9 {
    width: calc(75% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-10 {
    width: calc(83.3333333333% + 4px + ((100vw - 1248px) / 2));
}
.card-horiz-primary .card-img-col.col-w-11 {
    width: calc(91.6666666666% + 4px + ((100vw - 1248px) / 2));
}


.col-w-1 {
    width: calc(8.3333333333% + 4px + ((100vw - 1248px) / 2));
}
.col-w-2 {
    width: calc(16.6666666666% + 4px + ((100vw - 1248px) / 2));
}
.col-w-3 {
    width: calc(25% + 4px + ((100vw - 1248px) / 2));
}
.col-w-4 {
    width: calc(33.3333333333% + 4px + ((100vw - 1248px) / 2));
}
.col-w-5 {
    width: calc(41.6666666666% + 4px + ((100vw - 1248px) / 2));
}
.col-w-6 {
    width: calc(50% + 4px + ((100vw - 1248px) / 2));
}
.col-w-7 {
    width: calc(58.3333333333% + 4px + ((100vw - 1248px) / 2));
}
.col-w-8 {
    width: calc(66.6666666666% + 4px + ((100vw - 1248px) / 2));
}
.col-w-9 {
    width: calc(75% + 4px + ((100vw - 1248px) / 2));
}
.col-w-10 {
    width: calc(83.3333333333% + 4px + ((100vw - 1248px) / 2));
}
.col-w-11 {
    width: calc(91.6666666666% + 4px + ((100vw - 1248px) / 2));
}


.footnote {
    font-size:11px;
}

li:has(span.footnote) {
    font-size:11px;
}

ol, .featured-content-section ul, .card-horiz-primary ul, .accordion-section .sec-body ul {
/*    padding-left: 20px;*/
    margin-left: 15px;
}

ol, ol li {
    list-style: auto;
}

.featured-content-section ul li, .card-horiz-primary ul li, .accordion-section .accordion-panel ul li, .accordion-section .sec-body ul li {
    position: relative;
    padding-left: 15px;
}

.accordion-section .accordion-panel ul {
    margin-left: 10px;
}

.accordion-section .accordion-panel p + ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.featured-content-section ul li:before, .card-horiz-primary ul li:before, .accordion-section .accordion-panel ul li:before, .accordion-section .sec-body ul li:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50px;
    position: absolute;
    left: 0;
    top: 10px;
    background: #006680;
}

.card-horiz-primary p + ul {
    margin-top: 15px;
    margin-bottom: 15px;
}

.copy-block .sec-body ul {
    padding: 0;
}

.copy-block .sec-body ul > li:has(ul):before {
    display: none;
}

.copy-block .sec-body ul > li:has(ul) > ul {
    margin-left: 10px;
}

/*#main-nav ul, #main-nav ol, #main-nav ul li, #main-nav ol li, .mainFooter ul, .mainFooter ol, .mainFooter ul li, .mainFooter ol li, #menu-top-menu ul, #menu-top-menu ol, #menu-top-menu ul li, #menu-top-menu ol li, #menu-top-menu, #menu-top-menu li {
    list-style: none;
    padding: 0;
}*/


/* unsetting max height on accordion */
.accordion {
    max-height: unset;
}

/* featured content, align buttons at bottom */
.featured-content-section .sec-buttons {
    margin-top: auto;
}

/* add link styles for footnotes */
.footnote a, em > a, .copy-block .sec-body li a, .accordion-section li.accordion-item .accordion-panel a {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    line-height: 1.45em;
    letter-spacing: 0.01em;
    text-decoration-line: underline;
    color: #006680;
    transition: 0.3s;
    padding: 0;
    border-radius: 50px;
    border: 0px solid transparent;
    text-align: center;
}



.nf-field-element a {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    line-height: 1.45em;
    letter-spacing: 0.01em;
    text-decoration-line: underline;
    color: #006680;
    transition: 0.3s;
    padding: 0;
    border-radius: 50px;
    border: 0px solid transparent;
    text-align: center;
    cursor: pointer;
}

.nf-field-element a:hover {
    font-weight: 600;
    cursor: pointer;
}

.accordion-section li.accordion-item .accordion-panel .accordion-buttons a.btn-primary, .single-clinical-trials .cta-btn, .nf-form-content .nf-mp-footer .nf-previous-item > .nf-previous {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 11px 32px;
    gap: 8px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50px;
    color: currentColor;
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: 0.3s;
    background: #28334A;
    border: 2px solid #28334A;
    color: #FFFFFF;
    text-decoration: none;
    text-decoration-line: none;
}

.accordion-section li.accordion-item .accordion-panel .accordion-buttons a.btn-primary:hover, .single-clinical-trials .cta-btn:hover, .nf-form-content .nf-mp-footer .nf-previous-item > .nf-previous:hover {
    background: #006680;
    border: 2px solid #006680;
    color: #FFFFFF;
}

.single-clinical-trials .masthead-content a:hover span {
     color: #fff;
}

.accordion-section li.accordion-item .accordion-panel .accordion-buttons a.btn-primary:focus, .single-clinical-trials .cta-btn:focus, .nf-form-content .nf-mp-footer .nf-previous-item > .nf-previous:focus {
    border: 2px solid #00CCFF;
    box-shadow: 0px 0px 12px rgba(0, 204, 255, 0.6);
}

.nf-form-content .nf-mp-footer .nf-previous-item > .nf-previous::after {
    background-image: url(assets/img/submit-btn-arrow.svg);
    background-color: #8AE7FF;
    content: "";
    height: 16px;
    width: 16px;
    flex: 0 0 16px;
    display: inline-block;
    -webkit-mask-size: auto;
    mask-size: auto;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

@media (min-width: 1025px) {
    .accordion-section li.accordion-item .accordion-panel .accordion-buttons a.btn-primary, .single-clinical-trials .cta-btn {
        font-size: 18px;
    }
}

.footnote a:hover, em > a:hover, .copy-block .sec-body li a:hover, .accordion-section .accordion-panel .accordion-item li a:hover {
    font-weight: 600;
}

.download-share-wrap {
    margin-top: 20px;
}

.shortcode_block_section {
    margin-bottom: 100px;
}

.team-tabbing-sec .tab-content .tab-pane .img-wrap img {
    object-position: top;
}

.quote-sec .quote-box h2, .quote-sec .quote-box h3 {
    -webkit-line-clamp: 9;
}

.row.column-md-revese {
    flex-flow: row-reverse;
}

.video-card-horizontal .column-md-revese .video-box {
    padding-right: 50px;
    padding-left: 0;
}

.hero-interior-noimg-sec ul {
    padding-left: 20px;
    margin-left: 10px;
    padding-top: 10px;
}

.hero-interior-noimg-sec ul li {
    list-style: disc;
}


.eyebrow.blue {
    color: #006680;
}

.office-map__body .office-map__office-card-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.partner-logo-section a:focus {
    box-shadow: none;
}


.partner-logo-section > .col > div:hover, .partner-logo-section > .col > div:focus {
    box-shadow: 0px 0px 12px rgba(0, 204, 255, 0.6) !important;
}

.card-set-box .card-image.media-popup img, .media-library-popup .popup-content .modal-media-box .popup-img img {
    object-fit: contain;
}

@media (min-width: 1200px) {
    .main-nav .menu-item-has-children.menu-item-science > .sub-menu {
        min-width: 800px;
    }
}

/*@media (max-width: 1199.98px) {
    .main-nav .menu-item-has-children.menu-item-science > .sub-menu {
        min-width: 600px;
    }
}*/

.home-banner-section .hero-title {
    -webkit-line-clamp: unset;
}

/*.accordion-section .accordion-panel li strong {
    font-weight: 500;
}
*/

.featured-content-section h4 {
    color: #006680;
}

.nf-form-content .nf-field .field-wrap .nf-field-label label .ninja-forms-req-symbol, .ninja-forms-req-symbol {
   color: #e80000 !important;
    /* color: inherit; */
}


/* pipeline */
.indication-item .indication-details .indication-subtext {
    font-size: 16px;
    color: #30383FCC;
}

.text-rtl.accordion-section {
    direction: rtl; 
    text-align: right;
}

.text-rtl.accordion-section .accordion-panel ul, .text-rtl.accordion-section .accordion-panel ol {
    padding-right: 30px;
}

.text-rtl.accordion-section .accordion-panel ul li:before {
    right: -15px;
}

.accordion-panel .accordion-img-box img {
    object-fit: contain;
}

.card-tertiary-image .card-set-box {
    height: 100%;
}

.card-tertiary-image .card-button {
    margin-top: auto;
}

.video-section .sec-header {
    max-width: 900px;
}

/*.accordion-thumb-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
}

.accordion-thumb {
    width: calc(100% - 30px);
}

.accordion-thumb-wrapper .accordion-icon {
    max-width: 30px;
}*/


/* trying to unset focus for links and read more buttons */
.btn-tertiary:focus, .nf-mp-footer .nf-previous-item > .nf-previous:focus, p > a:focus {
    border: unset;
    box-shadow: unset;
    background-color: unset;
}


#nf-field-150 .listcheckbox-wrap > .nf-field-label{
    display: none !important;
}

#resultbox_get_search_pipeline .get_list_a sup {
    display: none;
}

.video-section .sec-header {
    max-width: unset;
}

/* Forms */
.shift-up .nf-field-label {
    display:none;
}
.nf-label-span:empty {
    display:none;
}
.nf-row:has(nf-field:empty) {
    display:none;
}
.nf-row:not(:has(nf-field div)) {
    display:none;
}
.nf-form-layout .html-wrap {
    
}
.nf-form-layout .html-wrap p, .nf-form-layout .html-wrap ul {
    font-family: Poppins;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom:10px;
}
.nf-form-layout .html-wrap ul {
    margin-left:40px
}
.nf-form-layout .html-wrap ul li{
    margin-bottom:5px;
    list-style: disc;
}
.product_repeater fieldset {
    margin-bottom:20px!important;
    padding-bottom:20px;
    border-bottom:1px solid #222222!important;
}

.study-ids .info-tooltip {
    margin-left: 7px;
}

.clinical-trials-masthead-id {
    margin-right: 20px;
    margin-bottom: 0;
}

.clinical-trials-masthead-status p {
    margin-bottom: 0;
}

.d-flex.align-items-start.align-items-lg-center.flex-column.flex-lg-row {
    margin-bottom: 10px;
}

.single-clinical-trials .btn-primary:hover {
    background: rgba(40, 51, 74, 0.2);
    border: 2px solid #28334A;
}

.single-clinical-trials a:hover {
    text-decoration: none;
}

.single-clinical-trials .masthead-content .clinical-trials-masthead-return-to-search:hover {
    color: #fff;
    font-weight: 600;
}

#joinTrialModal .modal-header .btn-close {
    border: none;
    margin-left: auto;
    cursor: pointer;
}

#nf-field-522-wrap .nf-field-label {
    display: none;
}

.nf-mp-footer .nf-previous-item > .nf-previous {
    margin-left: unset;
}

.nf-form-content .nf-mp-footer .nf-previous-item > .nf-previous, .nf-form-content .nf-mp-footer .nf-previous-item > .nf-previous:hover {
    background-image: url(assets/img/previous-btn-arrow-forms.svg);
    background-repeat: no-repeat;
    background-position: 16% 50%;
    padding: 11px 32px 11px 50px;
}

.nf-form-content .nf-mp-footer .nf-previous-item > .nf-previous:hover {
    background-color: #006680;
}

.single-clinical-trials .masthead-content #joinTrialModal * {
    color: #000;
}

.single-clinical-trials .masthead-content #joinTrialModal .submit-wrap *, 
.single-clinical-trials .masthead-content #joinTrialModal .submit-wrap input {
    color: #fff;
}


/* pipeline */
/* tisle - late line msi-h.... hide phase 3 */
.indication-item[data-indication-id="22576"] .phase-tracker-list > div:nth-of-type(3) .phase-label {
/*    display: none;*/
}

.indication-item[data-indication-id="22576"] .phase-tracker-list > div:nth-of-type(3) .phase-bar.completed-phase {
    background-color: #BDBDBD;
}


.mobile_show {
    display: none;
}


.full-table-wrapper { 
    border: 1px solid #EA514A; 
    border: 1px solid #D52B1E; 
} 

.full-table-wrapper .header { 
    background: #28334A; 
    color: #fff; 
} 

.full-table-wrapper .table-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
} 

.full-table-wrapper .table-wrapper p strong {
    display: block;
}

.main-container .section .sec-header .sec-body > div .full-table-wrapper p + p { 
    margin-top: 15px; 
} 

.full-table-wrapper .full-width, .full-table-wrapper .table-wrapper > div { 
    padding: 8px; 
} 

.full-table-wrapper .table-wrapper > div, .full-table-wrapper .full-width { 
    border: 1px solid #D52B1E;
}

.two-col-wrapper .timeline { 
    display:grid; 
    grid-template-columns:1fr 2fr;
} 

.two-col-wrapper > div > div { 
    border-bottom: 2px solid #fff; 
    padding: 8px; 
} 

.two-col-wrapper .tbl-header { 
    background: #28334A; 
    color: #fff; 
    font-weight: 500; 
}

.two-col-wrapper > div > div:last-of-type, .two-col-wrapper > div > div:nth-of-type(15) { 
    border-bottom: none 
} 

.two-col-wrapper { 
    border: 2px solid #fff; 
} 

.two-col-wrapper > div > div:nth-of-type(even) { 
    border-left: 2px solid #fff; 
}


@media (min-width: 825px) {
    .step1 .jBox-wrapper, .step1 .jBox-wrapper .jBox-container {
        max-width: 800px;
    }
}



/* media queries */
@media (max-width: 768px) {

    /* giving page, make image contained */
    .page-id-6860 .card-horiz-primary .card-offset-img img {
        object-fit: contain;
    }

    .mobile_show {
        display: block;
    }

    .mobile_hide {
        display: none;
    }

    .full-table-wrapper .table-wrapper {
        grid-template-columns: 1fr;
    }

    .after-buttons.multiple {
        display: grid;
    }  

    .two-col-wrapper .timeline {
        display: block;
    }

    .two-col-wrapper > div > div:nth-of-type(even) { 
       border-left: none; 
    }  

    .two-col-wrapper > div > div:nth-of-type(odd) { 
        border-bottom: none;
        padding-bottom: 0;
        /* text-decoration: underline; */
        font-weight: 500;
    }

    /*  set custom columns to full width on mobile  */ 
    .card-content-col.col-1, .card-content-col.col-2, .card-content-col.col-3, .card-content-col.col-4, .card-content-col.col-5, .card-content-col.col-6, .card-content-col.col-7, .card-content-col.col-8, .card-content-col.col-9, .card-content-col.col-10, .card-content-col.col-11 {
        width: 100%;
    }

    .home-banner-section {
        padding-top: 0px;
    }

    .row.column-md-revese {
        flex-flow: column;
    }

    .flex-col-mobile {
        flex-flow: column;
        gap: 20px;
    }

    .accordion-section:has(+ section)::after {
        display: none;
    }

    .quote-sec .quote-box h2, .quote-sec .quote-box h3 {
        -webkit-line-clamp: 12;
    }



    /*  Joe's request for company stories on mobile...  */
    .video-section.video-card-horizontal {
        padding-bottom: 20px;
    }

    .video-large .video-box, .video-large .video-box :is(vimeo-embed) {
        height: calc(56.25vw);
    }

    .video-large .video-box img {
        height: calc(56.25vw);

    }


    /* clinical trials */
    .page-template-page-clinical-trials .call-out-cta-block.py-5 {
        padding: 0;
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    .page-template-page-clinical-trials .call-out-cta-block.py-5 .px-5 {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .page-template-page-clinical-trials .call-out-cta-block.py-5 .clinical-trials-id-field {
        padding-left: 32px;
        padding-right: 32px;
    }

    .page-template-page-clinical-trials .call-out-cta-block.py-5 .clinical-trials-id-field a {
        margin: 0;
        margin-top: 25px;
    }

    .page-template-page-clinical-trials form .mob_search {

    }

    .page-template-page-clinical-trials .result-row .study-id {
        padding: 10px 0;
        color: #28334A;
        font-size: 18px;
        line-height: 1.35;
        font-family: "Bitter";
        font-weight: 600;
        letter-spacing: 0.02em;

    }

    .page-template-page-clinical-trials .all-results-wrapper .phase-wrapper {
        padding-top: 0 !important;
        height: 40px;
    }

    .page-template-page-clinical-trials .all-results-wrapper .result-row .phase-wrapper .phase {
        width: 40px;
        height: 40px;
    }

    .page-template-page-clinical-trials .all-results-wrapper .result-row .condition, .page-template-page-clinical-trials .all-results-wrapper .result-row .location {
        width: 90%;
    }

    .page-template-page-clinical-trials .all-results-wrapper .result-row .sex, .page-template-page-clinical-trials .all-results-wrapper .result-row .age {
        margin-top: 15px;
        margin-bottom: 25px;
    }

    .page-template-page-clinical-trials .all-results-wrapper .result-row .learn-more, .page-template-page-clinical-trials .all-results-wrapper .result-row .ask-to-join {
        width: 90%;
    }

    .page-template-page-clinical-trials .all-results-wrapper .result-row .ask-to-join a {
        width: 90%;
        margin-bottom: 30px;

    }

    .single-clinical-trials .masthead-content *, .single-clinical-trials .masthead-content a {
        color: #fff;
    }
    
    .single-clinical-trials .study-ids {
        margin-top: 30px;
    }

    .single-clinical-trials .study-ids.d-flex {
        display: block !important;
    }

    .single-clinical-trials .study-ids > .row {
        display: block;
    }

    .single-clinical-trials .study-ids .col-6 {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .single-clinical-trials .study-ids .col-6 .d-flex {
        display: block;
        margin-bottom: 5px;
    }

    .office-map__body .dropdown {
        position: relative;
    }

    .office-map__body .dropdown-menu {
        position: absolute;
        z-index: 1000;
        display: none;
        min-width: 10rem;
        padding: .5rem 0;
        margin: 0;
        font-size: 1rem;
        color: #212529;
        text-align: left;
        list-style: none;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid rgba(0, 0, 0, .15);
        border-radius: .25rem;
    }

    .office-map__body .dropdown-menu a {
        width: 100%;
    }



}

@media (max-width: 525px) {
    .stats-col-callout .stats-callout-slider {
        padding-bottom: 35px;
    }

    .nf-cell .nf-field-container .checkbox-wrap .nf-field-label label:before {
        left: 0;
    }
}








/* modal popup */

/*.btn-close {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: .25rem;
    opacity: .5
}

.btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: .75
}

.btn-close:focus {
    outline: 0;
    -webkit-box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
    opacity: 1
}

.btn-close.disabled,.btn-close:disabled {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: .25
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: #fff;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    pointer-events: none
}

.modal.fade .modal-dialog {
    -webkit-transition: -webkit-transform .3s ease-out;
    transition: -webkit-transform .3s ease-out;
    transition: transform .3s ease-out;
    transition: transform .3s ease-out,-webkit-transform .3s ease-out;
    -webkit-transform: translate(0,-50px);
    transform: translate(0,-50px)
}

@media (prefers-reduced-motion:reduce) {
    .modal.fade .modal-dialog {
        -webkit-transition: none;
        transition: none
    }
}

.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none
}

.modal-dialog-scrollable {
    height: calc(100% - 1rem)
}

.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto
}

.modal-dialog-centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem)
}

.modal-content {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    outline: 0;

    width: 700px;
    max-width: 90vw;
}

.modal-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px)
}

.modal-header .btn-close {
    padding: .5rem .5rem;
    margin: -.5rem -.5rem -.5rem auto
}

.modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;

    line-height: 35px;
    padding-top: 5px;
}

.modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: .75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px)
}

.modal-footer>* {
    margin: .25rem
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width:500px;
        margin: 1.75rem auto
    }

    .modal-dialog-scrollable {
        height: calc(100% - 3.5rem)
    }

    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem)
    }
}

@media (min-width: 992px) {
    .modal-xl {
        max-width:800px
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width:1140px
    }
}


    .modal-overlay {
        display: none;
        background: rgba(0, 58, 112, .8);
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9998;
    }

    #modal-popup, #name-change-modal {
        z-index: 9999;

        width: fit-content;
        height: fit-content;
        top: 36%;
        left: 50%;

        transform: translate(-50%, 0);

        width: 700px;
        background: transparent;
    }

    #name-change-modal {
        top: 25%;
    }

    #modal-popup .modal-dialog {
        margin: 0;
        margin-top: 50px;
    }

    #modal-popup .modal-header, #name-change-modal .modal-header {
        border-bottom: none;

        padding-bottom: 0px;
    }

    #modal-popup .modal-footer, #name-change-modal .modal-footer {
        border-top: none;
    }

    .modal .btn-close {
        background: none;
        width: 25px;
        height: 25px;
        cursor: pointer;
    }

    @media (max-width: 991px) {

    }

    @media (max-width: 767px) {
        #modal-popup {
            top: 34%;
            max-width: 100%;
        }

        #name-change-modal {
            top: 22%;
            max-width: 100%;
        }

        .modal-content, #modal-popup, #name-change-modal{
            width: auto;
            margin-left: auto;
            margin-right: auto;
            width: 100%;
            text-align: center;
        }

        #modal-popup .modal-header {
            padding-top: 10px;
            padding-bottom: 10px;
        }


    }
*/