.select2-container--default .select2-selection {
    padding: 6px !important;
    border: 1px solid lightgray !important;
}
/* 1. Match the container height and borders */
.select2-container--default .select2-selection--single {
    height: calc(
        1.5em + 0.75rem + 2px
    ); /* Matches Bootstrap's standard height */
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem; /* Standard Bootstrap radius */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* 2. Remove default Select2 styling that interferes */
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    color: inherit;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

/* 3. Replicate Bootstrap's Focus state */
.select2-container--default.select2-container--focus
    .select2-selection--single {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 4. Adjustments for Multiple Selects */
.select2-container--default .select2-selection--multiple {
    min-height: calc(1.5em + 0.75rem + 2px);
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}
