/**
 * Z Search Plus - champs de recherche libre dans le bloc zsearch.
 */
#zsearchplus {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 14px;
  position: relative;
}

#zsearchplus .zsp-field {
  flex: 1 1 320px;
  min-width: 240px;
  margin: 0;
  position: relative;
}

#zsearchplus .zsp-label {
  display: block;
  margin: 0 0 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

#zsearchplus .zsp-control {
  position: relative;
}

#zsearchplus .zsp-input {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 36px 0 10px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 38px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

#zsearchplus .zsp-input:focus {
  outline: 2px solid rgba(255, 255, 255, .8);
  outline-offset: 1px;
}

#zsearchplus .zsp-input::placeholder {
  color: #999;
}

/* On masque la croix native du champ search : le bouton loupe occupe la droite. */
#zsearchplus .zsp-input::-webkit-search-cancel-button,
#zsearchplus .zsp-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

#zsearchplus .zsp-input::-ms-clear,
#zsearchplus .zsp-input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

#zsearchplus .zsp-submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b00000;
  cursor: pointer;
  line-height: 38px;
}

#zsearchplus .zsp-spinner {
  display: none;
  position: absolute;
  top: 12px;
  right: 38px;
  width: 14px;
  height: 14px;
  border: 2px solid #ddd;
  border-top-color: #b00000;
  border-radius: 50%;
  animation: zsp-spin .7s linear infinite;
}

#zsearchplus .is-loading .zsp-spinner {
  display: block;
}

#zsearchplus .zsp-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  max-height: 320px;
  overflow-y: auto;
  text-align: left;
}

#zsearchplus .zsp-results li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#zsearchplus .zsp-results a {
  display: block;
  padding: 8px 10px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f1f1f1;
}

#zsearchplus .zsp-results li:last-child a {
  border-bottom: 0;
}

#zsearchplus .zsp-results li.is-active a,
#zsearchplus .zsp-results a:hover,
#zsearchplus .zsp-results a:focus {
  background: #f7f7f7;
  color: #b00000;
  text-decoration: none;
}

#zsearchplus .zsp-main {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

#zsearchplus .zsp-sub {
  display: block;
  margin-top: 2px;
  color: #8a8a8a;
  font-size: 11px;
  line-height: 1.3;
}

#zsearchplus .zsp-results mark {
  padding: 0;
  background: #ffe58a;
  color: inherit;
}

#zsearchplus .zsp-message {
  padding: 9px 10px;
  color: #8a8a8a;
  font-size: 13px;
  font-style: italic;
}

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

@media (max-width: 991px) {
  #zsearchplus .zsp-field {
    flex: 1 1 100%;
    min-width: 0;
  }
}
