#bb-popup-body {
    height: auto;
/*    min-height: 125px;*/
    overflow-y: auto;
    overflow-x: hidden;    
    background: #3c3c3c;
}
#bb-popup-body:has(> .bb-event-selection){
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#bb-popup-body:has(> .bb-event-selection[market='to']),
#bb-popup-body:has(> .bb-event-selection[market='30']),
#bb-popup-body:has(> .bb-event-selection[market='1664']),
#bb-popup-body:has(> .bb-event-selection[market='1043']),
#bb-popup-body:has(> .bb-event-selection[market='1143']),
#bb-popup-body:has(> .bb-event-selection[market='21']),
#bb-popup-body:has(> .bb-event-selection[market='295']),
#bb-popup-body:has(> .bb-event-selection[market='31']),
#bb-popup-body:has(> .bb-event-selection[market='1042']),
#bb-popup-body:has(> .bb-event-selection[market='1151']),
#bb-popup-body:has(> .bb-event-selection[market='142']),
#bb-popup-body:has(> .bb-event-selection[market='143']){
    display:grid;
    grid-template-columns: 1fr 1fr;
}

#bb-popup-body:has(> .bb-event-selection[market='104']),
#bb-popup-body:has(> .bb-event-selection[market='29']){
    display:grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
#bb-popup-title-bar {
    background: #16523f;
    color: #EEE;
    box-shadow: 0px 2px 2px #383838;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}
.builder-title-bar > div:nth-child(1) {
    text-align: center;
    cursor: pointer;
}
.builder-title-bar > div:nth-child(1):hover {
    margin-right: 5px;
    transition: .8s;
}
.builder-title-bar {
    display: grid;
    grid-template-columns: 25px 1fr;
    align-items: center;
}
#bb-popup-back {
    visibility: hidden;
    cursor: pointer;
}
#bb-popup-title{cursor: pointer;}
#bb-popup-title-bar > div:not(:last-child) {
    border-right: 1px solid #525252;
    font-size: 15px;
}
#bb-popup-title-bar > div:nth-child(2) {
    padding: 10px;
}
#bb-popup-title-bar > div:nth-child(1), #bb-popup-title-bar > div:nth-child(3) {
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    background: #d05f5f;
    height: 45%; /* 2023.03.22 */
    display: flex;
    align-items: center;
    visibility:hidden; /* 2023.03.22 */
}
#bb-popup-title-bar > div:nth-child(1) {
    background: #16523f;
}
#bb-popup-title-bar > div:nth-child(1):hover, #bb-popup-title-bar > div:nth-child(3):hover {
    background: #ab4e4e;
    transition: .2s;
}
#bb-popup-title-bar > div:nth-child(1):hover {
    background: #113f31;
    cursor: pointer;
}
.bb-event-selection {
    background: #474747;
    color: #ffffff;
    padding: 12px;
    cursor: pointer;
    grid-template-columns: 1fr auto;
    font-size: 14px;
    align-items: center;
    display: grid;
    text-align: center;
    border-left: 1px solid #3a3a3a;

}
#bb-popup-body > .bb-event-selection:last-child {
/*    box-shadow: 0px 3px 6px #2a2a2a;*/
}
.bb-event-market {
    background: #474747;
    color: #f4f4f4;
    padding: 10px;
    cursor: pointer;
    display: grid;
    grid-template-columns: calc(100% - 30px) 30px;
    font-size: 14px;
    align-items: center;
}
.bb-event-market[locked='true'], .bb-event-selection[locked='true'] {
    background: #36363638;
    color: #a5a5a5;
    cursor: not-allowed;
    pointer-events: none;
}
#bb-popup-body > .bb-event-market:last-child {
    box-shadow: 0px 3px 7px #2a2a2a;
}
.bb-event-market > div:nth-child(2), .bb-event-selection > div:nth-child(2) {
    font-size: 20px;
    text-align: center;
    padding: 0px 10px;
    display: none;
}
.bb-event-market:not(:last-child), .bb-event-selection:not(:last-child) {
    border-bottom: 1px solid #3a3a3a;
}
.bb-event-selection.active {
    background: #222222 !important;
    color: white;
}
.bb-selections-binder {
    display: none;
    width: 40%;
    margin: 0 auto;
}
.bb-selection-row {
    display: grid;
    grid-template-columns: 1fr auto;
    font-size: 14px;
    color: #ffffff;
    align-items: center;
    background: #464646;
}
.bb-selection-separator {
    font-size: 13px;
    color: #d1d6db;
    text-align: center;
    padding: 10px 0px;
}
#bb-bet-btn {
    padding: 10px 20px;
    background: #ffdf1b;
    cursor: pointer;
    text-align: center;
    color: #363636;
    font-size: 15px;
}
#bb-bet-btn:hover {
    background: #dab400;
    transition: .4s;
    color: #272727;
}
#bb-bet-btn > div:nth-child(1) {
    font-size: 17px;
    font-weight: bold;
}
.bb-selection-row > div:nth-child(2) {
    font-size: 20px;
    border-left: 1px solid #303030;
    cursor: pointer;
    padding: 7px 20px;
    color: white;
    background: #d05f5f;
}
.bb-selection-row > div:nth-child(2):hover {
    background: #ab4e4e;
}
.bb-selection-row > div {
    padding: 7px;
}
.remove-bb-selection:hover {
    background: #aeb2b6;
    transition: .2s;
    cursor: pointer;
}
.bb-event-market:hover, .bb-event-selection:hover {
    background: #353535;
    transition: .3s;
}
.bb-selections-list-binder {
    display:none;
}

