/* Local public-page readability and footer target sizes. */
body.mkt-visual-v3-public #footer,
body.mkt-visual-v3-public #footer p,
body.mkt-visual-v3-public #footer small,
body.mkt-visual-v3-public #footer a {
  font-size: 14px;
  line-height: 22px;
  color: #b3b3b3;
}
body.mkt-visual-v3-public #footer a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
body.mkt-visual-v3-legal .main > .content > .container,
body.mkt-visual-v3-legal .main p,
body.mkt-visual-v3-legal .main li {
  color: #333 !important;
}

/* Forms: a hidden validation message keeps no blank line until it shows; no empty line after a field label. */
body.mkt-visual-v3-public span[id*="Validator"][style*="visibility:hidden"],
body.mkt-visual-v3-public span[id*="Validator"][style*="visibility: hidden"],
body.mkt-visual-v3-public span[id$="cvPassword"][style*="visibility:hidden"],
body.mkt-visual-v3-public span[id$="cvPassword"][style*="visibility: hidden"],
body.mkt-visual-v3-public .form-group label + br { display: none; }

/* V4 contrast (WCAG AA 4.5:1): plan text, currency, country captions, the "New" badge and the most-popular plan heading. */
body.mkt-visual-v3-public .CurCode,
body.mkt-visual-v3-public .pricing-table .plan ul li strong,
body.mkt-visual-v3-public .thumb-info-caption .thumb-info-caption-text { color: #6b6b6b; }
body.mkt-visual-v3-public .pricing-table .most-popular h3 { background-color: #0074ae !important; }
/* The badge colour is an inline !important red: a darker red layer is painted just behind its text. */
body.mkt-visual-v3-public span[style*="background: red"] { position: relative; z-index: 0; }
body.mkt-visual-v3-public span[style*="background: red"]::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1;
  border-radius: 15px; background: #e00000;
}

/* 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: reserve the fixed corner column for footer legal links at every scroll position.
   V5 reserves 130px. The V5 speech bubble is 236px wide; 260px includes a small gap. */
@media (min-width: 768px) and (max-width: 1440px) {
  html body #footer .footer-copyright #sub-menu { margin-right: 260px; }
}

/* 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%; }
}
