/* Search & Filter Pro */

form.searchandfilter {
    position: relative;
    margin: 0;
    background: none;
    padding: 0;
    width: 100%;
    float: left;
    z-index: 1;
}

.searchandfilter ul {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
    float: left;
}

.searchandfilter ul li {
    position: relative;
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
}

.searchandfilter ul li li {
    padding: 5px 0;
}


/* Checkboxes */
.searchandfilter ul > li > ul:not(.children) {
    margin: 20px 0;
}

.searchandfilter ul li.sf-field-search {
    margin: 0 0 20px 0;
}

.searchandfilter input,
.searchandfilter input:active,
.searchandfilter input:focus {
    position: relative;
    margin: 0;
}

/* Submit button into icon */
.searchandfilter ul li.sf-field-submit {
    position: absolute !important;
    top: 2px;
    right: 0;
    width: auto;
    margin: 0;
}

.search-form input[type="submit"],
.searchandfilter input[type="submit"],
.search-form input[type="submit"]:hover,
.searchandfilter input[type="submit"]:hover {
    position: relative;
    float: right;
    width: 24px;
    height: 24px;
    padding: 5px;
    background: url('../../img/icons/icon-search.svg') no-repeat center;
    background-size: 12px 12px;
    text-indent: -9999px;
    font-size: 16px;
    line-height: 1.8;
    outline: 0;
    border: none;
    border-radius: 0;
}

li.sf-field-sort_order {
    display: none;
}

/* Dropdown select */
.searchandfilter select.sf-input-select {
    width: 100%;
    min-width: unset;
}

/* Labels as checkmarks */
.searchandfilter label {
    float: left;
    width: 100%;
}

.searchandfilter li[data-sf-field-input-type=checkbox] label,
.searchandfilter li[data-sf-field-input-type=radio] label,
.searchandfilter li[data-sf-field-input-type=range-radio] label,
.searchandfilter li[data-sf-field-input-type=range-checkbox] label {
    padding-left: 25px;
    font-weight: 400;
    border: none;
    line-height: 14px;
    font-size: 14px;
    position: relative;
    padding: 4px 0 4px 24px;
    width: 100%;
    float: left;
    cursor: pointer;
}

.searchandfilter li[data-sf-field-input-type=checkbox] label:hover {
    padding: 4px 0 4px 26px;
}

.searchandfilter input[type="text"] {
    width: 100%;
    padding: 0 30px 0 10px;
}

.searchandfilter input[type="checkbox"] {
    cursor: pointer;
    display: none;
}

.searchandfilter input[type="checkbox"] label {
    position: relative;
}

.searchandfilter li[data-sf-field-input-type=checkbox] label:before {
    content: "\2714";
    color: rgba(255, 255, 255, 0);
    margin: 0;
    font-size: 10px;
    line-height: 14px;
    width: 16px;
    height: 16px;
    border: 2px solid #00ffa7;
    float: left;
    position: absolute;
    left: 0;
    top: 4px;
    text-indent: 2px;
    border-radius: 3px;
    font-weight: 500;
}

.searchandfilter li.active label:before,
.searchandfilter li.sf-option-active label:before,
.searchandfilter input[type=checkbox]:checked label:before {
    opacity: 1;
    border: 2px solid #f0f;
    background: #f0f;
    color: rgba(255, 255, 255, 1);
}

.searchandfilter ul li.sf-field-reset {
    position: relative;
    margin: 20px 0 0;
    width: auto;
    float: right;
    right: -2px;
}

li.sf-field-reset a {
    float: right;
    /*text-transform: uppercase;
    float: left;
    font-size: 10px;
    line-height: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.2) !important;
    font-weight: 600;
    border: none;
    padding: 0 20px;
    border-radius: 20px;
    */
}

li.sf-field-reset a:hover,
li.sf-field-reset a:focus {
    color: rgba(0, 0, 0, 0.25) !important;
    background: rgba(0, 0, 0, 0.08);
}

