.sel2_pickchild {
         width: 50%;
}

.select2-results .select2-result-label {
    position: relative;
    padding-right: 44px;
    overflow: hidden;
}

.info {
    color: #00f;
    font-weight: bold;
    font-size: 10px;
    position: absolute;
    right: 4px;
    top: 4px;
    z-index: 1;
}

.info:hover {
  text-decoration: underline;
}

.select2-highlighted .select2-result-label a {
    color: white;
}
.select2-highlighted .select2-result-label a.info {
    color: #ffff80;
}
.select2-result-label .name {
  vertical-align: text-top;
  position: relative;
  top: 0;
}

.select2-result-label .thumb {
    width: 36px;
    padding-right: 1px;
}

.select2-result-label .blurb {
    font-size: smaller;
}

.select2-result-label .cid {
    font-size: .675em;
}
.select2-result-label .cidlabel {
    font-size: .5em;
}
.select2-result-label .age {
    font-size: .8em;
}

.select2-chosen .thumb {
    width: 20px;
    margin: 1px;
}

.select2-chosen .blurb {
    font-size: .7em;
}

.select2-chosen .info,.select2-chosen .cid {
    display: none;
}

.select2-chosen .age {
    font-size: .8em;
}

/*select2 multiple styles*/
.select2-search-choice .age {
    display: none;
}

.select2-search-choice .cid {
    display: none;
}

.select2-search-choice .blurb {
    display: none;
}

.select2-search-choice .thumb {
    width: 14px;
}

.select2-search-choice .info {
    display: none;
}

.select2-search-choice .name {
    font-size: .71em;
}

/* Child profile dialog */
#hoh_profile_dialog {
    padding: 0;
}

#hoh_profile_dialog iframe {
    display: block;
}

/* Ensure dialog + overlay sit above Select2 dropdown (z-index: 9999) */
.ui-widget-overlay + .ui-dialog:has(#hoh_profile_dialog),
.ui-dialog:has(#hoh_profile_dialog) {
    z-index: 10100 !important;
}
.ui-widget-overlay {
    z-index: 10000 !important;
}

/* Style jQuery UI dialog to match site theme */
.ui-dialog:has(#hoh_profile_dialog) .ui-dialog-titlebar {
    background: #500000;
    border-color: #500000;
    color: #fff;
    border-radius: 4px 4px 0 0;
}

.hoh-dlg-newwin {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1;
}

.hoh-dlg-newwin:hover {
    color: #fff;
    background: rgba(255,255,255,0.2);
}

.ui-dialog:has(#hoh_profile_dialog) .ui-dialog-titlebar-close {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
}

.ui-dialog:has(#hoh_profile_dialog) .ui-dialog-titlebar-close:hover {
    background: rgba(255,255,255,0.4);
}

.ui-dialog:has(#hoh_profile_dialog) .ui-dialog-titlebar-close .ui-icon {
    filter: brightness(10);
}

/* "Select This Child" button in dialog footer */
.ui-dialog:has(#hoh_profile_dialog) .ui-dialog-buttonpane {
    padding: 8px 12px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
}

.hoh-dlg-select-btn.ui-button {
    background: #500000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.hoh-dlg-select-btn.ui-button:hover {
    background: #700000;
}
