/* input-container */

.input-container {
    display: flex;
    flex-direction: column;
    margin: 4px;
    width: 100%;
}

/* input-handle-box */

.input-handle-box {
    position: relative;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    width: 100%;
}

/* input-box */

.input-box {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    min-height: 48px;
    border-radius: 24px;
    transition: height 0.3s ease;
    background-color: rgb(56, 56, 56);
    border: 1px solid rgb(66, 66, 66);
    pointer-events: auto;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.input-box-medium {
    min-height: 48px;
    border-radius: 24px;
}

.input-box-small {
    min-height: 40px;
    border-radius: 20px;
}

.input-box--dark {
    background-color: rgb(48, 48, 48);
    border: 1px solid rgb(50, 50, 50);
}

.input-box--upper {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.input-box--lower {
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.4);
}

/* input-row */

.input-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-shrink: 0;
    width: 100%;
}

.input-row-medium {
    min-height: 48px;
}

.input-row-small {
    min-height: 40px;
}

.input-row-narrow {
    min-height: 0;
}

/* text-field */

.input-box-side-gutter {
    flex: 0 0 auto;
    min-width: 0;
    width: 48px;
    transition: height 0.3s ease;
}

.text-field {
    box-sizing: border-box;
    width: 100%;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: rgb(220, 220, 220);
    caret-color: rgb(120, 120, 120);
    background: transparent;
    border: none;
    outline: none;
    padding: 13px 14px;
    resize: none;
}

.text-field::placeholder {
    color: rgb(100, 100, 100);
    opacity: 1;
    user-select: none;
}

.input-field-medium {
    height: 48px;
}

.input-field-small {
    height: 40px;
}

.textarea-field-medium {
    min-height: 48px;
    resize: none;
    overflow: hidden;
}

.text-field-with-prefix {
    padding-left: 4px;
}

.input-prefix {
    display: flex;        
    align-items: center;
    justify-content: center;
    height: 40px;
    margin: 4px;
    border-radius: 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    color: rgb(150, 150, 150);
    padding: 0 1px;
    user-select: none;
    white-space: nowrap;
    min-width: 40px;
    background-color: rgb(74, 74, 74);
}

.input-toolbar {
    position: absolute;
    display: flex;
    align-items: center;
    height: 48px;
    min-height: 48px;
}

.input-toolbar-medium {
    height: 48px;
    min-height: 48px;
}

.input-toolbar-small {
    height: 40px;
    min-height: 40px;
}

.input-toolbar-bottom {
    bottom: 0;
}

.input-toolbar-top {
    top: 0;
}

.input-toolbar-left {
    left: 0;
}

.input-toolbar-right {
    right: 0;
}

/* handle */
.input-handle-filler {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 46px;
    border-top-left-radius: 20px;
    background-color: rgb(52, 52, 52);
}

.input-handle {
    display: flex;
    box-sizing: border-box;
    margin-left: 24px;
    padding: 4px 16px 4px 0px;
    border-top-right-radius: 16px;
    background-color: rgb(52, 52, 52);
    height: 22px;
    align-items: center;
    justify-content: center;
}

.input-handle-text {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    color: rgb(150, 150, 150);
    user-select: none;
}


/* Стили для выпадающего списка подсказок */
.search-suggestions-list {
    position: absolute;
    background: rgb(60, 60, 60);
    border: 1px solid rgb(100, 100, 100);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    margin-top: 155px;
}

.search-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.87);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    border-bottom: 1px solid rgb(80, 80, 80);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background-color: rgb(80, 80, 80);
}

/* Для позиционирования контейнера */
.search-container-wrapper {
    position: relative;
    width: 100%;
    max-width: 660px;
    min-width: min(100%, 300px);
}

/* Скрытие скроллбара для красоты */
.search-suggestions-list::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions-list::-webkit-scrollbar-track {
    background: rgb(50, 50, 50);
    border-radius: 3px;
}

.search-suggestions-list::-webkit-scrollbar-thumb {
    background: rgb(100, 100, 100);
    border-radius: 3px;
}

.search-suggestions-list::-webkit-scrollbar-thumb:hover {
    background: rgb(120, 120, 120);
}

/* отмена user-select для подсказок */
.form-input::placeholder {
    user-select: none;
    -webkit-user-select: none; /* Для WebKit браузеров */
    -moz-user-select: none;    /* Для Firefox */
    -ms-user-select: none;     /* Для старых версий IE */
}