/* Presentation corrections for opted-in original marketing pages. */
.mkt-visual-v3-a .mkt-public-content .box-content p {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.6 !important;
  margin-bottom: 8px;
}

.mkt-visual-v3-a .mkt-public-content .featured-box,
.mkt-visual-v3-a .mkt-public-content .featured-box > .box-content {
  height: auto !important;
  min-height: 0 !important;
}

.mkt-visual-v3-a #countdown {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 !important;
}

.mkt-visual-v3-a #countdown > li {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 4px !important;
  margin: 0 !important;
}

.mkt-visual-v3-a #countdown > li > span {
  color: #0088cc !important;
  padding-right: 4px !important;
  padding-left: 4px !important;
}

.mkt-visual-v3-a #countdown > li > p {
  height: auto !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.mkt-visual-v3-a #dvClients,
.mkt-visual-v3-a .mkt-public-content > .heading {
  width: calc(100% - 30px);
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
}

.mkt-visual-v3-a #dvClients {
  display: flow-root;
}

.mkt-visual-v3-a #dvClients .testimonial.testimonial-style-4 {
  margin: 0 0 24px !important;
  padding: 0 !important;
}

.mkt-visual-v3-a #dvClients .testimonial-author {
  margin: 0 !important;
  padding: 0 !important;
}

.mkt-visual-v3-a #dvClients .testimonial-author-thumbnail {
  display: block;
  float: none;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px !important;
}

.mkt-visual-v3-a #dvClients .testimonial-author-thumbnail p {
  width: auto !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Logos keep their own shape inside 200x110; a logo that fails to load collapses instead of leaving an empty frame
   (inline-block: WebKit draws a 20px broken-image icon for a failed block image, none for an inline one). */
.mkt-visual-v3-a #dvClients .testimonial-author-thumbnail {
  text-align: center;
}

.mkt-visual-v3-a #dvClients .testimonial-author-thumbnail > p {
  text-align: left;
}

.mkt-visual-v3-a #dvClients .testimonial-author-thumbnail img {
  display: inline-block;
  vertical-align: top;
  width: auto;
  max-width: min(200px, 100%) !important;
  height: auto;
  max-height: 110px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.mkt-visual-v3-a .mkt-public-content > .heading h1 {
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.25;
}

/* Multi-line section headings: open the leading so lines do not touch. */
.mkt-visual-v3-a .mkt-public-content .box-content h3.heading-primary {
  line-height: 1.2;
}

.mkt-visual-v3-a .mkt-public-content .box-content h3.heading-primary.mb-md:not(.mt-5) {
  clear: both;
  padding-top: 16px;
}

@media (max-width: 1199px) {
  .mkt-visual-v3-a #dvClients,
  .mkt-visual-v3-a .mkt-public-content > .heading {
    max-width: 940px;
  }
}

@media (max-width: 991px) {
  .mkt-visual-v3-a #dvClients,
  .mkt-visual-v3-a .mkt-public-content > .heading {
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .mkt-visual-v3-a #dvClients,
  .mkt-visual-v3-a .mkt-public-content > .heading {
    max-width: none;
  }

  .mkt-visual-v3-a #footer p,
  .mkt-visual-v3-a #footer small,
  .mkt-visual-v3-a #footer a {
    font-size: 14px !important;
    line-height: 1.5;
  }

  .mkt-visual-v3-a #footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .mkt-visual-v3-a .mkt-public-content .box-content p,
  .mkt-visual-v3-a .mkt-public-content .testimonial-author-thumbnail p,
  .mkt-visual-v3-a .mkt-public-content .col-md-12 > label {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .mkt-visual-v3-a #countdown {
    max-width: 360px;
    gap: 4px;
  }

  .mkt-visual-v3-a #countdown > li > span {
    font-size: 36px !important;
  }

}

/* Keep the original signup card usable at tablet widths. */
@media (max-width: 991px) {
  body.mkt-visual-v3-a .row:has(> .col-sm-4 .featured-box) > .col-sm-8,
  body.mkt-visual-v3-a .row:has(> .col-sm-4 .featured-box) > .col-sm-4 {
    float: none;
    width: 100%;
  }
}

/* V4 (owner 122 a): demo pop-up and "Talk With us" button reach WCAG AA. Only the failing colours are darkened, just enough;
   hover (orange) and the thank-you buttons keep their look. The pop-up script injects its own <style>; these rules outrank it. */
