/* ============================================================
   v2 I 💛 BF referral pages — the referrer's share page and the invited friend's page.

   No maquette has an I 💛 BF screen: the look is deduced from the v2 components, as for the
   gift and free-trial pages (css/v2/gift.css, css/v2/free-trial.css): DIN titles, Inter Tight
   text, the yellow primary CTA (tokens.css .bf-btn--primary), sand panels; the black notices
   take the v2 footer colours. The legacy blinking price, the dotted background
   (images/i-love-bf/i-love-bf-background-*.webp) and the SVG step rules are gone (decoration).

   Scope: every rule hangs off `.bf-ilbf`, printed on <body> by the templates through
   `page_class`, next to a page hook:
     .bf-ilbf--share   i_love_bf/share.html.twig   (route i_love_bf_share)
     .bf-ilbf--use     i_love_bf/use.html.twig     (route i_love_bf_use)

   JS / GTM contract: .copy-text, .content-copy, a.ev-i-love-bf and #cta-desktop are only ever
   SELECTED here, never renamed or hidden.

   Both pages keep the legacy split: one block below 1200px (uk-hidden@l), one from 1200px
   (uk-visible@l). Breakpoints = UIkit's: @s 640px · @m 960px · @l 1200px.
   ============================================================ */

/* ---- Frame ---- */

.bf-ilbf .bf-ilbf-main {
  display: block;
  padding: 24px 0 48px;
  background: var(--bf-c-white);
  color: var(--bf-c-black);
}

.bf-ilbf .bf-ilbf-main p {
  font: 400 16px/1.5 var(--bf-font-body);
  color: inherit;
}

/* The translations carry <b> / <strong> / <span class="highlight"> emphasis. */
.bf-ilbf .bf-ilbf-main b,
.bf-ilbf .bf-ilbf-main strong {
  font-weight: 600;
}

/* Below 1200px every block is one centred column, never wider than a phone layout. */
.bf-ilbf .promo-container.uk-hidden\@l {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Titles ---- */

.bf-ilbf .title-container {
  margin-bottom: 20px;
  text-align: center;
}

/* "I 💛 BF": the yellow underline of the legacy page, in the v2 display face. */
.bf-ilbf .title-container h1.title {
  display: inline-block;
  margin: 0 0 16px;
  padding: 0 24px 8px;
  border-bottom: 3px solid var(--bf-c-yellow);
  font: 400 64px/1 var(--bf-font-display);
  letter-spacing: .01em;
  color: var(--bf-c-black);
}

.bf-ilbf .title-container h2 {
  margin: 0;
  font: 400 40px/.95 var(--bf-font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--bf-c-black);
}

/* ---- Buttons: the v2 primary CTA (tokens.css .bf-btn--primary), at the gift page's size ---- */

.bf-ilbf .bf-ilbf-main .bf-btn {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 18px;
  white-space: normal;
}

.bf-ilbf .cta-container {
  margin-top: 24px;
}

.bf-ilbf .cta-container .bf-btn {
  min-width: 260px;
}

/* ---- Panels ---- */

/* The voucher card (share): a sand panel, the code in a yellow-framed DIN box. */
.bf-ilbf .bf-ilbf-card.uk-card {
  padding: 24px;
  border-radius: var(--bf-radius-btn);
  background: var(--bf-c-sand);
  box-shadow: none;
  color: var(--bf-c-black);
}

.bf-ilbf .bf-ilbf-card .voucher {
  display: block;
  margin-top: 8px;
  padding: 12px 8px 8px;
  border: 2px solid var(--bf-c-yellow);
  border-radius: var(--bf-radius-btn);
  background: var(--bf-c-white);
  font: 400 34px/1 var(--bf-font-display);
  letter-spacing: .06em;
  text-align: center;
  color: var(--bf-c-black);
}

.bf-ilbf .important-notice {
  box-sizing: border-box;
  padding: 20px 24px;
  border-radius: var(--bf-radius-btn);
  background: var(--bf-c-black);
  color: var(--bf-c-white);
}

.bf-ilbf .important-notice .highlight {
  color: var(--bf-c-yellow);
}

.bf-ilbf .important-notice.important-notice-primary {
  background: var(--bf-c-yellow);
  color: var(--bf-c-black);
}

.bf-ilbf .important-notice.important-notice-primary p {
  font-weight: 500;
}

.bf-ilbf .promo-image-container img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ---- Share page ---- */

/* "Comparte tu amor por<br>Brooklyn Fitboxing": the first line has to hold on one line (es). */
.bf-ilbf--share .title-container h2 {
  font-size: 36px;
}

.bf-ilbf--share .promo-container.uk-hidden\@l .promo-image-container {
  margin-bottom: -1px;
}

.bf-ilbf--share .bf-ilbf-text p {
  margin: 0;
}

/* ---- Use page: price, gift, invitation ---- */

/* "pruébalo por solo <b>4,95€</b>": the figure as the gift page's price (gift.css .amount).
   The legacy blink (.blink-bg) is not part of the v2 look. */
.bf-ilbf--use .promo-title-container {
  margin-top: 4px;
}

.bf-ilbf--use .promo-title {
  display: inline-block;
  font: 400 20px/1.2 var(--bf-font-body);
  color: var(--bf-c-black);
}

.bf-ilbf--use .promo-title b {
  display: inline-block;
  font: 400 48px/1 var(--bf-font-display);
  font-weight: 400;
  letter-spacing: .01em;
  white-space: nowrap;
  vertical-align: -6px;
}

.bf-ilbf--use .blink-bg {
  border: 0;
  background: none;
  animation: none;
}

.bf-ilbf--use .promo-gift-container {
  margin-top: 16px;
}

.bf-ilbf--use .promo-gift {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--bf-radius-btn);
  background: var(--bf-c-sand);
  font: 500 16px/1.3 var(--bf-font-body);
  color: var(--bf-c-black);
}

