/* Popup promo (exo-popup-promo.php, 2026-10-30). Gabarit du popup newsletter : 460 px, arrondi 16 px. */
.exo-promo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 20, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
}
.exo-promo-overlay[hidden] { display: none; }
.exo-promo {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
  animation: exo-promo-in .3s ease;
}
@keyframes exo-promo-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Visuel carre ; sur un ecran bas, il se recadre (bracelet centre) plutot que de pousser les boutons hors ecran */
.exo-promo__visuel {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 58vh;
  object-fit: cover;
  object-position: 50% 65%;
  flex: 0 1 auto;
  min-height: 0;
}
.exo-promo__croix {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.exo-promo__corps {
  padding: 18px 24px 22px;
  text-align: center;
}
.exo-promo__accroche {
  margin: 0 0 4px;
  color: #e8660c;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .01em;
}
.exo-promo__titre {
  margin: 0 0 8px !important;
  font-size: 1.15rem;
  font-weight: 400;
  color: #111;
}
.exo-promo__prix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
}
.exo-promo__prix del { color: #8a8f98; font-size: 1rem; }
.exo-promo__prix strong { color: var(--blue-dark, #2f74b8); font-size: 1.45rem; font-weight: 800; }
.exo-promo__remise {
  background: #e8660c;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: 3px 9px;
  border-radius: 999px;
}
.exo-promo__boutons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.exo-promo__bouton {
  padding: 12px 24px;
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .2s ease;
}
.exo-promo__bouton--fermer { border: 1px solid #ccc; background: #e9e9e9; color: #111; font-weight: 600; }
.exo-promo__bouton--fermer:hover { background: #dedede; }
.exo-promo__bouton--panier {
  border: 1px solid var(--wp--preset--color--custom-bleu-rispon, #4fa3fd);
  background: var(--wp--preset--color--custom-bleu-rispon, #4fa3fd);
  color: #fff !important;
}
.exo-promo__bouton--panier:hover { background: #2f74b8; border-color: #2f74b8; }

@media (max-width: 420px) {
  .exo-promo__corps { padding: 14px 16px 18px; }
  .exo-promo__bouton { padding: 11px 18px; }
}
