/*
======================================================
CONSCIOUS BUNNY CUSTOM CSS

Created: June 2026

Contains:
- Search styling
- FacetWP styling
- Brand directory styling
- Mobile customizations

Last Updated:
June 5, 2026
======================================================
*/

/* ==========================================
   A-Z DIRECTORY BADGE
   ========================================== */

/* Base badge styling */

.fwpl-tax-brand-status a {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
}

/* Cruelty-Free */

.fwpl-term-cruelty-free a {
    background: #e8f1e8;
    color: #5c7658;
}

/* Not Cruelty-Free */

.fwpl-term-not-cruelty-free a {
    background: #f5e8e7;
    color: #9a6660;
}

/* Grey Area */

.fwpl-term-grey-area a {
    background: #efefef;
    color: #777777;
}


/* ==========================================
   A-Z DIRECTORY FILTER
   ========================================== */

/* Hide default label */
.facetwp-alpha[data-id=""] {
    display: none;
}

/* Container spacing */
.facetwp-type-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Default letter */
.facetwp-alpha.facetwp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #f7f3ef;
    color: #6f6f6f;

    font-size: 18px;
    font-weight: 500;
    line-height: 1;

    transition: all 0.2s ease;
}

/* Hover state */
.facetwp-alpha.available:hover {
    background: #dfe7d8;
    color: #556b54;
    cursor: pointer;
}

