/* === Unified truck promo: one class on the duplicated desktop row ===
/* Link colour (applies to all breakpoints) */
.bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > p:last-child a {
  color: #1e39d2;
  text-decoration: none;
}

/* ---- Tablet (768px - 1024px) ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Grey rounded box like the original tablet row */
  .bf-truck-unified {
    background-color: #f5f5f5 !important;
    border-radius: 8px !important;
  }

  /* Single-column wrapper with the original top/bottom padding */
  .bf-truck-unified > .kt-row-column-wrap {
    grid-template-columns: minmax(0, 1fr) !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  /* Hide the desktop "Try Before Your Order" column */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:first-child {
    display: none !important;
  }

  /* Free Shipping column: strip desktop grey-box styling */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child {
    padding: 0 !important;
    margin: 0 !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col {
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  /* WP Columns: recreate the original 23% / 77% two-column Kadence grid */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 23%) minmax(0, 77%) !important;
    gap: 12px !important;
    align-items: start !important;
    margin: 0 !important;
  }

  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column {
    padding: 0 !important;
    margin: 0 !important;
    align-self: start !important;
  }

  /* Truck image: 100px visible area, offset 35px from the column edge */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:first-child .wp-block-kadence-image {
    max-width: 135px !important;
    width: 100% !important;
    padding: 0 !important;
    padding-left: 35px !important;
    margin: 0 !important;
    margin-left: 0 !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:first-child .wp-block-kadence-image figure {
    width: 100px !important;
    max-width: 100px !important;
    padding-bottom: 75% !important;
    height: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:first-child .wp-block-kadence-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: bottom center !important;
    display: block !important;
    padding: 0 !important;
  }

  /* Heading + body */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:last-child > h2 {
    font-size: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:last-child > p {
    font-size: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 32px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.25em !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:last-child > p br {
    display: none !important;
  }

  /* Link sits directly under the body text, aligned with the text column */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > p:last-child {
    font-size: 14px !important;
    margin-top: -30px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-left: calc(23% + 12px) !important;
  }
}

/* ---- Mobile (<=767px) ---- */
@media (max-width: 767px) {
  /* Grey rounded box like the original mobile row */
  .bf-truck-unified {
    background-color: #f5f5f5 !important;
    border-radius: 8px !important;
  }

  /* Single-column wrapper; capped + centred like the original mobile row */
  .bf-truck-unified > .kt-row-column-wrap {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 16px !important;   /* 2026-11-24 Figma mobile: card vertical padding 16 top / 20 bottom (was 24/24) */
    padding-bottom: 20px !important;
  }

  /* Hide the desktop "Try Before Your Order" column */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:first-child {
    display: none !important;
  }

  /* Free Shipping column: strip desktop grey-box styling */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child {
    padding: 0 !important;
    margin: 0 !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col {
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
  }

  /* WP Columns: recreate the original 1:2 two-column Kadence grid */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) !important;
    gap: 32px !important;
    align-items: start !important;
    margin: 0 !important;
  }

  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column {
    padding: 0 !important;
    margin: 0 !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:first-child {
    align-self: stretch !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:last-child {
    align-self: start !important;
  }

  /* Truck image: fills the left column with the original mobile offset */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:first-child .wp-block-kadence-image {
    max-width: calc(100% - 15px) !important;
    width: calc(100% - 15px) !important;
    padding: 0 !important;
    margin: 20px 0 0 15px !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:first-child .wp-block-kadence-image figure {
    width: 100% !important;
    max-width: none !important;
    padding-bottom: 75% !important;
    height: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:first-child .wp-block-kadence-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: bottom center !important;
    display: block !important;
    padding: 0 !important;
  }

  /* Heading + body */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:last-child > h2 {
    font-size: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;   /* 2026-11-24 Figma mobile text gap 4 (was 5) */
  }
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > .wp-block-columns > .wp-block-column:last-child > p {
    font-size: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 32px !important;
  }

  /* Link sits directly under the body text, aligned with the text column */
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > p:last-child {
    font-size: 14px !important;
    margin-top: -24px !important;   /* 2026-11-24 Figma mobile: desc->link gap 8 (desc mb 32 unchanged; was -15 -> 17) */
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-left: calc((100% - 32px) / 3 + 32px) !important;
  }
}

/* Taller mobile landscape screens: the image column is much larger than the text column,
   so pull the link up further to sit directly under the body copy. */
@media (max-width: 767px) and (orientation: landscape) {
  .bf-truck-unified > .kt-row-column-wrap > .wp-block-kadence-column:last-child > .kt-inside-inner-col > p:last-child {
    margin-top: -44px !important;
  }
  .bf-truck-unified > .kt-row-column-wrap {
    padding-bottom: 45px !important;
  }
}


/* --- Fancy Hover Card: Selective Hover Effect with Unified Shadow and for 
      setting the captions captionsas H2 Header Tags--- */
.fancy-hover-card {
  position: relative;
  display: inline-block;
  background: transparent;
  overflow: visible !important;
  transform: none !important;
}
.fancy-hover-card figure {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  min-height: 1px !important;
}
.fancy-hover-card figure img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 0;
}

/* Base caption styles - duplicated for both figcaption and h2 */
.fancy-hover-card figure figcaption,
.fancy-hover-card figure .kb-fake-caption,
.wp-block-kadence-image figure .kb-fake-caption {
  background: #fff;
  text-align: left;
  padding: 14px 1px 16px;
  margin-top: 0;
  border-radius: 0;
  font-weight: 400;
  position: relative;
  z-index: 1;
  display: block !important;
}

/* Desktop base override */
.fancy-hover-card figure .kb-fake-caption,
.wp-block-kadence-image figure .kb-fake-caption {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  color: #000 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Desktop (>=1025px) card state — 2026-11-01, per the Figma "Goods card";
   chrome updated 2026-11-11 per the new Figma: the whole CARD now carries a
   1px #E7E7E7 border (image + caption together — not just the image) with
   12px corners on the figure itself (overflow:hidden clips the flat image to
   them; the caption's own rounding goes away so no double seam). The hover
   still changes ONE thing only: the shadow — now the Figma drop shadow
   (X0 Y4 Blur12 Spread0, black 10%). Tablet/mobile rules are untouched. */
@media (min-width: 1025px) {
  .fancy-hover-card figure {
    border: 1px solid #E7E7E7;
    border-radius: 12px;
  }
  .fancy-hover-card figure img {
    border-radius: 0 !important;   /* !important: the builder's per-image radius prints as instance CSS with higher specificity */
  }
  .fancy-hover-card figure figcaption,
  .fancy-hover-card figure .kb-fake-caption,
  .wp-block-kadence-image figure .kb-fake-caption {
    border-radius: 0;              /* the figure's own corners + overflow clip it */
    padding: 14px 16px 16px;
  }
  .fancy-hover-card figure:hover {
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1);   /* Figma: X0 Y4 Blur12 Spread0 #000 10% */
    z-index: 6;
  }
}

/* MOBILE */
@media (max-width: 767px) {
  .wp-block-kadence-image figure .kb-fake-caption,
  .wp-block-kadence-image figure figcaption,
  .fancy-hover-card figure .kb-fake-caption,
  .fancy-hover-card figure figcaption {
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: #666666 !important;
    text-align: left !important;
    margin-top: 0 !important;
    padding-top: 8px !important; 
  }
}

/* TABLET */
@media (max-width: 1024px) and (min-width: 768px) {
  .wp-block-kadence-image figure .kb-fake-caption,
  .wp-block-kadence-image figure figcaption {
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: #666666 !important;
    text-align: left !important;
    margin-top: 0 !important;
    padding: 0px 1px 16px !important;
  }
}
/* --- Fancy Hover Card: Selective Hover Effect with Unified Shadow ENDING --- */




/* ============================================================
   Homepage — "Custom Swag" 12-card single grid
   ------------------------------------------------------------
   REQUIREMENT: the parent Section holding the 12 card Sections
   must have the custom class:  swag-cards-grid
   (Block sidebar → Advanced → Additional CSS class(es))

   Uses only: the custom class, Kadence's stable theme wrapper
   id #main, and Kadence framework classes. No per-block hashes.

   Verified pixel-identical vs the old rows at:
   1440 / 1025 / 1024 / 830 / 768 / 767 / 430 / 375 px
   ============================================================ */

/* Reset Kadence Section chrome on the container + its 12 cards,
   so only this grid controls their box. */
#main .swag-cards-grid { padding: 0 !important; background: none !important; border: none !important; }
#main .swag-cards-grid .wp-block-kadence-column { margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important; background: none !important; border: none !important; }
#main .swag-cards-grid .wp-block-kadence-column > .kt-inside-inner-col { padding: 0 !important; margin: 0 !important; max-width: none !important; }

/* Desktop >=1025px — 4 per row.
   Matches the old desktop rows exactly:
   291px cards, 40px column gaps, 48px row rhythm. */
@media (min-width: 1025px) {
  #main .swag-cards-grid > .kt-inside-inner-col {
    display: grid !important; grid-template-columns: repeat(4, 1fr) !important;
    column-gap: 40px !important; row-gap: 48px !important;
    padding: 0 !important; margin: 0 !important; max-width: none !important;
  }
}

/* Tablet 768–1024px — 3 per row.
   Matches the old tablet duplicates exactly:
   321.5px cards @1024 (256.8 @830, 236.2 @768), 16px gaps, 32px rows,
   10px side inset with the alignwide overhang, 300px centered images
   (full column under 300px) and 10px image-to-caption gap. */
@media (min-width: 768px) and (max-width: 1024px) {
  #main .swag-cards-grid > .kt-inside-inner-col {
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important;
    column-gap: 16px !important; row-gap: 32px !important;
    margin: 0 -12.7083px !important; padding: 0 10px !important; max-width: none !important;
  }
  #main .swag-cards-grid .wp-block-kadence-image { width: 100% !important; }
  #main .swag-cards-grid .wp-block-kadence-image figure {
    width: 100% !important; max-width: 300px !important; margin-bottom: 10px !important;
  }
  #main .swag-cards-grid .wp-block-kadence-image img { width: 100% !important; height: auto !important; }
}

/* Mobile <=767.98px — 2 per row.
   Matches the old mobile rows: ~196px columns, 16px gaps.
   Images are intentionally NOT forced here — the native
   (shrink-to-fit, centered) image behavior is what the old
   mobile rows render, so cards stay pixel-identical.
   (767.98 avoids a fractional-viewport gap at exactly 767px.) */
@media (max-width: 767.98px) {
  #main .swag-cards-grid > .kt-inside-inner-col {
    display: grid !important; grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 16px !important; row-gap: 16px !important;
    margin: 0 -12.7083px !important; padding: 15px 8px !important; max-width: none !important;
  }
}

/* ============================================================
   Fix (desktop only): hover shadows on cards along the grid's
   left/right/bottom edges were clipped at the grid's outer box.
   Cause: the grid column gets content-visibility:auto (Kadence
   performance feature), which paint-clips overflowing shadows.
   Setting it to 'visible' on this grid restores full shadows on
   edge cards; middle cards were never affected. Shadow value
   itself is unchanged.
   ============================================================ */
@media (min-width: 1025px) {
  #main .swag-cards-grid { content-visibility: visible !important; }
}

/* ============================================================
   Homepage — consistent 16px edge padding (tablet + mobile ONLY)
   ------------------------------------------------------------
   The truck banner and the swag cards grid now sit exactly 16px
   from the content edges on <=1024px. Both derive from Kadence's
   --global-content-edge-padding variable, so the distance is exact
   even if the theme's edge padding ever changes. Desktop is fully
   untouched. (2026-09-23)

   Cards note: images fill their cells now (the 300px tablet cap +
   centering is lifted in these breakpoints) — otherwise the outermost
   image edges would float inside the 16px line instead of on it.
   ============================================================ */

/* ---- Tablet (768px - 1024px) ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Truck banner: 16px from the content edges */
  #main .bf-truck-unified {
    margin-left: calc(16px - var(--global-content-edge-padding)) !important;
    margin-right: calc(16px - var(--global-content-edge-padding)) !important;
  }
  /* Cards grid: kill the alignwide overhang, inset the content to 16px */
  #main .swag-cards-grid > .kt-inside-inner-col {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: calc(16px - var(--global-content-edge-padding)) !important;
    padding-right: calc(16px - var(--global-content-edge-padding)) !important;
  }
  #main .swag-cards-grid .wp-block-kadence-image figure {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ---- Mobile (<=767px) ---- */
