
.custom-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.custom-select {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
}

.custom-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: #17223a;
    font: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(29, 62, 111, 0.04);
}

.custom-select-button:hover {
    border-color: #b9c8db;
    background: #fff;
    transform: none;
}

.custom-select-button:focus-visible,
.custom-select.is-open .custom-select-button {
    border-color: #286bc4;
    outline: 3px solid #286bc426;
    outline-offset: 0;
}

.custom-select-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.custom-select.is-open .custom-select-chevron {
    transform: translateY(2px) rotate(225deg);
}

.custom-select-menu {
    position: fixed;
    z-index: 220;
    min-width: min(180px, calc(100vw - 32px));
    max-height: 320px;
    overflow: auto;
    padding: 8px;
    border: 1px solid #cbd6e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px #12356826;
}

.custom-select-search {
    width: 100%;
    min-height: 42px;
    margin-bottom: 6px;
}

.custom-select-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #17223a;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option.is-search-focus {
    background: #edf4ff;
    outline: none;
    transform: none;
}

.custom-select-option[aria-selected="true"] {
    color: #123568;
}

.custom-select-check {
    opacity: 0;
    color: #286bc4;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.custom-select-option[aria-selected="true"] .custom-select-check {
    opacity: 1;
}

.custom-select.is-disabled .custom-select-button,
.custom-select-button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}
