/*!
 * jobsearch-select2-overrides.css
 *
 * Skins Select2 4.1.x to roughly match the look of the previous Selectize
 * default theme so the migration is visually transparent. Loaded after
 * Select2's own CSS via the `jobsearch-select2` style dependency.
 */

/* Container sizing — match Selectize's ~36–38px field height. */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    display: flex;
    align-items: center;
    min-height: 42px;
    max-height: 100%;
    border-radius: 0px;
    background-color: #fff;
    box-sizing: border-box;
    border: 1px solid #efefef;
    justify-content: space-between;
}
.careerfy-banner-caption .select2-container .select2-selection--single,
.careerfy-banner-caption .select2-container .select2-selection--multiple {
    min-height: 100%;
}

/* Single-select rendering */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
    color: #303030;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8a90a0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    width: auto;
    position: static;
    padding: 0px 10px 0px 0px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    height: 100%;
    display: flex;
    align-items: center;
    position: static;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 22px;
    color: #999;
}

/* Multi-select rendering */
.select2-container--default .select2-selection--multiple {
    padding: 5px;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
    line-height: 1.5;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #13b5ea;
    border: 1px solid #13b5ea;
    border-radius: 2px;
    padding: 2px 8px 2px 4px;
    margin-top: 4px;
    margin-right: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #ffffff;
    display: flex;
    width: auto;
}
body .select2-container span.select2-selection--multiple ul.select2-selection__rendered {
    display: flex;
    margin: 0px;
    gap: 5px;
    flex-wrap: wrap;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffffff;
    margin-right: 0px;
    font-weight: bold;
    border: 0;
    background: transparent;
    position: static;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fffbfb;
    background: transparent;
}
.select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 0px;
    font-family: inherit;
    font-size: 13px;
}
body .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0px;
    margin-right: auto;
}

/* Focus / open state */
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection {
    border-color: #efefef;
    outline: none;
}

/* Dropdown */
.select2-dropdown {
    border: 1px solid #d0d0d0;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #4690ee;
    color: #fff;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background: #eef4ff;
    color: #1f2532;
}

/* Search input inside dropdown */
.select2-search--dropdown .select2-search__field {
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    padding: 5px 8px;
}

/* RTL adjustments (RTL is enqueued conditionally in the plugin) */
[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 28px;
    padding-right: 12px;
}
[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 6px;
    right: auto;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b:before {
    content: "\f107";
    font-family: FontAwesome;
    border: none;
    right: 32px;
    font-size: 22px;
}