@media (max-width: 767px) {
  #main .bf-truck-unified {
    margin-left: calc(16px - var(--global-content-edge-padding)) !important;
    margin-right: calc(16px - var(--global-content-edge-padding)) !important;
  }
}

@media (max-width: 767.98px) {
  #main .swag-cards-grid > .kt-inside-inner-col {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: calc(16px - var(--global-content-edge-padding)) !important;
    padding-right: calc(16px - var(--global-content-edge-padding)) !important;
  }
}

/* ============================================================
   Homepage — promo banner ("Need Year-End Gifts") 16px edges
   (tablet + mobile rows ONLY; the desktop row is untouched)
   ------------------------------------------------------------
   Same 16px edge convention as the truck banner / swag cards.
   The page has THREE separate promo Row Layouts (tablet-only,
   mobile-only, desktop-only). The two breakpoint rows carry our
   bf-promo-banner class (builder: Block → Advanced → Additional
   CSS class) — the class is the deliberate stable anchor; only
   those rows get the inset, and only inside their own breakpoint's
   media query, so the desktop row can never be affected.
   (2026-09-23)
   ============================================================ */

/* Tablet row (shows only 768–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  #main .bf-promo-banner {
    margin-left: calc(16px - var(--global-content-edge-padding)) !important;
    margin-right: calc(16px - var(--global-content-edge-padding)) !important;
  }
}

/* Mobile row (shows only <=767px) */
@media (max-width: 767px) {
  #main .bf-promo-banner {
    margin-left: calc(16px - var(--global-content-edge-padding)) !important;
    margin-right: calc(16px - var(--global-content-edge-padding)) !important;
  }
}

