/* The only selectors used are inside .cfb-banner: no changes to the surrounding WooCommerce theme. */
.cfb-banner,
.cfb-banner * { box-sizing: border-box; }
.cfb-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-height: 390px;
  margin: 24px auto;
  padding: clamp(25px, 5vw, 56px);
  overflow: hidden;
  border-radius: 18px;
  background: #f0e5df;
  font-family: inherit;
  color: #292321;
}
.cfb-banner__photo,
.cfb-banner__gradient { position: absolute; inset: 0; pointer-events: none; }
.cfb-banner__photo { z-index: -2; background-repeat: no-repeat; background-position: center; background-size: cover; }
.cfb-banner__gradient {
  z-index: -1;
  background: linear-gradient(90deg, rgba(248,241,237,.04) 0%, rgba(248,241,237,.40) 33%, rgba(248,241,237,.92) 57%, rgba(248,241,237,.97) 100%);
}
.cfb-banner__content { width: min(67%, 740px); max-width: 100%; text-align: center; }
.cfb-banner__heading { margin: 0 0 8px !important; color: #2d2421 !important; font-size: clamp(27px, 2.8vw, 42px) !important; line-height: 1.13 !important; font-weight: 650; letter-spacing: -.035em; }
.cfb-banner__subtitle { margin: 0 auto 24px !important; max-width: 550px; color: #594c49; font-size: clamp(13px, 1.15vw, 16px); line-height: 1.55; }
.cfb-banner__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); }
.cfb-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 10px 15px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 15px;
  background: rgba(255,255,255,.89);
  box-shadow: 0 8px 24px rgba(53,32,20,.055);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cfb-card__icon { display:flex; align-items:center; justify-content:center; width:38px; height:38px; margin-bottom:8px; }
.cfb-card__icon svg { width:32px; height:32px; }
.cfb-card--facebook .cfb-card__icon { color: #1877f2; }
.cfb-card--instagram .cfb-card__icon { color: #c13584; }
.cfb-card--tiktok .cfb-card__icon { color: #121212; }
.cfb-card__network { font-size: 13px; font-weight: 700; line-height: 1.3; }
.cfb-card__number { margin-top: 7px; font-size: clamp(21px, 2.25vw, 29px); font-weight: 750; line-height: 1.08; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #241d1b; }
.cfb-card__followers { margin-top: 3px; margin-bottom: 16px; font-size: 12px; color: #756965; }
.cfb-card__join,
.cfb-card__join:visited {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 135px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--cfb-accent, #946B61);
  background: var(--cfb-accent, #946B61);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: transform .15s ease, filter .15s ease;
}
.cfb-card__join:hover { color:#fff !important; filter: brightness(.93); transform:translateY(-2px); }
.cfb-card__join:focus-visible { outline: 3px solid #1f6aff; outline-offset: 3px; }
.cfb-card__join--disabled { opacity: .43; cursor: default; filter: grayscale(.4); }
.cfb-card__join--disabled:hover { transform: none; filter: grayscale(.4); }
@media (max-width: 900px) {
  .cfb-banner { padding: 32px 22px; min-height: 355px; }
  .cfb-banner__content { width: min(77%, 650px); }
}
@media (max-width: 680px) {
  .cfb-banner { display: block; min-height: 0; padding: 38px 14px 20px; border-radius: 14px; }
  .cfb-banner__photo { background-position: 25% center; }
  .cfb-banner__gradient { background: linear-gradient(180deg, rgba(249,242,239,.83) 0%, rgba(249,242,239,.96) 48%, rgba(249,242,239,.98) 100%); }
  .cfb-banner__content { width: 100%; }
  .cfb-banner__heading { font-size: clamp(24px, 6vw, 34px) !important; }
  .cfb-banner__subtitle { margin-bottom: 18px !important; }
  .cfb-banner__cards { gap: 7px; }
  .cfb-card { padding: 15px 5px 12px; border-radius: 10px; }
  .cfb-card__icon { width: 29px; height: 29px; margin-bottom: 6px; }
  .cfb-card__icon svg { width: 26px; height: 26px; }
  .cfb-card__network { font-size: 11px; }
  .cfb-card__number { font-size: clamp(17px, 4.3vw, 23px); }
  .cfb-card__followers { font-size: 10px; margin-bottom: 12px; }
  .cfb-card__join { min-height: 32px; font-size: 11px; padding: 7px 5px; }
}

/* Trust-only version (show_join="no") for product pages: no links and less unused space. */
.cfb-banner.cfb-banner--no-join { min-height: 315px; }
.cfb-banner--no-join .cfb-card { padding-bottom: 21px; }
.cfb-banner--no-join .cfb-card__followers { margin-bottom: 0; }
@media (max-width: 680px) {
  .cfb-banner.cfb-banner--no-join { min-height: 0; padding: 30px 14px 20px; }
  .cfb-banner--no-join .cfb-card { padding-bottom: 17px; }
}
