/* ============================================
   BLACK FRIDAY 2026 (upa-bf-*)
   Plain CSS (not part of the Tailwind build), loaded only on the
   Hot Deals and Lifetime Membership pages - see functions.php.
   Markup: template-parts/bf-deals.php, page-lifetime-membership.php
     -hi       hot deals hero: offer, price, coupon + sale artwork
     -plans    clear pricing cards
     -deco     decorative images (gifts, ribbons, tags...)
     -lft      lifetime membership layer
   The Spooky Sale page keeps spooky.css.
   ============================================ */

.upa-bf {
  --bf-red: #e5121d;
  --bf-red-dark: #b80d16;
  --bf-navy: var(--color-upa-navy, #0b2545);
  --bf-gold: #ffc05a;
  --bf-gold-dark: #f2a930;
  --bf-green: var(--color-upa-green, #00c389);
}

/* ---------- Hero ---------- */
.upa-bf-hi {
  position: relative;
  background: #111 url("../img/bf/upa-bf-hero-bg.webp") center / cover no-repeat;
  overflow: hidden;
}

.upa-bf-hi-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 40px;
}

.upa-bf-hi-art {
  width: 100%;
  max-width: 460px;
}

.upa-bf-hi-art img {
  display: block;
  width: 100%;
  height: auto;
}

.upa-bf-hi-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.upa-bf-hi-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

/* Price in a white hexagon */
.upa-bf-hi-price {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 2.5 / 1;
  background: #fff;
  clip-path: polygon(11% 0, 89% 0, 100% 50%, 89% 100%, 11% 100%, 0 50%);
}

.upa-bf-hi-price > span {
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--bf-red);
  -webkit-text-stroke: .05em var(--bf-navy);
  paint-order: stroke fill;
  text-shadow: .05em .05em 0 var(--bf-navy);
}

.upa-bf-hi-label {
  display: inline-block;
  background: var(--bf-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  padding: 6px 14px;
}

/* Coupon: read-only code + Copy button inside a white pill with a red edge */
.upa-bf-hi-coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  max-width: 100%;
  background: #fff;
  border: 3px solid var(--bf-red);
  border-radius: 999px;
  padding: 4px 4px 4px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.upa-bf-hi-code {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--bf-navy);
}

.upa-bf-hi-copy {
  flex-shrink: 0;
  background: var(--bf-navy);
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 30px;
  cursor: pointer;
  transition: opacity .2s;
}

.upa-bf-hi-copy:hover {
  opacity: .85;
}

.upa-bf-hi-browse {
  display: inline-block;
  background: var(--bf-red);
  color: #fff;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 34px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  transition: background-color .2s;
}

.upa-bf-hi-browse:hover {
  background: var(--bf-red-dark);
  color: #fff;
}

@media (min-width: 1024px) {
  .upa-bf-hi-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    min-height: 460px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .upa-bf-hi-offer {
    flex: 0 0 40%;
    gap: 18px;
  }

  .upa-bf-hi-art {
    flex: 0 1 55%;
    max-width: 640px;
  }

  .upa-bf-hi-title {
    font-size: 44px;
    gap: 22px;
  }

  .upa-bf-hi-price {
    width: 400px;
  }

  .upa-bf-hi-price > span {
    font-size: 92px;
  }

  .upa-bf-hi-label {
    font-size: 15px;
  }

  .upa-bf-hi-coupon {
    width: 380px;
  }

  .upa-bf-hi-code {
    font-size: 24px;
  }

  .upa-bf-hi-copy {
    font-size: 17px;
    padding: 12px 44px;
  }

  .upa-bf-hi-browse {
    font-size: 19px;
    padding: 16px 40px;
  }
}

/* ---------- Accreditation: a red bow on each card ---------- */
.upa-bf-accred {
  background-color: var(--color-upa-green-2);
}

.upa-bf .upa-accred-card {
  position: relative;
  overflow: visible;
}

.upa-bf .upa-accred-card::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 44px;
  aspect-ratio: 300 / 202;
  background: url("../img/bf/upa-bf-bow.webp") center / contain no-repeat;
  pointer-events: none;
}

/* ---------- Decorations ---------- */
.upa-bf-deco-wrap {
  position: relative;
  overflow: hidden;
}

/* Content sits above the decorations */
.upa-bf-deco-wrap > div {
  position: relative;
  z-index: 1;
}

