/*********************************
* Products filter (WOOF)
*
*********************************/

.woof {
    display: flex;
    min-height: 100%;
    max-height: 100%;
    height: 100%;
    width: 100%;
    flex: 0 0 100%;
    margin: 0 auto !important;
}

.woof p {
    padding: 0 !important;
    margin: 0 !important;
}

/* Strict containment for redraw zone */
.woof_redraw_zone {
    display: flex;
    flex-flow: column nowrap;
    max-height: 100%;
    height: 100%;
    min-height: 100%;
    width: 100%;
    flex: 0 0 100%;
    margin-left: 5px;
}

/* Force all children to stay within bounds */
/* .woof_submit_search_form_container, */
.woof_container {
    display: flex;
    /*     width: 90%; */
    max-width: 95%;
    flex: 1 1 60px; /* Equal distribution */
    max-height: 60px;
    padding: 0 !important;
    margin: 0px 0px 5px 0px !important;
}

/* More height for categories */
.woof_container_product_tag {
    max-height: 130px !important;
    flex: 3 0 auto !important;
}

.woof_container_stock {
    max-height: 50px !important;
    align-items: center !important;
}

/* Horizontal containers with overflow control */
.woof_container_inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex: 0 0 100%;
}

.woof_block_html_items {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    /*     min-height: 65px; */
    /*     height: 65px; */
    /*     max-height: 130px; */
}

/* .woof_container_product_tag .woof_block_html_items { */
/* 	flex: 1 1 120px; */
/* 	height: 100px !important; */
/* 	max-height: 120px !important; */
/* 	align-items: flex-start; */
/* } */

.woof_block_html_items > * {
    flex: 1 1 auto;
}

.woof_container.woof_container_stock,
.woof_container.woof_price_filter {
    max-height: 40px !important;
}

.woof_container_product_tag .select2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    height: 60px !important;
    max-height: 120px !important;
    overflow-y: auto;
}

/* .woof_container_product_tag .select2-selection--multiple { */

/* } */

/* Force Select2 adaptation */
.select2-container {
    display: inline-block !important;
    max-width: 96% !important;
    min-width: 260px !important;
}

.select2-selection {
    padding: 0px !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--cocci-active-text-color) !important;
}

/* Search input constraints */
.woof_husky_txt-input {
    max-width: 100%;
    box-sizing: border-box;
}

/* Submit Button container */
.woof_submit_search_form {
    margin: 10px 0px !important;
    float: none !important;
}

/* Text truncation */
.woof_container_inner label,
.woof_container_inner p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    height: fit-content;
    max-height: 100%;
}

/* Prevent nested overflow */
/* .woof_container_overlay_item, */
/* .woof_block_html_items { */
/*     max-width: 100%; */
/*     overflow: hidden; */
/* } */

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: inherit !important;
    margin-bottom: 3px !important;
}

/**********
***********/

.woocommerce-page .select2-container .select2-search__field,
.woocommerce-page .select2-container .select2-selection {
    padding: 5px !important;
}

.woocommerce-page .select2-container .select2-search__field,
.woocommerce-page .select2-container .select2-selection {
    height: auto !important;
}

.woocommerce-page .select2-container .select2-dropdown {
    padding: 5px !important;
}

.woof_submit_search_form_container {
    display: flex;
    margin: 5px auto 0px auto !important;
    flex-direction: column;
}

.woof_redraw_zone .woof_submit_search_form_container button.woof_reset_search_form {
    display: none !important;
}

.woof_text_search_container {
    max-width: 90%;
}

.woof_text_search_container .woof_text_search_go {
    right: 10px !important;
    top: 10px !important;
    background: url("../images/magnifying-glass.svg") no-repeat !important;
}

span.select2-dropdown,
span.select2-container .select2-selection--single {
    border: 0px !important;
    padding: 2px;
}

.woof_container .icheckbox_square-blue {
    box-shadow: 0px 0px 0px 1px var(--cocci-alternate-color) !important;
}

.select2-container {
    border-radius: 3px !important;
    min-height: 3rem !important;
}

.woof_container_select .select2-container {
    border-bottom: 1px solid var(--cocci-alternate-color) !important;
}

.select2-container--default:hover {
    box-shadow: 0px 0px 0px 0px var(--cocci-alternate-color) !important;
    box-sizing: border-box !important;
    /*     color: var(--cocci-active-text-color) !important; */
}

.select2-container .select2-selection--multiple {
    border: none !important;
    border: 1px solid var(--cocci-alternate-color) !important;
}

.select2-container .select2-selection--multiple:hover {
    border: none !important;
    border-radius: 3px !important;
    box-shadow: 0px 0px 0px 2px var(--cocci-alternate-color) !important;
}

.woof_container_woof_text {
    margin-left: 0px !important;
}

.woof_container_woof_text .woof_husky_txt-input {
    padding: 2px !important;
    margin: 2px !important;
    border-radius: 3px !important;
    border-bottom: 1px solid var(--cocci-alternate-color) !important;
    max-width: 85%;
    min-width: 270px !important;
    min-height: 2.7rem !important;
}

