/*
 * DSFR v1.0.0-rc1.0 | restricted use
 */
@charset "UTF-8";

/* ------------------------------------ *\
  SEARCH
\* ------------------------------------ */

.fr-search-bar {
  display: flex;
  flex-direction: row;
}

.fr-search-bar .fr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  /* added line */
  border: 0;
}

.fr-search-bar .fr-input {
  margin: 0;
  border-radius: 0.25rem 0 0;
  max-height: none;
  /* TODO: intégrer la croix en background pour effacer la search bar
    &::-webkit-search-cancel-button {
      -webkit-appearance: none;
    }
    */
}

.fr-search-bar .fr-input::placeholder {
  font-style: italic;
}

.fr-search-bar .fr-btn {
  font-size: 1rem;
  line-height: 1.5rem;
  min-height: 2.5rem;
  padding: 0.5rem 1.5rem;
  flex-direction: row;
  max-width: 2.5rem;
  max-height: 2.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  flex: 1 0 auto;
  border-radius: 0 0.25rem 0 0;
}

.fr-search-bar .fr-btn::before {
  font-family: icons !important;
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
}

.fr-search-bar .fr-btn::before {
  content: "";
}

.fr-search-bar .fr-btn::before {
  margin-left: 0;
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.fr-search-bar .fr-input {
  box-shadow: inset 0 -2px 0 0 var(--bf500);
}

@media (min-width: 48em) {
  .fr-search-bar--lg .fr-btn {
    font-size: 1.25rem;
    line-height: 2rem;
    min-height: 3.5rem;
    padding: 0.75rem 2rem;
    max-width: none;
    max-height: none;
    flex-direction: row;
  }

  .fr-search-bar--lg .fr-btn::before {
    margin-left: -0.375rem;
    margin-right: 0.5rem;
    font-size: 1.5rem;
  }

  .fr-search-bar--lg .fr-input {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