/* ============================================================
   Homepage — HERO BANNER text/shadow overlay (bf-hero-banner)
   ------------------------------------------------------------
   REQUIREMENT: the hero Advanced Image block must carry the
   custom class  bf-hero-banner  (Block sidebar -> Advanced ->
   Additional CSS class(es)). Without the class every rule here
   is inert, so this CSS is safe to deploy before the builder
   edit.

   The banner artwork (file 1926x878 = the 1284x585 Figma design
   at 1.5x) carries NO text/shadows/button. The heading and
   description are REAL elements (h2.bf-hero-title /
   p.bf-hero-desc) injected into the block markup server-side by
   the "Snippet for Performance Gains" Section 7B render_block
   filter — selectable, semantic, present in the initial HTML.
   The shadows are pure CSS (see the shadows note below). The
   composition scales at EVERY width, not just breakpoints: the
   image block is a query container (container-type) and all
   sizes/offsets are fractions of the ARTWORK width via cqw.
   Numbers are (Figma px / 1284) fractions of the artwork width;
   unitless line-heights and em letter-spacing scale by
   themselves.

   Artwork box vs block box: at <=1024px Kadence puts 7px side
   padding on the img (measured live), so the artwork is inset
   7px from the block box on each side; --bf-hero-pad compensates.
   If the image block is ever recreated and that padding changes,
   update the two pad rules.

   Geometry source (Figma dump, design width 1284px):
     heading 3 lines at x=863, tops 177/227/277, 44px/50px w600
     desc x=866 y=332 w=409, 20px/30px w500, 2 lines, capitalize
     shadows = Group 42, three gradient bands (see note below)
   ============================================================ */
#main .bf-hero-banner {
  position: relative;
  container-type: inline-size;
  --bf-hero-pad: 0px;
  --bf-hero-w: calc(100cqw - 2 * var(--bf-hero-pad));
}
@media (max-width: 1024px) {
  #main .bf-hero-banner { --bf-hero-pad: 7px; }
}

/* Heading + description — REAL elements (h2.bf-hero-title,
   p.bf-hero-desc) injected into the block markup by the
   "Snippet for Performance Gains" Section 7B render_block filter.
   Real text = selectable/copyable, semantic (h2+p), in the initial
   HTML. Same cqw geometry as the Figma design. margin/padding and
   the !important visuals override Kadence's default h2/p rules. */
#main .bf-hero-banner .bf-hero-title {
  position: absolute;
  left: calc(var(--bf-hero-pad) + var(--bf-hero-w) * 0.672118);
  top: calc(var(--bf-hero-w) * 0.137851);
  width: calc(var(--bf-hero-w) * 0.303738);
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: calc(var(--bf-hero-w) * 0.0342679) !important;
  line-height: 1.13636 !important;
  letter-spacing: -0.01em;
  color: #FFFFFF !important;
  z-index: 3;
}
#main .bf-hero-banner .bf-hero-desc {
  position: absolute;
  left: calc(var(--bf-hero-pad) + var(--bf-hero-w) * 0.672118);
  top: calc(var(--bf-hero-w) * 0.258567);
  width: calc(var(--bf-hero-w) * 0.318536);
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 500 !important;
  font-size: calc(var(--bf-hero-w) * 0.0155763) !important;
  line-height: 1.5 !important;
  color: #FFFFFF !important;
  z-index: 3;
}

/* Shadows — Group 42: the three slanted gradient bands behind the
   text. WHAT THEY ACTUALLY ARE: the title TEXT outlined to vectors,
   sheared and diagonally stacked per row (that's why band edges
   have glyph texture) — source = the user's three Figma vector
   exports. They render as real <img> elements (bf-hero-shadow-1/2/3)
   injected into the block markup by "Snippet for Performance Gains"
   Section 7B, sitting behind the h2/desc (z 1 vs 3). Format: SVG —
   universally supported (no WebP anywhere), ~32KB gzipped total
   after 0.1px coordinate rounding. Uploaded via the media library;
   URLs live in Section 7B. Position/size = the Figma bboxes in the
   same cqw system; height:auto keeps each SVG's own ratio. */
#main .bf-hero-banner img.bf-hero-shadow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  display: block;
  margin: 0;
  padding: 0;
  max-width: none;
  height: auto;
}
#main .bf-hero-banner img.bf-hero-shadow-1 {  /* row 1 band */
  left: calc(var(--bf-hero-pad) + var(--bf-hero-w) * 0.645040);
  top: calc(var(--bf-hero-w) * 0.142134);
  width: calc(var(--bf-hero-w) * 0.257492);
}
#main .bf-hero-banner img.bf-hero-shadow-2 {  /* row 2 band */
  left: calc(var(--bf-hero-pad) + var(--bf-hero-w) * 0.616394);
  top: calc(var(--bf-hero-w) * 0.181075);
  width: calc(var(--bf-hero-w) * 0.205794);
}
#main .bf-hero-banner img.bf-hero-shadow-3 {  /* row 3 band */
  left: calc(var(--bf-hero-pad) + var(--bf-hero-w) * 0.605320);
  top: calc(var(--bf-hero-w) * 0.220016);
  width: calc(var(--bf-hero-w) * 0.368755);
}

