/* ════════════════════════════════════════════════════════════════════
   lefelin — Re-skin de la bannière de consentement NATIVE Shopify.
   ⚠️ Le conteneur est <section id="shopify-pc__banner" class="shopify-pc__banner__dialog">
   → cibler #shopify-pc__banner DIRECTEMENT. Layout VÉRIFIÉ visuellement (Playwright,
   capture) le 01/07/2026 : carte beige centrée en bas, texte à gauche, à droite
   « Gérer vos préférences » en haut + Accepter/Refuser (2 boutons de largeur ÉGALE) en dessous.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Carte beige, centrée en bas ─── */
#shopify-pc__banner {
  background: #f1e8d8 !important;
  left: 50% !important;
  right: auto !important;
  bottom: 18px !important;
  top: auto !important;
  transform: translateX(-50%) !important;
  width: min(640px, calc(100vw - 28px)) !important;
  max-width: min(640px, calc(100vw - 28px)) !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  border-radius: 16px !important;
  border: 1px solid #e0cfb4 !important;
  box-shadow: 0 20px 44px -22px rgba(60, 46, 28, .5) !important;
  padding: 16px 20px !important;
  box-sizing: border-box !important;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

/* ─── Rangée : texte à gauche, bloc boutons à droite ─── */
#shopify-pc__banner .shopify-pc__banner__wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 22px !important;
  margin: 0 !important;
  flex-wrap: nowrap !important;
}

/* ─── Texte (gauche) : titre masqué, 2 lignes ─── */
#shopify-pc__banner .shopify-pc__banner__body { flex: 1 1 auto !important; margin: 0 !important; }
#shopify-pc__banner .shopify-pc__banner__body h2 { display: none !important; }
#shopify-pc__banner .shopify-pc__banner__body p {
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  text-align: left !important;
  color: #55483a !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
#shopify-pc__banner .shopify-pc__banner__body a { color: #7c5527 !important; text-decoration: underline !important; }

/* ─── Bloc droit : « Gérer les préférences » en haut, 2 boutons égaux dessous ─── */
#shopify-pc__banner .shopify-pc__banner__btns {
  flex: 0 0 236px !important;
  width: 236px !important;
  display: flex !important;
  flex-flow: row wrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  max-width: none !important;
}
#shopify-pc__banner .shopify-pc__banner__btns > span { display: none !important; }
/* le lien préférences : pleine largeur en haut (haute spécificité pour battre la règle boutons) */
#shopify-pc__banner .shopify-pc__banner__btns #shopify-pc__banner__btn-manage-prefs {
  order: -1 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  align-self: flex-start !important;
  margin: 0 !important;
  text-align: center !important;
  background: transparent !important;
  color: #7c5527 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  padding: 0 4px 6px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}
#shopify-pc__banner__btn-manage-prefs:hover { color: #2c2418 !important; }
/* Accepter + Refuser : largeur ÉGALE, côte à côte */
#shopify-pc__banner .shopify-pc__banner__btns button.shopify-pc__banner__btn-accept,
#shopify-pc__banner .shopify-pc__banner__btns button.shopify-pc__banner__btn-decline {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  margin-top: 0 !important;
  padding: 11px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: 0 !important;
  border-radius: 999px !important;
  text-align: center !important;
  white-space: nowrap !important;
  transition: background .18s, color .18s, transform .18s !important;
}
#shopify-pc__banner__btn-accept {
  background: #b07a3c !important;
  color: #fff8ee !important;
  box-shadow: 0 10px 20px -10px rgba(176, 122, 60, .85) !important;
}
#shopify-pc__banner__btn-accept:hover { background: #7c5527 !important; transform: translateY(-1px) !important; }
#shopify-pc__banner__btn-decline { background: #ece2d0 !important; color: #2c2418 !important; }
#shopify-pc__banner__btn-decline:hover { background: #e0cfb4 !important; }

/* ─── Mobile : le bloc boutons passe pleine largeur sous le texte ─── */
@media (max-width: 600px) {
  #shopify-pc__banner .shopify-pc__banner__wrapper { flex-wrap: wrap !important; gap: 12px !important; }
  #shopify-pc__banner .shopify-pc__banner__btns { flex: 1 1 100% !important; width: 100% !important; }
}

/* ════ Modale « Gérer vos préférences » — cohérence DA ════ */
#shopify-pc__prefs .shopify-pc__prefs__dialog {
  border-radius: 20px !important;
  background: #fdf8ef !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  color: #55483a !important;
}
#shopify-pc__prefs__header-title,
#shopify-pc__prefs .shopify-pc__prefs__header h1,
#shopify-pc__prefs .shopify-pc__prefs__header h2 {
  font-family: "Fraunces", Georgia, serif !important;
  font-weight: 500 !important;
  color: #2a2117 !important;
}
#shopify-pc__prefs__btn-save,
#shopify-pc__prefs__btn-accept {
  background: #b07a3c !important;
  color: #fff8ee !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}
#shopify-pc__prefs__btn-decline {
  background: #ece2d0 !important;
  color: #2c2418 !important;
  border: 0 !important;
  border-radius: 999px !important;
}