.upa-bf-deco {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Heading with the % sale tag after it */
.upa-bf-tag-head img {
  display: inline-block;
  width: 52px;
  height: auto;
  margin-left: 6px;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .upa-bf-tag-head img {
    width: 72px;
  }
}

/* Course categories: ribbon top-left, gift bottom-left, ribbon right (md+) */
.upa-bf-cats-ribbon {
  left: 0;
  top: 0;
  width: 70px;
}

.upa-bf-cats-gift,
.upa-bf-cats-ribbon-r {
  display: none;
}

@media (min-width: 768px) {
  .upa-bf-cats-ribbon {
    width: 110px;
  }

  .upa-bf-cats-gift,
  .upa-bf-cats-ribbon-r {
    display: block;
  }

  .upa-bf-cats-gift {
    left: 0;
    bottom: 0;
    width: 80px;
  }

  .upa-bf-cats-ribbon-r {
    right: 0;
    bottom: 10px;
    width: 160px;
  }
}

/* ---------- Clear pricing ---------- */
.upa-bf-plans {
  background: #f3f3f3 url("../img/bf/upa-bf-pricing-bg.webp") center / cover no-repeat;
}

.upa-bf-plans-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.upa-bf-plan {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 330px;
  background: #fff;
  border: 6px solid #8d8d8d;
  border-radius: 20px;
  padding: 22px 22px 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  color: var(--bf-navy);
}

.upa-bf-plan-lifetime {
  border-color: #7d2a31;
}

.upa-bf-plan-ribbon {
  position: absolute;
  top: 22px;
  right: -42px;
  width: 170px;
  transform: rotate(45deg);
  background: var(--bf-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}

.upa-bf-plan-off {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--bf-green);
}

.upa-bf-plan-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--bf-navy);
  padding-right: 40px;
}

.upa-bf-plan-price {
  margin: 8px 0 0;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: var(--bf-red);
}

.upa-bf-plan-price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--bf-navy);
  margin-left: 2px;
}

.upa-bf-plan-regular {
  margin: 10px 0 0;
  font-size: 14px;
  color: #6b6b6b;
}

.upa-bf-plan-access {
  margin: 4px 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.upa-bf-plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.upa-bf-plan-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}

.upa-bf-plan-list svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--bf-green);
}

.upa-bf-plan-btn {
  display: block;
  width: max-content;
  margin: 16px auto 0;
  background: var(--bf-gold);
  color: var(--bf-navy);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 28px;
  text-decoration: none;
  transition: background-color .2s;
}

.upa-bf-plan-btn:hover {
  background: var(--bf-gold-dark);
  color: var(--bf-navy);
}

.upa-bf-plans-or {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bf-navy);
}

/* Gifts, ribbons and the tag only from md, they would cover the cards on phones */
.upa-bf-plans-ribbon-l,
.upa-bf-plans-gifts,
.upa-bf-plans-tag,
.upa-bf-plans-ribbon-r {
  display: none;
}

