/***HOMEPAGE PHASE 1****/

/* ==========================================================
   CONVINCE YOUR MANAGER  (row class: convince-manager)
   Desktop: row = 60 + 178 + 60 = 298px
   Mobile (<768px): row = 60 + 300 + 60 = 420px, knockout 359px wide
   The grid PNG itself is set in the Page Builder code block.
   Remove py-80 / py-60 from the row classes (padding is set here).
   ========================================================== */

/* ROW: height, fallback color, background at its natural size */
.convince-manager {
  box-sizing: border-box;
  min-height: 298px;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  background-color: #101214 !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: auto 298px !important;
}

/* Zero out RainFocus's wrapper spacing so the 60px is the only offset */
.convince-manager .flex-box-section-full-interior,
.convince-manager .flex-box-section,
.convince-manager .flex-box-child,
.convince-manager .element-container-wrapper,
.convince-manager .element-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* CONTENT: solid black "knockout" frame (hides the grid behind the text),
   178px tall on desktop, content vertically centered like the Figma */
.convince-manager .convince-manager-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 597px;
  min-height: 178px;
  margin-inline: auto;
  background: #101214;
  text-align: center;
}

.convince-manager .convince-manager-wrap h2 {
  margin: 0 0 20px !important;
  font-weight: 400 !important;
}

.convince-manager .convince-manager-wrap p {
  max-width: 502px;
  margin: 0 0 10px !important;
  font-size: 16px;
  line-height: 24px;
}

.convince-manager .convince-manager-wrap .button-wrap {
  margin: 0;
}

/* MOBILE (Figma 375 x 420): keep the grid. Knockout is 359px wide, so the grid
   shows in the 60px bands above/below it and the 8px side strips. */
@media (max-width: 767px) {
  .convince-manager {
    min-height: 0;
    /* The PNG is 298px tall, but the mobile row is 420px. Repeat it every 300px
       (5 grid cells) so the 60px horizontal lines stay aligned. */
    background-repeat: repeat-y !important;
    background-size: 1440px 300px !important;
  }

  /* RainFocus adds 24px side gutters here; Figma has 8px (359px of 375px) */
  .convince-manager .flex-box-section-full-interior {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .convince-manager .convince-manager-wrap {
    max-width: 359px;
    min-height: 300px;
    padding: 0 24px;          /* 311px text column */
  }

  .convince-manager .convince-manager-wrap h2 {
    font-size: 24px !important;
    line-height: 28px !important;
  }
}

/* ==========================================================
   Scrolling team27/date/location section
   ========================================================== */
.location-banner {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .location-banner .flex-box-child,
  .location-banner.flex-box-child {
    margin-bottom: 0 !important;
  }
}

/***END HOMEPAGE PHASE 1***/


/* ==========================================================
   PROMO BANNER ROW  (row custom class: promo-banner-row)
   ========================================================== */

/* 1. Full-bleed black row, no RainFocus padding/margins/max-width */
.promo-banner-row,
.promo-banner-row .flex-box-section-full {
  background: #101214 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.promo-banner-row .flex-box-section-full-interior,
.promo-banner-row .flex-box-section,
.promo-banner-row .flex-box-child,
.promo-banner-row .element-container-wrapper,
.promo-banner-row .element-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 2. Dismissed on this page: the row fades and slides away together.
      --pb-h is set by the script in the code block; 200px is the fallback. */
.promo-banner-row:has(#pb-dismiss:checked) {
  overflow: hidden !important;
  animation: pb-row-out .5s ease forwards;
}
@keyframes pb-row-out {
  from { opacity: 1; max-height: var(--pb-h, 200px); }
  to   { opacity: 0; max-height: 0; visibility: hidden; }
}
/* 3. Dismissed on an earlier page (cookie): never show the row */
html.pb-dismissed .promo-banner-row { display: none !important; }

/* 4. Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  .promo-banner-row:has(#pb-dismiss:checked) { animation-duration: .01ms; }
}
/* 5. Fix issue with Banner Page alignment, left & right margins*/
/* Beat the global container rule so the banner is truly full width */
.promo-banner-row.promo-banner-row .flex-box-section-full-interior {
  --ar-gutter-x: 0px !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
/*****END BANNER CSS*****/

/***FAQ PAGE CODE***/
.faq-row {
  background-color: #fff;
  background-image: radial-gradient(
    ellipse 520px 380px at 0% 100%,
    rgba(130,181,54,.55) 0%,
    rgba(130,181,54,.26) 45%,
    rgba(130,181,54,0) 100%
  ) !important;
  background-repeat: no-repeat !important;
}

/***Internal Toolkit page code***/
/* ===== Invite your network ===== */

/* Two-column row: 1169px max, 32px gap, vertically centered */
.invitenetwork-section .flex-box-section[data-type="row"] {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 32px !important;
  max-width: 1169px !important;
  margin: 0 auto !important;
}

/* Reset RainFocus column padding/margins; two equal columns (569 / 568) */
.invitenetwork-section .flex-box-section[data-type="row"] > .flex-box-child {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: 569px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Text group: column, 24px between heading and body */
.invitenetwork-section .keep-bullets {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 24px !important;
}

.invitenetwork-section .keep-bullets h1 {
  margin: 0 !important;
  font-family: 'Charlie Display', sans-serif !important;
  font-weight: 600 !important;
  font-size: 48px !important;
  line-height: 52px !important;
  color: #101214 !important;
}

/* Body copy: 16px between the two paragraphs (6 lines x 30 + 16 = 196px) */
.invitenetwork-section .keep-bullets > div {
  margin: 0 !important;
  font-family: 'Charlie Text', sans-serif !important;
  font-weight: 400 !important;
  color: #101214 !important;
}
.invitenetwork-section .keep-bullets > div + div {
  margin-top: -8px !important; /* 24px flex gap - 8px = 16px between paragraphs */
}
.invitenetwork-section .keep-bullets > div span {
  font-family: 'Charlie Text', sans-serif !important;
  font-size: 20px !important;
  line-height: 30px !important;
}

/* Photo: 568x470 cropped frame */
.invitenetwork-section img.pb-stackable-image-element {
  display: block !important;
  width: 100% !important;
  max-width: 568px !important;
  height: 470px !important;
  object-fit: cover !important;
  object-position: 66% 50% !important; /* approximates Figma's -64.5px / -14px offset */
  margin: 0 !important;
}

/* Tablet/mobile: stack */
@media (max-width: 768px) {
  .invitenetwork-section .flex-box-section[data-type="row"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }
  .invitenetwork-section .flex-box-section[data-type="row"] > .flex-box-child {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .invitenetwork-section .keep-bullets h1 {
    font-size: 36px !important;
    line-height: 40px !important;
  }
  .invitenetwork-section img.pb-stackable-image-element {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 568 / 470;
  }
}
/***END INTERNAL TOOLKIT PAGE***/

/***Account Page/Incomplete Payment Page edits***/
/*Remove bottom border under page header and fix padding*/
body[class*="-account"] .rfwf-full-panel.rfwf-header {
    border-bottom: none;
    padding-bottom: 0px;
}
body[class*="-account"] .rfwf-account-orders-heading {
    margin-top: -20px;
}