html body #bio_ep_wrapper .demo { color: #ee0000; }
html body #bio_ep_wrapper .login-options { color: #767676; }
html body #bio_ep_wrapper .create-acc,
html body #bio_ep_wrapper .create-acc:active { background: #007cba; }
#btnOpen div[style*="width:120px"][style*="background:#0099e6"]:not([class]),
#btnOpen div[style*="width:120px"] > span[style*="background-color:#0099e6"] { background-color: #007cba !important; }

/* ---- V5 (owner 127 a): widget bubble, back-to-top button and the demo pop-up on phones. Layout only; the widget and pop-up
   scripts are unchanged, so these rules target the elements they render (!important only where their inline styles force it). */
/* V5.1 The speech bubble sits above the phone button, right-aligned with it and wide enough for the site name on one line (16px
   text), so it stays inside the window; it floats 22px above the button so it clears the footer links at the end of the page;
   the phone button and the "Talk With us" label keep their place. */
html body #btnOpen > #twlWidgetBubble {
  position: absolute !important; right: 0 !important; bottom: calc(100% + 22px) !important; left: auto !important;
  width: 236px !important; max-width: calc(100vw - 16px) !important; margin: 0 !important; padding: 4px 8px !important;
  font-size: 16px !important; line-height: 21px !important;
  box-sizing: border-box !important; overflow-wrap: anywhere !important; word-break: normal !important;
}
/* V5.2 The back-to-top button moves left of the widget column, so it never overlaps the "Talk With us" label. */
html body .scroll-to-top { right: 140px; }
/* V5.3 The demo pop-up on phones and tablets: full size instead of shrunk, readable 16px fields, 44px controls, scrolls inside
   itself when taller than the window. Desktop (1024 and wider) is unchanged. */
@media (max-width: 1023.98px) {
  html body #bio_ep {
    transform: translate(-50%, -50%) !important; -webkit-transform: translate(-50%, -50%) !important;
    width: min(540px, calc(100vw - 24px)) !important; height: auto !important;
    max-height: calc(100vh - 24px) !important; max-height: calc(100dvh - 24px) !important;
    overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain; box-sizing: border-box !important;
  }
  html body #bio_ep #bio_ep_wrapper { height: auto !important; padding: 44px 10px 14px !important; box-sizing: border-box !important; }
  html body #bio_ep #bio_ep_close {
    left: auto !important; right: 6px !important; top: 6px !important; margin: 0 !important;
    width: 44px !important; height: 44px !important; z-index: 2;
  }
  html body #bio_ep #bio_ep_wrapper .TWLforms input {
    width: 100% !important; height: 44px !important; min-height: 44px !important; font-size: 16px !important; box-sizing: border-box !important;
  }
  html body #bio_ep #bio_ep_wrapper .TWLforms .intl-tel-input { width: 100% !important; display: block !important; margin-bottom: 13px; }
  html body #bio_ep #bio_ep_wrapper .TWLforms .intl-tel-input input { margin-bottom: 0 !important; }
  html body #bio_ep #bio_ep_wrapper .create-acc {
    height: auto !important; min-height: 44px !important; min-width: 44px; line-height: 32px !important;
    padding: 6px 28px !important; margin-right: 0 !important; box-sizing: border-box !important;
  }
  html body #bio_ep #dvThank { height: auto !important; }
  html body #bio_ep #dvThank .imgwidtwl { max-width: 100% !important; padding-left: 0 !important; margin-right: 0 !important; }
}
@media (max-width: 767.98px) {
  html body #bio_ep #bio_ep_wrapper .Total { width: auto !important; padding-top: 6px !important; }
  html body #bio_ep #bio_ep_wrapper .formsleft { float: none !important; width: auto !important; height: auto !important; padding-top: 0 !important; }
  html body #bio_ep #bio_ep_wrapper .formsleft .imgwidtwl { width: 96px !important; }
  html body #bio_ep #bio_ep_wrapper .TWLforms { float: none !important; width: auto !important; margin-top: 10px !important; padding-top: 0 !important; }
  html body #bio_ep #bio_ep_wrapper .create-acc { display: block !important; width: 100% !important; margin-top: 6px !important; }
}

/* V6: keep the empty download frame out of the inline text baseline. */
html body #bio_ep > #ifGetAlldetdownload { display: block; border: 0; }

/* V6 measured repair: legal links get their own row at the narrow desktop breakpoint,
   preserving whole translated link labels while retaining the fixed-corner clearance. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  html body #footer .footer-copyright .row > .col-md-6:last-child { width: 100%; }
}

/* V6 measured repair: A's demo owns this stylesheet rather than mkt_public_v3.css. */
@media (min-width: 768px) and (max-width: 1440px) {
  html body #footer .footer-copyright #sub-menu { margin-right: 260px; }
}
