﻿span.select2-container.select2-container--default.select2-container--open {
    z-index: 1100;
}

.modal-open span.select2-container.select2-container--default.select2-container--open,
.DTED_Lightbox_Wrapper + span.select2-container.select2-container--default.select2-container--open {
    z-index: 3003 !important;
}

.form-control-base.select2.select2-container {
    width: 100% !important;
    padding: 5px 0.75rem;
}

.select2 .select2-selection:hover {
    border-color: #6E67C1;
}

.select2-container--default.select2-container--disabled .select2-selection--single:hover {
    border-color: #9fa2a3;
}

.select2-container--default.select2-container--disabled .select2-selection--single:focus {
    border-color: #9fa2a3;
}

.form-control-base.select2.select2-container--focus {
    border-color: #6E67C1;
}

.select2 .select2-selection {
    height: 38px;
    padding: 10px 40px 10px 15px;
    border: 1px solid #D6D5E3;
    font-size: 14px;
    line-height: 14px;
    margin: 0;
    background-color: transparent;
    border: 1px solid #D6D5E3;
    border-radius: var(--rnd-border-radius);
    color: var(--rnd-secondary-colour);
    font-weight: 400;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    outline: none;
    width: 100%;
    background-image: url(/assets/images/icons/chevron_down.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: initial;
    box-shadow: none;
}

    .select2 .select2-selection:focus {
        border-color: #6E67C1;
        outline: none !important;
        text-shadow: none;
    }

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 17px;
    padding: 0;
    color: var(--rnd-secondary-colour);
}

.select2-container.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
    color: #808080;
}

.select2 .select2-selection__arrow {
    display: none;
}

select2.select2-container {
    vertical-align: baseline;
}

.form-control-base.select2 .select2-selection,
.form-control-base.select2.select2-container--focus .select2-selection {
    background-image: url(/assets/images/icons/chevron_down.svg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: initial;
    border: none;
    height: 36px;
}

    .form-control-base.select2 .select2-selection .select2-selection__rendered {
        width: 90%;
        display: flex;
        overflow: auto;
    }

        .form-control-base.select2 .select2-selection .select2-selection__rendered .select2-search__field {
            color: var(--rnd-secondary-colour);
        }

            .form-control-base.select2 .select2-selection .select2-selection__rendered .select2-search__field::placeholder {
                color: #84909F;
            }

            .form-control-base.select2 .select2-selection .select2-selection__rendered .select2-search__field:-ms-input-placeholder {
                color: #84909F;
            }

        .form-control-base.select2 .select2-selection .select2-selection__rendered::-webkit-scrollbar {
            height: 0px;
        }

    .form-control-base.select2 .select2-selection .select2-selection__choice {
        font-weight: 400;
        font-size: 12px;
        line-height: 24px;
        border-radius: 14px;
        border: none;
        background: rgba(23, 35, 76, 0.15);
        padding: 2px 8px;
        margin-top: 4px;
    }

        .form-control-base.select2 .select2-selection .select2-selection__choice .select2-selection__choice__remove {
            content: '';
            width: 20px;
            height: 20px;
            border-radius: 10px;
            mask-image: url(/assets/images/icons/cross_sm.svg);
            mask-repeat: no-repeat;
            mask-position: center;
            mask-size: cover;
            -webkit-mask-image: url(/assets/images/icons/cross_sm.svg);
            -webkit-mask-repeat: no-repeat;
            -webkit-mask-size: cover;
            background-color: var(--rnd-secondary-colour);
            display: inline-flex;
            align-items: center;
        }

            .form-control-base.select2 .select2-selection .select2-selection__choice .select2-selection__choice__remove:hover {
                opacity: 0.5;
            }

.select2-container .select2-dropdown.select2-dropdown--below {
    margin-top: 2px;
    padding: 2px 0px 8px 0px;
    box-shadow: 2px 2px 16px rgba(38, 55, 67, 0.07);
    border: 1px solid #6E67C1;
    border-radius: 0px 0px 8px 8px;
    min-width: 150px;
    margin-top: -2px;
}

.select2-container .select2-dropdown .select2-results__option {
    padding-left: 18px;
    color: var(--rnd-secondary-colour);
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    display: flex;
    align-items: center;
}

    .select2-container .select2-dropdown .select2-results__option.select2-results__option--highlighted {
        color: var(--rnd-secondary-colour);
        background-color: var(--rnd-light-colour);
    }

    .select2-container .select2-dropdown .select2-results__option:hover {
        color: var(--rnd-secondary-colour);
        background-color: rgba(155, 160, 238, 0.2);
    }

    .select2-container .select2-dropdown .select2-results__option:active {
        color: var(--rnd-secondary-colour);
        background-color: rgba(155, 160, 238, 0.5);
    }

.select2-container .select2-dropdown .select2-search input, .select2-container .select2-dropdown .select2-search input:focus-visible {
    outline-offset: 0px;
    outline-width: 0px;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: inherit;
    background-image: none;
    color: #808080;
}

.select2-dropdown {
    z-index: 1061;
}

select.invalid:not(:disabled) + .select2-container .select2-selection {
    border-color: var(--rnd-error-colour);
    color: var(--rnd-error-colour);
    background-image: url(/assets/images/icons/invalid.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: initial;
    background-size: 26px;
}

select.valid:not(:disabled) + .select2-container .select2-selection {
    border-color: var(--rnd-success-colour);
    background-image: url(/assets/images/icons/valid.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: initial;
    background-size: 22px;
    color: var(--rnd-success-colour);
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 3px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 0;
    background-color: var(--rnd-tertiary-colour);
    font-size: 14px;
    color: #FFFFFF;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-top: 2px;
    margin-right: 30px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #FFFFFF;
    padding-left: 5px;
    float: inline-end;
}

.select2 .select2-selection.select2-selection--multiple {
    line-height: 20px;
    padding: 5px 10px 0px 10px;
    border: 1px solid #D6D5E3;
    color: #84909F;
    font-size: 16px;
    min-height: 38px;
    height: auto;
}

    .select2 .select2-selection.select2-selection--multiple:hover {
        border-color: #6E67C1;
    }

.select2-search__field::-webkit-input-placeholder {
    color: #84909F;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    margin-bottom: 1px;
    margin-top: 1px;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--rnd-light-colour);
    color: var(--rnd-secondary-colour);
}

.select2-container--default.select2-results__option--highlighted[aria-selected="true"] {
    font-weight: 100;
    color: var(--rnd-light-colour);
}