/* ============================================================
   Homepage — HERO CTA button ("Explore 30K+ Products" ->
   /all-products/), 2026-11-04
   ------------------------------------------------------------
   REQUIREMENT: the Buttons (Adv) block placed DIRECTLY after the
   hero image block carries the custom class bf-hero-cta (on the
   WRAPPER, same panel as bf-hero-banner).

   The wrapper becomes a zero-height absolute shell AND the query
   container: width:100% of entry-content = the banner width, so
   the button positions/scales with the same cqw math as the hero
   text (pure proportional scaling — the Figma tablet component's
   small size bump is intentionally not applied, per owner: it
   scales like the text). position:absolute + height:0 = the
   wrapper never pushes other content. pointer-events: none on the
   shell, auto on the link. entry-content gains position:relative
   (homepage only) purely as the anchor; verified no other homepage
   absolute element depends on it.

   Geometry: Figma desktop dump — left 863, top 424, Poppins 600
   24px/24px, padding 12/24 (= 0.5em 1em, scales with the font),
   radius 8px, dual shadow (0 3px 0 rgba(114,27,0,.5) + 0 4px 8px
   rgba(104,42,0,.4)). Hover/click = Brand Red/Brand8-Click
   #C83000, NO transition (Figma: no animations). Width/height are
   content-driven (auto) like the Figma auto-layout box.
   --bf-hero-pad: same 7px <=1024 artwork inset compensation as
   the hero text/shadows.
   ============================================================ */
body.page-id-109 .entry-content { position: relative; }
body.page-id-109 .entry-content > .bf-hero-cta {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  container-type: inline-size;
  pointer-events: none;
  z-index: 4;
  --bf-hero-pad: 0px;
  --bf-hero-cta-w: calc(100cqw - 2 * var(--bf-hero-pad));
}
@media (max-width: 1024px) {
  body.page-id-109 .entry-content > .bf-hero-cta { --bf-hero-pad: 7px; }
}
body.page-id-109 .bf-hero-cta .kb-button {
  position: absolute;
  left: calc(var(--bf-hero-pad) + var(--bf-hero-cta-w) * 0.672118);
  top: calc(var(--bf-hero-cta-w) * 0.330218);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1em !important;
  margin: 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: calc(var(--bf-hero-cta-w) * 0.018692) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  color: #FFFFFF !important;
  background: #FA3C00 !important;
  border: none !important;
  border-radius: calc(var(--bf-hero-cta-w) * 0.006230) !important;
  box-shadow: 0 calc(var(--bf-hero-cta-w) * 0.002336) 0 rgba(114, 27, 0, 0.5),
              0 calc(var(--bf-hero-cta-w) * 0.003117) calc(var(--bf-hero-cta-w) * 0.006230) rgba(104, 42, 0, 0.4) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: none !important;   /* Figma: no animations */
}
body.page-id-109 .bf-hero-cta .kb-button:hover,
body.page-id-109 .bf-hero-cta .kb-button:active {
  background: #C83000 !important;   /* Brand Red/Brand8-Click */
  color: #FFFFFF !important;
  box-shadow: 0 calc(var(--bf-hero-cta-w) * 0.002336) 0 rgba(114, 27, 0, 0.5),
              0 calc(var(--bf-hero-cta-w) * 0.003117) calc(var(--bf-hero-cta-w) * 0.006230) rgba(104, 42, 0, 0.4) !important;
}
body.page-id-109 .bf-hero-cta .kb-button:focus-visible {
  outline: 2px solid #1E39D2;
  outline-offset: 2px;
}
/* ============================================================
   SWAG CARDS — TABLET (768-1024) + MOBILE (<=767) FIGMA "Goods card"
   (2026-11-17). The desktop card chrome (1px #E7E7E7 border, 12px
   radius, white bg, image clipped to the top corners) now applies on
   ALL breakpoints. Cards stay fluid (grid 1fr tracks) so the grid
   always keeps 16px from the content edges — tablet cards scale down
   under 834 and up over it (259px @834), mobile 166px @375. Images are
   forced square (1:1 cover) per the Figma card. Card internals: 16px
   image->name gap, 24px bottom padding, name 16/24 at 16px side
   padding, 90% black. Grid gaps per the Figma dumps: tablet 12/12,
   mobile 12 row / 11 column. Desktop untouched.
   ============================================================ */
@media (max-width: 1024px) {
    #main .swag-cards-grid .wp-block-kadence-image figure,
    #main .swag-cards-grid .fancy-hover-card figure {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding-bottom: 24px;
        margin: 0 !important;
        background: #FFFFFF;
        border: 1px solid #E7E7E7;
        border-radius: 12px;
        overflow: hidden;
        box-sizing: border-box;
    }
    #main .swag-cards-grid .wp-block-kadence-image figure img,
    #main .swag-cards-grid .fancy-hover-card figure img {
        width: 100% !important;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;
        border-radius: 0 !important;
    }
    #main .swag-cards-grid .fancy-hover-card figure figcaption,
    #main .swag-cards-grid .fancy-hover-card figure .kb-fake-caption,
    #main .swag-cards-grid .wp-block-kadence-image figure .kb-fake-caption,
    #main .swag-cards-grid .wp-block-kadence-image figure figcaption {
        padding: 0 16px !important;
        border-radius: 0;
        background: transparent;
        font-size: 16px !important;
        line-height: 24px !important;
        font-weight: 400 !important;
        color: rgba(0, 0, 0, 0.9) !important;
        margin: 0 !important;
    }
}

/* Tablet: 3 columns, 12px gaps (259px cards @834, fluid both ways). */
@media (min-width: 768px) and (max-width: 1024px) {
    #main .swag-cards-grid > .kt-inside-inner-col {
        column-gap: 12px !important;
        row-gap: 12px !important;
    }
}

/* Mobile: 2 columns, 12px row / 11px column gaps (166px cards @375). */
@media (max-width: 767.98px) {
    #main .swag-cards-grid > .kt-inside-inner-col {
        column-gap: 11px !important;
        row-gap: 12px !important;
    }
}

/* ============================================================
   "BEHIND THE SCENES" TITLE DIVIDER — TABLET ONLY (2026-11-17)
   Figma "Module 4": a 1px #E7E7E7 line along the title's bottom edge,
   16px under the text, spanning the content width. Zero layout change:
   the box goes 48 -> 46 tall (30px text + 16), the 1px border adds one
   back, and margin-bottom 10 -> 11 restores the next block's exact
   position (verified live @834: the next row's top is unchanged).
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    #main .custom-heading-with-line {
        padding-bottom: 16px !important;   /* Figma: the line sits 16px under the text */
        position: relative !important;
        margin-bottom: 16px !important;   /* ...and 16px above the next row — the section grows ~21px, matching the Figma rhythm */
    }
    /* The divider itself: the h2 spans the content area (8.8px insets), so
       the line is drawn by a pseudo-element inset to exactly 16px from the
       viewport edges (the Figma 801px span). */
    #main .custom-heading-with-line::after {
        content: "";
        position: absolute;
        left: calc(16px - var(--global-content-edge-padding));
        right: calc(16px - var(--global-content-edge-padding));
        bottom: 0;
        border-bottom: 1px solid #E7E7E7;
        pointer-events: none;
    }
}

