/* WooCommerce Category Search & Tree */
.wccst {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.wccst * {
    box-sizing: border-box;
}

.wccst-search-wrap {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 14px;
}

.wccst-search {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    padding: 10px 88px 10px 13px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.wccst-search:focus {
    border-color: #ff8a16;
    box-shadow: 0 0 0 2px rgba(255, 138, 22, .12);
}

.wccst-search-btn,
.wccst-clear {
    position: absolute;
    top: 0;
    height: 44px;
    border: 0;
    cursor: pointer;
}

.wccst-search-btn {
    right: 0;
    width: 44px;
    color: #fff;
    background: #ff8a16;
    font-size: 22px;
}

.wccst-clear {
    right: 44px;
    width: 38px;
    background: transparent;
    color: #777;
    font-size: 21px;
}

.wccst-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.wccst-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wccst-tree .wccst-tree {
    padding-left: 21px;
}

.wccst-item {
    margin: 0;
    padding: 0;
}

.wccst-row {
    display: flex;
    align-items: center;
    min-height: 35px;
    border-bottom: 1px solid #f0f0f0;
}

.wccst-toggle {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    padding: 0;
    margin-right: 4px;
    border: 1px solid #ddd;
    border-radius: 2px;
    background: #fff;
    color: #555;
    cursor: pointer;
    line-height: 22px;
    text-align: center;
}

.wccst-spacer {
    flex: 0 0 29px;
}

.wccst-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    padding: 8px 4px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
}

.wccst-link:hover {
    color: #ff8a16;
}

.wccst-name {
    overflow-wrap: anywhere;
}

.wccst-count {
    flex: 0 0 auto;
    min-width: 20px;
    margin-left: 8px;
    color: #888;
    font-size: 11px;
    text-align: right;
}

.wccst-children {
    padding-left: 0;
}

.wccst-empty,
.wccst-loading,
.wccst-notice {
    padding: 14px;
    margin: 8px 0;
    border: 1px solid #eee;
    background: #fafafa;
    color: #666;
    font-size: 13px;
}

@media (max-width: 767px) {
    .wccst-search {
        min-height: 42px;
        padding-left: 11px;
    }

    .wccst-search-btn,
    .wccst-clear {
        height: 42px;
    }

    .wccst-link {
        font-size: 14px;
    }

    .wccst-tree .wccst-tree {
        padding-left: 14px;
    }
}
