/* PepperLabz — Santa's 20% code popup + Deals box (2026-11-30). Markup: includes/pepperlabz-santa.php */

/* ---------- popup ---------- */
.plz-santa {
  position: fixed; inset: 0; z-index: 100001;
  display: grid; place-items: center; padding: 16px;
  font-family: 'Karla', 'Inter', sans-serif;
}
.plz-santa[hidden] { display: none !important; }
.plz-santa-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(28,31,35,.55), rgba(10,11,13,.8));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: plzSantaFade .3s ease both;
}
.plz-santa-card {
  position: relative; overflow: hidden;
  width: min(430px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 26px 26px 20px; border-radius: 28px; text-align: center; color: #111316;
  background: radial-gradient(circle at 50% -10%, #2c3137 0%, #16191d 52%, #0b0c0e 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 40px 80px -30px rgba(0,0,0,.7);
  animation: plzSantaPop .5s cubic-bezier(.2,1.3,.4,1) both;
}
.plz-santa-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #8f979f, #ffffff, #5d646c, #e9ecef, #2a2f35, #f7f8f9, #7a828b);
}
@keyframes plzSantaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes plzSantaPop { from { opacity: 0; scale: .9; translate: 0 18px; } to { opacity: 1; scale: 1; translate: 0 0; } }

.plz-santa-x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50% !important; border: 0 !important; cursor: pointer; padding: 0 !important;
  background: rgba(255,255,255,.12) !important; color: #e9ecef !important; font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: background .2s ease, rotate .3s ease;
}
.plz-santa-x:hover { background: rgba(255,255,255,.2) !important; rotate: 90deg; }

.plz-santa-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.plz-santa-snow i { position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7); }
.plz-santa-snow i:nth-child(1) { left: 12%; animation: plzSantaSnow 7s linear infinite; }
.plz-santa-snow i:nth-child(2) { left: 30%; width: 4px; height: 4px; animation: plzSantaSnow 9s linear 1.5s infinite; }
.plz-santa-snow i:nth-child(3) { left: 52%; animation: plzSantaSnow 8s linear 3s infinite; }
.plz-santa-snow i:nth-child(4) { left: 70%; width: 3px; height: 3px; animation: plzSantaSnow 6.5s linear .8s infinite; }
.plz-santa-snow i:nth-child(5) { left: 86%; animation: plzSantaSnow 10s linear 2.2s infinite; }
.plz-santa-snow i:nth-child(6) { left: 42%; width: 3px; height: 3px; animation: plzSantaSnow 7.5s linear 4s infinite; }
@keyframes plzSantaSnow { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } to { transform: translateY(560px); opacity: 0; } }

.plz-santa-gift { position: relative; width: 112px; height: 112px; margin: 2px auto 8px; }
.plz-santa-gift svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 16px 22px rgba(0,0,0,.5)); }
@media (prefers-reduced-motion: no-preference) {
  .plz-santa-gift svg { animation: plzSantaBob 3.2s ease-in-out infinite; }
  .plz-santa-gift .lid { transform-box: fill-box; transform-origin: 50% 100%; animation: plzSantaLid 3.2s ease-in-out infinite; }
  .plz-santa-gift .bow { transform-box: fill-box; transform-origin: 50% 100%; animation: plzSantaLid 3.2s ease-in-out infinite; }
}
@keyframes plzSantaBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes plzSantaLid { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 80% { transform: translateY(-7px) rotate(-6deg); } 90% { transform: translateY(-3px) rotate(3deg); } }