/* ============================================================
   "BEHIND THE SCENES" TITLE DIVIDER — DESKTOP (2026-11-19)
   Figma "Module 4": the same 1px #E7E7E7 line as the tablet rule
   above — 16px under the text, 44px above the row below, spanning
   the content width (the h2 is exactly as wide as the row).
   Unlike tablet, NOTHING on the h2/row is edited: an in-flow
   ::after carries its own spacing. Math: 16 top margin; bottom
   margin 28 + h2's existing 2px padding-bottom + 14px
   margin-bottom = exactly 44px to the row (the 2px padding blocks
   margin collapse, so the sums hold). The section grows 45px.
   ============================================================ */
@media (min-width: 1025px) {
    #main .custom-heading-with-line::after {
        content: "";
        display: block;
        margin: 16px 0 28px;
        border-bottom: 1px solid #E7E7E7;
        pointer-events: none;
    }
}

/* ============================================================
   HERO -> TRUCK BAR GAP — DESKTOP ONLY (2026-11-19)
   Figma: exactly 32px from the hero IMAGE's visible bottom edge to
   the visible top of the "Try Before You Order" / "Free Shipping"
   bar (red button / grey box). The DOM gap is NOT the visual gap:
   the hero block box extends 32px below the image, and the truck
   row has 18px of transparent space above its visible content
   (verified identical @1440/@1920). Compensation:
   margin-top = 32 - 32 (hero overshoot) - 18 (row inner top) = -18.
   The overlap is between two transparent regions — invisible.
   ============================================================ */
@media (min-width: 1025px) {
  #main .bf-truck-unified {
    margin-top: -18px !important;
  }
}

/* ============================================================
   SWAG CARDS — UNIFORM HEIGHT ON MOBILE (<=767px) — 2026-11-24 Figma
   Both Figma variants (1-row and 2-row names) are 230px: image 166 +
   16 gap + name zone 64. Live, the caption's 24px bottom padding made
   2-line cards 254 while 1-line cards were 230 — uneven grid rows
   (owner screenshot). Fix: caption min-height 48 (2 lines) + card
   bottom padding 0 — every card = image + 16 + 48 + 0 = 230. The
   1-line name keeps its exact position (16 below image, 24 air below
   = the Figma 1-row variant's own geometry). Tablet untouched (owner
   scoped mobile).
   ============================================================ */
@media (max-width: 767.98px) {
    #main .swag-cards-grid .wp-block-kadence-image figure,
    #main .swag-cards-grid .fancy-hover-card figure {
        padding-bottom: 0 !important;
    }
    #main .swag-cards-grid .fancy-hover-card figure figcaption,
    #main .swag-cards-grid .fancy-hover-card figure .kb-fake-caption,
    #main .swag-cards-grid .wp-block-kadence-image figure .kb-fake-caption,
    #main .swag-cards-grid .wp-block-kadence-image figure figcaption {
        min-height: 48px !important;
    }
}
/* SWAG CARDS UNIFORM MOBILE HEIGHT-END */

/* ============================================================
   "BEHIND THE SCENES" TITLE DIVIDER — MOBILE (<=767px) — 2026-11-24
   Figma "Module 4" mobile dump: the same treatment as the tablet
   pass — a 1px #E7E7E7 line 16px under the text (padding-bottom 16),
   the Module's 16px gap to the body (margin-bottom 8 -> 16), and the
   line spanning the 16px viewport edges (343px @375) even though this
   section runs 8px insets (same convention as tablet: the Figma line
   spans the content width, not the section's own wider span). The
   pseudo uses the same --global-content-edge-padding compensation
   (8px on mobile). The section grows ~25px per the Figma rhythm.
   ============================================================ */
@media (max-width: 767px) {
    #main .custom-heading-with-line {
        padding-bottom: 16px !important;
        position: relative !important;
        margin-bottom: 16px !important;   /* Figma Module gap 16 to the body (was 8) */
    }
    #main .custom-heading-with-line::after {
        content: "";
        position: absolute;
        left: calc(16px - var(--global-content-edge-padding));
        right: calc(16px - var(--global-content-edge-padding));
        bottom: 0;
        border-bottom: 1px solid #E7E7E7;
        pointer-events: none;
    }
}
/* BEHIND TITLE DIVIDER MOBILE-END */


/* ============================================================================
   BF HOME — TESTIMONIALS CAROUSEL (DESKTOP >=1025px) — Figma "Module 7"
   (2026-11-25) — "What Our Customers Say" rework per the Figma dump:
   - Title: Poppins 600 28px/42px rgba(0,0,0,.9), 16px below to the cards.
   - Cards: white, radius 16, padding 24px 16px, the Figma triple boxShadow
     (replaces the old heavy single shadow), internal gaps 8px (stars->quote)
     and 12px (quote->name group).
   - Stars: 20px (from 16), 4px apart, brand yellow #E8C61D, all five filled.
   - Quote: 14px/22px rgba(0,0,0,.6). Name: 16px/24px 600 rgba(0,0,0,.9).
     Location: 14px/22px rgba(0,0,0,.9). The Figma "x hours ago" line is
     intentionally NOT added (owner decision).
   - Arrows: Splide's stock chevrons become the Figma float buttons — 40x40
     white circles, secondary shadow, arrow-slider.svg chevron in brand blue
     (next = mirrored). They straddle the content edge (-20px) like the
     Figma module's 1396px frame around the 1284px content.
   - Shadow overflow: Splide's track clips at its box, so it gets 16px
     vertical padding offset by -16px margins — card shadows render fully
     instead of being sliced top/bottom.
   Anchors: .wp-block-kadence-testimonials (block-TYPE class) + :has() chains.
   No Kadence instance classes anywhere. Tablet/mobile untouched.
   ============================================================================ */
/* BF TESTIMONIALS — base: clone hiding REMOVED (2026-11-26). Hiding
   non-visible clones also hid the RIGHT-side peek slot whenever a clone sat
   there ("missing right side" on tablet). The loop's clones stay visible; the
   left-edge sliver is handled by the layout itself. */

