.tf-showcase-help {
  position: fixed;
  z-index: 45;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 22%);
}

.tf-showcase-help:hover {
  color: #fff;
  background-color: #232323;
}

.tf-showcase-help:focus-visible {
  outline: 2px solid #f9b442;
  outline-offset: 3px;
}

.tf-showcase-help svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

body.tfr-picker-mvz-disable-scroll :is(.tf-showcase-help, #lbd-messenger-host),
body:has(#mobile-menu:not(.hidden)) :is(.tf-showcase-help, #lbd-messenger-host) {
  visibility: hidden;
}

/* Keep the picker dialog above the site header without the Popover API. */
.tfd-bar-wrap:has(.tfr-portals[data-open]:not([popover])) {
  z-index: 7;
}

@media (max-width: 1023px) {
  #transfer-overview .grid > :is(.space-y-10, aside) {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body.tf-theme-b .tfd-header .tfd-signin.user_link {
    width: auto;
    padding-inline: 10px;
  }
}

.tf-foot-accordion-heading {
  margin: 0;
}

.tf-foot-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  font-family: inherit;
  text-align: start;
}

.tf-foot-toggle:focus-visible {
  outline: 2px solid #f9b442;
  outline-offset: 2px;
}

@media (max-width: 359px) {
  body.tf-theme-b .tfd-header .tfd-signin.user_link {
    width: 2.25rem;
    padding-inline: 0;
  }

  body.tf-theme-b .tfb-head > .tfb-h2 {
    min-width: 0;
    max-width: 100%;
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  body.prose.m-4 {
    overflow-wrap: anywhere;
  }
}

/* The imported newsletter shortcode has a separate background outside the footer. */
footer.tf-site-footer:has(> .tf-footer-newsletter) {
  padding-top: 0;
}
footer.tf-site-footer .tf-footer-newsletter {
  width: 100%;
  margin: 0 auto 48px;
  padding: 46px 40px 38px;
  border-bottom: 1px solid #ffffff1c;
}
.tf-footer-newsletter .tfnl {
  padding: 0;
  background: transparent;
}
.tf-footer-newsletter .tfnl > div,
#page .tf-footer-newsletter .tfnl > div {
  max-width: none;
  padding: 0;
}
.tf-footer-newsletter .tfnl-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.tf-footer-newsletter .tfnl-grid {
  gap: 44px;
  align-items: start;
}
.tf-footer-newsletter .tfnl-h {
  max-width: 440px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.tf-footer-newsletter .tfnl-sub {
  color: #9fa0a5;
  font-size: 14px;
  max-width: 400px;
  margin-top: 10px;
}
.tf-footer-newsletter .tfnl-input {
  height: 50px;
  border-radius: 9px;
  background: #18191b;
  border-color: #3b3c3f;
}
.tf-footer-newsletter .tfnl-input::placeholder {
  color: #a7a8ad;
}
.tf-footer-newsletter .tfnl-btn {
  height: 50px;
  border-radius: 9px;
  padding-inline: 24px;
}
.tf-footer-newsletter .tfnl-status:empty {
  display: none;
}
.tf-footer-newsletter .tfnl-note {
  color: #9a9ca2;
  font-size: 11.5px;
  margin-top: 13px;
  max-width: 530px;
}
.tf-footer-newsletter .tfnl-note a {
  color: #d8d9dc;
}

@media (max-width: 700px) {
  html body.tf-theme-b .tfb-reviews .tfb-reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Keep the scrollable review track inside its grid column on mobile. */
  html body.tf-theme-b .tfb-reviews .tfb-review-list {
    min-inline-size: 0;
    max-inline-size: 100%;
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  footer.tf-site-footer .tf-footer-newsletter {
    padding: 34px 40px 30px;
    margin-bottom: 34px;
  }
  .tf-footer-newsletter .tfnl-grid {
    gap: 22px;
  }
  .tf-footer-newsletter .tfnl-h {
    font-size: 24px;
  }
}

/* Home snapshots inherit dark-only spacing from WordPress. Keep the same
   hero and first-section geometry in both themes. */
html:root body.tf-theme-b.tf-home-b .tf-deck:not(.tf-deck--bar):has(.tfd-picker) .tfd-bar-wrap::after {
  height: clamp(48px, 8vh, 96px);
}

html:root body.tf-theme-b.tf-home-b .tf-journey-steps.tfb-hiw:not(.tfb-hiw--inline) {
  padding-top: 120px;
}

@media (max-width: 700px) {
  html:root body.tf-theme-b.tf-home-b .tf-journey-steps.tfb-hiw:not(.tfb-hiw--inline) {
    padding-top: 72px;
  }
}
