.otc-filter-props {
    margin: 0;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    font-size: 12px;
    position: relative;
    margin-bottom: 10px;
}

.otc-filter-props.loading:after {
    content: 'Loading...';
    position: absolute;
    text-align: center;
    font-size: 16px;
    padding-top: 10px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    z-index: 9999;
}

.otc-filter-prop {
    display: flex;
    position: relative;
}

.otc-filter-prop-name {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 7px 10px;
}

.otc-filter-prop-values {
    display: flex;
    gap: 10px 20px;
    margin-top: 7px;
    margin-bottom: 7px;
    margin-left: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.otc-filter-prop.has-more:not(.show-all)::after {
    content: '...';
    position: absolute;
    font-weight: bold;
    bottom: 7px;
}

.otc-filter-prop-value {
    flex-shrink: 0;
    max-width: 220px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.otc-filter-props > .btn-show {
    text-align: center;
    height: 26px;
    line-height: 26px;
    font-size: 14px;
    border-top: 1px solid #e8e8e8;
}

.otc-filter-prop > .btn-show {
    position: absolute;
    right: 7px;
    top: 7px;
}

.btn-show > a {
    color: inherit;
    cursor: pointer;
}

:not(.show-all) > .otc-filter-prop-more {
    display: none;
}

:not(.show-all) > .btn-show > .btn-show-less {
    display: none;
}

.show-all > .btn-show > .btn-show-more {
    display: none;
}

.show-all.has-more > .otc-filter-prop-values {
    flex-wrap: wrap !important;
}

.otc-filter-prop:not(.has-more) > .btn-show {
    display: none;
}

.otc-filter-props-sels {
    display: flex;
    gap: 10px 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.otc-filter-prop-sel {
    border:1px solid #e8e8e8;
    border-radius: 5px;
    height: 22px;
    line-height: 22px;
    padding: 0 5px;
    display: flex;
}

.otc-filter-prop-sel-name {
    max-width: 80px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.otc-filter-prop-sel-values {
    max-width: 200px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.otc-filter-prop-sel-values::before {
    content: ': ';
}

.otc-filter-prop-sel-value + .otc-filter-prop-sel-value::before {
    content: ', ';
}

a.otc-filter-prop-sel-remove {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    margin-left: 5px;
}

.otc-filter-prop-clear {
    border:1px solid #e8e8e8;
    border-radius: 5px;
    height: 22px;
    line-height: 22px;
    padding: 0 5px;
    color: inherit;
    text-decoration: none;
}

.otc-filter-bar {
    display: flex;
    margin-bottom: 10px;
    gap: 10px 35px;
}

.otc-filter-list {
    display: flex;
}

.otc-filter-list > button {
    background: #eee;
    padding:0 10px;
    margin-left: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
}

.otc-filter-price {
    display: flex;
    align-items:center;
}

.otc-filter-price > .otc-input-group > input {
    width: 90px;
}

.otc-filter-price-sep {
    width: 12px;
    text-align: center;
}

.otc-filter-sort > .otc-dropdown {
    display: none;
}

@media (max-width: 767px) {
    .otc-filter-prop {
        flex-direction: column;
    }

    .otc-filter-prop-name {
        background-color: #eee;
        border-top: 1px solid #e8e8e8;
    }

    .otc-filter-prop-values {
        margin-right: 20px;
    }

    .otc-filter-prop.has-more:not(.show-all)::after {
        right: 7px;
    }

    .otc-filter-bar {
        column-gap: 15px;
        justify-content: space-between;
    }

    .otc-filter-list + .otc-filter-sort > .otc-input-group {
        display: none;
    }

    .otc-filter-list + .otc-filter-sort > .otc-dropdown {
        display: block;
    }
}

@media (min-width: 768px) {
    .otc-filter-prop:not(:first-child) {
        border-top: 1px dashed #e8e8e8;
    }

    .otc-filter-prop-name {
        flex: 0 0 150px;
    }

    .otc-filter-prop-values {
        margin-right: 35px;
    }

    .otc-filter-prop.has-more:not(.show-all)::after {
        right: 22px;
    }
}
