.select2-container {
    max-width: 100%;
}

.select2-container .select2-selection--single {
    min-height: 42px;
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 8px 38px 8px 12px;
    line-height: 24px;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.select2-container .select2-selection--multiple {
    min-height: 42px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 3px 8px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #31461f;
    box-shadow: 0 0 0 0.15rem rgba(49, 70, 31, 0.15);
}

.select2-dropdown {
    border-color: #ced4da;
    z-index: 1065;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da !important;
    border-radius: 5px;
    padding: 7px 10px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #31461f;
}

@media (max-width: 767.98px) {
    .select2-container,
    .select2-dropdown {
        max-width: calc(100vw - 32px);
    }
}
