/*
 * Maintained site overrides loaded after the generated Webflow stylesheet.
 * Keep migration corrections here so future Webflow exports remain replaceable.
 */

/* Form status states */
.w-form-done.form-status-centered {
  align-items: center;
  justify-content: center;
  min-height: var(--form-status-height);
  padding: 0;
  background-color: transparent;
}

.w-form-done.form-status-centered > div {
  width: 100%;
  padding: 20px;
  background-color: #ddd;
}

.w-form-fail {
  text-align: left;
}

/* Use Cases navigation */
.dropdown-use-cases .use-case-link > .hover-bg-wrapper {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

.dropdown-use-cases .use-case-link > .use-case-text {
  min-width: 0;
}

/* Localized Start a Pilot layout */
html:not([lang="en"]) .start-a-pilot-page .subscribe-form-flex > .form-block-6,
html:not([lang="en"]) .start-a-pilot-page .subscribe-form-flex > .div-block-92 {
  min-width: 0;
  max-width: 100%;
}

html:not([lang="en"]) .start-a-pilot-page .grid-23 .image-60 {
  align-self: center;
  justify-self: center;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  max-height: 47.5px;
  object-fit: contain;
}

@media screen and (min-width: 768px) {
  html:not([lang="en"]) .start-a-pilot-page .subscribe-form-flex > .form-block-6,
  html:not([lang="en"]) .start-a-pilot-page .subscribe-form-flex > .div-block-92 {
    flex: 1 1 0;
    width: auto;
  }

  html:not([lang="en"]) .start-a-pilot-page .pilot-form-text .width-80pc {
    width: auto;
    max-width: 80%;
  }

}

/* Homepage tabs */
.homepage-page .tabs-2 .tab-block.w--current {
  border: 0;
}

.homepage-page .tabs-2 .tab-block.w--current::after {
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  border: 2px solid #000;
  border-radius: 18px;
  content: "";
  pointer-events: none;
}

/* Pricing interactions */
.pricing-page .pro-trial-modal-container {
  z-index: 1100;
}

.pricing-page .pro-trial-modal {
  width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.pricing-page .pro-trial-modal-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 16px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.pricing-page .pro-trial-modal-close:focus-visible {
  border-radius: 4px;
  outline: 2px solid #0074ff;
  outline-offset: 2px;
}

@media screen and (max-width: 479px) {
  .pricing-page .tabs-menu {
    width: calc(100% - 32px);
    max-width: 341px;
  }

  .pricing-page .tab-link-tab-1 {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding-right: 8px;
    padding-left: 8px;
  }

  .pricing-page .text-block-32.first,
  .pricing-page .text-block-32.second {
    max-width: none;
    overflow: visible;
  }
}

/* Use-case hero layouts */
@media screen and (min-width: 992px) {
  .account-takeovers-page .uj-bg {
    min-height: 539px;
  }

  .account-takeovers-page .uj-bg ._50-50-hero-info,
  .multi-accounting-page .uj-bg ._50-50-hero-info {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  }

  .account-takeovers-page .uj-bg .hero-info,
  .multi-accounting-page .uj-bg .hero-info {
    grid-area: 1 / 1 / 2 / 2;
  }

  .account-takeovers-page .uj-bg .hero-info,
  .account-takeovers-page .uj-bg .graphic-bot {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .account-takeovers-page .uj-bg .ato-img,
  .multi-accounting-page .uj-bg .ato-img {
    grid-area: 1 / 2 / 2 / 3;
    width: 100%;
  }

  .account-takeovers-page .uj-bg .ato-full-img.tab-ato-img,
  .multi-accounting-page .uj-bg .ato-full-img.ma-ratio {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    margin-left: auto;
    margin-right: 0;
    object-fit: contain;
  }

  /* Keep the illustration anchored to the hero, independent of translated copy height. */
  .account-takeovers-page .uj-bg .container.content-hero {
    position: static;
  }

  .account-takeovers-page .uj-bg .graphic-bot {
    aspect-ratio: 1.26;
  }

  .account-takeovers-page .uj-bg .graphic-bot > .tab-ato-img {
    position: absolute;
    right: max(32px, calc((100% - 1200px) / 2));
    bottom: 0;
    width: min(calc(50% - 32px), 600px);
    height: auto;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  /* Long translations need the tablet-sized type rhythm at the narrow desktop breakpoint. */
  .account-takeovers-page .uj-bg .uj-title {
    font-size: 52px !important;
    line-height: 1.15 !important;
  }

  .account-takeovers-page .uj-bg .ato-use-case {
    margin-bottom: 24px !important;
  }

  .account-takeovers-page .uj-bg .uj-sub-hero {
    margin-bottom: 32px !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  /* The hidden close slot must not reserve space beside longer localized utility links. */
  .a11y-blog .div-block-74 {
    column-gap: 16px;
  }

  .a11y-blog .div-block-74 > .x-container {
    display: none;
  }

  .account-takeovers-page .uj-bg .hero-info,
  .account-takeovers-page .uj-bg .graphic-bot {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .account-takeovers-page .uj-bg .graphic-bot {
    transform: translateY(24px);
  }

  .account-sharing-page .uj-bg .si-hero-img {
    transform: translateY(20px);
  }

  .synthetic-identities-page .uj-bg .si-hero-img {
    align-self: center !important;
  }
}