@media only screen and (min-width: 1025px) {

    /* Section title — the h2 sitting directly above the carousel.
       margin-top 100px = the Figma module rhythm: the brands grid's box
       bottom sits flush with this heading's box top (0 box gap), so the
       margin IS the visual gap. NOTE: this !important margin/padding is why
       builder spacing on this heading never took effect — this rule owns it. */
    .wp-block-kadence-advancedheading:has(+ .wp-block-kadence-testimonials) {
        font-family: 'Poppins', sans-serif !important;
        font-size: 28px !important;
        font-weight: 600 !important;
        line-height: 42px !important;
        color: rgba(0, 0, 0, 0.9) !important;
        text-align: center !important;
        margin: 100px 0 16px !important;
        padding: 0 !important;
    }

    /* Cards bottom -> orange divider: exactly 100px. The builder spacer block
       right after the carousel IS the divider (its "divider" style renders an
       absolutely-positioned hr.kt-divider pinned to the BOTTOM of its inner
       .kt-block-spacer wrapper) — so both the outer block and the inner
       wrapper must be sized together, otherwise the inner stays 50px at the
       top and the band never moves. Gap = height - 16 (band is at the
       wrapper's bottom) + 8 (slides' bottom padding): 108 lands it at 100. */
    .wp-block-kadence-testimonials + .wp-block-kadence-spacer,
    .wp-block-kadence-testimonials + .wp-block-kadence-spacer.alignfull .kt-block-spacer {
        height: 108px !important;
    }

    /* Overflow model, two layers (see the matching JS module in
       globalheader-single.js):
       at REST the track overflows — shadows bleed freely into the module's
       side margins (the is-visible hiding below keeps any 4th card from
       peeking). While a MOVE runs (.bf-moving): the card BODIES hard-clip
       at the row's edges (nothing is ever visible outside the 1284 module)
       and their own box-shadows switch off; the shadows come from the
       UNCLIPPED .bf-shadow-layer the JS builds under the track (one
       card-white proxy per slide, exact same triple box-shadow + radius,
       synced per frame, fading with its card's inside-ratio) — shadows keep
       bleeding naturally and are never sliced or ghosted, and the
       rest<->moving swap is pixel-identical, so no flicker at the flips. */
    .wp-block-kadence-testimonials .splide__track {
        overflow: visible !important;
        /* constant vertical shadow room in every state (margins compensate
           the layout shift) */
        padding-top: 48px !important;
        padding-bottom: 48px !important;
        margin-top: -48px !important;
        margin-bottom: -48px !important;
    }
    .wp-block-kadence-testimonials.bf-moving {
        position: relative !important;   /* anchor for the shadow layer */
    }
    .wp-block-kadence-testimonials.bf-moving .splide__track {
        /* card BODIES hard-clip at the row's edges mid-glide — nothing is
           ever visible outside the 1284 module (owner decision 2026-11-26).
           The shadows are untouched by this: they come from the unclipped
           white-proxy layer below and keep bleeding into the margins, so the
           edge never shows a sliced shadow (the original complaint) and no
           ghost trails the cards (the transparent-proxy bug). */
        overflow: hidden !important;
    }
    /* NOTE: there is deliberately NO blanket box-shadow kill here — the JS
       manages shadows per card (fully-inside cards get proxies + inline
       box-shadow:none; transit cards keep their REAL shadows, which the
       track's overflow clip cuts at the edge exactly like the card body).
       A blanket rule would leave transit cards shadowless mid-glide. */
    .wp-block-kadence-testimonials .bf-shadow-layer {
        position: absolute !important;
        inset: 0 !important;
        overflow: visible !important;
        pointer-events: none !important;
        z-index: 0 !important;           /* first child of the block — the track's cards paint above it */
    }
    .wp-block-kadence-testimonials .bf-shadow-proxy {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        /* OPAQUE card-white, NOT transparent: on the white page the box
           itself is invisible, and it covers the shadow's dense under-card
           part exactly like the real card does — with a transparent
           background that under-shadow showed in the margins as a gray
           ghost trailing the cards mid-glide. Only the halo renders. */
        background: #ffffff !important;
        border-radius: 16px !important;
        box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
        will-change: transform !important;
    }
    /* no 4th-card peek on desktop, and a PURE slide: while a move runs, the
       .bf-moving flag (set by globalheader-single.js on arrow click / track
       drag) suspends the hiding so the incoming card glides in with the rest
       — no fade, no pop. At rest the hiding applies: the 4th card stays
       hidden, and the leaving card hides the moment the move settles (never
       lingering on the opposite side). */
    .wp-block-kadence-testimonials:not(.bf-moving) .splide__slide:not(.is-visible) {
        visibility: hidden !important;
    }

    /* Card */
    .wp-block-kadence-testimonials .kt-testimonial-item-wrap {
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;   /* quote -> name group */
        padding: 24px 16px !important;
        background: #ffffff !important;
        border: none !important;
        border-radius: 16px !important;
        height: 100% !important;      /* fill the flex-stretched slide: all cards equal */
        min-height: 234px !important; /* Figma card height floor */
        box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
    }

    /* stars -> quote gap (the card's own 8px) */
    .wp-block-kadence-testimonials .kt-testimonial-text-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Rate row: 20px stars, 4px apart, brand yellow */
    .wp-block-kadence-testimonials .kt-testimonial-rating-wrap {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        color: #E8C61D !important;
    }
    .wp-block-kadence-testimonials .kt-svg-testimonial-rating-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Quote text */
    .wp-block-kadence-testimonials .kt-testimonial-content {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 22px !important;
        color: rgba(0, 0, 0, 0.6) !important;
    }

    /* Name + location group: stacked tight, no gap */
    .wp-block-kadence-testimonials .kt-testimonial-meta-wrap,
    .wp-block-kadence-testimonials .kt-testimonial-meta-name-wrap {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        /* Kadence centers this wrap by default — with flex-column that shrinks
           the name/location block to content width and centers it. Pin left. */
        align-items: flex-start !important;
    }
    /* name/location pinned to the card bottom: identical padding from the
       bottom edge on every card regardless of quote length (the flex gap
       above becomes the minimum spacing) */
    .wp-block-kadence-testimonials .kt-testimonial-meta-wrap {
        margin-top: auto !important;
    }
    /* location always reserves two lines: the NAME line then lands at the
       same height on every card (e.g. Cassle's 2-line "United Way ..." used
       to push her name 22px up vs the 1-line cards), while the bottom-pinned
       group keeps the padding from the card's bottom edge identical */
    /* (reservation experiment removed 2026-11-26: it left a fake 22px gap
       between name and location on 1-line cards. The Figma layout is a TIGHT
       name->location stack; the group stays bottom-pinned via margin-top:auto
       on the meta wrap, so last lines keep identical padding from the bottom) */
    .wp-block-kadence-testimonials .kt-testimonial-name {
        font-family: 'Poppins', sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 24px !important;
        color: rgba(0, 0, 0, 0.9) !important;
    }
    .wp-block-kadence-testimonials .kt-testimonial-occupation {
        font-family: 'Poppins', sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 22px !important;
        color: rgba(0, 0, 0, 0.9) !important;
    }

    /* Float buttons — white circles with the secondary shadow + blue chevron */
    .wp-block-kadence-testimonials .splide__arrow {
        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        background: #ffffff !important;
        border: none !important;
        border-radius: 100px !important;
        box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 3 !important;
        cursor: pointer !important;
    }
    .wp-block-kadence-testimonials .splide__arrow:hover {
        background: #F2F3FF !important;
    }
    .wp-block-kadence-testimonials .splide__arrow svg {
        display: none !important;   /* stock Splide chevron out */
    }
    .wp-block-kadence-testimonials .splide__arrow::before {
        content: '' !important;
        width: 24px !important;
        height: 24px !important;
        background: url('https://brandifyfactory.com/wp-content/uploads/2026/11/arrow-slider.svg') center / 24px 24px no-repeat !important;
    }
    .wp-block-kadence-testimonials .splide__arrow--prev {
        left: -20px !important;
        right: auto !important;
    }
    .wp-block-kadence-testimonials .splide__arrow--next {
        right: -20px !important;
        left: auto !important;
    }
    .wp-block-kadence-testimonials .splide__arrow--next::before {
        transform: scaleX(-1) !important;   /* the asset points left — mirror it */
    }
}
/* BF HOME — TESTIMONIALS CAROUSEL-END */


