.select2-container {
    display: block;
}

.select2-container *:focus {
    outline: 0;
}

.input-group .select2-container--bootstrap4 {
    flex-grow: 1;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
}

.input-group-prepend ~ .select2-container--bootstrap4 .select2-selection {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > .select2-container--bootstrap4:not(:last-child) .select2-selection {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.select2-container--bootstrap4 .select2-selection {
    -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    width: 100%;
    border: 1px solid var(--ta-gray-light);
    border-radius: 0.25rem;
    background-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .select2-container--bootstrap4 .select2-selection {
        -webkit-transition: none;
        transition: none;
    }
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: var(--ta-blue-medium);
    -webkit-box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-container--bootstrap4.select2-container--open.select2-container--above .select2-selection {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.select2-container--bootstrap4.select2-container--open.select2-container--below .select2-selection {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select2-container--bootstrap4.select2-container--disabled .select2-selection,
.select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-selection {
    border-color: var(--ta-blue-medium);
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: var(--white);
    cursor: not-allowed;
}

.select2-container--bootstrap4.select2-container--disabled .select2-search__field,
.select2-container--bootstrap4.select2-container--disabled.select2-container--focus .select2-search__field {
    background-color: var(--ta-gray-light);
}

.select2-container--bootstrap4 .select2-search {
    width: 100%;
}

.select2-container--bootstrap4 .select2-dropdown {
    border-radius: 0;
    border-color: var(--ta-blue-medium);
}

.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--below {
    border-top: none;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--above {
    border-top: 1px solid var(--ta-blue-medium);
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.select2-container--bootstrap4 .select2-dropdown .select2-results__option[aria-selected='true'] {
    background-color: var(--white);
    color: var(--ta-black);
}

.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected='true'] {
    background-color: var(--ta-blue-medium);
    color: var(--white);
}

.select2-container--bootstrap4 .select2-results__option[role='group'] {
    padding: 0;
}

.select2-container--bootstrap4 .select2-results__option[role='group'] .select2-results__options--nested .select2-results__option {
    padding-left: 1em;
}

.select2-container--bootstrap4 .select2-results__option {
    padding: 0.25rem 0.75rem;
    height: 2.25rem;
    max-height: 2.25rem;
}

.select2-container--bootstrap4 .select2-results > .select2-results__options {
    max-height: 9rem;
    overflow-y: auto;
}

.select2-container--bootstrap4 .select2-results__group {
    display: list-item;
    padding: 6px;
    color: var(--ta-blue-light);
}

.select2-container--bootstrap4 .select2-selection__clear {
    float: right;
    margin-top: 0.7em;
    margin-right: 0.3em;
    width: 0.9em;
    height: 0.9em;
    border-radius: 100%;
    background-color: #c8c8c8;
    padding-left: 0.15em;
    line-height: 0.75em;
    color: #f8f9fa;
}

.select2-container--bootstrap4 .select2-selection__clear:hover {
    background-color: var(--ta-gray-light);
}

.select2-container--bootstrap4 .select2-selection--single {
    height: 2.1875rem;
	max-height: 2.1875rem;
	font-size: 14px;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    line-height: normal;
    color: var(--ta-gray-dark);
    font-size: 14px;
    font-weight: 400;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 50%;
    right: 3px;
    width: 20px;
}

.select2-container--bootstrap4 .select2-selection--single[aria-expanded='true'] .select2-selection__arrow,
.select2-container--bootstrap4 .select2-selection--single[aria-expanded='false'] .select2-selection__arrow {
    position: absolute;
    top: 0.75rem;
    right: 2rem;
    width: auto;
}

.select2-container--bootstrap4 .select2-selection--single[aria-expanded='true'] .select2-selection__arrow:after,
.select2-container--bootstrap4 .select2-selection--single[aria-expanded='false'] .select2-selection__arrow:after {
    position: absolute;
    top: -1px;
    transition: all 0.3s ease-in-out;
    margin-left: 0.25rem;
}

.select2-container--bootstrap4 .select2-selection--single[aria-expanded='false'] .select2-selection__arrow:after {
    display: inline-block;
    transition: all 0.3s ease-in-out;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant: normal;
    font-style: normal;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' width='16' height='16' %3E%3Cpath fill='%23372221' d='M169.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 274.7 54.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'%3E%3C/path%3E%3C/svg%3E");
}

.select2-container--bootstrap4 .select2-selection--single[aria-expanded='true'] .select2-selection__arrow:after {
    display: inline-block;
    transition: all 0.3s ease-in-out;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variant: normal;
    font-style: normal;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' width='16' height='16' %3E%3Cpath fill='%23372221' d='M169.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L192 205.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z'%3E%3C/path%3E%3C/svg%3E");
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    padding-left: 0.75rem;
    line-height: 2.3;
    color: var(--ta-black);
    font-size: 14px;
    font-weight: 500;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid var(--ta-blue-light);
    border-radius: 0.25rem;
    padding: 0.125rem 0.5rem;
}

.select2-results__message {
    color: var(--ta-black);
}
