/* Boulangerie Millet – habillage du localisateur de boutiques (WP Store Locator).
   Chargé uniquement sur les pages qui affichent la carte.
   Police et couleurs = celles du kit Elementor (variables --e-global-*),
   avec une valeur de secours si la variable n'existe pas. */

#wpsl-wrap {
	--bm-texte: var(--e-global-color-text, #080808);
	--bm-brun: var(--e-global-color-secondary, #8D5500);
	--bm-brun-fonce: color-mix(in srgb, var(--bm-brun) 78%, #000);
	--bm-creme: var(--e-global-color-primary, #FFF5E6);
	--bm-caramel: var(--e-global-color-bb16e89, #E88C00);
	--bm-attenue: color-mix(in srgb, var(--bm-texte) 62%, #fff);
	--bm-trait: color-mix(in srgb, var(--bm-texte) 12%, #fff);
	--bm-police: var(--e-global-typography-text-font-family, "brandon-grotesque"), sans-serif;
	border: 1px solid var(--bm-trait); border-radius: 12px; overflow: hidden; background: #fff;
	color: var(--bm-texte);
}
#wpsl-wrap, #wpsl-wrap input, #wpsl-wrap button, #wpsl-wrap select,
#wpsl-wrap strong, #wpsl-wrap a, #wpsl-wrap span, #wpsl-wrap p, #wpsl-wrap dt, #wpsl-wrap dd, #wpsl-wrap h3 { font-family: var(--bm-police) !important; }

/* Panneau de gauche */
#wpsl-wrap #wpsl-panel { background: #fff; border-right: 1px solid var(--bm-trait); }
/* Proportion de la maquette : liste ≈ 23 % (298 px sur 1285), carte = le reste.
   Le module impose 33 % sans réglage ; en dessous de 676 px il empile liste et carte. */
@media (min-width: 676px) {
	#wpsl-wrap.wpsl-flex #wpsl-panel { width: 23.2%; flex: 0 0 auto; }
}
/* 350 px minimum à partir de la tablette paysage (1024 px) ; en tablette portrait,
   seul le minimum du module (275 px) s'applique. */
@media (min-width: 1024px) {
	#wpsl-wrap.wpsl-flex #wpsl-panel { min-width: 350px; }
}
/* Téléphone : liste et carte empilées, moins hautes (le module leur donne 740 px chacune). */
@media (max-width: 675px) {
	#wpsl-wrap.wpsl-flex #wpsl-panel { max-height: 380px !important; }
	#wpsl-wrap.wpsl-flex #wpsl-stores { height: 300px !important; }
	#wpsl-wrap.wpsl-flex #wpsl-map { height: 440px !important; }
}
#wpsl-wrap .wpsl-search { background: #fff; padding: 12px; border-bottom: 1px solid var(--bm-trait); }
#wpsl-wrap .wpsl-search-wrap, #wpsl-wrap #wpsl-clear-wrapper { background: var(--bm-creme) !important; }
#wpsl-wrap .wpsl-search-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--bm-creme) !important; }
/* Le focus est signalé sur toute la barre (le thème bordait seulement le champ, d'où un bout de bordure). */
#wpsl-wrap .wpsl-search-wrap:focus-within { border-color: var(--bm-brun) !important; }
#wpsl-wrap #wpsl-search-input,
#wpsl-wrap #wpsl-search-input:focus { border: 0 !important; border-radius: 0; outline: none !important; box-shadow: none !important; background: var(--bm-creme); color: var(--bm-texte); font-size: 15px; }
#wpsl-wrap #wpsl-search-input::placeholder { color: var(--bm-attenue); }
#wpsl-wrap #wpsl-stores li { padding: 14px 12px; border-bottom: 1px solid var(--bm-trait); cursor: pointer; color: var(--bm-texte); font-size: 15px; }
#wpsl-wrap #wpsl-stores li:hover,
#wpsl-wrap #wpsl-stores li.wpsl-store-active,
#wpsl-wrap #wpsl-stores li.wpsl-active { background: var(--bm-creme); }
#wpsl-wrap #wpsl-stores li strong { font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--bm-texte); }
/* Liste compacte comme la maquette : pas de libellé « Téléphone : », espacements réduits. */
#wpsl-wrap #wpsl-stores .wpsl-store-location p { margin: 0 0 6px; line-height: 1.4; }
#wpsl-wrap #wpsl-stores .wpsl-store-location p:last-child { margin-bottom: 0; }
#wpsl-wrap #wpsl-stores .wpsl-contact-details span { font-size: 0 !important; }
#wpsl-wrap #wpsl-stores .wpsl-contact-details span > a,
#wpsl-wrap #wpsl-stores .wpsl-contact-details span > :not(strong) { font-size: 15px !important; }
#wpsl-wrap #wpsl-stores .wpsl-contact-details strong { display: none; }
#wpsl-wrap #wpsl-stores a { color: var(--bm-brun); }
/* Pas de lien « Itinéraire » dans la liste. */
#wpsl-wrap #wpsl-stores .wpsl-direction-wrap { display: none; }
/* Photo de la liste : carrée, nette (source 300 px), coins arrondis, à droite. */
#wpsl-wrap #wpsl-stores .wpsl-store-thumb { width: 84px !important; height: 84px !important; object-fit: cover; object-position: center;
	border-radius: 10px; margin: 0 0 8px 12px; box-shadow: 0 0 0 1px var(--bm-trait); }

/* Statut d'ouverture (liste et fiche) : couleur du thème, cliquable avec chevron. */
#wpsl-wrap .wpsl-opening-hours-status,
#wpsl-wrap .wpsl-opening-hours-status a,
#wpsl-wrap .wpsl-currently-open { color: var(--bm-brun) !important; text-decoration: none; }
#wpsl-wrap .wpsl-currently-closed { color: var(--bm-texte); font-weight: 700; }
#wpsl-wrap .wpsl-currently-open::after { content: " "; }
#wpsl-wrap .wpsl-opening-hours-status a { display: inline-flex; align-items: center; gap: 4px; }
#wpsl-wrap .wpsl-opening-hours-status a time::after { content: none !important; display: none !important; } /* chevron du module, remplacé ci-dessous */
#wpsl-wrap .wpsl-opening-hours-status a::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 4px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg); transition: transform .2s; }
#wpsl-wrap .wpsl-opening-hours-status a[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
#wpsl-wrap .wpsl-opening-hours { margin: 8px 0 0; font-size: 14px; }
#wpsl-wrap .wpsl-opening-hours-row { display: flex; gap: 12px; margin: 0 0 3px; }
#wpsl-wrap .wpsl-opening-hours-row dt { min-width: 74px; margin: 0; font-weight: 400; }
#wpsl-wrap .wpsl-opening-hours-row dd { margin: 0; }
#wpsl-wrap .wpsl-opening-hours-row.wpsl-current-day dt,
#wpsl-wrap .wpsl-opening-hours-row.wpsl-current-day dd { font-weight: 700; }

/* Bouton « réinitialiser la carte » du module : masqué, la croix du champ de recherche le déclenche. */
#wpsl-wrap #wpsl-reset-map, #wpsl-wrap .wpsl-icon-reset { display: none !important; }

/* Fiche détaillée : la bulle Leaflet est masquée, son contenu est affiché
   dans le panneau .bm-fiche fixé à gauche de la carte (voir fiche-laterale.js). */
#wpsl-map .leaflet-popup-pane .leaflet-popup { display: none !important; }
/* La fiche prend la hauteur de son contenu ; elle grandit (animé) quand on déplie les horaires.
   La carte fait 740 px (réglage du module) pour que la fiche dépliée tienne sans défilement ;
   overflow-y reste en secours pour un contenu exceptionnellement long. */
#wpsl-map .bm-fiche { position: absolute; z-index: 1001; /* au-dessus des boutons Leaflet (1000) */ top: 16px; left: 16px; width: 320px; max-width: calc(100% - 32px); max-height: calc(100% - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.22); cursor: auto; color: var(--bm-texte); }
#wpsl-map .bm-fiche[hidden] { display: none; }
#wpsl-map .bm-fiche-fermer { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 50%;
	background: #fff; color: var(--bm-texte); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
#wpsl-map .bm-fiche-fermer svg { display: block; width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#wpsl-map .bm-fiche-fermer:hover, #wpsl-map .bm-fiche-fermer:focus-visible { background: var(--bm-creme); color: var(--bm-texte); }
@media (max-width: 675px) {
	#wpsl-map .bm-fiche { top: 12px; left: 12px; right: 12px; width: auto; }
}
/* La photo touche les bords et suit l'arrondi du haut du panneau. */
#wpsl-map .bm-fiche .wpsl-info-window { padding: 0; margin: 0; }
.bm-card { font-size: 15px; color: var(--bm-texte); }
#wpsl-wrap .bm-card-photo { margin: 0; line-height: 0; border-radius: 14px 14px 0 0; overflow: hidden; }
#wpsl-wrap .bm-card-photo img.wpsl-store-thumb { display: block; width: 100% !important; height: 160px !important; object-fit: cover; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; float: none; max-width: none; }
.bm-card-body { padding: 18px 20px 20px; }
.bm-card-title { margin: 0 0 14px; font-size: 24px; line-height: 1.15; font-weight: 700; color: var(--bm-texte); }
.bm-card-call { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 6px; background: var(--bm-brun); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.bm-card-call:hover, .bm-card-call:focus { background: var(--bm-brun-fonce); }
.bm-card-call svg { width: 15px; height: 15px; fill: currentColor; }
.bm-card-rows { list-style: none; margin: 16px 0 0; padding: 0; }
.bm-card-rows li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 0; line-height: 1.4; }
.bm-card-rows li:last-child { margin-bottom: 0; }
.bm-card-rows li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--bm-attenue); stroke-width: 1.6; }
.bm-card-rows li > div { flex: 1; min-width: 0; }
.bm-card-rows a { color: inherit; text-decoration: none; }
.bm-card-rows .wpsl-opening-hours-status { margin: 0; }
