/* Popup d'annonce de l'offre de Noël sur les cartes cadeaux. */
.pup-xmas-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 25, 18, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pup-xmas-overlay.is-open {
  opacity: 1;
}

.pup-xmas-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 22px;
  background: #fffdf8;
  color: #1f2a24;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: inherit;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.pup-xmas-overlay.is-open .pup-xmas-modal {
  transform: none;
}
.pup-xmas-modal:focus {
  outline: none;
}

.pup-xmas-head {
  position: relative;
  padding: 26px 24px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #14532d 0%, #1f7a45 55%, #b3262e 100%);
  border-radius: 22px 22px 0 0;
  overflow: hidden;
}
.pup-xmas-gift {
  font-size: 46px;
  line-height: 1;
  animation: pup-xmas-bounce 2.4s ease-in-out infinite;
}
.pup-xmas-kicker {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}
.pup-xmas-head h2 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}

.pup-xmas-body {
  padding: 18px 24px 22px;
  text-align: center;
}
.pup-xmas-body p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.pup-xmas-tiers {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  text-align: left;
}
.pup-xmas-tiers li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f7f2;
}
.pup-xmas-tiers li strong {
  flex: 0 0 auto;
  min-width: 58px;
  font-size: 20px;
  color: #b3262e;
}
.pup-xmas-tiers li.is-full {
  opacity: 0.5;
  text-decoration: line-through;
}
.pup-xmas-full {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.pup-xmas-urgency {
  font-size: 14px;
  color: #7a1a20;
}

.pup-xmas-cta {
  display: block;
  margin: 6px 0 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #b3262e;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pup-xmas-cta:hover,
.pup-xmas-cta:focus-visible {
  background: #8f1d24;
  transform: translateY(-1px);
}

.pup-xmas-later {
  border: 0;
  background: transparent;
  color: #4b5b52;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.pup-xmas-small {
  margin-top: 12px !important;
  font-size: 12px;
  color: #6b7a71;
}

.pup-xmas-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  line-height: 36px;
  cursor: pointer;
}
.pup-xmas-close:hover,
.pup-xmas-close:focus-visible {
  background: rgba(255, 255, 255, 0.35);
}

/* Flocons décoratifs dans l'en-tête. */
.pup-xmas-snow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 170px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.pup-xmas-snow span {
  position: absolute;
  top: -20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  animation: pup-xmas-fall 7s linear infinite;
}
.pup-xmas-snow span:nth-child(1) { left: 4%; animation-delay: 0s; }
.pup-xmas-snow span:nth-child(2) { left: 11%; animation-delay: 2.1s; font-size: 9px; }
.pup-xmas-snow span:nth-child(3) { left: 18%; animation-delay: 4.3s; }
.pup-xmas-snow span:nth-child(4) { left: 26%; animation-delay: 1.2s; font-size: 15px; }
.pup-xmas-snow span:nth-child(5) { left: 33%; animation-delay: 5.5s; font-size: 9px; }
.pup-xmas-snow span:nth-child(6) { left: 41%; animation-delay: 3.1s; }
.pup-xmas-snow span:nth-child(7) { left: 49%; animation-delay: 0.7s; font-size: 10px; }
.pup-xmas-snow span:nth-child(8) { left: 57%; animation-delay: 4.9s; font-size: 14px; }
.pup-xmas-snow span:nth-child(9) { left: 64%; animation-delay: 2.7s; }
.pup-xmas-snow span:nth-child(10) { left: 71%; animation-delay: 6.1s; font-size: 9px; }
.pup-xmas-snow span:nth-child(11) { left: 78%; animation-delay: 1.8s; }
.pup-xmas-snow span:nth-child(12) { left: 85%; animation-delay: 3.8s; font-size: 15px; }
.pup-xmas-snow span:nth-child(13) { left: 91%; animation-delay: 5.1s; font-size: 10px; }
.pup-xmas-snow span:nth-child(14) { left: 97%; animation-delay: 0.4s; }

@keyframes pup-xmas-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(190px) rotate(180deg); opacity: 0; }
}
@keyframes pup-xmas-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-6deg); }
}

@media (max-width: 480px) {
  .pup-xmas-head { padding: 22px 18px 16px; }
  .pup-xmas-head h2 { font-size: 19px; }
  .pup-xmas-body { padding: 16px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .pup-xmas-overlay,
  .pup-xmas-modal { transition: none; }
  .pup-xmas-gift,
  .pup-xmas-snow span { animation: none; }
  .pup-xmas-snow { display: none; }
}
