/*
 * Black Friday / Cyber Monday 2026 banner + popup.
 * Coordinates are taken 1:1 from the Figma artboards:
 *   desktop 1920 (content box 1440 wide, starts at x=240), tablet 834, mobile 360,
 *   popup 600x400, mobile popup 320x534.
 */

/* ---------- Banner shell ---------- */
.balack-friday-baner.ezs-bar {
  display: block;
  height: 90px !important;
  padding: 0;
  overflow: hidden;
  font-family: 'Manrope', sans-serif !important;
  background: #0a0a0a center / cover no-repeat;
}
.ezs-bar *,
.ezs-popup * { box-sizing: border-box; }
.ezs-bar img,
.ezs-popup img { display: block; max-width: none; }
.ezs-bar.ezs-bf { background-color: #000; background-image: url(bf/bg-desktop.jpg); }
.ezs-bar__d,
.ezs-bar__t,
.ezs-bar__m { position: absolute; inset: 0; display: none; justify-content: center; }
.ezs-in { position: relative; flex: none; height: 90px; }
.ezs-a { position: absolute; margin: 0; }
.ezs-bar__d { display: flex; }
.ezs-bar__d .ezs-in { width: 1440px; }
.ezs-bar__t .ezs-in { width: 834px; }
.ezs-bar__m .ezs-in { width: 360px; }

/* Desktop artboard is 1920; scale it down on laptops. */
@media (max-width: 1599px) { .ezs-bar__d .ezs-in { zoom: .88; top: 6px; } }
@media (max-width: 1439px) { .ezs-bar__d .ezs-in { zoom: .79; top: 12px; } }
@media (max-width: 1279px) { .ezs-bar__d .ezs-in { zoom: .74; top: 16px; } }
@media (max-width: 1199px) {
  .ezs-bar__d { display: none; }
  .ezs-bar__t { display: flex; }
  .ezs-bar.ezs-bf { background-image: url(bf/bg-tablet.jpg); }
}
@media (max-width: 833px) { .ezs-bar__t .ezs-in { zoom: .92; top: 4px; } }
@media (max-width: 767px) {
  .ezs-bar__t { display: none; }
  .ezs-bar__m { display: flex; }
  .ezs-bar.ezs-bf { background-image: url(bf/bg-mobile.jpg); }
}

/* Close button */
.ezs-close {
  position: absolute; top: 50%; right: 40px; transform: translateY(-50%);
  width: 24px; height: 24px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.ezs-close svg { display: block; }
.ezs-close__sm { display: none; }
@media (max-width: 1199px) { .ezs-close { right: 24px; } }
@media (max-width: 767px) {
  .ezs-close { right: max(12px, calc(50% - 168px)); width: 16px; height: 16px; }
  .ezs-close__lg { display: none; }
  .ezs-close__sm { display: block; }
}

/* ---------- Shared text pieces ---------- */
.ezs-bf-title { font: 700 46px/48px 'Fredoka', sans-serif; color: #fff; text-transform: uppercase; white-space: nowrap; }
.ezs-bf-off { font: 700 42px/48px 'Fredoka', sans-serif; color: #f03535; text-transform: uppercase; white-space: nowrap; }
.ezs-cm-off { font: 700 30px/normal 'Unbounded', sans-serif; color: #d4ff3a; white-space: nowrap; }
.ezs-lines { display: flex; flex-direction: column; font: 400 14px/19px 'Manrope', sans-serif; white-space: nowrap; }
.ezs-lines b { font-weight: 700; color: #fff; margin-bottom: -1.5px; }
.ezs-lines span { color: #8b8b8b; }
.ezs-lines--cm span { color: #bdbdbd; }

/* Timer */
.ezs-timer { display: flex; gap: 8px; }
.ezs-timer__item { position: relative; width: 50px; height: 65px; }
.ezs-timer__item b {
  position: absolute; top: 0; left: 0; width: 50px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font: 700 24px/1 'Fredoka', sans-serif; color: #fff;
  border: 1px solid #f03535; border-radius: 12px;
}
.ezs-timer__item span {
  position: absolute; top: 50px; left: 0; width: 100%; text-align: center;
  font: 700 11px/15px 'Manrope', sans-serif; color: #fff;
}
.ezs-timer--cm { gap: 7px; }
.ezs-timer--cm .ezs-timer__item { width: 48px; }
.ezs-timer--cm .ezs-timer__item b {
  width: 48px; height: 44px; border-radius: 8px; border-color: #d4ff3a; background: #161616;
  font: 400 16px/1 'Press Start 2P', monospace; padding-left: 1px;
}
.ezs-timer--cm .ezs-timer__item span { top: 49px; color: #bdbdbd; }

/* "No code" badge with tilted "Auto-applied" sticker */
.ezs-nocode {
  width: 72px; height: 38px; border: 1px solid rgba(240, 53, 53, .3); border-radius: 10px; background: rgba(240, 53, 53, .1);
  display: flex; align-items: center; justify-content: center; padding-top: 4px;
  font: 600 12px/1 'Fredoka', sans-serif; color: #fff; text-transform: uppercase; white-space: nowrap;
}
.ezs-nocode__tag { position: absolute; left: 18px; top: -10px; width: 69.3px; height: 19.6px; transform: rotate(7.23deg); }
.ezs-nocode__tag img { width: 100%; height: 100%; }
.ezs-nocode__tag em {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 600 8px/1 'Fredoka', sans-serif; font-style: normal; color: #fff; text-transform: uppercase;
}

/* ---------- Black Friday: desktop (x - 240) ---------- */
.bfd-sp1 { left: 0; top: 34px; width: 22px; }
.bfd-title { left: 34px; top: 21px; }
.bfd-sp2 { left: 354px; top: 34px; width: 22px; }
.bfd-off1 { left: 465px; top: 21px; }
.bfd-t1 { left: 649px; top: 26px; }
.bfd-nocode { left: 810px; top: 32px; }
.bfd-off2 { left: 929px; top: 21px; }
.bfd-t2 { left: 1109px; top: 26px; }
.bfd-timer { left: 1273px; top: 15px; }

/* Black Friday: tablet */
.bft-sp1 { left: 20px; top: 34px; width: 22px; }
.bft-title { left: 48px; top: 12px; font-size: 34px; line-height: 34px; }
.bft-sp2 { left: 170px; top: 34px; width: 22px; }
.bft-off1 { left: 220px; top: 11px; font-size: 28px; line-height: 28px; }
.bft-off2 { left: 220px; top: 52px; font-size: 28px; line-height: 28px; }
.bft-t1 { left: 345px; top: 6px; }
.bft-t2 { left: 345px; top: 49px; }
.bft-nocode { left: 492px; top: 33px; }
.bft-timer { left: 600px; top: 15px; }

/* Black Friday: mobile */
.bfm-sp1 { left: 12px; top: 14px; width: 12px; }
.bfm-title { left: 30px; top: 8px; font-size: 20px; line-height: 24px; }
.bfm-sp2 { left: 170px; top: 14px; width: 12px; }
.bfm-pill { left: 36px; top: 34px; width: 92px; height: 12px; z-index: 2; }
.bfm-pill img { width: 100%; height: 100%; }
.bfm-pill em, .bfp-pill em {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 600 7px/1 'Fredoka', sans-serif; font-style: normal; color: #fff; text-transform: uppercase; white-space: nowrap;
}
.ezs-timer--sm { gap: 6px; }
.ezs-timer--sm .ezs-timer__item { width: 40px; height: 47px; }
.ezs-timer--sm .ezs-timer__item b { width: 40px; height: 30px; border-radius: 8px; font-size: 20px; }
.ezs-timer--sm .ezs-timer__item span { top: 30px; }
.bfm-timer { left: 16px; top: 41px; }
.bfm-off1 { left: 209px; top: 7px; font-size: 18px; line-height: 18px; }
.bfm-off2 { left: 209px; top: 48px; font-size: 18px; line-height: 18px; }
.bfm-t1 { left: 249px; top: 9px; font-size: 13px; line-height: 18px; }
.bfm-t2 { left: 249px; top: 49px; font-size: 13px; line-height: 18px; }

/* ---------- Cyber Monday: shared ---------- */
.ezs-bar.ezs-cm { background: #0a0a0a; }
.ezs-ticket { width: 353px; height: 76px; }
.ezs-ticket::before {
  content: ''; position: absolute; left: 9px; top: 7px; right: 9px; bottom: 7px; background: #d4ff3a; border-radius: 10px;
}
.ezs-ticket__n { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #0a0a0a; }
.ezs-ticket__n--l { left: 0; top: 29px; }
.ezs-ticket__n--r { right: 0; top: 29px; }
.ezs-ticket__n--t, .ezs-ticket__n--b { width: 14px; height: 14px; left: 170px; }
.ezs-ticket__n--t { top: 0; }
.ezs-ticket__n--b { bottom: 0; }
.ezs-ticket__text {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center;
  font: 700 27px/normal 'Unbounded', sans-serif; color: #0a0a0a; white-space: nowrap;
}
.ezs-cm-frame { background: #161616; border: 1px solid #2e2e2e; border-radius: 14px; }
.ezs-cm-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #d4ff3a; }
.ezs-cm-icon img { width: 36.5%; height: auto; }
.ezs-cm-icon--ue img { width: 36.5%; }

/* Cyber Monday: desktop (x - 240) */
.cmd-ticket { left: 0; top: 7px; }
.cmd-wire1 { left: 333px; top: 33px; width: 93.6px; transform: rotate(16.98deg); }
.cmd-wire2 { left: 789px; top: 35px; width: 57.4px; transform: rotate(-48.16deg) scaleY(-1); }
.cmd-f1 { left: 413px; top: 14px; width: 398px; height: 62px; }
.cmd-f2 { left: 827px; top: 14px; width: 398px; height: 62px; }
.cmd-dot1 { left: 418px; top: 60px; }
.cmd-dot2 { left: 795px; top: 60px; }
.cmd-dot3 { left: 832px; top: 19px; }
.cmd-i1 { left: 425px; top: 25px; }
.cmd-off1 { left: 477px; top: 27px; }
.cmd-t1 { left: 669px; top: 26px; }
.cmd-i2 { left: 839px; top: 25px; }
.cmd-off2 { left: 891px; top: 27px; }
.cmd-t2 { left: 1083px; top: 26px; }
.cmd-timer { left: 1283px; top: 14px; }

/* Cyber Monday: tablet */
.cmt-ticket { left: 33px; top: 1px; width: 193px; height: 89px; }
.cmt-ticket::before { left: 9px; top: 7px; right: 9px; bottom: 8px; border-radius: 11px; }
.cmt-ticket .ezs-ticket__n--l, .cmt-ticket .ezs-ticket__n--r { top: 35px; }
.cmt-ticket .ezs-ticket__n--t, .cmt-ticket .ezs-ticket__n--b { left: 90px; }
.cmt-ticket .ezs-ticket__text { font-size: 24px; line-height: 26px; }
.cmt-f1 { left: 247px; top: 4px; width: 314px; height: 40px; border-radius: 10px; }
.cmt-f2 { left: 247px; top: 46px; width: 314px; height: 40px; border-radius: 10px; }
.cmt-dot1 { left: 249px; top: 32px; }
.cmt-dot2 { left: 249px; top: 50px; }
.cmt-wire1 { left: 205px; top: 32px; width: 56.8px; transform: rotate(36.47deg); }
.cmt-wire2 { left: 209px; top: 25px; width: 44.9px; transform: rotate(19.16deg); }
.cmt-i1, .cmt-i2 { left: 259px; }
.cmt-i1 { top: 10px; }
.cmt-i2 { top: 52px; }
.cmt-i1 .ezs-cm-icon, .cmt-i2 .ezs-cm-icon { width: 28px; height: 28px; }
.cmt-off1, .cmt-off2 { left: 299px; font-size: 20px; }
.cmt-off1 { top: 12px; }
.cmt-off2 { top: 54px; }
.cmt-t1 { left: 430px; top: 6px; }
.cmt-t2 { left: 430px; top: 48px; }
.cmt-timer { left: 598px; top: 18px; }

/* Cyber Monday: mobile */
.cmm-block { left: 8px; top: 2px; width: 151px; height: 34.4px; }
.ezs-timer--cm.ezs-timer--sm { gap: 6px; }
.ezs-timer--cm.ezs-timer--sm .ezs-timer__item { width: 42px; height: 51px; }
.ezs-timer--cm.ezs-timer--sm .ezs-timer__item b { width: 42px; height: 32px; font-size: 12px; }
.ezs-timer--cm.ezs-timer--sm .ezs-timer__item span { top: 32px; }
.cmm-timer { left: 12px; top: 39px; }
.cmm-i1, .cmm-i2 { left: 178px; }
.cmm-i1 { top: 7px; }
.cmm-i2 { top: 47px; }
.cmm-i1 .ezs-cm-icon, .cmm-i2 .ezs-cm-icon { width: 20px; height: 20px; }
.cmm-off1, .cmm-off2 { left: 207px; font-size: 16px; line-height: 18px; }
.cmm-off1 { top: 7px; }
.cmm-off2 { top: 48px; }
.cmm-t1 { left: 265px; top: 9px; font-size: 13px; line-height: 18px; }
.cmm-t2 { left: 265px; top: 49px; font-size: 13px; line-height: 18px; }

/* ---------- Popup ---------- */
.bf-popup.ezs-popup { padding: 16px; }
.ezs-popup__panel {
  position: relative; flex: none; width: 600px; height: 400px; border-radius: 24px; overflow: hidden;
  font-family: 'Manrope', sans-serif; background: #000 url(bf/bg-popup.jpg) center / cover no-repeat;
}
.ezs-popup.ezs-cm .ezs-popup__panel { background: #0a0a0a; }
.ezs-pm { display: none !important; }
.ezs-popup__close {
  left: 50%; top: 356px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 400 16px/1 Arial, sans-serif; color: #9b9a9a; text-decoration: underline;
}
.ezs-btn {
  display: flex; align-items: center; justify-content: center; height: 44px; padding: 12px 24px; text-decoration: none;
  white-space: nowrap; text-transform: uppercase;
}
.ezs-btn:hover { filter: brightness(1.08); }
.ezs-card-text { display: flex; white-space: nowrap; font: 400 14px/normal 'Manrope', sans-serif; color: #8b8b8b; }
.ezs-card-text b { font-weight: 700; color: #fff; }
.ezs-card-text i { font-style: normal; white-space: pre; }

/* Black Friday popup */
.bfp-title { left: 124px; top: 36px; font-size: 52px; line-height: 48px; }
.bfp-sp1 { left: 84px; top: 49px; width: 22px; }
.bfp-sp2 { left: 488px; top: 49px; width: 22px; }
.bfp-sp3 { left: 116px; top: 343px; width: 6px; }
.bfp-sp4 { left: 64px; top: 84px; width: 6px; }
.bfp-sp5 { left: 50px; top: 262px; width: 7px; }
.bfp-sp6 { left: 558px; top: 29px; width: 7px; }
.bfp-sp7 { left: 481px; top: 365px; width: 7px; }
.bfp-sp8 { left: 551px; top: 263px; width: 7.5px; }
.bfp-sp9 { left: 430px; top: 236px; width: 6.6px; }
.bfp-card {
  top: 108px; width: 269px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 20px 16px;
  background: rgba(0, 0, 0, .37); border: 1px solid rgba(240, 53, 53, .4); border-radius: 20px;
}
.bfp-card .ezs-bf-off { font-size: 36px; line-height: 40px; }
.bfp-c1 { left: 24px; }
.bfp-c2 { left: 307px; }
.bfp-pill { left: 221px; top: 97px; width: 158px; height: 22px; z-index: 2; }
.bfp-pill img { width: 100%; height: 100%; }
.bfp-pill em { font-size: 12px; }
.bfp-timer { left: 217px; top: 217px; }
.bfp-btn {
  left: 180px; top: 294px; width: 240px; border-radius: 30px; background: linear-gradient(180deg, #f03535, #c31a1a);
  font: 700 16px/20px 'Fredoka', sans-serif; color: #fff;
}
.ezs-bf .bfp-btn:hover { color: #fff; }

/* Cyber Monday popup */
.cmp-grid, .cmp-grid2 { left: 0; top: 0; width: 600px; height: 400px; opacity: .04; }
.cmp-grid2 { left: 100px; top: -100px; width: 400px; height: 600px; transform: rotate(-90deg); }
.cmp-ticket { left: 123px; top: 20px; }
.cmp-card {
  top: 108px; width: 269px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 20px;
  background: #161616; border: 1px solid #2e2e2e; border-radius: 20px;
}
.cmp-c1 { left: 24px; }
.cmp-c2 { left: 307px; }
.cmp-card__head { display: flex; align-items: center; gap: 10px; }
.cmp-card .ezs-cm-icon { width: 32px; height: 32px; }
.cmp-card .ezs-cm-off { font-size: 26px; }
.cmp-dot1 { left: 266px; top: 117px; width: 9.4px; }
.cmp-dot2 { left: 316px; top: 177px; width: 9.4px; }
.cmp-wire { left: 257px; top: 148px; width: 80px; transform: rotate(44.95deg); }
.cmp-timer { left: 221px; top: 215px; }
.cmp-btn {
  left: 160px; top: 296px; width: 280px; border-radius: 10px; background: #d4ff3a;
  font: 700 14px/20px 'Unbounded', sans-serif; color: #0a0a0a;
}
.ezs-cm .cmp-btn:hover { color: #0a0a0a; }

/* ---------- Mobile popup (320 x 534) ---------- */
@media (max-width: 640px) {
  .ezs-pd { display: none !important; }
  .ezs-pm { display: block !important; }
  .ezs-popup__panel { width: 320px; height: 534px; background-image: url(bf/bg-popup-mobile.jpg); }
  .ezs-popup__close { top: 490px; }

  .bfp-title { left: 0; right: 0; top: 32px; text-align: center; font-size: 48px; line-height: 48px; }
  .bfp-title .ezs-pm { display: inline !important; }
  .bfpm-sp1 { left: 44px; top: 69px; width: 22px; }
  .bfpm-sp2 { left: 256px; top: 69px; width: 22px; }
  .bfpm-sp3 { left: 30px; top: 50px; width: 6px; }
  .bfpm-sp4 { left: 20px; top: 404px; width: 6px; }
  .bfpm-sp5 { left: 48px; top: 344px; width: 7px; }
  .bfpm-sp6 { left: 259px; top: 320px; width: 7px; }
  .bfpm-sp7 { left: 275px; top: 21px; width: 7px; }
  .bfpm-sp8 { left: 288px; top: 399px; width: 7.5px; }
  .bfpm-sp9 { left: 294px; top: 134px; width: 6.6px; }
  .bfp-card { left: 16px; width: 288px; flex-direction: row; justify-content: center; align-items: flex-start; gap: 10px; padding: 10px 16px; border-radius: 16px; }
  .bfp-c1 { top: 152px; }
  .bfp-c2 { top: 222px; }
  .bfp-card .ezs-bf-off { font-size: 30px; line-height: 40px; }
  .bfp-card .ezs-card-text { flex-direction: column; flex: 1 0 0; }
  .bfp-card .ezs-card-text i { display: none; }
  .bfp-pill { left: 81px; top: 303px; }
  .bfp-timer { left: 77px; top: 337px; }
  .bfp-btn { left: 16px; top: 430px; width: 288px; }

  .ezs-popup.ezs-cm .ezs-popup__panel { background: #0a0a0a; }
  .ezs-pm.cmp-grid { width: 320px; height: 534px; }
  .cmpm-grid2 { left: -107px; top: 107px; width: 534px; height: 320px; opacity: .04; transform: rotate(-90deg); }
  .cmpm-ticket { left: 44px; top: 32px; width: 232px; height: 106px; }
  .cmpm-ticket img { width: 100%; height: 100%; }
  .cmpm-ticket .ezs-ticket__text { font-size: 26px; line-height: 28px; }
  .cmp-card { left: 16px; width: 288px; height: 62px; flex-direction: row; align-items: flex-start; gap: 0; padding: 0; border-radius: 14px; }
  .cmp-c1 { top: 166px; }
  .cmp-c2 { top: 240px; }
  .cmp-card__head { position: absolute; left: 16px; top: 6px; gap: 12px; }
  .cmp-card .ezs-cm-icon { width: 38px; height: 38px; }
  .cmp-card .ezs-cm-off { font-size: 20px; line-height: 25px; }
  .cmp-card .ezs-cm-off .ezs-pm { display: inline !important; }
  .cmp-card .ezs-card-text { position: absolute; left: 155px; top: 12px; flex-direction: column; line-height: 17.5px; }
  .cmp-card .ezs-card-text span { color: #bdbdbd; }
  .cmp-timer { left: 81px; top: 330px; }
  .cmp-btn { left: 16px; top: 426px; width: 288px; height: 48px; }
}
@media (max-width: 352px) {
  .ezs-popup__panel { zoom: .9; }
}

/* Old 2025 rule made the bar 100px (vw) tall on 1920+; this one is 90px. */
@media (min-width: 1920px) {
  .balack-friday-active:has(.ezs-bar) #top-header { top: 90px !important; }
  .balack-friday-active:has(.ezs-bar) #main-header { top: 130px !important; }
}
html body.balack-friday-active .balack-friday-baner.ezs-bar.ezs-bar { height: 90px !important; }

/* Very small phones (320-359): shrink the 360 artboard to fit. */
@media (max-width: 359px) { .ezs-bar__m .ezs-in { zoom: .89; top: 5px; } }
/* Phones in landscape / short screens: keep the whole popup visible. */
@media (max-height: 560px) and (max-width: 640px) { .ezs-popup__panel { zoom: .8; } }
@media (max-height: 440px) and (min-width: 641px) { .ezs-popup__panel { zoom: .8; } }
