/* Container for the main filter buttons */
.filter-group-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

}

/* Individual filter button wrapper */
.filter-item {
    position: relative;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 1px solid;
    border-top: 1px solid;
    background-color: #fff;
    user-select: none;
    transition: all 0.2s ease-in-out;
    width: fit-content;
    flex: 1 1 10%;
}

.filter-item:hover {
    border-color: #0073aa;
}

/* The clickable part of the filter button */
.filter-toggle {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    width: auto;
    white-space: nowrap;
    justify-content: space-between;
}

.filter-toggle span.question-mark {
    margin-left: 5px;
    font-weight: normal;
    color: #888;
}

/* Dropdown filter options (the actual list of choices) */
.filter-options {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 200px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 5px 0 0 0;
    display: none;
}

.filter-options li {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.filter-options li:hover {
    background-color: #f0f0f0;
}

.filter-options li.active {
    background-color: #0073aa;
    color: #fff;
}

.filter-badge {
    background-color: #e9ecef;
    border-radius: 20px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #495057;
    white-space: nowrap;
}

.filter-badge .cancel-btn {
    background: none;
    border: none;
    color: #495057;
    font-size: 16px;
    margin-left: 5px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

#loading-spinner {
    text-align: center;
    padding: 20px;
    font-weight: bold;
}








/* Style for pagination container */
.woocommerce-pagination-ajax {
    margin-top: 20px;
}

/* Base style for all pagination items */
.woocommerce-pagination-ajax .page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination-ajax .page-numbers li {
    margin: 0 5px;
}

/* Style for individual page numbers and buttons */
.woocommerce-pagination-ajax .page-numbers a,
.woocommerce-pagination-ajax .page-numbers .dots {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.woocommerce-pagination-ajax .page-numbers .dots {
    border: none;
}

/* Hover effect */
.woocommerce-pagination-ajax .page-numbers a:hover {
    background-color: #f0f0f0;
}

/* Style for the current (selected) page */
.woocommerce-pagination-ajax .page-numbers .current {
    background-color: #1a4242;
    /* Dark green background */
    color: white;
    /* White text */
    border-color: #1a4242;
}

/* No underline on current page */
.woocommerce-pagination-ajax .page-numbers a.current:hover {
    background-color: #1a4242;
    color: white;
}




















/* Base Filter Container */
.i8-ajax-product-filter-container {
    width: 100%;
    max-width: 300px;
}

/* Individual Filter Block */
.filter-item-block {
    margin-bottom: 20px;
}

/* Filter Section Title */
.filter-item-block h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Filter Options (the list of terms) */
.filter-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Individual list item */
.filter-options li {
    display: flex;
    /* Use flexbox to align items */
    justify-content: space-between;
    /* Space out the name and count */
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    /* Light gray background */
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Hover effect */
.filter-options li:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}

/* Active (selected) item */
.filter-options li.active {
    background-color: #1a4242;
    /* Dark green background for selected item */
    color: white;
    /* White text for selected item */
    border-color: #1a4242;
}

/* Product Count on the right */
.filter-options li .product-count {
    font-weight: bold;
    color: #666;
    /* Gray color for count */
}

/* Change count color for active state */
.filter-options li.active .product-count {
    color: white;
}

/* Selected Filters Badge Container */
#selected-filters-container {
    margin-bottom: 20px;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

/* Style for individual filter badges */
.filter-badge {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-badge .cancel-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.filter-badge .cancel-btn:hover {
    color: #333;
}

/* Pagination Styles */
.woocommerce-pagination-ajax {
    margin-top: 20px;
}

.woocommerce-pagination-ajax .page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination-ajax .page-numbers li {
    margin: 0 5px;
}

.woocommerce-pagination-ajax .page-numbers a,
.woocommerce-pagination-ajax .page-numbers .dots {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}

.woocommerce-pagination-ajax .page-numbers .dots {
    border: none;
}

.woocommerce-pagination-ajax .page-numbers a:hover {
    background-color: #f0f0f0;
}

.woocommerce-pagination-ajax .page-numbers .current {
    background-color: #1a4242;
    color: white;
    border-color: #1a4242;
}

.woocommerce-pagination-ajax .page-numbers a.current:hover {
    background-color: #1a4242;
    color: white;
}




/* Filter Options (the list of terms) */
.filter-options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 250px;
    overflow-y: auto;
    min-width: 100%;
}

/* Base style for individual list items */
.filter-options li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

































.filter-form__group-display-price-slider-wrapper {
    padding: 8px;
}

.filter-form__group-display-price-slider-wrapper .slider {
    cursor: pointer;
    margin: 16px 16px 24px;
    position: relative;
}

.filter-form__group-display-price-slider-wrapper .slider .background {
    background-color: rgba(65, 66, 71, .08);
    border: 1px solid #ddd;
    height: 6px;
}

.filter-form__group-display-price-slider-wrapper .slider-handle {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: -webkit-grab;
    cursor: grab;
    height: 20px;
    outline: none;
    position: absolute;
    -webkit-transform: translate(-50%, calc(-50% - 3px));
    transform: translate(-50%, calc(-50% - 3px));
    width: 20px;
    z-index: 1;
}

.filter-form__group-display-price-slider-wrapper .slider-handle-left {
    left: 0;
}

.filter-form__group-display-price-slider-wrapper .slider {
    cursor: pointer;
    margin: 16px 16px 24px;
    position: relative;
}

.filter-form__group-display-price-slider-wrapper .slider .background {
    background-color: rgba(65, 66, 71, .08);
    border: 1px solid #ddd;
    height: 6px;
}

.filter-form__group-display-price-slider-wrapper .slider-handle-right {
    left: 100%;
}

.filter-form__group-display-price-slider-wrapper .slider-marker {
    background: #ddd;
    height: 12px;
    pointer-events: none;
    position: absolute;
    width: 2px;
}

.filter-form__group-display-price-slider-wrapper .slider-marker-left {
    left: 0;
    margin-left: 0;
}

.filter-form__group-display-price-slider-wrapper .slider-marker span {
    font-size: .8em;
    line-height: 1;
    padding-top: 15px;
    position: absolute;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}




/* Price Slider Specific Styles */
.filter-form__group-display-price-slider-wrapper {
    padding: 20px 10px 40px;
    position: relative;
    max-width: 300px;
    width: 100%;
}

.filter-form__group-display-price-slider-wrapper .slider {
    cursor: pointer;
    margin: 16px 16px 24px;
    position: relative;
}

.filter-form__group-display-price-slider-wrapper .slider .background {
    background-color: rgba(65, 66, 71, .08);
    height: 6px;
    position: relative;
}

.filter-form__group-display-price-slider-wrapper .slider .progress {
    background: #1a4242;
    /* The filled part of the slider */
    height: 6px;
    position: absolute;
    top: 0;
}

.filter-form__group-display-price-slider-wrapper .slider-handle {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: grab;
    height: 20px;
    outline: none;
    position: absolute;
    top: -7px;
    transform: translateX(-50%);
    width: 20px;
    z-index: 1;
}

.filter-form__group-display-price-slider-wrapper .slider-handle:active {
    cursor: grabbing;
}

.filter-form__group-display-price-slider-wrapper .slider-handle span {
    display: none;
    /* Hide the default span */
}

.filter-form__group-display-price-slider-wrapper .slider-marker {
    background: #ddd;
    height: 12px;
    pointer-events: none;
    position: absolute;
    width: 2px;
    top: 6px;
}

.filter-form__group-display-price-slider-wrapper .slider-marker-left {
    left: 0;
}

.filter-form__group-display-price-slider-wrapper .slider-marker-centre {
    left: 50%;
}

.filter-form__group-display-price-slider-wrapper .slider-marker-right {
    left: 100%;
}

.filter-form__group-display-price-slider-wrapper .slider-marker span {
    font-size: .8em;
    line-height: 1;
    padding-top: 15px;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Hide default number inputs for a cleaner look */
.filter-form__group-display-price-slider-wrapper input {
    display: none;
}






#filter-badges-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-badge:hover {
    background-color: #004a44;
    color: white;
}

.filter-badge .cancel-btn:hover {
    cursor: pointer;
}











/* Sizes Accordion & Pills (Category 88) - User Provided Style */
.sizes-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding-right: 28px;
}

.sizes-toggle::after {
    content: "\276F";
    position: absolute;
    right: 0;
    top: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
    transition: transform .25s ease;
}

.Product_custom_container_Product_section.open .sizes-toggle::after {
    transform: translateY(-50%) rotate(-90deg);
}

.size-acc-body {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    background: #ffffff;
    border-radius: 12px;
    width: 100%;

}

/* .Product_custom_container_Product_section.open .size-acc-body handled by JS */


.size-pill {
    background: #bfc3b8;
    border-radius: 16px;
    padding: 3px 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #1f1f1f;
    cursor: pointer;
    transition: all .15s ease;
}

.size-pill:hover {
    background: #aeb3a7;
}

.size-pill.active {
    background: #0b4d45;
    color: #fff;
}







