/* CreditLadder 131 only. No changes to application state, checkout or API flows. */
@media (min-width: 992px) {
  body.creditladder-131 .creditladder-header-search { display: none !important; }
  body.creditladder-131 .creditladder-header-search-wrap { display: none !important; }
  body.creditladder-131 .creditladder-header-logo { margin-left: 0 !important; margin-right: auto !important; width: auto !important; max-width: 260px; }
}
body.creditladder-131 .profile-img-box { filter: brightness(0) invert(1); }
body.creditladder-131 .creditladder-hero-logos { display: block; width: 100%; max-height: 560px; height: auto; object-fit: contain; }
body.creditladder-131 .creditladder-timeline { display: flex !important; flex-direction: column !important; gap: clamp(28px, 4vw, 56px) !important; max-width: 1080px; margin: 0 auto !important; padding: 0 !important; list-style: none !important; }
body.creditladder-131 .creditladder-timeline:before,
body.creditladder-131 .creditladder-timeline:after,
body.creditladder-131 .creditladder-timeline .timeline-badge { display: none !important; }
body.creditladder-131 .creditladder-timeline > li { padding: 0 !important; margin: 0 !important; width: 100% !important; position: relative !important; }
body.creditladder-131 .creditladder-timeline > li > .row { display: flex !important; align-items: center !important; flex-wrap: wrap !important; justify-content: space-between !important; gap: 20px !important; margin: 0 !important; }
body.creditladder-131 .creditladder-timeline > li > .row > div { flex: 0 0 calc(50% - 10px) !important; width: calc(50% - 10px) !important; max-width: none !important; padding: 0 !important; margin: 0 !important; float: none !important; order: 0 !important; }
body.creditladder-131 .creditladder-timeline > li:nth-child(2) > .row > div:first-child { order: 1 !important; }
body.creditladder-131 .creditladder-timeline > li:nth-child(2) > .row > div:nth-child(2) { order: 0 !important; }
body.creditladder-131 .creditladder-timeline .timeline-panel { width: 100% !important; max-width: none !important; position: static !important; transform: none !important; text-align: left !important; padding: 12px 0 !important; }
body.creditladder-131 .creditladder-timeline .pannel-imgs { display: flex !important; align-items: center; justify-content: center; min-height: 210px; border-radius: 20px; overflow: hidden; }
body.creditladder-131 .creditladder-timeline .pannel-imgs img { width: 100%; height: auto; max-height: 290px; object-fit: contain; }
body.creditladder-131 .creditladder-calculator { margin-top: clamp(58px, 7vw, 100px) !important; }
body.creditladder-131 .creditladder-calculator-art { width: 95px; max-width: 35%; height: auto; display: block; margin: 0 auto 10px; }
body.creditladder-131 .creditladder-calculator .calculator > span { display: none !important; }
body.creditladder-131 .creditladder-policy { background: #fff; padding: clamp(28px, 5vw, 64px) 0; }
body.creditladder-131 .creditladder-policy__content { max-width: 920px; margin: 0 auto; color: #252437; overflow-wrap: anywhere; line-height: 1.68; }
body.creditladder-131 .creditladder-policy h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 14px; line-height: 1.18; }
body.creditladder-131 .creditladder-policy h2 { font-size: clamp(1.17rem, 2vw, 1.4rem); margin: 30px 0 10px; line-height: 1.32; }
body.creditladder-131 .creditladder-policy h3 { font-size: 1.06rem; margin: 20px 0 8px; line-height: 1.35; }
body.creditladder-131 .creditladder-policy p { margin: 0 0 15px; }
body.creditladder-131 .creditladder-policy ul { padding-left: 1.4rem; margin-bottom: 18px; }
body.creditladder-131 .creditladder-policy li { padding-left: 4px; margin-bottom: 8px; }
body.creditladder-131 .creditladder-policy li p { margin: 0; }
body.creditladder-131 .creditladder-policy a { text-decoration: underline; text-underline-offset: 2px; }
body.creditladder-131 .creditladder-cookie-settings { border: 0; background: transparent; padding: 0; text-decoration: underline; cursor: pointer; }
body.creditladder-131 .creditladder-policy-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 24px; }
body.creditladder-131 .creditladder-policy-table { width: 100%; min-width: 650px; border-collapse: collapse; border: 1px solid #d8d6e1; font-size: 0.94rem; }
body.creditladder-131 .creditladder-policy-table th, body.creditladder-131 .creditladder-policy-table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid #d8d6e1; overflow-wrap: normal; }
body.creditladder-131 .creditladder-policy-table th { background: #f2f0f9; font-weight: 650; }
@media (max-width: 767px) {
  body.creditladder-131 .creditladder-timeline { gap: 34px !important; padding: 0 14px !important; }
  body.creditladder-131 .creditladder-timeline > li > .row { gap: 10px !important; }
  body.creditladder-131 .creditladder-timeline > li > .row > div { flex: 0 0 100% !important; width: 100% !important; order: 1 !important; }
  body.creditladder-131 .creditladder-timeline > li:first-child > .row > div:first-child, body.creditladder-131 .creditladder-timeline > li:last-child > .row > div:first-child { order: 0 !important; }
  body.creditladder-131 .creditladder-timeline > li:nth-child(2) > .row > div:nth-child(2) { order: 0 !important; }
  body.creditladder-131 .creditladder-timeline > li:nth-child(2) > .row > div:first-child { order: 1 !important; }
  body.creditladder-131 .creditladder-timeline .pannel-imgs { min-height: 0; padding: 12px; }
  body.creditladder-131 .creditladder-timeline .pannel-imgs img { max-height: 235px; }
  body.creditladder-131 .creditladder-timeline .timeline-panel { text-align: center !important; }
  body.creditladder-131 .creditladder-timeline .timeline-panel .w-50 { width: auto !important; }
  body.creditladder-131 .creditladder-hero-logos { max-height: 340px; }
  body.creditladder-131 .creditladder-policy-table { font-size: .9rem; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  body.creditladder-131 .creditladder-timeline { padding: 0 20px !important; }
  body.creditladder-131 .creditladder-timeline .pannel-imgs { min-height: 165px; }
}

/* Keep the expanded CreditLadder navigation readable at laptop widths. */
@media (min-width: 992px) and (max-width: 1279px) {
  body.creditladder-131 .creditladder-header-logo { max-width: 180px !important; }
  body.creditladder-131 .creditladder-header-logo img { max-width: 100%; height: auto; }
  body.creditladder-131 .navmenu a { font-size: 12px; }
  body.creditladder-131 .navmenu ul { gap: 8px; }
}
@media (max-width: 991px) {
  body.creditladder-131 .creditladder-header-logo { max-width: 210px; }
}
/* Keep the CreditLadder logo leading the header on small screens. */
@media (max-width: 767px) {
  body.creditladder-131 .navbar > a.logo.d-lg-none { order: 1 !important; margin-left: 0 !important; margin-right: auto !important; max-width: min(62vw, 195px); }
  body.creditladder-131 .navbar > a.logo.d-lg-none img { max-width: 100%; height: auto; }
  body.creditladder-131 .navbar > .mobile_toggle { order: 2 !important; left: auto !important; right: 6px !important; }
}

/* CreditLadder-only homepage refinements (publisher 131). */
/* Match the hero content gutters and max-width to the shared header/footer container. */
body.creditladder-131 #hero > .creditladder-hero-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
body.creditladder-131 #hero .creditladder-hero-container .padding_left {
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5) !important;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5) !important;
}
/* The global .step_2 rule adds a 100px margin; neutralise it here only. */
body.creditladder-131 .creditladder-timeline .step_2 .timeline-panel {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* Center each step CTA on narrow screens without changing desktop alignment. */
@media (max-width: 767px) {
  body.creditladder-131 .creditladder-timeline .timeline-panel > .brn_gs,
  body.creditladder-131 .creditladder-timeline .timeline-panel > .w-50 {
    width: fit-content !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  body.creditladder-131 .creditladder-timeline .timeline-panel .btn-get-started {
    justify-content: center;
    text-align: center;
  }
}

/* Publisher 131: optically balance the hero copy and the transparent logo artwork.
   The row is centred as a whole; the artwork is nudged down only to offset
   transparent pixels within the supplied PNG (no checkout/JS changes). */
@media (min-width: 992px) {
  body.creditladder-131 #hero {
    min-height: clamp(520px, 64vh, 665px);
    padding-top: clamp(52px, 6vw, 88px);
    padding-bottom: clamp(52px, 6vw, 88px);
    align-items: center;
  }
  body.creditladder-131 #hero > .creditladder-hero-container > .row {
    align-items: center;
  }
  body.creditladder-131 #hero .creditladder-hero-container .hero-img {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body.creditladder-131 #hero .creditladder-hero-logos {
    transform: translateY(14px);
  }
}
@media (max-width: 991px) {
  body.creditladder-131 #hero {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 48px;
  }
  body.creditladder-131 #hero .creditladder-hero-container .hero-img {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body.creditladder-131 #hero .creditladder-hero-logos {
    max-width: 520px;
    margin-inline: auto;
  }
}

