.QA-div{
    width: 100%;
}
.QA-div .search-in-AQ {
    width: 100%;

}
.QA-div .search-in-AQ .search-box {
    display: flex;
    gap: 0;
}
.QA-div .search-in-AQ  button {
    background:#F6BF41;
    background-color: #F6BF41;
    padding: 12px 20px;
    width: auto;
    display: flex;
    border:none;
    gap: 10px;
    line-height: 100%;
    letter-spacing: 0.08em;
    font-weight: 400;
}
.search-in-AQ div {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
}
#faq-topic-select {
  background: #fff;
  border-color: yellow;
  border: 1px solid #F6BF41;
}
.QA-div .search-in-AQ .search-box button img {
    height: 100%;
}
.QA-div .search-in-AQ .search-box input, #faq-topic-select {
    width: 100%;
    border: 1px solid #F6BF41;
    padding: 0px 15px;
    color: #707070;
}
#faq-topic-select option {
    border-radius: none;
    
    padding: 10px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
}
#faq-topic-select option:hover {
    background-color: #f0f0f0;
}
.QA-div h4.section-title,
.QA-div .search-in-AQ .search-box input,
#faq-topic-select {
    letter-spacing: 0.08em;
    font-weight: 400;
    line-height: 100%;
    color:#707070;
}
.QA-div .search-in-AQ label {
    width: 200px;
}
#faq-topic-select, #faq-search,.QA-div .faq-filter .custom-select {
    width: calc(100% - 200px);
    height: 34px;
}
.QA-div #faq-accordion details p {
    margin-top:0;
    font-weight: 300;
    font-size: 16px;
    line-height: 170%;
    letter-spacing: 5%;
    color: #151515;
}

.buttons {
    width: calc( 100% - 200px);
  display: flex;
  justify-content: space-between;
  align-content: end;
  margin-left: auto;
}
@media (min-width: 769px) {
    .QA-div .search-in-AQ .search-box button {
        width: 117px;
        font-size: 16px;
    }
    .QA-div .search-in-AQ .search-box input {
        font-size: 16px;
    }
    .QA-div h4.section-title {
        font-size: 16px;
        margin: 10px 0;
    }
}

@media (max-width: 769px) {

    .QA-div  {
        padding: 10px;
    }
    .QA-div #faq-accordion details p {
        font-size: 14px;
    }
    .QA-div .search-in-AQ .search-box button {
        padding: 7px 7px;
        font-size: 0;
        line-height: normal;
        width: 28px;
    }
    .QA-div .search-in-AQ .search-box button img {
        height: 14px;
    }
}
/* Кастомный select - обёртка */
.QA-div .faq-filter .custom-select {
    position: relative;
    width: calc(100% - 200px);
    min-width: 200px;
    padding: 0 !important;
}

/* Сбрасываем стили от .search-in-AQ div для внутренних элементов */
.QA-div .faq-filter .custom-select div {
    display: block;
    justify-content: normal;
    /* padding-bottom: 0; */
    width: 100%;
}

/* Верхняя часть (выбранное значение) - выглядит как input */
.QA-div .faq-filter .custom-select-selected {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    padding: 4px 15px;
    border: 1px solid #F6BF41;
    background: #fff;
    color: #707070;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 100%;
    cursor: pointer;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.QA-div .faq-filter .custom-select-selected:hover {
    border-color: #e5a82e;
}

.QA-div .faq-filter .custom-select.active .custom-select-selected {
    border-color: #e5a82e;
}

/* Стрелка */
.QA-div .faq-filter .select-arrow {
    font-size: 10px;
    color: #707070;
    transition: transform 0.3s;
    margin-left: 10px;
}

.QA-div .faq-filter .custom-select.active .select-arrow {
    transform: rotate(180deg);
}

/* Выпадающий список */
.QA-div .faq-filter .custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #F6BF41;
    border-top: none;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}
.QA-div .faq-filter .custom-select .custom-select-options {
    display: none;
}
.QA-div .faq-filter .custom-select.active .custom-select-options {
    max-height: 300px;
    overflow-y: auto;
    display: block;
}

/* Отдельный option */
.QA-div .faq-filter .custom-select-option {
    padding: 2px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #333;
    background-color: #fff;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.QA-div .faq-filter .custom-select-option:last-child {
    border-bottom: none;
}

.QA-div .faq-filter .custom-select-option:hover {
    background-color: #F6BF41;
    color: #333;
}

.QA-div .faq-filter .custom-select-option.selected {
    background-color: #F6BF41;
    color: #333;
    font-weight: 500;
}

/* Скроллбар для списка */
.QA-div .faq-filter .custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.QA-div .faq-filter .custom-select-options::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.QA-div .faq-filter .custom-select-options::-webkit-scrollbar-thumb {
    background: #F6BF41;
    border-radius: 4px;
}