.list-searchbar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 8px 0 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.list-searchbar__label {
    font-size: 14px;
    color: #3f4a2f;
    font-weight: 600;
}

.list-searchbar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.list-searchbar__field {
    width: min(100%, 460px);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d3d4d7;
    border-radius: 10px;
    background: #f7f7f8;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.list-searchbar__icon {
    display: inline-flex;
    color: #9da3af;
}

.list-searchbar__icon-svg {
    width: 20px;
    height: 20px;
}

.list-searchbar__input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #2f2f2f;
    font-size: 16px;
    line-height: 1.2;
}

.list-searchbar__input::-moz-placeholder {
    color: #7a7a7a;
}

.list-searchbar__input::placeholder {
    color: #7a7a7a;
}

.list-searchbar__input:focus {
    outline: none;
}

.list-searchbar__field:focus-within {
    border-color: #8c9466;
    box-shadow: 0 0 0 2px rgba(140, 148, 102, 0.2);
}

.list-searchbar__controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.list-searchbar__select-wrap {
    position: relative;
}

.list-searchbar__select-wrap::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    right: 16px;
    top: calc(50% - 7px);
    border-right: 2px solid #8f8f93;
    border-bottom: 2px solid #8f8f93;
    transform: rotate(45deg);
    pointer-events: none;
}

.list-searchbar__select {
    min-width: 230px;
    border: 1px solid #d3d4d7;
    border-radius: 10px;
    background: #f7f7f8;
    color: #1f2328;
    padding: 12px 42px 12px 16px;
    font-size: 16px;
    font-weight: 500;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.list-searchbar__select:focus {
    outline: none;
    border-color: #8c9466;
    box-shadow: 0 0 0 2px rgba(140, 148, 102, 0.2);
}

.list-searchbar__view {
    border: 1px solid #d3d4d7;
    border-radius: 12px;
    overflow: hidden;
    display: inline-flex;
    background: #f7f7f8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.list-searchbar__view-btn {
    width: 52px;
    height: 52px;
    border: 0;
    background: transparent;
    color: #1f2328;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.list-searchbar__view-btn + .list-searchbar__view-btn {
    border-left: 1px solid #d3d4d7;
}

.list-searchbar__view-btn.is-active {
    background: #ecece9;
    color: #637238;
}

.list-searchbar__view-icon {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.list-searchbar__letters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.list-searchbar__letter {
    border: 0;
    background: transparent;
    color: #1f2328;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    padding: 0 8px;
}

.list-searchbar__letter:hover {
    background: #eeeeeb;
}

.list-searchbar__letter.is-active {
    background: #68773f;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .list-searchbar__top {
        flex-wrap: wrap;
    }

    .list-searchbar__field {
        width: 100%;
        max-width: none;
    }

    .list-searchbar__controls {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .list-searchbar__input {
        font-size: 16px;
    }

    .list-searchbar__controls {
        justify-content: stretch;
    }

    .list-searchbar__select-wrap {
        flex: 1;
    }

    .list-searchbar__select {
        width: 100%;
        min-width: 0;
    }

    .list-searchbar__letter {
        font-size: 14px;
        min-width: 36px;
        height: 36px;
        border-radius: 8px;
    }
}

