/* Black Friday banner (bfb) – temporary replacement of the "Vendi le tue carte" banner.
   Markup: modules/custom/BlackFridaySell.ascx · pure CSS, no JS.
   Layout follows the customer's mp4 (1008x1168): 1cqi = 1% of the banner width. */
.bfb{position:relative;display:block;width:100%;aspect-ratio:1008/1168;overflow:hidden;container-type:inline-size;contain:layout paint;isolation:isolate;
  color:#fff;text-decoration:none;font-family:'Montserrat',Arial,sans-serif;-webkit-tap-highlight-color:transparent;user-select:none;
  background:radial-gradient(circle at 50% 49%,#13121c 0,#13121c 40%,#28243f 54%,#1c1b2c 70%,#0d0d14 100%)}
.bfb:hover,.bfb:focus{color:#fff;text-decoration:none}
.bfb *,.bfb *::before,.bfb *::after{box-sizing:border-box}
:where(.bfb span){display:block}

/* top chip */
.bfb__chip{position:absolute;z-index:3;left:22cqi;right:22cqi;top:5.6cqi;height:9.5cqi;border-radius:2cqi;background:#0b0b10;display:flex;align-items:center;justify-content:center}
.bfb__chip span{font-weight:800;font-size:5.6cqi;line-height:1;letter-spacing:.14em;padding-left:.14em;white-space:nowrap;
  background:linear-gradient(90deg,#8d9dff 0%,#c46cf0 50%,#ff2e93 100%);-webkit-background-clip:text;background-clip:text;color:transparent}

/* scenes: A -> B -> C, 3 s each, crossfade */
.bfb__stage{position:absolute;z-index:2;inset:0}
.bfb__scene{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;opacity:0;
  animation:bfb-scene 9s ease-in-out infinite both}
.bfb__scene--2{animation-delay:3s}
.bfb__scene--3{animation-delay:6s}
@keyframes bfb-scene{
  0%{opacity:0;transform:translateY(2.4cqi) scale(.97)}
  4%,29%{opacity:1;transform:none}
  33.3%,100%{opacity:0;transform:translateY(-2.4cqi) scale(1.02)}}

/* scene 1 */
.bfb__h1{width:57cqi;text-wrap:balance;font-weight:800;font-size:5.6cqi;line-height:1.16;letter-spacing:-.005em}
.bfb__p1{width:44cqi;margin-top:4cqi;font-weight:600;font-size:3.7cqi;line-height:1.18;color:#c9c8d9}

/* scene 2 */
.bfb__big{font-weight:800;font-size:17.5cqi;line-height:.9;letter-spacing:-.025em;-webkit-text-stroke:.5cqi #fff;text-shadow:0 .6cqi 2cqi rgba(0,0,0,.35)}
.bfb__pill{margin-top:5cqi;padding:2.2cqi 5.4cqi 2.6cqi;border-radius:99cqi;background:#fff;font-weight:800;font-size:5.6cqi;line-height:1;color:#7a6fc9;box-shadow:0 1.2cqi 3cqi rgba(0,0,0,.35)}

/* scene 3 */
.bfb__lead{font-weight:700;font-size:4.2cqi;line-height:1;color:#c9c8d9}
.bfb__pct{margin:2.4cqi 0 3cqi;font-weight:800;font-size:22cqi;line-height:.95;letter-spacing:-.03em;-webkit-text-stroke:.5cqi transparent;
  background:linear-gradient(100deg,#7bff52 0%,#22f5a4 50%,#00e6f5 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 2.6cqi rgba(40,255,150,.55));animation:bfb-pulse 3s ease-in-out infinite}
.bfb__tail{font-weight:800;font-size:4.8cqi;line-height:1}
@keyframes bfb-pulse{0%,100%{filter:drop-shadow(0 0 1.8cqi rgba(40,255,150,.4))}50%{filter:drop-shadow(0 0 3.4cqi rgba(40,255,150,.7))}}
/* the pulse restarts every 3 s, matching the scene length, so it breathes once per appearance */
.bfb__scene--3 .bfb__pct{animation-delay:6s}

/* bottom button + rainbow bar */
.bfb__cta{position:absolute;z-index:3;left:32.8cqi;right:32.8cqi;bottom:9.6cqi;height:9.2cqi;border-radius:2.4cqi;display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:3.9cqi;line-height:1;letter-spacing:.01em;text-shadow:0 .3cqi 1cqi rgba(0,0,0,.3);
  background:linear-gradient(115deg,#8f9cff 0%,#c46cf0 50%,#ff2a90 100%);box-shadow:0 1.2cqi 3.6cqi rgba(255,40,140,.45);
  animation:bfb-cta 3s ease-in-out infinite}
@keyframes bfb-cta{0%,100%{box-shadow:0 1.2cqi 3cqi rgba(255,40,140,.35);transform:scale(1)}50%{box-shadow:0 1.2cqi 4.6cqi rgba(255,40,140,.65);transform:scale(1.03)}}
.bfb:hover .bfb__cta{transform:scale(1.05)}
.bfb__bar{position:absolute;z-index:3;left:0;right:0;bottom:0;height:1.5cqi;
  background:linear-gradient(90deg,#f0527a 0%,#f59a42 25%,#e8c93a 40%,#4fb88a 58%,#1aa8b0 72%,#5b86d6 88%,#7c6fd0 100%)}
.bfb:focus-visible{outline:.6cqi solid #fff;outline-offset:-.6cqi}

/* desktop: the offers block is hidden, so the banner takes the whole height of the right column
   (the aspect ratio stays as the minimum height; chip is anchored top, button bottom, text centred) */
@media (min-width:1360px){
  .video-cnt.bf{flex:1 1 auto;display:flex;min-height:0}
  .video-cnt.bf .bfb{height:auto;flex:1 1 auto;aspect-ratio:auto}
}

/* calm mode: no motion, first scene only */
@media (prefers-reduced-motion:reduce){
  .bfb__scene,.bfb__cta,.bfb__pct{animation:none}
  .bfb__scene--1{opacity:1}
}