/* ============================================================================
   BF HOME — TESTIMONIALS, WIDE DESKTOP (>=1440px) — the real Figma Module 7
   geometry (2026-11-25). Below 1440px: cards stay fluid and the float buttons
   straddle the carousel edges (there is no physical room for the 1396 module).
   From 1440 up: the Splide root widens to 1356px with a centered breakout past
   the 1214px column — its 35px side padding (the stock arrow room) makes the
   CARD ROW exactly 1284px, and the float buttons at the root's edges ride
   OUTSIDE the card row, exactly like the Figma module's side-edge buttons.
   ============================================================================ */
@media only screen and (min-width: 1440px) {
    .wp-block-kadence-testimonials .kt-blocks-carousel-init {
        width: 1284px !important;
        margin-left: calc(50% - 642px) !important;   /* center the 1284 card row over its column */
        padding-left: 0 !important;   /* the stock 35px arrow room is retired on wide desktop */
        padding-right: 0 !important;
    }
    /* buttons ride the module's side edges — 56px clear of the card row,
       fully outside it (the Figma module's 1396 frame = 1284 row + 56 sides) */
    .wp-block-kadence-testimonials .splide__arrow--prev {
        left: -56px !important;
    }
    .wp-block-kadence-testimonials .splide__arrow--next {
        right: -56px !important;
    }
}
/* BF HOME — TESTIMONIALS WIDE DESKTOP-END */

/* ============================================================================
   BF HOME — TESTIMONIALS (TABLET 768-1024px) — Figma Module 7 (2026-11-25)
   The carousel's fixed-288px peek behavior itself comes from the Splide
   option wrap in globalheader-single.js (constructor wrap — Kadence's init
   reads no fixedWidth/padding data attributes). This section is the VISUAL
   layer: lighter card (1px #F5F5F5 border + boxShadowTertiary + radius 8,
   per the tablet dump), 20/30 title. NO arrows — finger drag only (owner
   decision 2026-11-26); the Splide root's arrow-room padding is zeroed so the
   first card lands at the content edge like mobile.
   ============================================================================ */
@media only screen and (min-width: 768px) and (max-width: 1024px) {

    /* title: 48px below the brands grid (box gap was 0, so the margin IS the
       visual gap). Builder spacing on this heading is overridden here. */
    .wp-block-kadence-advancedheading:has(+ .wp-block-kadence-testimonials) {
        font-family: 'Poppins', sans-serif !important;
        font-size: 20px !important;
        font-weight: 600 !important;
        line-height: 30px !important;
        color: rgba(0, 0, 0, 0.9) !important;
        text-align: center !important;
        margin: 48px 0 12px !important;
        padding: 0 !important;
    }

    /* cards bottom -> orange divider: exactly 64px. The spacer block IS the
       divider (band = absolute hr pinned to its inner wrapper's bottom), so
       outer block + inner .kt-block-spacer are sized together:
       gap = height - 16 + 8, so 72 lands it at 64. */
    .wp-block-kadence-testimonials + .wp-block-kadence-spacer,
    .wp-block-kadence-testimonials + .wp-block-kadence-spacer.alignfull .kt-block-spacer {
        height: 72px !important;
    }

    .wp-block-kadence-testimonials .kt-testimonial-item-wrap {
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 24px 16px !important;
        background: #ffffff !important;
        border: 1px solid #F5F5F5 !important;
        border-radius: 8px !important;
        height: 100% !important;      /* fill the flex-stretched slide: all cards equal */
        min-height: 234px !important; /* Figma card height floor */
        box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.03), 0px 1px 6px -1px rgba(0, 0, 0, 0.02), 0px 2px 4px rgba(0, 0, 0, 0.02) !important;
    }

    /* stars -> quote 8px; quote -> name group 12px (the card's own gap) */
    .wp-block-kadence-testimonials .kt-testimonial-text-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .wp-block-kadence-testimonials .kt-testimonial-rating-wrap {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        color: #E8C61D !important;
    }
    .wp-block-kadence-testimonials .kt-svg-testimonial-rating-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    .wp-block-kadence-testimonials .kt-testimonial-content {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 22px !important;
        color: rgba(0, 0, 0, 0.6) !important;
    }
    .wp-block-kadence-testimonials .kt-testimonial-meta-wrap,
    .wp-block-kadence-testimonials .kt-testimonial-meta-name-wrap {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        /* Kadence centers this wrap by default — with flex-column that shrinks
           the name/location block to content width and centers it. Pin left. */
        align-items: flex-start !important;
    }
    /* name/location pinned to the card bottom: identical padding from the
       bottom edge on every card regardless of quote length (the flex gap
       above becomes the minimum spacing) */
    .wp-block-kadence-testimonials .kt-testimonial-meta-wrap {
        margin-top: auto !important;
    }
    /* location always reserves two lines: the NAME line then lands at the
       same height on every card (e.g. Cassle's 2-line "United Way ..." used
       to push her name 22px up vs the 1-line cards), while the bottom-pinned
       group keeps the padding from the card's bottom edge identical */
    /* (reservation experiment removed 2026-11-26: it left a fake 22px gap
       between name and location on 1-line cards. The Figma layout is a TIGHT
       name->location stack; the group stays bottom-pinned via margin-top:auto
       on the meta wrap, so last lines keep identical padding from the bottom) */
    .wp-block-kadence-testimonials .kt-testimonial-name {
        font-family: 'Poppins', sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 24px !important;
        color: rgba(0, 0, 0, 0.9) !important;
    }
    .wp-block-kadence-testimonials .kt-testimonial-occupation {
        font-family: 'Poppins', sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 22px !important;
        color: rgba(0, 0, 0, 0.9) !important;
    }

    /* no arrows on tablet either — finger drag only, like mobile. The Splide
       root's 35px arrow room goes too, so the first card lands at the content
       edge exactly like mobile. Right edge inset 8px: the site's own edge
       padding is 8px, so pulling the root's right edge 8px IN from the content
       edge lands the slider's clip at exactly viewport-16px, matching the
       16px left gap — consistent 16px on both sides. (Was -8px — a sign error
       that pushed the clip OUT to the viewport edge, so no right gap showed.) */
    .wp-block-kadence-testimonials .splide__arrow {
        display: none !important;
    }
    .wp-block-kadence-testimonials .kt-blocks-carousel-init {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-right: 8px !important;   /* clip lands at viewport-16px, mirroring the 16px left gap */
    }

}
/* BF HOME — TESTIMONIALS TABLET-END */


