/* WOOF Sidebar Enhancer — front.css  v1.2.0 */

/* ── Section spacing ── */
.woof_container {
    border-bottom: 1px solid #efefef;
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
}
.woof_container:last-child { border-bottom: none; }

/* ── Section heading ── */
.woof_container_inner > h4 {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0 8px;
    margin: 0 0 4px 0 !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #222;
    border-bottom: 1px solid #e5e5e5;
    line-height: 1.4;
    transition: color 0.15s;
    cursor: pointer;  /* always show pointer – WOOF itself rendered the toggle */
}
.woof_container_inner > h4:hover { color: #000; }

/* ── Hide plugin's own "+/-" toggle text (we use chevron instead) ── */
.woof_container_inner > h4 > a.woof_front_toggle {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ── Chevron appended by JS ── */
.wse-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: auto;
    color: #aaa;
    font-style: normal;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.28s ease, color 0.2s;
    transform: rotate(90deg);  /* points down = section open */
    pointer-events: none;
}
/* When container is collapsed, chevron points right */
.woof_container.wse-collapsed .wse-chevron {
    transform: rotate(0deg);
    color: #ccc;
}

/* ── Closed block — no !important so jQuery slideDown can override ── */
.woof_closed_block { display: none; }

/* ── List items ── */
.woof_list li { padding: 2px 0 !important; }
.woof_list label {
    font-size: 13px;
    color: #444;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    transition: color 0.12s;
}
.woof_list label:hover { color: #000; }
.woof_count, .woof_checkbox_count { color: #aaa !important; font-size: 11px !important; }

/* ── Show More / Less button (native WOOF .woof_open_hidden_li_btn) ── */
li.woof_open_hidden_li {
    margin-top: 6px;
    list-style: none !important;
}
a.woof_open_hidden_li_btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-size: 12px !important;
    color: #555 !important;
    text-decoration: none !important;
    padding: 3px 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.18s;
    font-weight: 500;
}
a.woof_open_hidden_li_btn::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}
a.woof_open_hidden_li_btn[data-state="opened"]::before { content: "−"; }
a.woof_open_hidden_li_btn:hover { color: #000 !important; }

/* ── Scrollable tall sections ── */
.woof_section_scrolled {
    max-height: 200px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #ddd transparent;
}
.woof_section_scrolled::-webkit-scrollbar       { width: 4px; }
.woof_section_scrolled::-webkit-scrollbar-track { background: transparent; }
.woof_section_scrolled::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

/* ── Filter / Reset buttons ── */
.woof_submit_search_form_container { margin: 12px 0 8px !important; gap: 8px; }
button.woof_reset_search_form,
button.woof_submit_search_form {
    border-radius: 4px; padding: 7px 16px;
    font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
button.woof_reset_search_form { background:#f5f5f5; border:1px solid #ddd; color:#555; }
button.woof_reset_search_form:hover { background:#eee; color:#222; }
button.woof_submit_search_form { background:#333; border:1px solid #333; color:#fff; }
button.woof_submit_search_form:hover { background:#000; border-color:#000; }
