/* ════════════════════════════════════════════════════════════
   Sélecteur de devise FCFA | € + bandeau + note de paiement
   ════════════════════════════════════════════════════════════ */

[data-bcur-switch] { display: inline-flex; align-items: center; }
.blang-pill { display: inline-flex; margin-right: 6px; }

.bcur-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-body);
}
.bcur-pill button,
.blang-pill a {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: var(--weight-semibold);
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bcur-pill button:hover { color: var(--black); }
.bcur-pill button.is-active { background: var(--black); color: var(--white); }

/* En-tête : espacement avec la pastille de recherche */
.boturea-nav__icons > [data-bcur-switch] { margin-right: 8px; }

/* Menu mobile */

/* Pied de page (fond sombre) */
.bf-bottom [data-bcur-switch] .bcur-pill { background: transparent; border-color: rgba(255,255,255,0.18); }
.bf-bottom [data-bcur-switch] .bcur-pill button { color: rgba(255,255,255,0.6); }
.bf-bottom [data-bcur-switch] .bcur-pill button.is-active { background: var(--white); color: var(--black); }

/* Page de paiement : sélecteur discret à droite du nom de la boutique */
.boturea-nav__inner--checkout { position: relative; }
.boturea-nav__inner--checkout > [data-bcur-switch] {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* Note "encaissé en FCFA" sous le total (uniquement en mode euro) */
#order_review table.shop_table tr.bcur-note-row { display: none !important; }
html[data-bcur="EUR"] #order_review table.shop_table tr.bcur-note-row { display: block !important; }
.bcur-note {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,184,217,0.06);
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}
.bcur-note strong { color: var(--black); font-weight: var(--weight-semibold); }

/* Bandeau première visite (euro détecté automatiquement) */
.bcur-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.35;
}
.bcur-banner__actions { display: flex; gap: 6px; flex-shrink: 0; }
.bcur-banner button {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.bcur-banner button.is-primary { background: var(--white); color: var(--black); border-color: var(--white); }

@media (max-width: 560px) {
  .bcur-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; bottom: 12px; }
  .bcur-banner__actions { justify-content: center; }
  .boturea-nav__inner--checkout > [data-bcur-switch] { right: 12px; }
}

/* Sélecteur de langue : même pastille que la devise, avec des liens */
.blang-pill {
  align-items: center;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-body);
}
.blang-pill a {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: var(--weight-semibold);
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.blang-pill a:hover { color: var(--black); }
.blang-pill a.is-active { background: var(--black); color: var(--white); }
.boturea-nav__icons > .blang-pill { margin-right: 6px; }
.bf-bottom .blang-pill { background: transparent; border-color: rgba(255,255,255,0.18); }
.bf-bottom .blang-pill a { color: rgba(255,255,255,0.6); }
.bf-bottom .blang-pill a.is-active { background: var(--white); color: var(--black); }
.boturea-nav__inner--checkout > .blang-pill { position: absolute; right: 118px; top: 50%; transform: translateY(-50%); margin: 0; }

/* Sous 960px l'en-tête passe en menu hamburger : les sélecteurs de langue et
   de devise y sont déjà (menu mobile) — les garder dans la barre les faisait
   passer sous le logo. */
@media (max-width: 960px) {
  .boturea-nav__icons > .blang-pill,
  .boturea-nav__icons > [data-bcur-switch] { display: none !important; }
}

/* ─── Menu mobile : langue + devise sur une ligne, puis Compte + Panier ─────
   La règle générale ".boturea-mobile-icons a" (boutons gris pleine hauteur)
   s'appliquait aussi aux liens FR/EN du sélecteur de langue : ils devenaient
   de grands blocs et poussaient "Mon compte" hors de l'écran. */
.boturea-mobile-icons { flex-wrap: wrap; align-items: center; gap: 12px 10px; }
.boturea-mobile-icons > .blang-pill,
.boturea-mobile-icons > [data-bcur-switch] { order: 0; margin: 0; flex: 0 0 auto; }
.boturea-mobile-icons > [data-bcur-switch] { padding: 0; }
.boturea-mobile-icons::before { content: ""; order: 1; flex: 0 0 100%; height: 0; }
.boturea-mobile-icons > a { order: 2; flex: 1 1 calc(50% - 5px); }

.boturea-mobile-icons .blang-pill a {
  flex: 0 0 auto;
  display: inline-block;
  padding: 6px 10px;
  gap: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--muted);
}
.boturea-mobile-icons .blang-pill a:hover { background: transparent; color: var(--black); }
.boturea-mobile-icons .blang-pill a.is-active,
.boturea-mobile-icons .blang-pill a.is-active:hover { background: var(--black); color: var(--white); }

/* Les deux bulles (langue et devise) ont EXACTEMENT la même hauteur et la même
   taille de texte partout : rien de hérité du thème ne doit les grossir. */
.blang-pill,
.bcur-pill {
  box-sizing: border-box;
  height: 30px;
  min-height: 0;
  padding: 2px;
  align-items: stretch;
}
.blang-pill a,
.bcur-pill button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 0 11px;
  font-size: 0.72rem;
  line-height: 1;
}
.boturea-mobile-icons .blang-pill a { display: inline-flex; padding: 0 11px; flex: 0 0 auto; }
