.select2-container--bootstrap-5 .select2-selection {
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid var(--bs-border-color);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
	box-shadow: 0 4px 0 -1px rgba(4, 110, 143, 0.25);
}

.select2-container--bootstrap-5.select2-container--open .select2-selection,
.select2-container--bootstrap-5.select2-container--open.select2-container--above
	.select2-selection {
	border: 1px solid var(--bs-border-color);
}

.select2-container--bootstrap-5
	.select2-dropdown
	.select2-search
	.select2-search__field:focus {
	box-shadow: 0 0 0 0.25rem rgba(4, 110, 143, 0.25);
}

.select2-container--bootstrap-5 .select2-dropdown {
	border-color: var(--bs-border-color);
	border-radius: 0;
}

.select2-container--bootstrap-5
	.select2-dropdown
	.select2-results__options
	.select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5
	.select2-dropdown
	.select2-results__options
	.select2-results__option[aria-selected="true"]:not(
		.select2-results__option--highlighted
	) {
	background-color: var(--bs-primary);
}

/* for floating lebel */
.form-floating .select2-container .select2-selection.select2-selection--single,
.form-floating
	.select2-container
	.select2-selection.select2-selection--multiple {
	padding-top: 50px;
	margin-top: -10px;
}

.form-floating
	.select2-container:has(.select2-selection__rendered[title])
	+ label,
.form-floating .select2-container:has(.select2-selection__rendered li) + label {
	color: rgba(var(--bs-body-color-rgb), 0.65);
	transform: scale(0.85) translateY(-2rem) translateX(0.15rem);
	line-height: 1.4;
}

.form-floating
	.select2-container
	.select2-selection.select2-selection--multiple:has(
		.select2-selection__rendered li
	),
.form-floating
	.select2-container
	.select2-selection:has(.select2-selection__rendered[title]) {
	padding-top: 10px;
}

ul.select2-results__options li:empty,
.select2.select2-container
	.select2-selection__rendered:has(li)
	+ .select2-search.select2-search--inline,
.form-floating
	.select2.select2-container
	.select2-search.select2-search--inline {
	display: none;
}

.select2.select2-container.select2-container--focus
	.select2-search.select2-search--inline,
.select2.select2-container.select2-container--open
	.select2-search.select2-search--inline {
	display: block !important;
}

.form-floating:has(
		.select2-container .select2-selection.select2-selection--single
	) {
	margin-top: 0.625rem;
}

.form-floating:has(
		.select2-container
			.select2-selection.select2-selection--single
			.select2-selection__rendered[title]
	),
.form-floating:has(
		.select2-container
			.select2-selection.select2-selection--multiple
			.select2-selection__rendered
			li
	) {
	margin-top: 2.2rem;
}

.form-floating:has(
		.select2-container .select2-selection.select2-selection--multiple
	) {
	margin-top: 0.8rem;
}

.select2-results__option--disabled {
	display: none;
}

.select2-show-disabled-options .select2-results__option--disabled {
	display: block;
	cursor: not-allowed;
}

.form-horizontal
	.form-floating:has(
		.select2-container .select2-selection.select2-selection--multiple
	) {
	margin-top: 1.4rem;
}

.form-horizontal
	.form-floating:has(
		.select2-container
			.select2-selection.select2-selection--multiple
			.select2-selection__rendered
			li
	) {
	margin-top: 1.4rem;
}

.form-horizontal
	select
	+ .select2-container--bootstrap-5:has(
		.select2-selection.select2-selection--single
			.select2-selection__rendered[title]
	) {
	margin-top: -15px;
}

.form-horizontal select[multiple] + .select2-container--bootstrap-5 {
	margin-top: -21px;
	margin-bottom: 19px;
}
