/* Shopee Black Friday affiliate banner (my/ pages). Design: design-reference/shopeeBlackFridayBanner.html */
.shopee-bf,
.shopee-bf:hover,
.shopee-bf:focus-visible {
  text-decoration: none;
}
.shopee-bf {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 24px;
  container: shopee-bf / inline-size;
}
.shopee-bf__inner {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 180px;
  padding: 22px 24px 22px 40px;
  padding-left: clamp(24px, 4.2cqi, 40px);
  border-radius: 14px;
  overflow: hidden;
  background: #ee4d2d;
  color: #0b0b0b;
  font-family: "Poppins", system-ui, sans-serif;
  box-shadow: 0 10px 30px -10px rgba(238, 77, 45, 0.7);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.shopee-bf:hover .shopee-bf__inner,
.shopee-bf:focus-visible .shopee-bf__inner {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(238, 77, 45, 0.85);
}

/* Left column: brand, headline, sub-line */
.shopee-bf__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shopee-bf__top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.shopee-bf__brand {
  font-size: 32px;
  font-size: clamp(24px, 3.4cqi, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.shopee-bf__tag {
  padding: 5px 10px;
  border-radius: 5px;
  background: #0b0b0b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.shopee-bf__headline {
  margin: 0;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  font-size: 70px;
  font-size: clamp(48px, 7.3cqi, 70px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.shopee-bf__headline br {
  display: none;
}
.shopee-bf__sub {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

/* Right column: white offer card */
.shopee-bf__offer {
  flex: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 136px;
  padding: 0 20px;
  border-radius: 12px;
  background: #fff;
}
.shopee-bf__discount {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.shopee-bf__upto {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
}
.shopee-bf__pct,
.shopee-bf__off {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
}
.shopee-bf__pct {
  font-size: 72px;
  font-size: clamp(56px, 7.5cqi, 72px);
  line-height: 0.9;
  color: #ee4d2d;
}
.shopee-bf__off {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.shopee-bf__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #0b0b0b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.shopee-bf__arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.shopee-bf:hover .shopee-bf__arrow {
  transform: translateX(3px);
}
.shopee-bf__short {
  display: none;
}

/* Compact layout whenever the banner itself is narrow (phones, or the col-lg-6 column on the STPM pages) */
@container shopee-bf (max-width: 679px) {
  .shopee-bf__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "top top"
      "head offer";
    align-items: center;
    gap: 8px 10px;
    min-height: 0;
    padding: 14px 16px;
    border-radius: 12px;
  }
  .shopee-bf__main {
    display: contents;
  }
  .shopee-bf__top {
    grid-area: top;
    gap: 8px;
  }
  .shopee-bf__brand {
    margin-right: auto;
    font-size: 24px;
  }
  .shopee-bf__tag {
    padding: 4px 8px;
    font-size: 10px;
  }
  .shopee-bf__headline {
    grid-area: head;
    font-size: clamp(44px, 20cqi - 16px, 64px);
    white-space: normal;
  }
  .shopee-bf__headline br {
    display: inline;
  }
  .shopee-bf__sub,
  .shopee-bf__upto,
  .shopee-bf__long {
    display: none;
  }
  .shopee-bf__short {
    display: inline;
  }
  .shopee-bf__offer {
    grid-area: offer;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    padding: 8px 12px;
    border-radius: 10px;
  }
  .shopee-bf__discount {
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
  }
  .shopee-bf__pct {
    font-size: clamp(40px, 12cqi, 56px);
  }
  .shopee-bf__off {
    font-size: 16px;
    letter-spacing: normal;
  }
  .shopee-bf__cta {
    gap: 4px;
    padding: 6px 12px;
    font-size: 11px;
  }
  .shopee-bf__arrow {
    font-size: 12px;
  }
}

/* Wider compact banners (large phones, the STPM column) have room for the sub-line under the headline */
@container shopee-bf (min-width: 480px) and (max-width: 679px) {
  .shopee-bf__inner {
    grid-template-areas:
      "top top"
      "head offer"
      "sub offer";
  }
  .shopee-bf__sub {
    display: block;
    grid-area: sub;
    align-self: start;
    font-size: 13px;
  }
}
