/* Secret Santa preview chrome + popup shell. Payment widget styles live in fp-support.css */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #F3E9DD;
  font-family: 'Work Sans', sans-serif;
  color: #3D0A16;
}

/* --- fake site backdrop so the popup feels in situ --- */
.fp-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(110,19,48,.08), transparent 60%),
    #F3E9DD;
}
.fp-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  border-bottom: 1px solid rgba(110,19,48,.10);
  background: #F9F3EA;
}
.fp-page-logo {
  font-family: 'the-seasons', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.55rem;
  color: #6E1330;
  letter-spacing: .02em;
}
.fp-page-nav {
  display: flex;
  gap: 22px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6E1330;
  opacity: .7;
}
.fp-page-hero {
  padding: 48px 36px 80px;
  max-width: 1100px;
  margin: 0 auto;
  opacity: .45;
  filter: blur(0.2px);
}
.fp-page-hero h2 {
  font-family: 'the-seasons', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #6E1330;
  margin: 0 0 16px;
  max-width: 16ch;
  line-height: 1.15;
}
.fp-page-hero p {
  max-width: 46ch;
  line-height: 1.7;
  color: #6B4E63;
  font-size: 1rem;
}
.fp-page-bars {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-top: 36px;
}
.fp-page-bars span {
  display: block;
  background: #E8D7C6;
  border-radius: 14px;
  height: 180px;
}

@media (max-width: 600px) {
  .fp-page-header { padding: 14px 18px; }
  .fp-page-nav { display: none; }
  .fp-page-hero { padding: 28px 18px 60px; }
  .fp-page-bars { grid-template-columns: 1fr; }
  .fp-page-bars span { height: 120px; }
}

/* --- overlay --- */
.fp-santa {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(28, 8, 14, .62);
}
.fp-santa[hidden] { display: none !important; }

.fp-santa-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.fp-santa-snow i {
  position: absolute;
  top: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 246, 230, .85);
  box-shadow: 0 0 6px rgba(255, 215, 130, .45);
  animation: fp-fall linear infinite;
  opacity: .7;
}
.fp-santa-snow i:nth-child(3n) {
  width: 3px;
  height: 3px;
  background: rgba(232, 196, 110, .8);
}
.fp-santa-snow i:nth-child(4n) {
  width: 7px;
  height: 7px;
  opacity: .45;
}

@keyframes fp-fall {
  0%   { transform: translateY(-10px) translateX(0); opacity: 0; }
  10%  { opacity: .8; }
  100% { transform: translateY(110vh) translateX(30px); opacity: .15; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-santa-snow i { animation: none; opacity: .4; }
}

/* --- card --- */
.fp-santa-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(1200px 280px at 80% -20%, rgba(232, 196, 110, .16), transparent 55%),
    #6E1330;
  color: #F6ECEF;
  border-radius: 18px;
  padding: 36px 40px 28px;
  border: 1px solid rgba(232, 196, 110, .38);
  box-shadow:
    0 0 0 1px rgba(110, 19, 48, .4),
    0 24px 60px rgba(12, 2, 6, .45),
    inset 0 1px 0 rgba(255, 230, 180, .18);
}

.fp-santa-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #E3C6D0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.fp-santa-x:hover { color: #C6FF4A; }

.fp-santa-kicker {
  margin: 0 0 8px;
  font-family: 'Work Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #C6FF4A;
}

.fp-santa-title {
  margin: 0 0 16px;
  font-family: 'the-seasons', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.25;
  color: #F6ECEF;
}

.fp-santa-body {
  margin: 0 0 18px;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #E3C6D0;
}
.fp-santa-body p { margin: 0 0 12px; }
.fp-santa-body p:last-child { margin-bottom: 0; }

.fp-santa-fine {
  margin: 16px 0 0;
  font-size: .74rem;
  line-height: 1.6;
  color: #C9A6B4;
  text-align: center;
}

.fp-santa-dismiss {
  display: block;
  margin: 10px auto 0;
  padding: 8px;
  border: 0;
  background: none;
  font-family: 'Work Sans', sans-serif;
  font-size: .82rem;
  color: #E3C6D0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.fp-santa-dismiss:hover { color: #C6FF4A; }

/* fallback PayPal-looking buttons if the live SDK is domain-locked */
.fp-pp-fallback { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.fp-pp-fallback[hidden] { display: none !important; }
.fp-pp-fb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 0;
  border-radius: 24px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: default;
  width: 100%;
}
.fp-pp-fb--paypal { background: #FFC439; color: #111; }
.fp-pp-fb--eps { background: #C31C69; color: #fff; }
.fp-pp-fb--card { background: #2C2E2F; color: #fff; }
.fp-pp-powered {
  margin: 8px 0 0;
  text-align: center;
  font-size: 11px;
  color: #C9A6B4;
}
.fp-pp-powered strong { color: #F6ECEF; font-weight: 600; }

@media (max-width: 480px) {
  .fp-santa { padding: 10px 10px; align-items: flex-end; }
  .fp-santa-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 26px 20px 20px;
    border-radius: 18px 18px 14px 14px;
  }
  .fp-santa-title { font-size: 23px; }
  .fp-santa-body { font-size: 14px; line-height: 1.55; }
  .fp-santa-kicker { font-size: 11px; }
}
