/* ======================================================================
   DOMELTA — tranches de prix dans les filtres : feuille d'APERCU
   ======================================================================
   TOUTES les regles sont prefixees par html.dm-apercu-tranches, classe
   posee par dm-tranches-prix.js uniquement si le cookie dm_apercu_tranches
   est present. Sans ce cookie, cette feuille n'a aucun effet.

   Aucun !important sur display, opacity ni visibility.
   ====================================================================== */

html.dm-apercu-tranches .dm-tranches-boite {
  margin: 10px 0 2px;
  padding: 0;
}

html.dm-apercu-tranches ul.dm-tranches {
  margin: 0;
  padding: 0;
  list-style: none;
}

html.dm-apercu-tranches ul.dm-tranches li {
  margin: 0 0 5px;
  padding: 0;
  list-style: none;
}

/* Le texte reprend la couleur des autres filtres (les cases a cocher
   « 200 mm (7) »), et non le gris pale des liens de la colonne. */
html.dm-apercu-tranches a.dm-tranche,
html.dm-apercu-tranches .facet a.dm-tranche,
html.dm-apercu-tranches #search_filters a.dm-tranche {
  display: block;
  padding: 7px 11px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #ffffff;
  color: #232323;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

html.dm-apercu-tranches a.dm-tranche .dm-tranche-texte {
  color: #232323;
}

/* le nombre de produits, comme aux autres filtres */
html.dm-apercu-tranches a.dm-tranche .dm-tranche-nombre {
  color: #767676;
  font-size: 13px;
}

html.dm-apercu-tranches a.dm-tranche:hover,
html.dm-apercu-tranches a.dm-tranche:focus,
html.dm-apercu-tranches .facet a.dm-tranche:hover,
html.dm-apercu-tranches #search_filters a.dm-tranche:hover {
  border-color: #177d35;
  background: #f3f9f5;
  color: #177d35;
  text-decoration: none;
}

html.dm-apercu-tranches a.dm-tranche:hover .dm-tranche-texte,
html.dm-apercu-tranches a.dm-tranche:focus .dm-tranche-texte {
  color: #177d35;
}

html.dm-apercu-tranches a.dm-tranche:active {
  background: #e7f2eb;
}

/* la tranche actuellement choisie */
html.dm-apercu-tranches a.dm-tranche.dm-tranche-choisie,
html.dm-apercu-tranches .facet a.dm-tranche.dm-tranche-choisie {
  border-color: #177d35;
  background: #177d35;
  color: #ffffff;
  font-weight: 600;
}

html.dm-apercu-tranches a.dm-tranche.dm-tranche-choisie .dm-tranche-texte,
html.dm-apercu-tranches a.dm-tranche.dm-tranche-choisie .dm-tranche-nombre {
  color: #ffffff;
}

html.dm-apercu-tranches a.dm-tranche.dm-tranche-choisie:hover,
html.dm-apercu-tranches a.dm-tranche.dm-tranche-choisie:focus {
  border-color: #126029;
  background: #126029;
  color: #ffffff;
}

/* Le curseur cede la place aux tranches : on replie la barre et sa
   poignee. La ligne « 644 € - 10 897 € » reste visible, elle indique
   l'etendue des prix de la categorie.
   Pas de !important : la regle est simplement assez precise. */
html.dm-apercu-tranches .facet.dm-tranches-posees [id^="slider-range_"] {
  display: none;
}

/* le ruban de repere de l'apercu */
#dm-apercu-tranches-ruban {
  position: fixed;
  z-index: 2147483000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px;
  background: #1d2a35;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

#dm-apercu-tranches-ruban a {
  color: #ffd45e;
  text-decoration: underline;
}

@media (max-width: 767px) {
  html.dm-apercu-tranches .dm-tranches-boite {
    margin: 10px 0 2px;
  }
  html.dm-apercu-tranches a.dm-tranche {
    padding: 9px 11px;
    font-size: 14px;
  }
  #dm-apercu-tranches-ruban {
    font-size: 12px;
    padding: 7px 10px;
  }
}