.bf-ilbf--use .promo-container.uk-hidden\@l .promo-image-container {
  margin-top: 20px;
}

.bf-ilbf--use .promo-container.uk-hidden\@l .important-notice {
  margin-top: 0;
}

/* ---- Use page: the 3-step how-to ---- */

.bf-ilbf--use .how-to-section {
  margin-top: 16px;
  padding: 32px 24px 16px;
  border-radius: var(--bf-radius-btn);
  background: var(--bf-c-sand);
  color: var(--bf-c-black);
}

.bf-ilbf--use .how-to-section span.title {
  display: block;
  margin-bottom: 16px;
  font: 400 32px/1 var(--bf-font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}

.bf-ilbf--use .how-to-section .number {
  display: inline-block;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding-top: 5px;
  border-radius: 50%;
  background: var(--bf-c-yellow);
  font: 400 26px/43px var(--bf-font-display);
  text-align: center;
  color: var(--bf-c-black);
}

.bf-ilbf--use .how-to-section .description {
  margin: 0;
  padding: 16px 0;
  font: 400 16px/1.45 var(--bf-font-body);
}

/* Mobile: a vertical rule through the number column, from the first circle to the last. */
.bf-ilbf--use .how-to-section .step[class*="vertical-"] {
  position: relative;
}

.bf-ilbf--use .how-to-section .step[class*="vertical-"]::before {
  content: "";
  display: block; /* UIkit hides .uk-flex::before */
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--bf-c-black);
}

.bf-ilbf--use .how-to-section .step.vertical-1::before { top: 50%; bottom: 0; }
.bf-ilbf--use .how-to-section .step.vertical-2::before { top: 0; bottom: 0; }
.bf-ilbf--use .how-to-section .step.vertical-3::before { top: 0; bottom: 50%; }

.bf-ilbf--use .how-to-section .number-container {
  position: relative;
}

/* ---- Country mismatch warning ---- */

.bf-ilbf .bf-ilbf-mismatch .uk-alert-danger {
  margin: 0;
  padding: 20px 24px;
  border-left: 4px solid #c00;
  border-radius: var(--bf-radius-btn);
  background: #fdf2f2;
  color: var(--bf-c-black);
}

.bf-ilbf .bf-ilbf-mismatch .uk-alert-danger p {
  margin: 0;
}

.bf-ilbf .bf-ilbf-mismatch .uk-alert-danger p + p {
  margin-top: 4px;
}

/* ---- Desktop (>= 1200px) ---- */

@media (min-width: 1200px) {
  .bf-ilbf .bf-ilbf-main {
    padding: 48px 0 64px;
  }

  .bf-ilbf .title-container h1.title {
    font-size: 80px;
  }

  .bf-ilbf .title-container h2 {
    font-size: 56px;
  }

  .bf-ilbf--share .title-container h2 {
    font-size: 48px;
  }

  /* Share: text column on the left, the picture bottom-aligned on the right, as legacy. */
  .bf-ilbf--share .promo-container.uk-visible\@l > .uk-width-3-4 {
    max-width: 520px;
  }

  .bf-ilbf--share .right-side .promo-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Use: price + CTA on the left, picture + invitation on the right, same height. */
  .bf-ilbf--use .promo-container.uk-visible\@l {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
  }

  .bf-ilbf--use .promo-title {
    font-size: 22px;
  }

  .bf-ilbf--use .promo-title b {
    font-size: 64px;
  }

  .bf-ilbf--use .bf-ilbf-col.uk-flex-column {
    align-items: center;
    justify-content: flex-end;
  }

  .bf-ilbf--use .bf-ilbf-col .promo-image-container {
    width: 100%;
    max-width: 440px;
  }

  .bf-ilbf--use .bf-ilbf-col .important-notice {
    width: 100%;
    max-width: 440px;
    margin-top: 0;
  }

  .bf-ilbf--use .how-to-section {
    margin-top: 24px;
    padding: 40px 48px 24px;
  }

  .bf-ilbf--use .how-to-section span.title {
    margin-bottom: 32px;
    font-size: 40px;
  }

  /* Desktop: one rule behind the three circles; each circle masks it with the panel colour. */
  .bf-ilbf--use .how-to-section .steps-horizontal {
    position: relative;
  }

  .bf-ilbf--use .how-to-section .steps-horizontal::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--bf-c-black);
  }

  .bf-ilbf--use .how-to-section .steps-horizontal .number-container {
    display: inline-block;
    padding: 0 16px;
    background: var(--bf-c-sand);
  }

  .bf-ilbf--use .how-to-section .horizontal-1 .number-container { padding-left: 0; }
  .bf-ilbf--use .how-to-section .horizontal-3 .number-container { padding-right: 0; }

  .bf-ilbf--use .how-to-section .description {
    padding: 20px 0;
  }
}