.bb-event-market[is_locked='0'], .bb-selections-list-binder[is_locked='0'], .bb-event-selection[is_locked='0'] {
    pointer-events: none;
}
#bb-event-popup { display:none; }

.event-utilities-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 1px solid #d1d6db;
    padding: 0px 5px;
    background: white;
}
.event-utility-btn {
    background: #003c79;
    border: 0px;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    display: none;
    margin: 5px 0px;
}
.single-btn:hover {
    background: #002a54;
    transition: .2s;
}

.double-btn > div:hover {
    background: #002a54;
    transition: .2s;
}
.event-utilities-bar > .double-btn {
    padding: 0px;
    display: grid;
    grid-template-columns: 1fr auto;
    justify-items: center;
}
.event-utilities-bar > div:not(:last-child) {
    margin-right: 5px;
}
#bb-event-popup-btn {
    padding: 10px;
}
.event-utilities-bar > .double-btn > div:not(:last-child) {
    border-right: 1px solid #0a2f55;
}
#builder-content {
    background: #3c3c3c;
    /* padding: 10px; */
    border-top: 1px solid #4f4f4f;
    color: #ffffff;
    /* Should be 100% width -10px */
    width: calc(100%);
}
#builder-content > div:nth-child(1) {
    /* font-size: 18px; */
    /* padding: 10px 0px; 2023.03.21 */
    /* border-bottom: 1px solid #4f4f4f; */
    height: 1px;
    display: none;
    visibility: hidden;
}
.builder-noselections-binder {
    padding: 10px 0px;
    font-size: 14px;
}
.builder-noselections-binder > div:nth-child(1) {
    text-align: center;
    padding: 10px;
}
.add-bb-market-btn {
    display: flex;
    justify-content: center;
    padding: 15px 5px;
    align-items: center;
    cursor:pointer;
    font-size: 14px;
}
.add-bb-market-btn > div:nth-child(1) {
    font-size: 20px;
}
.add-bb-market-btn > div:nth-child(2) {
    padding: 0px 0px 0px 5px;
}
#builder-addselection-binder {
    width: 100%;
    display: none;
    grid-template-columns: 1fr 1fr;
    background: white;
    font-size: 15px;
    margin-bottom:15px;
}
#builder-addselection-binder > div:nth-child(1) {
    background: #16523f;
    padding: 10px;
    border-right: 1px solid #002041;
    color: white;
    text-align: center;
}
#builder-addselection-value {
    font-size: 20px;
    font-weight: bold;
}
#builder-addselection-binder > div:nth-child(2) {
    background: #ffd200;
    font-size: 17px;
    text-align: center;
    line-height: 55px;
    color: #272727;
    cursor: pointer;
}
#builder-addselection-binder > div:nth-child(2):hover {
    background: #dab400;
    transition: .2s;
}
.builder-selections-binder {
    margin: 20px 0px 0px;
}
.builder-selections-betslip > div:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 15px;
}
span.builder-selection-odd {
    color: #ffd200;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}
.no-pointer {
    pointer-events: none;
}