/* ============================================================================
   BF HOME — TESTIMONIALS (MOBILE <=767px) — Figma Module 7 (2026-11-25)
   Same fixed-288px peek carousel via the Splide wrap; NO arrows at all
   (finger drag only, per the mobile dump). Title 16px/24px. Card identical
   to the tablet card (border + tertiary shadow + radius 8).
   ============================================================================ */
@media only screen and (max-width: 767px) {

    /* title: 42px below the brands grid (box gap was 0, so the margin IS the
       visual gap). Builder spacing on this heading is overridden here. */
    .wp-block-kadence-advancedheading:has(+ .wp-block-kadence-testimonials) {
        font-family: 'Poppins', sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 24px !important;
        color: rgba(0, 0, 0, 0.9) !important;
        text-align: center !important;
        margin: 42px 0 12px !important;
        padding: 0 !important;
    }

    /* cards bottom -> orange divider: exactly 32px (Figma comment 2026-11-27 —
       the earlier 80 was re-speced down: originally 48, final design 32).
       The spacer block IS the divider (band = absolute hr pinned to its inner
       wrapper's bottom), so outer block + inner .kt-block-spacer are sized
       together: gap = height - 16 + 8, so 40 lands it at 32. */
    .wp-block-kadence-testimonials + .wp-block-kadence-spacer,
    .wp-block-kadence-testimonials + .wp-block-kadence-spacer.alignfull .kt-block-spacer {
        height: 40px !important;
    }

    .wp-block-kadence-testimonials .kt-testimonial-item-wrap {
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 24px 16px !important;
        background: #ffffff !important;
        border: 1px solid #F5F5F5 !important;
        border-radius: 8px !important;
        height: 100% !important;      /* fill the flex-stretched slide: all cards equal */
        min-height: 234px !important; /* Figma card height floor */
        box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.03), 0px 1px 6px -1px rgba(0, 0, 0, 0.02), 0px 2px 4px rgba(0, 0, 0, 0.02) !important;
    }

    /* stars -> quote 8px; quote -> name group 12px (the card's own gap) */
    .wp-block-kadence-testimonials .kt-testimonial-text-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .wp-block-kadence-testimonials .kt-testimonial-rating-wrap {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        color: #E8C61D !important;
    }
    .wp-block-kadence-testimonials .kt-svg-testimonial-rating-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    .wp-block-kadence-testimonials .kt-testimonial-content {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        font-family: 'Poppins', sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 22px !important;
        color: rgba(0, 0, 0, 0.6) !important;
    }
    .wp-block-kadence-testimonials .kt-testimonial-meta-wrap,
    .wp-block-kadence-testimonials .kt-testimonial-meta-name-wrap {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        /* Kadence centers this wrap by default — with flex-column that shrinks
           the name/location block to content width and centers it. Pin left. */
        align-items: flex-start !important;
    }
    /* name/location pinned to the card bottom: identical padding from the
       bottom edge on every card regardless of quote length (the flex gap
       above becomes the minimum spacing) */
    .wp-block-kadence-testimonials .kt-testimonial-meta-wrap {
        margin-top: auto !important;
    }
    /* location always reserves two lines: the NAME line then lands at the
       same height on every card (e.g. Cassle's 2-line "United Way ..." used
       to push her name 22px up vs the 1-line cards), while the bottom-pinned
       group keeps the padding from the card's bottom edge identical */
    /* (reservation experiment removed 2026-11-26: it left a fake 22px gap
       between name and location on 1-line cards. The Figma layout is a TIGHT
       name->location stack; the group stays bottom-pinned via margin-top:auto
       on the meta wrap, so last lines keep identical padding from the bottom) */
    .wp-block-kadence-testimonials .kt-testimonial-name {
        font-family: 'Poppins', sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 24px !important;
        color: rgba(0, 0, 0, 0.9) !important;
    }
    .wp-block-kadence-testimonials .kt-testimonial-occupation {
        font-family: 'Poppins', sans-serif !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 22px !important;
        color: rgba(0, 0, 0, 0.9) !important;
    }

    /* the slide li carries 8px side padding on mobile (insets the card to
       272px) — zero it so the card itself is the Figma 288px */
    .wp-block-kadence-testimonials .splide__slide {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* no arrows on mobile — finger drag only */
    .wp-block-kadence-testimonials .splide__arrow {
        display: none !important;
    }

    /* kill the Splide root's stock arrow-room side padding (35px — it exists
       for the stock arrows mobile doesn't have): the track then starts at the
       content edge, and with the JS wrap's 8px left padding the first card
       lands at exactly 16px from the viewport edge */
    .wp-block-kadence-testimonials .kt-blocks-carousel-init {
        padding-left: 0 !important;
        padding-right: 0 !important;
        /* pull the root's right edge 8px IN from the content edge (site edge
           padding is 8px): the clip lands at viewport-16px, mirroring the
           16px left gap. (Was -8px — a sign error that pushed the clip OUT
           to the viewport edge, so no right gap showed.) */
        margin-right: 8px !important;
    }
}
/* BF HOME — TESTIMONIALS MOBILE-END */