/* Active letter */
.facetwp-alpha.selected {
    background: #93a282;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Letters with no brands */
.facetwp-alpha:not(.available):not(.selected) {
    opacity: 0.25;
    background: #f7f3ef;
    cursor: default;
}

/* Make sure selected stays white */
.facetwp-alpha.selected,
.facetwp-alpha.selected:hover {
    color: #ffffff;
}

/* Optional: slightly bolder selected letter */
.facetwp-alpha.selected {
    font-weight: 600;
}


/* ==========================================
   DIRECTORY SEARCH BOX
   ========================================== */

/* Search facet container */
.facetwp-facet-search_directory {
    width: 100%;
}

/* Wrapper around input */
.facetwp-input-wrap {
    display: block;
    width: 100%;
}

/* Actual input */
.facetwp-search {
    width: 100% !important;
    box-sizing: border-box;

    height: 56px;
    padding: 0 20px 0 45px;

    background-color: #ffffff !important;

    border: 1.5px solid #d8d2ca;
    border-radius: 18px;

    font-size: 15px;
    color: #333;

    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* Focus */
.facetwp-search:focus {
    outline: none;
    border-color: #93a282;
    box-shadow: 0 4px 12px rgba(147,162,130,0.10);
}

/* ==========================================
   BRAND STATUS FILTER CHIPS
   ========================================== */

.facetwp-type-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Base chip */

.facetwp-checkbox {
    background: #f7f3ef;
    border-radius: 999px;

    padding: 8px 14px;

    border: 1px solid #ece6df;

    font-size: 14px;
    font-weight: 500;

    transition: all 0.2s ease;

    cursor: pointer;
}

/* Remove FacetWP checkbox icon */

.facetwp-checkbox:before {
    display: none !important;
}

/* Hover */

.facetwp-checkbox:hover {
    transform: translateY(-1px);
}

/* ==========================================
   CRUELTY-FREE
   ========================================== */

.facetwp-checkbox[data-value="cruelty-free"] {
    background: #e8f1e8;
    color: #5c7658;
    border-color: #d9e6d9;
}

/* Selected */

.facetwp-checkbox.checked[data-value="cruelty-free"] {
    background: #93a282;
    color: white;
    border-color: #93a282;
}

/* ==========================================
   NOT CRUELTY-FREE
   ========================================== */

.facetwp-checkbox[data-value="not-cruelty-free"] {
    background: #f5e8e7;
    color: #9a6660;
    border-color: #ead8d5;
}

.facetwp-checkbox.checked[data-value="not-cruelty-free"] {
    background: #b9837c;
    color: white;
    border-color: #b9837c;
}

/* ==========================================
   GREY AREA
   ========================================== */

.facetwp-checkbox[data-value="grey-area"] {
    background: #f0f0f0;
    color: #777777;
    border-color: #e5e5e5;
}

.facetwp-checkbox.checked[data-value="grey-area"] {
    background: #8e8e8e;
    color: white;
    border-color: #8e8e8e;
}

/* Counter styling */

.facetwp-counter {
    opacity: 0.7;
}

/* ==========================================
   DIRECTORY DROPDOWNS
   ========================================== */

.facetwp-dropdown {
    width: 100%;
    height: 58px;

    padding: 0 50px 0 22px;

    border: 1px solid #e2ddd6;
    border-radius: 18px;

    background-color: #fff;

    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23939393' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;

    font-size: 16px;
    font-weight: 500;
    color: #444;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    transition: all .2s ease;
}

.facetwp-dropdown:hover {
    border-color: #cfc7be;
}

.facetwp-dropdown:focus {
    outline: none;
    border-color: #93a282;
    box-shadow: 0 0 0 3px rgba(147,162,130,.12);
}

/* ==========================================
   DIRECTORY COUNT
   ========================================== */

.cb-directory-count {
    text-align: center;
    margin: 40px 0 15px;

    font-size: 14px;
    color: #777;

    letter-spacing: 0.5px;
}

/* ==========================================
   SHOW MORE BRANDS
   ========================================== */

.facetwp-facet-pagination {
    text-align: center;
    margin-top: 40px;
}

.facetwp-load-more {
    background: none !important;
    border: none !important;

    color: #444 !important;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 3px;
    text-transform: uppercase;

    padding: 0 !important;

    cursor: pointer;

    transition: all .2s ease;
}

/* Hover */

.facetwp-load-more:hover {
    color: #93a282 !important;
}

/* Loading state */

.facetwp-load-more:disabled {
    opacity: .7;
}

/* ==========================================
   CONSCIOUS BUNNY DIRECTORY - MOBILE
   ========================================== */

@media (max-width: 768px) {

    /* =========================
       DIRECTORY RESULTS
       ========================= */

    .fwpl-row {
        display: block !important;
    }

    .fwpl-col {
        width: 100% !important;
        display: block !important;
    }

    /* Status badge */

    .fwpl-col.el-qg7zkv {
        margin-bottom: 12px;
    }

    .fwpl-term.fwpl-tax-brand-status {
        white-space: nowrap;
        display: inline-block;
    }

    /* Brand name */

    .fwpl-col.el-1a8hv {
        margin-bottom: 10px;
    }

    .fwpl-col.el-1a8hv a {
        font-size: 23px;
        line-height: 1.2;
        font-weight: 700;
    }

    /* Categories */

    .fwpl-col.el-tqmc9m {
        margin-bottom: 5px;
        font-size: 15px;
        color: #666;
    }

    .fwpl-col.el-tqmc9m .fwpl-item {
        text-align: left !important;
    }

    /* More breathing room between brands */

    .fwpl-result {
        padding-bottom: 15px;
    }


    /* =========================
       BRAND STATUS FILTER
       ========================= */

    .facetwp-facet-brand_status {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .facetwp-facet-brand_status .facetwp-checkbox {
        margin: 0 !important;
    }


    /* =========================
       DROPDOWNS
       ========================= */

    .facetwp-type-dropdown {
        margin-bottom: 12px;
    }


    /* =========================
       A-Z FILTER
       ========================= */

    .facetwp-type-alpha {
        text-align: center;
    }

    .facetwp-alpha {
        margin: 3px;
    }


    /* =========================
       HEADINGS
       ========================= */

    h3,
    .directory-heading {

        font-size: 17px;
        letter-spacing: 3px;
        margin-bottom: 17px;
    }


    /* =========================
       SEARCH BAR
       ========================= */

    .facetwp-facet-search_directory {
        margin-bottom: 25px;
    }

    .facetwp-search {
        font-size: 16px;
    }


    /* =========================
       LOAD MORE BUTTON
       ========================= */

    .facetwp-load-more {

        display: block;
        margin: 25px auto 0;
        text-align: center;

        background: transparent !important;
        border: none !important;

        color: #3d3d3d !important;

        font-size: 13px;
        font-weight: 600;

        letter-spacing: 2px;
        text-transform: uppercase;

        padding: 0 !important;

        box-shadow: none !important;
    }
}