/*
 * Woakey shared filter modal — component styles (plugin v1.2.31).
 * Extracted from view 1631. The modal SKIN (backdrop, panel, gradient
 * header, Close X) comes from the plugin's .pm-overlay-* classes printed by
 * universal-overlay-iframe.php; only filter-specific component styles live
 * here. Page-specific positioning stays in each view's CSS panel:
 *   .open-filters-button   (look + position)
 *   .woakey-clear-filters  (position only — base look is here)
 *   the shade parent       (position:relative + min-height)
 */

/* base look for the trigger and clear pills — position them per page */
.open-filters-button {
    border: 1px solid black;
    padding: 5px 10px;
    color: black;
    border-radius: 50px;
    background: #efefef;
    cursor: pointer;
    display: inline-block;
}

.open-filters-button:hover {
    background: darkgray;
}

.woakey-clear-filters {
    border: 1px solid #c0392b;
    padding: 5px 10px;
    color: #c0392b;
    border-radius: 50px;
    background: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
}







.content-search-section > .btn, .content-search-section > .btn:focus {
	background: #e09d27;
    padding: 10px 20px;
    border-radius: 0px;
    margin-right: 3px;
    margin-top: 3px;
    font-size: 13.5px;
    font-weight: 300;
}

.content-search-section > .btn:hover, .content-search-section > .btn:active {
	background: #07303d;
}

.content-search-section > input[type="text"] {
	height: 30px;
    font-size: 13.5px;
}

.filter-checkboxes-basic {
 display: none;
 visibility: hidden;
 background: red;
 position: fixed;
 bottom: -5000px;
}

.filter-checkboxes > div > label, .filter-checkboxes > div > span {
 color: inherit;
 cursor: pointer;
}

.filter-checkboxes > div {
 display: inline-block;
 color: #e09d27;
 padding: 0px;
}

.filter-checkboxes > div > label, .filter-by-cpt {
    display: inline-block;
    color: #e09d27;
    padding: 5px 10px;
    border: 1px solid #e09d27;
    border-radius: 50px;
    white-space: nowrap;
    margin: 3px;
    cursor: pointer;
}

.filter-by-cpt {
    font-size: 14px;
    font-weight: bold;
}

.filter-checkboxes > div > label:active {
    background: #e09d27;
}

.filter-checkboxes > div > label:hover {
	color: white;
	background: #e09d27;
    cursor: pointer;
}

.filter-checkboxes > div > input {
    display: none;
    visibility: hidden;
	position: absolute;
    left: 30px;
    top: 8px;
}

.selection-hidden {
 display: none;
 visibility: hidden;
}

.filter-selected {
 color: white !important;
 background: #e09d27;
}

.filter-checkboxes-space {
 margin: 15px 0px;
}

/* ---- always-visible filter groups (Sectors / Topics) ---- */

.filter-group {
    margin: 12px 0px;
    padding: 10px 0px 4px 0px;
    border-top: 1px solid #eee;
}

.filter-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.filter-group-label {
    font-size: 14px;
    font-weight: bold;
    color: #07303d;
}

.woakey-tax-search {
    height: 30px;
    font-size: 13.5px;
    padding: 2px 10px;
    border: 1px solid #ccc;
    border-radius: 50px;
    max-width: 240px;
    outline: none;
}

.woakey-tax-search:focus {
    border-color: #e09d27;
}

/* long term lists scroll instead of swallowing the page */
.filter-taxonomy-scroll {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.woakey-tax-search-empty {
    font-size: 13px;
    color: #888;
    padding: 4px 0px;
}

/* ============================================================
 * FILTER MODAL — overlay-styled panel, same design language as
 * .pm-overlay (create/edit overlay) but the element never moves
 * in the DOM, so Toolset dependency updates keep working.
 * Marked for extraction to the plugin once a second view uses it.
 * ============================================================ */

.woakey-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woakey-filter-modal.selection-hidden {
    display: none;
    visibility: hidden;
}

/* Backdrop, panel, header bar and Close X come from the plugin's
 * .pm-overlay-* classes (universal overlay shell) so the design stays in
 * sync with the Frame Content Management overlay by reference. Only the
 * body is ours: the pm panel has no background of its own. */

.woakey-filter-modal-body {
    flex: 1 1 auto;
    background: #ffffff;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

/* options pruned by the dependent search (no results available) */
.woakey-unavailable {
    display: none;
    visibility: hidden;
}

/* ============================================================
 * LOADING STATES + CLEAR FILTERS
 * ============================================================ */

.woakey-spinner {
    display: inline-block;
    width: 34px;
    height: 34px;
    border: 4px solid rgba(0,0,0,0.12);
    border-top-color: #e09d27;
    border-radius: 50%;
    animation: woakey-spin .7s linear infinite;
}

@keyframes woakey-spin {
    to { transform: rotate(360deg); }
}

/* options loading — dims pills + groups inside the modal, blocks clicks */
.woakey-options-shade {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.6);
}

.woakey-options-shade.selection-hidden {
    display: none;
    visibility: hidden;
}

/* results loading — overlay on the results viewport */


.woakey-results-shade {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    background: rgba(255,255,255,0.6);
}

.woakey-results-shade.selection-hidden {
    display: none;
    visibility: hidden;
}

/* clear filters — red pill next to the Search & Filters toggle */


.woakey-clear-filters:hover {
    background: #c0392b;
    color: #ffffff;
}

.woakey-clear-filters.selection-hidden {
    display: none;
    visibility: hidden;
}

/* simple / advanced split */
.woakey-advanced-toggle {
    display: inline-block;
    margin: 10px 0px 2px 0px;
    padding: 4px 12px;
    border: 1px dashed #aaa;
    border-radius: 50px;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}

.woakey-advanced-toggle:hover {
    border-color: #e09d27;
    color: #e09d27;
}

/* modal heading inside the gradient header bar */
.woakey-filter-modal-title {
    display: inline-block;
    line-height: 65px;
    padding-left: 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

/* muted "applies on Search" notice */
.woakey-filter-notice {
    display: block;
    font-size: 12.5px;
    color: #888;
    margin: 6px 0px 2px 0px;
}

/* ---- Load more (shared design: activity view + feed) ---- */

.content-load-more-section {
    text-align: center;
    margin: 18px 0px;
}

.content-load-more-section a {
    display: inline-block;
    background: #e09d27;
    color: #ffffff;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 13.5px;
    text-decoration: none;
}

.content-load-more-section a:hover {
    background: #07303d;
    color: #ffffff;
}

/* loading state: engine adds .woakey-loading + injects the small spinner */
.woakey-spinner-small {
    width: 18px;
    height: 18px;
    border-width: 3px;
    vertical-align: middle;
    margin-left: 10px;
}

.content-load-more-section .woakey-spinner {
    display: none;
}

.content-load-more-section.woakey-loading .woakey-spinner {
    display: inline-block;
}

.content-load-more-section.woakey-loading a {
    opacity: 0.55;
    pointer-events: none;
}

/* dim already-loaded results while the next batch arrives */
.activity-viewport.woakey-paging > *:not(.content-load-more-section):not(.woakey-results-shade) {
    opacity: 0.5;
    transition: opacity .2s ease;
}
