.so-ew-faq {
    position: relative;
}

.so-ew-faq.is-loading {
    opacity: 0.7;
}

.so-ew-faq__search-wrap {
    margin-bottom: 20px;
}

.so-ew-faq__search-field {
    --so-ew-search-icon-offset: 12px;
    --so-ew-search-icon-space: 34px;
    position: relative;
}

.so-ew-faq__search-icon {
    position: absolute;
    top: 50%;
    left: var(--so-ew-search-icon-offset);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b8794;
    pointer-events: none;
    z-index: 1;
}

.so-ew-faq__search-field--icon-right .so-ew-faq__search-icon {
    left: auto;
    right: var(--so-ew-search-icon-offset);
}

.so-ew-faq__search-input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    padding: 12px 14px;
}

.so-ew-faq__search-field--icon-left .so-ew-faq__search-input {
    padding-left: calc(var(--so-ew-search-icon-space) + var(--so-ew-search-icon-offset));
}

.so-ew-faq__search-field--icon-right .so-ew-faq__search-input {
    padding-right: calc(var(--so-ew-search-icon-space) + var(--so-ew-search-icon-offset));
}

.so-ew-faq__layout {
    display: flex;
    align-items: flex-start;
    column-gap: 28px;
}

.so-ew-faq__filters {
    flex: 0 0 28%;
    min-width: 200px;
}

.so-ew-faq__filters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.so-ew-faq__filter-title {
    margin: 0 0 6px;
}

.so-ew-faq__filter-btn {
    text-align: left;
    border: 1px solid #d8dde3;
    background: #fff;
    color: #2f3a48;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.so-ew-faq__filter-btn:hover,
.so-ew-faq__filter-btn:focus-visible,
.so-ew-faq__filter-btn.is-active {
    border-color: #1b6ef3;
    background: #edf4ff;
    color: #1b4ea5;
}

.so-ew-faq__results {
    flex: 1 1 auto;
    min-width: 0;
}

.so-ew-faq__item + .so-ew-faq__item {
    margin-top: 12px;
}

.so-ew-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #d8dde3;
    background: #fff;
    color: #1f2c3d;
    cursor: pointer;
}

.so-ew-faq__question-text {
    text-align: left;
}

.so-ew-faq__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
}

.so-ew-faq__icon-closed,
.so-ew-faq__icon-open {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.so-ew-faq__icon-closed {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.so-ew-faq__icon-open {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.so-ew-faq__item.is-open .so-ew-faq__icon-open {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.so-ew-faq__item.is-open .so-ew-faq__icon-closed {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.so-ew-faq--icon-rotate .so-ew-faq__icon {
    transition: transform 0.2s ease;
}

.so-ew-faq--icon-rotate .so-ew-faq__icon-open {
    opacity: 0 !important;
}

.so-ew-faq--icon-rotate .so-ew-faq__item.is-open .so-ew-faq__icon-closed {
    opacity: 1 !important;
    transform: translate(-50%, -50%) rotate(0deg) !important;
}

.so-ew-faq--icon-rotate .so-ew-faq__item.is-open .so-ew-faq__icon {
    transform: rotate(180deg);
}

.so-ew-faq__answer {
    margin-top: 8px;
}

.so-ew-faq__answer-inner {
    border: 1px solid #e6ebf0;
    background: #fff;
    padding: 16px;
}

.so-ew-faq__answer-inner > :first-child {
    margin-top: 0;
}

.so-ew-faq__answer-inner > :last-child {
    margin-bottom: 0;
}

.so-ew-faq__empty {
    margin: 0;
}

.so-ew-faq__reset-search {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1b4ea5;
    text-decoration: underline;
    cursor: pointer;
}

.so-ew-faq__pagination {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.so-ew-faq__page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid #d8dde3;
    background: #fff;
    color: #1f2c3d;
    text-decoration: none;
    padding: 0 10px;
}

.so-ew-faq__page-link:hover,
.so-ew-faq__page-link:focus-visible,
.so-ew-faq__page-link.is-active {
    border-color: #1b6ef3;
    background: #edf4ff;
    color: #1b4ea5;
}

@media (max-width: 767px) {
    .so-ew-faq__layout {
        flex-direction: column;
        row-gap: 20px;
    }

    .so-ew-faq__filters {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
    }

    .so-ew-faq__results {
        width: 100%;
        flex-basis: 100%;
    }
}
