/* SECTION 4 · Gifting: "Even adults need a Santa Claus." */

.gift {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 60% at 20% 30%, rgba(120,0,0,.35), rgba(120,0,0,0) 60%), var(--night);
  padding: clamp(65.6px, 9vw, 123px) var(--pad);
}

/* gentle snowfall */
.snow {
  position: absolute; inset: -20% 0 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 120px 80px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 200px 150px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 280px 40px, #fff, transparent),
    radial-gradient(2px 2px at 340px 190px, rgba(255,255,255,.7), transparent);
  background-size: 360px 220px;
  animation: snow 22s linear infinite;
}
@keyframes snow { from { transform: translateY(-220px); } to { transform: translateY(0); } }

.gift-inner {
  position: relative; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 32px;
  grid-template-areas: "santa" "body" "card";
}
.gift-body  { grid-area: body; }
.gift-santa { grid-area: santa; justify-self: center; }
.gift-card  { grid-area: card; }
@media (min-width: 980px) {
  .gift-inner { grid-template-columns: 0.8fr 1.2fr; grid-template-areas: "santa body"; column-gap: 64px; align-items: center; }
  .gift-santa { align-self: center; justify-self: start; }
  /* the gift card tucks in front of Santa Cleo's boots */
  .gift-card { grid-area: santa; align-self: end; justify-self: end; width: 270px; z-index: 2; margin-bottom: -10px; padding: 22px 20px 18px; }
  .gift-card .gc-to { font-size: 19px; padding-right: 56px; }
  .gift-card .gc-msg { font-size: 14px; padding-right: 56px; }
  .gift-card .gc-ribbon { right: 36px; width: 13px; }
}

.gift-santa img { display: block; width: min(240px, 56vw); height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
@media (min-width: 980px) { .gift-santa img { width: 100%; max-width: 380px; } }

.gift h2 { font-size: clamp(44px, 7.4vw, 92px); max-width: 12ch; }
.gift h2 em { color: #C1121F; }
.gift-lede { margin: 22px 0 0; max-width: 40ch; font-size: clamp(19.0px, 1.7vw, 23.0px); line-height: 1.5; color: var(--cream-soft); text-wrap: pretty; }

.gift-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.gift-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: var(--cream-soft); }
.gift-steps strong { color: var(--cream); font-weight: 600; }
.gift-steps .n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #C1121F; color: #fff; font-weight: 600; font-size: 14px;
}

/* the single gift price */
.gift-price {
  margin-top: 32px; max-width: 420px;
  padding: 22px 24px; border-radius: 18px;
  background: transparent; border: 1.5px solid #C1121F;
}
.gp-name { margin: 0; font-size: 15px; color: var(--cream-soft); }
.gp-amount { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -.02em; line-height: 1.05; color: var(--cream); }
.gp-note { margin: 8px 0 0; font-size: 14px; color: var(--cream-soft); }

.gift-actions { margin-top: 26px; }
.btn-gift { background: #C1121F; color: #fff; min-height: 58px; padding: 0 34px; font-size: 17px; }
.btn-gift:hover { background: #D7262F; }
.gift-small { margin: 12px 0 0; font-size: 14px; color: var(--cream-soft); }

/* sample gift card */
.gift-card {
  position: relative; margin: 0; justify-self: center;
  width: min(360px, 100%);
  padding: 28px 26px 22px; border-radius: 20px;
  background: var(--cream); color: var(--night);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  transform: rotate(-2deg);
}
.gc-ribbon { position: absolute; top: 0; bottom: 0; right: 46px; width: 16px; background: #2F6FE4; border-radius: 2px; }
.gc-ribbon::after { content: ""; position: absolute; left: -18px; top: 18px; width: 52px; height: 26px; border: 6px solid #2F6FE4; border-radius: 50%; }
.gc-to { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; padding-right: 70px; }
.gc-msg { margin: 14px 0 0; font-size: 16px; line-height: 1.45; color: rgba(10,24,34,.75); padding-right: 70px; }
.gc-from { margin: 12px 0 0; font-weight: 600; font-size: 15px; }
.gc-brand { margin: 22px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(10,24,34,.5); }

@media (prefers-reduced-motion: reduce) { .snow { animation: none; } }

/* Gift waitlist (until checkout is ready) */
.gift-waitlist { margin-top: 4px; max-width: 520px; padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(243,237,228,.16); }
.gift-waitlist .gw-h { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--cream); }
.gw-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gw-row input { flex: 1 1 220px; min-width: 0; height: 54px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: #0A1822; font: inherit; font-size: 17px; }
.gw-row input:focus { outline: 2px solid #C1121F; outline-offset: 2px; }
.gw-btn { min-height: 54px; padding: 0 28px; }
.gw-btn[disabled] { opacity: .7; cursor: wait; }
.gw-msg { margin: 10px 0 0; min-height: 0; font-size: 15px; font-weight: 600; color: #FF9A9A; }
.gw-msg:empty { display: none; }
.gw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gift-waitlist .gift-small { margin-top: 12px; }
.gift-waitlist.is-done .gw-h { margin-bottom: 6px; }
.btn[hidden], .gift-waitlist[hidden] { display: none; }
.gift-waitlist .gift-small { margin: 0 0 16px; }
.gift-waitlist .gw-h { margin-bottom: 8px; }
