.wpgv-checkbox-settings .select2-search,
.wpgv-checkbox-settings .select2-search .select2-search__field {

    height: 100% !important;
    display: block !important;
    padding: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.wpgv-checkbox-settings td,
.wpgv-checkbox-settings th,
.wpgv-checkbox-settings span {
    vertical-align: middle !important;
    /* display: block !important; */
}

.select2-selection--multiple {
    padding: 10px !important;
}

.wpgv-checkbox-settings .select2-search--inline {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.wpgv-checkbox-settings .select2-search .select2-search__field {
    max-height: 42px !important;
}

/* Fix dropdown gap and alignment for Select2 inside our settings box */
.wpgv-checkbox-settings .select2-container {
    display: block;
    box-sizing: border-box;
}

/* Reduce excessive padding so dropdown attaches without gap */
.wpgv-checkbox-settings .select2-container--default .select2-selection--multiple {
    padding: 6px 8px !important;
    min-height: 42px;
}

/* When dropdown is open, remove top margin that can create a visible gap */
.wpgv-checkbox-settings .select2-container--open .select2-dropdown {
    margin-top: -1px !important;
}

/* Ensure dropdown width matches the select control */
.wpgv-checkbox-settings .select2-container--default .select2-dropdown {
    box-sizing: border-box;
    width: 100% !important;
}

/* Prevent the search input from adding extra vertical spacing */
.wpgv-checkbox-settings .select2-search--inline .select2-search__field {
    height: auto !important;
}

/* Note text under selects */
.wpgv-checkbox-note {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.3;
}

.wpgv-checkbox-settings .select2-selection__rendered,
.wpgv-checkbox-settings .select2-selection__rendered li {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 10px !important;
}

.wpgv-checkbox-settings .select2-selection__rendered {
    margin-bottom: 10px !important;
}

.wpgv-checkbox-settings .select2-selection__rendered li {
    padding: 3px 3px 3px 20px !important;
}

.wpgv-checkbox-settings .select2-selection__choice__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px !important;
    max-width: 20px;
    width: 100%;
    height: 100%;
}