@media (min-width: 768px) {
  .upa-bf-plans-row {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .upa-bf-plan {
    max-width: 340px;
  }

  .upa-bf-plans-ribbon-l,
  .upa-bf-plans-gifts,
  .upa-bf-plans-tag,
  .upa-bf-plans-ribbon-r {
    display: block;
  }

  .upa-bf-plans-ribbon-l {
    left: 0;
    top: 8%;
    width: 18%;
    max-width: 260px;
  }

  .upa-bf-plans-gifts {
    left: 0;
    bottom: 0;
    width: 12%;
    max-width: 170px;
  }

  .upa-bf-plans-tag {
    right: 4%;
    top: 6%;
    width: 11%;
    max-width: 150px;
  }

  .upa-bf-plans-ribbon-r {
    right: 0;
    bottom: 4%;
    width: 13%;
    max-width: 190px;
    transform: scaleX(-1);
  }
}

/* ---------- Course library: gift left, ribbon right (xl+) ---------- */
.upa-bf-lib-gift,
.upa-bf-lib-ribbon {
  display: none;
}

@media (min-width: 1280px) {
  .upa-bf-lib-gift,
  .upa-bf-lib-ribbon {
    display: block;
  }

  .upa-bf-lib-gift {
    left: 0;
    top: 62%;
    width: 90px;
  }

  .upa-bf-lib-ribbon {
    right: -40px;
    top: 52%;
    width: 220px;
    transform: rotate(-20deg);
  }
}

/* ---------- FAQ: megaphone by the heading, gifts bottom-left (lg+) ---------- */
.upa-bf-faq-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.upa-bf-faq-head img {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.upa-bf-faq-gifts {
  display: none;
}

@media (min-width: 768px) {
  .upa-bf-faq-head img {
    width: 96px;
  }
}

@media (min-width: 1024px) {
  .upa-bf-faq-gifts {
    display: block;
    left: 1%;
    bottom: 24px;
    width: 9%;
    max-width: 140px;
  }
}

/* ---------- Reviews: ribbon top-left (md+) ---------- */
.upa-bf-rev-ribbon {
  display: none;
  left: 0;
  top: 0;
}

@media (min-width: 768px) {
  .upa-bf-rev-ribbon {
    display: block;
    width: 120px;
  }
}

/* ============================================
   LIFETIME MEMBERSHIP (upa-bf-lft-*)
   Black Friday layer over the existing upa-lftsub-* page:
   mint hero with the BF package logo, decorations per section.
   Shared sections (accreditation, categories, reviews) use the
   hot deals rules above.
   ============================================ */

.upa-bf-lft .upa-lftsub-hi-badge img {
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* .upa-btn colours come from these custom properties (buttons.css) */
.upa-bf-lft .upa-lftsub-hi-plan-btn {
  --_bg-base: var(--bf-gold);
  --_bg-hover: var(--bf-gold-dark);
  --_text-base: var(--bf-navy);
  --_text-hover: var(--bf-navy);
}

/* ---------- How to start: gifts bottom-left, ribbon right (lg+) ---------- */
.upa-bf-lft-steps-gifts,
.upa-bf-lft-steps-ribbon {
  display: none;
}

@media (min-width: 1024px) {
  .upa-bf-lft-steps-gifts,
  .upa-bf-lft-steps-ribbon {
    display: block;
  }

  .upa-bf-lft-steps-gifts {
    left: 0;
    bottom: 40px;
    width: 9%;
    max-width: 140px;
  }

  .upa-bf-lft-steps-ribbon {
    right: -30px;
    top: 0;
    width: 16%;
    max-width: 240px;
    transform: rotate(-10deg);
  }
}

/* ---------- Money back: ribbon + gift left, megaphone right (md+) ---------- */
.upa-bf-lft-grnt-ribbon,
.upa-bf-lft-grnt-gift,
.upa-bf-lft-grnt-mega {
  display: none;
}

@media (min-width: 768px) {
  .upa-bf-lft-grnt-ribbon,
  .upa-bf-lft-grnt-gift,
  .upa-bf-lft-grnt-mega {
    display: block;
  }

  .upa-bf-lft-grnt-ribbon {
    left: 0;
    top: 0;
    width: 110px;
  }

  .upa-bf-lft-grnt-gift {
    left: 1%;
    bottom: 16px;
    width: 64px;
  }

  .upa-bf-lft-grnt-mega {
    right: 4%;
    top: 16px;
    width: 96px;
  }
}

/* ---------- FAQ: gold gift left, gifts top-right, ribbon right (lg+) ---------- */
.upa-bf-lft-faq-gift,
.upa-bf-lft-faq-gifts,
.upa-bf-lft-faq-ribbon {
  display: none;
}

@media (min-width: 1024px) {
  .upa-bf-lft-faq-gift,
  .upa-bf-lft-faq-gifts,
  .upa-bf-lft-faq-ribbon {
    display: block;
  }

  .upa-bf-lft-faq-gift {
    left: 3%;
    top: 50%;
    width: 8%;
    max-width: 120px;
    transform: translateY(-30%);
  }

  .upa-bf-lft-faq-gifts {
    right: 2%;
    top: 40px;
    width: 9%;
    max-width: 140px;
  }

  .upa-bf-lft-faq-ribbon {
    right: 0;
    bottom: 40px;
    width: 14%;
    max-width: 200px;
  }
}

/* ---------- Ready to start: ribbon top-left, gifts bottom-right (md+) ---------- */
.upa-bf-lft-cta-ribbon,
.upa-bf-lft-cta-gifts {
  display: none;
}

@media (min-width: 768px) {
  .upa-bf-lft-cta-ribbon,
  .upa-bf-lft-cta-gifts {
    display: block;
  }

  .upa-bf-lft-cta-ribbon {
    left: 0;
    top: 0;
    width: 120px;
  }

  .upa-bf-lft-cta-gifts {
    right: 3%;
    bottom: 12px;
    width: 90px;
  }
}

/* ---------- Question form: laptop with the BF tag on the right (lg+) ---------- */
.upa-bf-lft-form-laptop {
  display: none;
}

@media (min-width: 1024px) {
  .upa-bf-lft-form-laptop {
    display: block;
    right: 3%;
    top: 50%;
    width: 24%;
    max-width: 330px;
    transform: translateY(-50%);
  }
}

/* Black Friday landing page: pricing section as the lifetime counter-offer under the hero */
main.upa-bf .upa-bf-counter-eyebrow { margin: 0 0 .5rem; color: #e11d2a; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