.plz-santa-kicker { margin: 0 0 6px !important; color: #c9ced4 !important; font: 800 11.5px/1.2 'Karla', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.plz-santa-kicker span { color: #ff6b70; }
.plz-santa-title {
  margin: 0 !important; font: 900 34px/1.02 'Rubik', sans-serif !important; letter-spacing: -.025em; text-transform: none;
  background: linear-gradient(180deg, #ffffff 0%, #eef1f4 35%, #a9b1ba 60%, #ffffff 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.plz-santa-sub { margin: 10px 0 18px !important; color: #b9c0c8 !important; font-size: 15px; line-height: 1.5; }

.plz-santa-form { margin: 0; text-align: left; }
.plz-santa-row { display: flex; gap: 8px; }
.plz-santa-row input[type=email] {
  flex: 1 1 auto; min-width: 0; height: 50px !important; margin: 0 !important; padding: 0 16px !important;
  border: 1px solid rgba(255,255,255,.2) !important; border-radius: 999px !important; background: rgba(255,255,255,.08) !important;
  font: 500 15px/1 'Karla', sans-serif !important; color: #fff !important; box-shadow: none !important;
}
.plz-santa-row input[type=email]::placeholder { color: #9aa1a9; }
.plz-santa-row input[type=email]:focus { border-color: #fff !important; outline: none; background: rgba(255,255,255,.12) !important; }
.plz-santa-btn {
  flex: 0 0 auto; height: 50px !important; min-height: 0 !important; margin: 0 !important; padding: 0 20px !important;
  border: 0 !important; border-radius: 999px !important; cursor: pointer;
  background: linear-gradient(180deg, #ff6b70 0%, #e5484d 55%, #b8242a 100%) !important; color: #fff !important;
  font: 800 14.5px/1 'Karla', sans-serif !important; letter-spacing: .02em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 22px -10px rgba(229,72,77,.7) !important;
}
.plz-santa-btn[disabled] { opacity: .65; cursor: default; }
.plz-santa-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.plz-santa-optin { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font: 500 12.5px/1.35 'Karla', sans-serif; color: #9aa1a9; cursor: pointer; }
.plz-santa-optin input { margin: 2px 0 0 !important; flex: 0 0 auto; accent-color: #e5484d; }
.plz-santa-msg { margin: 10px 0 0 !important; font: 700 13px/1.35 'Karla', sans-serif; color: #7ee2a8; }
.plz-santa-msg.is-bad { color: #ff8a8e; }

.plz-santa-done { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.plz-santa-done[hidden], .plz-santa-form[hidden] { display: none !important; }
.plz-santa-done-title { margin: 0 !important; color: #fff !important; font: 800 15px/1.35 'Karla', sans-serif; }
.plz-santa-done-title b { color: #dfe3e7; }
.plz-santa-done-sub { margin: 4px 0 6px !important; color: #b9c0c8 !important; font-size: 13px; }
.plz-santa-timer {
  margin: 0 0 10px !important; font: 900 34px/1.1 'Rubik', sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 0%, #e6e9ed 45%, #9aa1a9 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.plz-santa-shop {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; text-decoration: none !important;
  background: linear-gradient(180deg, #ffffff 0%, #e7ebef 46%, #c9d1d8 100%); color: #111316 !important; font: 800 15px/1 'Rubik', sans-serif;
}
.plz-santa-later {
  display: block; margin: 12px auto 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
  color: #9aa1a9 !important; font: 700 13px/1 'Karla', sans-serif !important; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.plz-santa-fine { margin: 12px 0 0 !important; color: #6f767f !important; font-size: 11.5px; line-height: 1.45; }
@media (max-width: 420px) {
  .plz-santa-card { padding: 22px 18px 18px; }
  .plz-santa-title { font-size: 29px !important; }
  .plz-santa-row { flex-direction: column; }
  .plz-santa-btn { width: 100%; }
  .plz-santa-gift { width: 92px; height: 92px; }
}

/* ---------- Deals box ---------- */
.plz-deals { position: fixed; left: 16px; bottom: 64px; z-index: 9993; font-family: 'Karla', 'Inter', sans-serif; }
body:has(#plzDeals) .plz-lever-chip { display: none !important; }
body:has(#plzStickyBar.is-visible) .plz-deals { bottom: 112px; }
.plz-deals-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px !important;
  border: 0 !important; border-radius: 999px !important; cursor: pointer;
  background: linear-gradient(135deg, #2c3137, #1c1f23 60%, #0e1013) !important; color: #fff !important;
  font: 800 13.5px/1 'Karla', sans-serif !important; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 26px -10px rgba(17,19,22,.65), 0 0 0 3px rgba(255,255,255,.75) !important;
  transition: transform .2s ease;
}
.plz-deals-btn:hover { transform: translateY(-2px); }
.plz-deals-btn .ico { font-size: 17px; line-height: 1; }
.plz-deals-btn .cnt {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #e5484d; color: #fff; font: 800 11.5px/1 'Inter', sans-serif;
}
.plz-deals-btn .cnt[hidden] { display: none; }
.plz-deals.is-pulse .plz-deals-btn { animation: plzDealsPulse 1.2s ease 2; }
@keyframes plzDealsPulse { 0%, 100% { transform: none; } 30% { transform: scale(1.1); } 60% { transform: scale(.97); } }

.plz-deals-panel {
  position: absolute; left: 0; bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 32px)); padding: 14px; border-radius: 20px;
  background: #fff; color: #111316; border: 1px solid #e1e4e8;
  box-shadow: 0 30px 60px -20px rgba(17,19,22,.45);
  animation: plzDealsIn .25s cubic-bezier(.2,.8,.3,1) both;
}
.plz-deals-panel[hidden] { display: none !important; }
@keyframes plzDealsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plz-deals-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.plz-deals-head b { font: 800 15px/1.2 'Rubik', sans-serif; }
.plz-deals-close {
  width: 30px; height: 30px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; cursor: pointer;
  background: #eef0f3 !important; color: #3c434a !important; font-size: 18px; line-height: 1;
}
.plz-deals-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.plz-deal {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t go" "s go"; align-items: center; gap: 2px 10px;
  margin: 0 !important; padding: 10px 12px; border-radius: 14px; background: #f6f7f9; border: 1px solid #eceef1;
}
.plz-deal.is-santa { background: linear-gradient(135deg, #fff1f1, #ffffff); border-color: #f6c9cb; }
.plz-deal .t { grid-area: t; font: 800 14px/1.25 'Karla', sans-serif; color: #111316; }
.plz-deal .s { grid-area: s; font: 600 12px/1.35 'Karla', sans-serif; color: #5c636d; }
.plz-deal .s b { color: #111316; font-variant-numeric: tabular-nums; }
.plz-deal .s .amount { color: #111316; font-weight: 800; }
.plz-deal .go {
  grid-area: go; display: inline-flex; align-items: center; height: 34px; padding: 0 14px !important; margin: 0 !important;
  border: 0 !important; border-radius: 999px !important; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  background: linear-gradient(180deg, #3a3f46 0%, #1c1f23 48%, #0c0d0f 100%) !important; color: #fff !important;
  font: 800 12.5px/1 'Karla', sans-serif !important;
}
.plz-deal.is-santa .go { background: linear-gradient(180deg, #ff6b70 0%, #e5484d 55%, #b8242a 100%) !important; }
.plz-deals-foot { margin: 10px 2px 0 !important; color: #6d7280 !important; font: 600 12px/1.3 'Karla', sans-serif; }
.plz-deals-foot b { color: #111316; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
  .plz-deals { left: 60px; bottom: 16px; }
  .plz-deals-btn { height: 36px; padding: 0 13px 0 10px !important; font-size: 12.5px !important; }
  body:has(#plzStickyBar.is-visible) .plz-deals { bottom: 108px; }
  .plz-deals-panel { left: -44px; }
}
@media (prefers-reduced-motion: reduce) {
  .plz-santa *, .plz-deals * { animation: none !important; transition: none !important; }
}