/* CreditLadder (publisher 131) footer illustration: native aspect ratio on all devices. */
body.creditladder-131 #shop_now .creditladder-footer-art {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* CreditLadder legal tab and standalone policy pages only. */
body.creditladder-131 #terms_page h1,
body.creditladder-131 #terms_page h2,
body.creditladder-131 #terms_page h3,
body.creditladder-131 #terms_page h4,
body.creditladder-131 .creditladder-policy h1,
body.creditladder-131 .creditladder-policy h2,
body.creditladder-131 .creditladder-policy h3,
body.creditladder-131 .creditladder-policy h4,
body.creditladder-131 .creditladder-policy h5,
body.creditladder-131 .creditladder-policy h6 { color: #000000 !important; }

body.creditladder-131 #terms_page a,
body.creditladder-131 #terms_page a:visited,
body.creditladder-131 #terms_page a:hover,
body.creditladder-131 #terms_page a:focus,
body.creditladder-131 .creditladder-policy a,
body.creditladder-131 .creditladder-policy a:visited,
body.creditladder-131 .creditladder-policy a:hover,
body.creditladder-131 .creditladder-policy a:focus { color: #5E00FA !important; }

/* Legal tab selectors are buttons, but should share the link colour. */
body.creditladder-131 #terms_page .nav-tabs .nav-link,
body.creditladder-131 #terms_page .nav-tabs .nav-link:hover,
body.creditladder-131 #terms_page .nav-tabs .nav-link:focus { color: #5E00FA !important; }
body.creditladder-131 #terms_page .nav-tabs .nav-link.active {
  color: #5E00FA !important;
  border-bottom-color: #5E00FA;
}

/* Publisher 131 only: CreditLadder main-site typography confirmed from Chrome's
   Rendered Fonts panel: M PLUS Rounded 1c Regular (400) for paragraphs and
   navigation, Bold (700) for headings. Never alter icon-font glyph families. */
body.creditladder-131 {
  --default-font: 'M PLUS Rounded 1c', 'Rounded Mplus 1c', Arial, sans-serif;
  --heading-font: 'M PLUS Rounded 1c', 'Rounded Mplus 1c', Arial, sans-serif;
  --nav-font: 'M PLUS Rounded 1c', 'Rounded Mplus 1c', Arial, sans-serif;
  font-family: var(--default-font) !important;
  font-weight: 400;
}
body.creditladder-131 :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--heading-font) !important;
  font-weight: 700;
}
body.creditladder-131 :is(p, li, dt, dd, label, button, input, select, textarea, blockquote, small) {
  font-family: var(--default-font) !important;
}
body.creditladder-131 :is(.navmenu a, .navmenu a:focus, .navmenu a:hover, .list_text a, #header .btn-getstarted, #header .btn-get-started) {
  font-family: var(--nav-font) !important;
}
body.creditladder-131 :is(.navmenu a, .list_text a) {
  font-weight: 400;
}
body.creditladder-131 :is(.creditladder-policy, #terms_page, .creditladder-timeline, .cashback-estimator, .cashback-estimator__shell) {
  font-family: var(--default-font) !important;
}
body.creditladder-131 .cashback-estimator__total {
  font-family: var(--heading-font) !important;
  font-weight: 700;
}
/* Icons deliberately retain their Material Symbols / Bootstrap Icons font. */

