/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.6.0
 Text Domain:  woodmart
*/
.woodmart-woocommerce-layered-nav {
    width: 100% !important;
    display: block !IMPORTANT;
    max-width: 100%;
    margin-bottom: 12px !important;
    margin-top: 12px !important;
}

.rtx-filter-btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
}

button.rtx-filter-toggle-btn {
    flex: 1;
    border: 1px solid #b9b9b9;
    background: #fff;
    color: #525252;
    font-size: 13px;
    text-align: left;
    justify-content: flex-start;
    text-transform: none;
}

button.rtx-filter-toggle-btn:before {
    content: "";
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
    right: 10px;
}

button.rtx-filter-details-toggle,
.rtx-filter-close-all {
    padding: 10px;
    border: 1px solid #b9b9b9;
    background: #fff;
}

button.rtx-filter-details-toggle:hover,
.rtx-filter-close-all:hover {
    background: #f5f5f5;
}

button.rtx-filter-details-toggle.active {
    background: #f5f5f5;
    border-color: #f5f5f5;
}

button.rtx-filter-details-toggle img:not(button.rtx-filter-close-all img) {
    filter: grayscale(1) brightness(1.6) opacity(0.5);
    width: 20px;
    height: 20px;
}

button.rtx-filter-close-all img {
    width: 14px;
    height: 14px;
}

button.rtx-filter-details-toggle.active img {
    filter: none;
}

.rtx-filter-details {
    padding: 8px;
    background: #f5f5f5;
}

.rtx-filter-details .img-wrapper {
    text-align: center;
}

.rtx-filter-details img {
    height: 80px;
}

.rtx-filter-details p.text-content {
    margin: 0;
    font-size: 14px;
    color: #000;
}

.rtx-filter-wrapper .wd-filter-search input {
    padding-right: 15px;
    padding-left: 40px;
}

.rtx-filter-wrapper .wd-filter-search:before {
    right: auto;
    left: 12px;
}

.rtx-filter-wrapper .wd-filter-search.wd-search.wd-active:before {
    display: block;
}

.wd-filter-wrapper.rtx-filter-wrapper {
    display: none;
    margin-top: 10px;
    border: 1px solid #b9b9b9;
    padding: 15px;
}

.widget {
    margin: 0;
    border: navajowhite;
    padding-bottom: 16px;
}

.rtx-filter-wrapper .wd-filter-list .count {
    border-radius: 0;
}



.wd-swatches-filter.wd-checkboxes-on li>a:before {
    content: "";
    display: inline-block;
    margin-inline-end: 8px;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    border: 2px solid var(--brdcolor-gray-300);
    vertical-align: middle;
    transition: all .2s ease
}

.wd-swatches-filter.wd-checkboxes-on li>a:after {
    position: absolute;
    top: calc(50% + 1px);
    transform: translateY(-50%);
    inset-inline-start: .2em;
    color: #fff;
    font-weight: 400;
    font-size: .7em;
    opacity: 0;
    content: "\f107";
    font-family: "woodmart-font"
}

.wd-swatches-filter.wd-checkboxes-on li>a:hover:before {
    border-color: var(--wd-primary-color)
}

.wd-swatches-filter.wd-checkboxes-on li.wd-active>a:before {
    background-color: var(--wd-primary-color);
    border-color: var(--wd-primary-color)
}

.wd-swatches-filter.wd-checkboxes-on li.wd-active>a:after {
    opacity: 1
}

/* Home filter */
h3.rtx_form_title {
    text-transform: var(--wd-header-el-transform);
    font-weight: var(--wd-header-el-font-weight);
    font-style: var(--wd-header-el-font-style);
    font-size: var(--wd-header-el-font-size);
    font-family: var(--wd-header-el-font);
}

.rtx-product-filter .attribute h4 {
    margin-bottom: 5px;
    margin-top: 10px;
    font-weight: var(--wd-header-el-font-weight);
    font-style: var(--wd-header-el-font-style);
    font-size: var(--wd-header-el-font-size);
    font-family: var(--wd-header-el-font);
}

form#rtx-product-filter-form .btn {
    width: 100%;
    margin-top: 15px;
}

.attribute {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* select 2 */

span.select2-selection.select2-selection--single {
    border-radius: inherit;
    border: 1px solid #b9b9b9;
    padding: 5px 20px;
    height: 42px;
}

span.select2-selection.select2-selection--single>span:first-child {
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px;
}

span.select2-container {
    width: 115px !important;
}

form#rtx-product-filter-form.loading {
    opacity: 0.5;
}

form#rtx-product-filter-form.loading:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: not-allowed;
    top: 0;
    left: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
        /* Starting position */
    }

    to {
        transform: rotate(360deg);
        /* Ending position */
    }
}

form#rtx-product-filter-form.loading:after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    z-index: 3;
    border-radius: 50%;
    cursor: not-allowed;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    animation: spin 1s linear infinite;
}