/* WooFill 2.0 - Main Styles */

.woofill-filter-group {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e0e0e0;
}

.woofill-filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.woofill-filter-group h4 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1em;
}

.woofill-price-inputs {
    display: flex;
    gap: 10px;
}

.woofill-price-inputs input {
    width: 100%;
}

.woofill-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.woofill-filter-list.is-color-swatches li.is-color-swatch-li {
    float: unset;
    padding: unset;
    border-right: unset;
    line-height: unset;
    padding: unset !important;
}

li.is-color-swatch-li label {
    margin-bottom: 0;
}

.woocommerce ul.products.loading {
    opacity: 0.5;
    position: relative;
    transition: opacity 0.3s;
}

.woocommerce ul.products.loading::before {
    content: "\231B";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    z-index: 2;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.woofill-filter-list li.active {
    font-weight: bold;
}

.woofill-price-inputs.active input {
    border-color: #333;
}

.woofill-filter-list.is-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woofill-filter-list .is-color-swatch-li {
    width: 28px;
    height: 28px;
    border: 1px solid #b8b8b8;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin: 0;
    padding: 2px;
    box-sizing: border-box;
}

.is-color-swatch-li label {
    display: block;
    width: 100%;
    height: 100%;
}

.is-color-swatch-li input[type="checkbox"],
.is-color-swatch-li .woofill-term-name {
    display: none;
}

.woofill-filter-list .is-color-swatch-li.active {
    border-color: #000;
    border-width: 2px;
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

li.is-color-swatch-li.active {
    border: 2px solid #fff !important;
}

ul.woofill-filter-list.is-color-swatches {
    width: 100%;
}

ul.woofill-filter-list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 10px;
}

ul.woofill-filter-list li {
    border: 1px solid #d5d5d5;
    border-radius: 3px;
}

ul.woofill-filter-list li label {
    padding: 4px 10px !important;
}

ul.woofill-filter-list label {
    margin-bottom: unset;
    cursor: pointer;
}

ul.woofill-filter-list li.active {
    background: #ebebeb;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

ul.woofill-filter-list li:hover {
    background: #ebebeb;
}

.woofill-filter-group:last-child {
    margin-bottom: unset;
}

.woocommerce button.button.woofill-reset-button {
    min-width: auto;
    line-height: normal;
    padding: 10px 20px;
}

ul.woofill-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woofill-filter-group:not(:has(.is-color-swatches)) li {
    border: 1px solid #333;
}

/* Color Swatch Styles (previously inline) */
.woofill-filter-list .is-color-swatch { 
    width: 28px; 
    height: 28px; 
    border: 1px solid #b8b8b8; 
    border-radius: 50%; 
    padding: 2px !important; 
    box-sizing: border-box; 
    line-height: 0; 
}

.woofill-filter-list .is-color-swatch a { 
    display: block; 
    width: 100%; 
    height: 100%; 
    text-indent: -9999px; 
    border-radius: 50%; 
    background-size: cover; 
}

.woofill-filter-list .is-color-swatch.active { 
    border-width: 2px; 
    border-color: #000; 
    transform: scale(1.1); 
    box-shadow: 0 0 6px rgba(0,0,0,0.6); 
}

ul.woofill-filter-list a {
    padding: 10px 5px;
}
.woocommerce a.button.woofill-reset-button {
    min-width: unset;
    line-height: unset;
    padding: 10px 20px;
}
.woocommerce a.button.woofill-reset-button:hover {
    color: #fff !important;
    background-color: #23232c;
}