/* Publisher 131: keep the mobile-menu search button entirely inside its field.
   Flex inputs otherwise retain their intrinsic minimum width on narrow screens. */
@media (max-width: 991px) {
  body.creditladder-131 .hidden-menu form.creditladder-header-search,
  body.creditladder-131 .hidden-menu form.creditladder-header-search > div,
  body.creditladder-131 .hidden-menu form.creditladder-header-search .search-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body.creditladder-131 .hidden-menu form.creditladder-header-search .search-container {
    display: flex !important;
    align-items: center;
    overflow: hidden;
  }
  body.creditladder-131 .hidden-menu form.creditladder-header-search .search-icon {
    flex: 0 0 40px;
  }
  body.creditladder-131 .hidden-menu form.creditladder-header-search .search-input {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    max-width: 100% !important;
  }
  body.creditladder-131 .hidden-menu form.creditladder-header-search .search-button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 86px;
    max-width: 38%;
    padding: 10px 14px;
    white-space: nowrap;
  }
}
@media (max-width: 359px) {
  body.creditladder-131 .hidden-menu form.creditladder-header-search .search-icon { flex-basis: 34px; }
  body.creditladder-131 .hidden-menu form.creditladder-header-search .search-button { min-width: 76px; padding-inline: 11px; }
}
