.ece-ms {
    position: relative;
    width: 100%;
}

.ece-ms,
.ece-ms * {
    box-sizing: border-box;
}

.contact_form-column_inp select[multiple] {
    height: auto;
    min-height: 132px;
    background-image: none;
    overflow-y: auto;
}

.ece-ms > select {
    display: none;
}

.ece-ms__control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 12px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font: inherit;
    line-height: 1;
    text-align: left;
    cursor: pointer;
    transition: border-color 300ms ease-in-out;
}

.ece-ms__control:focus {
    outline: none;
    border-color: #62d3f3;
}

.ece-ms.is-open .ece-ms__control {
    border-color: #62d3f3;
}

.contact_form-column.invalid-form .ece-ms__control {
    border-color: #ed4343;
}

.ece-ms__value {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ece-ms__value.is-placeholder {
    color: #9a9a9a;
}

.ece-ms__arrow {
    flex: 0 0 auto;
    width: 13px;
    height: 8px;
    background: url("../images/select-angle-down.png") no-repeat center / 13px 8px;
    transition: transform 300ms ease-in-out;
}

.ece-ms.is-open .ece-ms__arrow {
    transform: rotate(180deg);
}

.ece-ms__panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    display: none;
    padding: 6px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(6, 53, 99, .12);
}

.ece-ms.is-open .ece-ms__panel {
    display: block;
}


.ece-ms.is-flipped .ece-ms__panel {
    top: auto;
    bottom: calc(100% + 4px);
}

.ece-ms__search {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 36px;
    margin: 0 0 6px;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    color: #000;
}

.ece-ms__search::-webkit-search-decoration,
.ece-ms__search::-webkit-search-results-button {
    -webkit-appearance: none;
}

.ece-ms__search:focus {
    outline: none;
    border-color: #62d3f3;
}

.ece-ms__list {
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ece-ms__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.3;
    color: #000;
    cursor: pointer;
    transition: background-color 150ms ease-in-out;
}

.ece-ms__option:hover,
.ece-ms__option:focus-within {
    background: #f2f5fa;
}

.ece-ms__option[hidden] {
    display: none;
}

.ece-ms__option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ece-ms__box {
    flex: 0 0 auto;
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    background: #fff;
    transition: all 150ms ease-in-out;
}

.ece-ms__box::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 150ms ease-in-out;
}

.ece-ms__option input:checked + .ece-ms__box {
    border-color: #6383bc;
    background: #6383bc;
}

.ece-ms__option input:checked + .ece-ms__box::after {
    transform: rotate(45deg) scale(1);
}

.ece-ms__option input:focus-visible + .ece-ms__box {
    box-shadow: 0 0 0 3px rgba(98, 211, 243, .45);
}

.ece-ms__empty {
    padding: 12px 8px;
    font-size: 13px;
    color: #9a9a9a;
}

@media (prefers-reduced-motion: reduce) {
    .ece-ms__control,
    .ece-ms__arrow,
    .ece-ms__option,
    .ece-ms__box,
    .ece-ms__box::after {
        transition: none;
    }
}
