// /* vues facettes */
.widget-fieldset legend {
  font-weight: bold;
  font-size: 0.875rem;
}

.faceted-form fieldset {
  margin: 0.5rem !important;
}

.template-facetednavigation_view .faceted-top-widgets {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.template-facetednavigation_view .faceted-top-widgets {
  .faceted-widget {
    width: 100%;

    fieldset {
      padding: 0 !important;

      form {
        position: relative;
      }

      .searchButton {
        // background: url(../svg/search.svg) no-repeat;
        background-position: center;
        background-size: contain;
        border: none;
        position: absolute;
        width: 15px;
        right: 10px;
        top: 0;
        bottom: 0;
        font-size: 0;
      }
    }
  }

  .faceted_select,
  input {
    width: 100%;
    border-radius: 0;
    height: 2.5rem;
    border: 1px solid #ccc;
    background: transparent;
    padding: 0 0.5rem;
  }
}

#faceted-form fieldset {
  border: 0 solid white;
}

// /* filtres actifs */

.faceted-criteria-widget {
  width: 100%;

  .faceted-criteria-reset {
    a {
      color: #000 !important;
      font-size: 0.875rem;
      display: flex;
      align-items: center;

      &::before {
        content: "";
        width: 16px;
        height: 16px;
        display: inline-block;
        background-position: center;
        position: relative;
        vertical-align: middle;
        margin: 0 1px;
        background-size: contain;
      }
    }
  }

  .widget-fieldset.faceted-criteria {
    & > legend {
      display: block;
      font-size: 1em;
      color: #292929;
      font-weight: normal;
    }

    .widget-body {
      display: flex;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;

      dl {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 0.2rem;

        dd {
          display: inline-block;
          background: #efefef;
          border-radius: 3px;
          padding: 0.4em 0;

          &:hover {
            span span {
              opacity: 100%;
            }
          }
        }
      }
    }
  }
}

.faceted-criteria dt {
  display: none;
}

.faceted-criteria .widget-body dl dd {
  margin: 0;
}

.faceted-criteria dd span {
  position: relative;
  display: flex;
  align-items: center;

  a {
    inset: 0;
    position: absolute;
    z-index: 1;
  }

  span {
    color: #000;
    opacity: 55%;

    &::before {
      content: "x";
      width: 16px;
      height: 16px;
      display: inline-block;
      background-position: center;
      position: relative;
      top: -2px;
      margin: 0 1px;
      background-size: contain;
      font-size: small;
    }
  }
}

.faceted-criteria .faceted-remove::before {
  display: none;
}

@include media-breakpoint-up(md) {
  .template-facetednavigation_view {
    .faceted-top-widgets .faceted-widget {
      max-width: 250px;

      &.faceted-criteria-widget {
        max-width: 100%;
      }
    }
  }
}

.contact_leadimage.contact_placeholder {
  background-color: #e9e9e9;
  position: relative;

  &::after {
    content: "\F220";
    font-family: bootstrap-icons !important;
    text-align: center;
    position: absolute;
    font-size: 100px;
    color: #c0c1c2;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
  }
}

///// correctifs

.ui-widget-header > div.ui-icon {
  background-size: auto;
  margin-right: 0.5rem;
}

html #portal-footer-wrapper #portal-footer .show-on-focus.skip-before-footer {
  color: #000 !important;
}

.leaflet-container {
  z-index: 0;
}

#top---default---widgets {
  #search_widget {
    #search_button {
      font-size: 0;
      border-left: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center;
      padding: 0 1.6rem;
    }
  }
}