li.sf-field-sort_order {}

li.sf-field-search {}

li.sf-field-submit {}

.searchandfilter span.sf-count,
.subnav .searchandfilter span.sf-count {
    float: right;
}

form.searchandfilter li.sf-field-taxonomy-bigcommerce_brand {
    display: none;
}

form.searchandfilter.active-ecom li.sf-field-taxonomy-bigcommerce_brand {
    display: block;
}


/* Lede search field */

.lede .searchandfilter ul li {
    width: auto;
    margin: 0;
    padding: 0;
}

.lede .searchandfilter input[type="text"] {
    width: 100%;
    padding: 0 0 0 60px;
    font-size: 3em;
    border-color: rgba(221, 224, 235, 0);
}

.lede .searchandfilter ul li.sf-field-submit {
    float: left;
    top: auto;
    right: auto;
    left: 0;
    width: auto;
    height: 100%;
}

.lede .search-form input[type="submit"],
.lede .searchandfilter input[type="submit"] {
    float: left;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 980 980' style='enable-background:new 0 0 980 980;' xml:space='preserve'%3E%3Crect fill='%2306BEDA' x='727.4' y='578.6' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -325.8309 788.0995)' class='icon-path' width='122' height='417.6' /%3E%3Cpath fill='%2306BEDA' class='icon-path' d='M671.2,671.2c153.5-153.5,153.5-402.4,0-556s-402.4-153.5-556,0s-153.5,402.4,0,556S517.7,824.8,671.2,671.2z M601,601c-114.8,114.8-300.9,114.8-415.7,0s-114.8-300.9,0-415.7s300.9-114.8,415.7,0S715.9,486.2,601,601z' /%3E%3C/svg%3E");
    background-size: 36px 36px;
    line-height: 1;
    position: absolute;
    top: 50%;
    bottom: auto;
    -moz-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
}

.lede .search-form input[type="submit"]:hover,
.lede .searchandfilter input[type="submit"]:hover {
    background: url("data:image/svg+xml,%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 980 980' style='enable-background:new 0 0 980 980;' xml:space='preserve'%3E%3Crect fill='%23DD201A' x='727.4' y='578.6' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -325.8309 788.0995)' class='icon-path' width='122' height='417.6' /%3E%3Cpath fill='%23DD201A' class='icon-path' d='M671.2,671.2c153.5-153.5,153.5-402.4,0-556s-402.4-153.5-556,0s-153.5,402.4,0,556S517.7,824.8,671.2,671.2z M601,601c-114.8,114.8-300.9,114.8-415.7,0s-114.8-300.9,0-415.7s300.9-114.8,415.7,0S715.9,486.2,601,601z' /%3E%3C/svg%3E");
}

.lede .searchandfilter ul li:not(.sf-field-search) {
    float: left;
}

.lede .searchandfilter ul li.sf-field-post_type {
    position: absolute;
    top: 50%;
    bottom: auto;
    right: 0;
    -moz-transform: translate(0, -50%);
    -o-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
}


/* xx Media queries xx */
@media screen and (max-width: 1023px) {

    nav.subnav.search .searchandfilter ul li,
    .lede .searchandfilter ul li {
        width: 100%;
    }

    .lede .search-form input[type="submit"],
    .lede .searchandfilter input[type="submit"],
    .lede .searchandfilter ul li.sf-field-post_type {
        -moz-transform: none;
        -o-transform: none;
        -ms-transform: none;
        -webkit-transform: none;
        transform: none;
    }

    .lede .searchandfilter ul li.sf-field-post_type {
        width: 100%;
        margin: 20px 0 0 0;
        position: relative;
        top: auto;
        bottom: auto;
        right: auto;
    }

    .lede .search-form input[type="submit"],
    .lede .searchandfilter input[type="submit"] {
        top: 24px;
    }

    .lede .searchandfilter input[type="text"] {
        font-size: 2em;
    }


}