.site-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.site-select-native {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 1px !important;
    min-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.site-select__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    border: 1px solid var(--line, #dbe3e8);
    border-radius: 16px;
    padding: 0 15px;
    background: #fff;
    color: var(--ink, #14202b);
    font: inherit;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.site-select__button:hover {
    border-color: #aebfca;
}

.site-select__button:focus-visible,
.site-select.is-open .site-select__button {
    outline: none;
    border-color: var(--blue, #1f529e);
    box-shadow: 0 0 0 3px rgba(31, 82, 158, .13);
}

.site-select.is-invalid .site-select__button {
    border-color: #c94a56;
    box-shadow: 0 0 0 3px rgba(201, 74, 86, .1);
}

.site-select.is-disabled .site-select__button {
    background: #f2f5f6;
    color: #8a969e;
    cursor: not-allowed;
}

.site-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-select__arrow {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.site-select__arrow::before,
.site-select__arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .18s ease;
}

.site-select__arrow::before {
    left: 2px;
    transform: rotate(45deg);
}

.site-select__arrow::after {
    right: 2px;
    transform: rotate(-45deg);
}

.site-select.is-open .site-select__arrow::before {
    transform: rotate(-45deg);
}

.site-select.is-open .site-select__arrow::after {
    transform: rotate(45deg);
}

.site-select-dropdown {
    position: fixed;
    z-index: 100000;
    display: grid;
    gap: 4px;
    max-height: min(340px, calc(100vh - 24px));
    overflow: auto;
    border: 1px solid #d7e0e6;
    border-radius: 16px;
    padding: 7px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 18px 50px rgba(14, 31, 43, .18);
    backdrop-filter: blur(14px);
    overscroll-behavior: contain;
}

.site-select-dropdown[hidden] {
    display: none !important;
}

.site-select__option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    padding: 9px 12px;
    background: transparent;
    color: var(--ink, #14202b);
    font: inherit;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.site-select__option:hover,
.site-select__option:focus-visible {
    outline: none;
    background: #edf4ff;
    color: var(--blue, #1f529e);
}

.site-select__option.is-selected {
    background: var(--blue, #1f529e);
    color: #fff;
    font-weight: 750;
}

.site-select__option.is-selected:hover,
.site-select__option.is-selected:focus-visible {
    background: #174783;
    color: #fff;
}

.site-select__option:disabled {
    color: #a2abb1;
    background: transparent;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .site-select-dropdown {
        border-radius: 14px;
    }
}