.woof_container_select .select2-container:hover,
.woof_container_woof_text .woof_husky_txt-input:hover {
    border: 2px solid var(--cocci-alternate-color) !important;
}
.select2-container .select2-selection--single {
    color: var(--cocci-active-text-color) !important;
    border-radius: 3px !important;
}

.select2-results ul li {
    margin: 0 auto !important;
}

.select2-results__options {
    border-radius: 3px;
}
.select2-results__option[data-selected="true"] {
    color: var(--cocci-active-text-color) !important;
}

.select2-results__option:nth-child(2n) {
    background-color: var(--cocci-background-color) !important;
}
/* .select2-results__option:nth-child(2n+1) { */
/* } */
.select2-results__option {
    background-color: var(--cocci-background-color) !important;
}

.select2-results__option:hover,
.select2-results__option--highlighted {
    background-color: var(--cocci-secondary-color) !important;
    color: var(--cocci-primary-color) !important;
}

.select2-selection__choice {
    margin-left: 3px !important;
}

.woof_container_product_tag .select2-container {
    height: 100%;
    max-height: 100%;
}

.woof_container_product_tag .selection {
    height: 100%;
    max-height: 100%;
    line-height: 2rem !important;
}

.select2-selection__rendered:hover {
    color: var(--cocci-active-text-color) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: initial !important;
}

.woof_container_product_tag .select2-selection__rendered {
    height: min-content;
    overflow-y: auto;
}

.select2-dropdown--above,
.select2-dropdown--below {
    border-radius: 3px;
    box-shadow: var(--cocci-box-shadow-global) !important;
}

.widget-title {
    display: none !important;
}

.woof_husky_txt {
    display: none !important;
}

input.woof_husky_txt-input {
    text-indent: 5px;
}

.coccinelles-woof-title .coccinelles-widget-title {
    text-align: center;
    font-size: 20px;
    margin: 0 auto;
    padding: 20px 0px;
}

.woof .widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--cocci-nicelightblue) !important;
}

.woof .widget_price_filter .ui-slider .ui-slider-handle {
    box-shadow: inset 0px 0px 0px 18px var(--cocci-niceheavyblue) !important;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
    background-color: var(--cocci-nicelightblue) !important;
}

.woo-listing-top {
    margin-top: 10px !important;
}

.woof_reset_button_2 {
    border-radius: 3px !important;
    border: 1px solid var(--cocci-secondary-color) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    outline: none !important;
    padding: 10px 8px 10px 8px !important;
    position: relative !important;
    text-align: center !important;
    text-decoration: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    line-height: 1.15385 !important;
    vertical-align: baseline !important;
    display: inline !important;
    min-height: 2.4em !important;
    margin: 4px;
}

.woof_reset_button_2:hover,
.woof_reset_button_2:active {
    background-color: var(--cocci-button-background-active) !important;
    opacity: 0.7;
}

/************* END SIDEBAR **************/

.woof_products_top_panel {
    /*     margin: 0 !important; */
    border-bottom: 1px solid var(--theme-border-color);
    padding: 5px 5px 15px 5px !important;
    line-height: 55px;
    min-height: 70px;
    z-index: 10 !important;
}

.woof_products_top_panel .coccinelles-icon-tag {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.woof_products_top_panel_ul {
    display: inherit;
    align-items: center;
}

.woof_products_top_panel_ul li {
    line-height: 45px !important;
    height: 45px !important;
    vertical-align: middle;
}

.woof_products_top_panel a {
    /* padding: 5px; */
    border-radius: 5px;
    /*     font-weight: 400; */
    border: 1px solid var(--theme-border-color) !important;
    color: var(--cocci-text-color);
}

.woof_remove_ppi {
    display: inline-block;
    background: url("/wp-content/plugins/woocommerce-products-filter/img/delete.png") !important;
    background-size: 14px 14px !important;
    background-repeat: no-repeat !important;
    background-position: right 3px center !important;
    padding: 5px 15px 5px 5px !important;
    min-width: max-content !important;
    width: max-content !important;
}

.woof_remove_ppi:hover {
    background-size: 18px 18px !important;
}

.woof_remove_ppi span:not(.coccinelles_active_filter) {
    padding-right: 5px !important;
    padding-left: 5px !important;
    vertical-align: middle;
}

.coccinelles_active_filter {
    display: inline-block !important;
    margin-right: 5px !important;
    padding-left: 30px !important;
    background-position: left center !important;
}

.woocommerce.woocommerce-page.woof_shortcode_output {
    /* #woof_results_by_ajax { */
    border-radius: 5px !important;
    box-shadow: var(--cocci-box-shadow-global);
    padding: 8px !important;
    margin-bottom: 10px !important;
}

/* INCLUDED IN MENU */

/* Hide WOOF for in-menu search  */
header .woof_container_select,
header .woof_container_mselect,
header div[class^="woof_price"],
header .coccinelles-woof-title,
header .woof_container_stock {
    display: none !important;
}
