/* Watson Custom Styles */

/* FILTERS */

.facet-wrap .facetwp-facet {
    margin: 0px;
}

.facet-wrap .facetwp-facet,
.facet-wrap .facetwp-facet button,
.facet-wrap .facetwp-selections .facetwp-selection-value  {
    color: var(--muted-foreground);
    font-family: var( --e-global-typography-primary-font-family ), Sans-serif;
    font-size: 12px;
    padding: 0;
    border: 0 none transparent;
}
.facet-wrap .facetwp-facet button:hover,
.facet-wrap .facetwp-facet button:focus,
.facet-wrap .facetwp-facet button:active {
    background: transparent;
    color: var(--foreground), 0A0A0A;
}

.facetwp-selections ul {
    margin: 0;
    padding: 0;
}

.facet-wrap .facetwp-selections li {
    display: inline-flex;
    gap: 6px;
    flex-direction: row;
    align-content: center;
    justify-content: start;
    flex-wrap: wrap;
}

.facet-wrap .facetwp-selections .facetwp-selection-label {
    display: none;
}

.facet-wrap .facetwp-selections .facetwp-selection-value {
    color: var(--foreground), 0A0A0A;
    border: 1px solid var(--border);
    background-color: var(--watson-cloud);
    background-image: none;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
    margin: 0;
}

.facetwp-selections .facetwp-selection-value::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    vertical-align: middle;
    
    /* The SVG encoded as a mask */
    background-color: var(--watson-charcoal); /* Control the icon color here */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'%3E%3C/path%3E%3Cpath d='m6 6 12 12'%3E%3C/path%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'%3E%3C/path%3E%3Cpath d='m6 6 12 12'%3E%3C/path%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-size: contain;
}


.facet-wrap .facetwp-checkbox {
    font-size: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-image: none !important;
    padding: 0;
}

.facet-wrap .facetwp-checkbox:checked {
    background-image: none;
}

.facet-wrap .facetwp-checkbox:before {
    border: 1px solid; 
    border-color: color-mix(in oklab, var(--muted-foreground), transparent 60%);
    content: '';
    width: 1em;
    height: 1em;
    margin-right: 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
}

.facet-wrap .facetwp-checkbox.checked:before {
    border: 1px solid; 
    border-radius: 4px;
    border-color: var(--watson-darkest-sage);
    background-color: var(--watson-darkest-sage);
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    box-sizing: content-box;
}

.watson-filter-header .facet-wrap {
    display: flex;
    flex-direction: row;
    color: white;
    gap: 0.25em;
    font-family: var( --e-global-typography-primary-font-family ), Sans-serif;
    font-size: 18px;
    color: var(--watson-white);
}

.watson-filter-header .facet-wrap .facetwp-selections .facetwp-selection-value {
    background: none;
    border: none;
    font-size: inherit;
    color: inherit;
    padding: 0;
    margin: 0;
}