.query-options > div {
    padding: 8px 0;
}
.acf-query-builder-wrap.loading:before {
    content: "Loading...";
    text-align: center;
    padding: 16px;
    font-size: 24px;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 248, 255, 0.75);
    z-index:9999;
    box-sizing: border-box;
}
.query-results-wrap {
    position: relative;
}
.query-results-wrap.loading:before {
    content: "Loading...";
    text-align: center;
    padding: 16px;
    font-size: 24px;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 248, 255, 0.75);
    z-index:9999;
    box-sizing: border-box;
}

.term_select_wrapper {
    position: relative;
}
select[multiple]:after {
    content: "[ctrl]+[click] to select multiple";
    position: absolute;
    right: 0;
    bottom: 0px;
    z-index: 999;
}
select.active-term {
    margin-bottom: 18px;
}
select.acf-tax-select {
    margin-bottom: 8px;
}

.acf-query-container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    border: 1px solid #cecece;
    padding: 4px;
    margin-bottom: 4px;
    background: #f1f1f1;
}
.tax_select_wrapper span{
    width: 100%;
}
.tax_select_wrapper .term_select_wrapper {
    width: 49%;
    margin-left: 2%;
}
.tax_select_wrapper select.acf-tax-select {
    width: 49%;
}
button.remove_query {
    position: absolute;
    top: -12px;
    right: -12px;
    border-radius: 50%;
    border: 1px solid #d2d2d2;
    cursor: pointer;
    background: #ba0000;
    color: white;
}
.acf-meta {
    display: flex;
    flex-wrap: wrap;
}
.acf-meta > span {
    width: 100%;
}
.acf-meta > div {
    width: 40%;
}
.acf-meta > div.middle {
    width: 20%;
}
.result-wrap {
    background: white;
    margin: 4px;
    padding: 8px;
    border: 1px solid #e1e1e1;
    flex: 1 0 25%;
}

.acf-query-posts-tax-query, .acf-query-posts-meta-query, .acf-query-order-wrap, .acf-query-posttype-wrap {
    border: 1px solid #e1e1e1;
    padding: 1% !important;
    background: white;
    margin-bottom: 8px;
}
.acf-query-builder-wrap h3 {
    margin: 4px 0;
}
.query-options {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.query-options > div {
    width: 48.5%;
    margin: 1% 0 0;
    box-sizing: border-box;
}
.query-options > div:nth-child(odd) {
    margin: 1% 1% 0;
}
.query-results-wrap {
    width: 100%;
}
.query-results:not(:empty) {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background: white;
    border: 1px solid #e1e1e1;
    padding: 8px;
    margin-top: 8px;
    box-sizing: border-box;
}
.query-count {
    width: 100%;
}