/**
 * Chrome fallbacks for cloned pages.
 * Remote Utouch theme CSS often fails to load; these keep header/menu/footer usable.
 * Page canvas, homepage hero, and footer styles live here once — do not duplicate per page.
 */

/* Default page canvas + type when theme CSS is missing (footer keeps its own dark styles) */
html,
body {
  background-color: #fff;
  font-family: Ubuntu, system-ui, sans-serif;
}

/* Accessibility: keep skip link off-screen until focused */
.skip-link.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link.screen-reader-text:focus {
  position: fixed !important;
  top: 8px !important;
  left: 8px !important;
  z-index: 100000 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  clip: auto !important;
  overflow: visible !important;
  background: #fff !important;
  color: #0f0f10 !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
}

/* Search overlay should stay closed unless explicitly opened */
.search-popup {
  display: none !important;
}

/*
 * Theme sticky-header JS often sets #header-spacer height even when the
 * header stays in normal flow (theme CSS missing) — that doubles the gap.
 * Collapse the spacer by default; re-enable only when the header is
 * actually fixed/sticky (body.cb-header-fixed from mobile-chrome.js).
 */
#header-spacer {
  display: block;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden;
  pointer-events: none;
}

body.cb-header-fixed #header-spacer {
  visibility: visible;
  overflow: hidden;
  height: var(--cb-header-offset, 0px) !important;
  min-height: var(--cb-header-offset, 0px) !important;
  max-height: none !important;
}

/*
 * Sticky header: #site-header already ships from the WP theme with
 * `header-sticky-desktop header-sticky-mobile` classes + data-pinned
 * attrs, but the Utouch theme JS that used to pin it (position:fixed +
 * manually sizing #header-spacer) isn't loaded here. `position: sticky`
 * gets the same "stays visible on scroll" result with far less code:
 * the header stays in normal flow — so the green announcement bar above
 * it scrolls away naturally, and #header-spacer never needs to grow
 * (only `position:fixed` headers hit the body.cb-header-fixed rule
 * above) — until it reaches the top of the viewport, then it sticks.
 */
#site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 500 !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15, 15, 16, 0.08) !important;
}

/* Orphan list discs / theme heading markers when Utouch CSS fails to load */
.kc_row,
.kc-elm,
.crumina-heading,
.heading-title,
.kriya-title,
.quinn-above-footer,
.footer-bg {
  list-style: none !important;
}
.kc_row::marker,
.crumina-heading::marker,
.heading-title::marker,
.kriya-title::marker {
  content: none !important;
  display: none !important;
}

/* Legacy WP message popup posts to kriya.com.au — hide if strip misses it */
.window-popup.message-popup,
.send-message-popup {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Modern focus rings for keyboard users */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
#menu-icon-trigger:focus-visible {
  outline: 2px solid #25c7b8 !important;
  outline-offset: 2px !important;
}
.search-popup.open,
.search-popup.is-visible,
body.search-active .search-popup,
body.overlay-search .search-popup {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  padding: 24px 20px !important;
  box-sizing: border-box !important;
}

.cd-overlay-nav,
.cd-overlay-content {
  display: none !important;
}

.utouch-icon {
  width: 24px !important;
  height: 24px !important;
  max-width: 48px !important;
  max-height: 48px !important;
}

/* Footer nav arrows / contact icons: theme uses small icons; keep them small */
#site-footer .widget_nav_menu .utouch-icon,
#site-footer .list--primary .utouch-icon,
#site-footer .menu-item .utouch-icon {
  width: 12px !important;
  height: 12px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex-shrink: 0;
}
#site-footer .w-contacts .utouch-icon,
#site-footer .contact-item .utouch-icon {
  width: 18px !important;
  height: 18px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}
#site-footer .socials .utouch-icon,
#site-footer .social__item .utouch-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}
#site-footer .back-to-top .utouch-icon {
  width: 20px !important;
  height: 20px !important;
}

/* Base button styles when Utouch theme CSS fails to load */
.btn,
.btn--primary,
.btn-medium,
a.btn,
button.btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35em !important;
  padding: 12px 24px !important;
  min-height: 44px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.btn--primary:not(.btn-border),
a.btn--primary:not(.btn-border),
button.btn--primary:not(.btn-border) {
  background: #25c7b8 !important;
  border: 2px solid #25c7b8 !important;
  color: #fff !important;
}
.btn--primary.btn-border,
a.btn--primary.btn-border {
  background: transparent !important;
  border: 2px solid #25c7b8 !important;
  color: #25c7b8 !important;
}
.btn .text,
a.btn .text {
  text-decoration: none !important;
  color: inherit !important;
}

/* Hide success copy until JS removes screen-reader-text (theme CSS often missing) */
#contact-form-success.screen-reader-text,
.form-message-field.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#contact-form-success:not(.screen-reader-text) {
  display: block !important;
  margin: 12px 0 !important;
  color: #0f766e !important;
  font-weight: 500 !important;
}

.contact-enquiry-form .field-text,
.contact-enquiry-form .field-textarea,
#contact-form-section .field-text,
#contact-form-section .field-textarea,
.demo-form-section .field-text,
.demo-form-section .field-textarea,
.req-demo-form .field-text,
.req-demo-form .field-textarea,
form.contact-enquiry-form .field-text,
form.contact-enquiry-form .field-textarea {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 14px !important;
  box-sizing: border-box !important;
}
.contact-enquiry-form .field-text label,
.contact-enquiry-form .field-textarea label,
#contact-form-section .field-text label,
#contact-form-section .field-textarea label,
.demo-form-section .field-text label,
.demo-form-section .field-textarea label,
.req-demo-form .field-text label,
.req-demo-form .field-textarea label,
form.contact-enquiry-form label {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}
.contact-enquiry-form .field-text input,
.contact-enquiry-form .field-text textarea,
.contact-enquiry-form .field-textarea input,
.contact-enquiry-form .field-textarea textarea,
#contact-form-section .field-text input,
#contact-form-section .field-text textarea,
#contact-form-section .field-textarea textarea,
.demo-form-section .field-text input,
.demo-form-section .field-text textarea,
.demo-form-section .field-textarea textarea,
.req-demo-form .field-text input,
.req-demo-form .field-text textarea,
.req-demo-form .field-textarea textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  padding: 10px 12px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 8px !important;
  background: #f5f6f7 !important;
  font: inherit !important;
}
#contact-form-section .wrap-forms:not(.cb-fields),
.contact-enquiry-form .wrap-forms:not(.cb-fields) {
  max-width: 560px !important;
}
#contact-form-section .wrap-forms.cb-fields,
.contact-enquiry-form .wrap-forms.cb-fields {
  max-width: none !important;
  width: 100% !important;
}
#contact-form-section .form-builder-item,
.contact-enquiry-form .form-builder-item {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#contact-form-section .kc_column,
body.kc-css-system .kc-css-68746 .kc_column {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
body.kc-css-system .kc-css-68746 > .kc-wrap-columns {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

/* Prevent oversized images from creating page-level horizontal scroll */
img,
.single-image img,
img.aligncenter,
.crumina-module.single-image img {
  max-width: 100% !important;
  height: auto !important;
}
.single-image,
.crumina-module.single-image {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Desktop CTAs: keep side-by-side with clear gap */
@media (min-width: 768px) {
  .hero-cta-buttons,
  .pricing-hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .hero-cta-buttons .btn,
  .pricing-hero-buttons .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
}

/*
 * Hamburger: hide the Utouch morph SVG (1000×1000 artboard often invisible
 * on iOS Safari) and draw a reliable 3-line icon with CSS instead.
 */
#menu-icon-wrapper svg,
.menu-icon-wrapper svg {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
}

#menu-icon-wrapper,
.menu-icon-wrapper {
  position: relative !important;
  display: block !important;
  width: 22px !important;
  height: 16px !important;
  min-width: 22px !important;
  min-height: 16px !important;
  max-width: 22px !important;
  max-height: 16px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  color: #313235 !important;
  /* Middle bar — separate props for iOS Safari */
  background-color: transparent !important;
  background-image: linear-gradient(currentColor, currentColor) !important;
  background-size: 100% 2px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

#menu-icon-wrapper::before,
#menu-icon-wrapper::after,
.menu-icon-wrapper::before,
.menu-icon-wrapper::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  border-radius: 1px !important;
  background: currentColor !important;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease !important;
}

#menu-icon-wrapper::before,
.menu-icon-wrapper::before {
  top: 0 !important;
}

#menu-icon-wrapper::after,
.menu-icon-wrapper::after {
  bottom: 0 !important;
}

body.menu-open #menu-icon-wrapper,
.primary-menu.open #menu-icon-wrapper,
body.menu-open .menu-icon-wrapper,
.primary-menu.open .menu-icon-wrapper {
  background: none !important;
}

body.menu-open #menu-icon-wrapper::before,
.primary-menu.open #menu-icon-wrapper::before,
body.menu-open .menu-icon-wrapper::before,
.primary-menu.open .menu-icon-wrapper::before {
  top: 7px !important;
  transform: rotate(45deg) !important;
}

body.menu-open #menu-icon-wrapper::after,
.primary-menu.open #menu-icon-wrapper::after,
body.menu-open .menu-icon-wrapper::after,
.primary-menu.open .menu-icon-wrapper::after {
  bottom: auto !important;
  top: 7px !important;
  transform: rotate(-45deg) !important;
}

/* Desktop header: theme CSS often unavailable — keep a usable top bar */
@media (min-width: 768px) {
  .header-content-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 14px 40px !important;
    box-sizing: border-box !important;
  }

  .site-logo {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .menu-icon-trigger {
    display: none !important;
  }

  .primary-menu {
    position: static !important;
    flex: 1 1 auto !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .primary-menu-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.15rem 0.35rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .primary-menu-menu > li {
    display: inline-block !important;
    float: none !important;
  }

  .primary-menu-menu > li > a {
    display: inline-block !important;
    padding: 8px 12px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    color: #313235 !important;
    font-family: Ubuntu, system-ui, sans-serif !important;
  }

  .header-login {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    align-self: center !important;
    gap: 1rem !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  .header-login .contact-item {
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .header-login .contact-item a {
    white-space: nowrap !important;
    text-decoration: none !important;
    color: #313235 !important;
    font-weight: 500 !important;
  }

  /* Main content gutters when theme container styles are missing */
  .kc-container,
  .kc-row-container.kc-container {
    max-width: 1170px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }

  /* Tighten oversized KingComposer section padding when theme CSS is missing */
  .kc_row:not(.kc_row_inner) {
    padding-top: clamp(48px, 8vw, 88px) !important;
    padding-bottom: clamp(48px, 8vw, 88px) !important;
  }
  .home-demo-req-section.kc_row,
  .free-trial-hero.kc_row {
    padding-top: clamp(40px, 6vw, 72px) !important;
    padding-bottom: clamp(40px, 6vw, 72px) !important;
  }

  #content,
  .content-wrapper,
  .site-content {
    box-sizing: border-box !important;
  }

  /*
   * Blog article reading column: theme sidebar is hidden (display:none) on
   * these pages, so .post__content stretches to the full grid width and
   * lines run far past a comfortable reading measure. Cap and center it.
   * (The per-page inline theme <style> block ships
   * `.single-post .post-standard-details .post__content-info { margin-left: 0 !important; }`
   * — three classes deep — so we need to match/beat that specificity, a
   * plain `body .post__content-info` loses on specificity and gets
   * overridden.)
   */
  body.single-post .post-standard-details .post__content-info,
  body.single-post .post-standard-details .post__content,
  body .post__content-info,
  body .post__content {
    max-width: 720px !important;
    margin: 0 auto !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
  }
}

/*
 * Scroll-shadow hint for horizontally-scrollable WP tables: the figure
 * wrapper already has overflow-x:auto, but nothing tells a reader there's
 * more content off-screen — the row just gets clipped mid-word. Fade the
 * edges so it reads as "scroll for more" instead of "broken layout."
 */
.wp-block-table {
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%) 100% 0,
    linear-gradient(to right, rgba(15, 15, 16, 0.16), rgba(15, 15, 16, 0)),
    linear-gradient(to left, rgba(15, 15, 16, 0.16), rgba(15, 15, 16, 0)) 100% 0 !important;
  background-repeat: no-repeat !important;
  background-color: #fff !important;
  background-size: 32px 100%, 32px 100%, 12px 100%, 12px 100% !important;
  background-attachment: local, local, scroll, scroll !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 767px) {
  html,
  body {
    /*
     * `overflow-x: hidden` on html/body turns them into scroll containers,
     * which breaks `position: sticky` on #site-header (its containing
     * block stops being the viewport). `overflow-x: clip` prevents the
     * same horizontal-scroll-from-oversized-content issue without that
     * side effect; browsers that don't support `clip` fall back to the
     * `hidden` declaration above (last valid value wins).
     */
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* Compact mobile chrome: logo left, menu right */
  #site-header .header-wrapper,
  #site-header .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  #top-bar-js.top-bar-link {
    display: none !important;
  }

  /*
   * Theme inline CSS: `.header.header-has-topbar .header-content-wrapper
   * { padding: 70px 0 20px !important }` reserves space for the WP top bar.
   * We hide that bar on mobile — use #site-header for specificity to win.
   */
  #site-header .header-content-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 16px 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    gap: 12px !important;
    text-align: left !important;
  }

  .site-logo {
    position: relative !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  /* Logo home link (img + tagline) */
  .site-logo a.site-logo-link,
  .site-logo a.full-block {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: auto !important;
    height: auto !important;
    text-decoration: none !important;
    color: inherit !important;
  }

  .site-logo img {
    display: block !important;
    width: 144px !important;
    max-width: 144px !important;
    height: auto !important;
    margin: 0 !important;
  }

  .site-logo .logo-tagline {
    margin-top: 1px !important;
    font-size: 9px !important;
    max-width: 148px !important;
    line-height: 1.15 !important;
  }

  .header-login {
    display: none !important;
  }

  #menu-icon-trigger.menu-icon-trigger,
  .menu-icon-trigger {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    flex: 0 0 44px !important;
    color: #313235 !important;
    text-decoration: none !important;
    z-index: 2 !important;
  }

  /* Icon bars live on #menu-icon-wrapper; keep hit target 44×44 */
  #menu-icon-trigger #menu-icon-wrapper,
  #menu-icon-trigger .menu-icon-wrapper {
    display: block !important;
    width: 22px !important;
    height: 16px !important;
    min-width: 22px !important;
    min-height: 16px !important;
    max-width: 22px !important;
    max-height: 16px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .primary-menu {
    position: relative !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    order: 2 !important;
  }

  .primary-menu-menu {
    display: none !important;
  }

  .primary-menu.open .primary-menu-menu,
  body.menu-open .primary-menu-menu {
    display: block !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: min(280px, calc(100vw - 32px)) !important;
    max-width: min(280px, calc(100vw - 32px)) !important;
    background: #fff !important;
    z-index: 1000 !important;
    padding: 8px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14) !important;
    box-sizing: border-box !important;
    list-style: none !important;
    margin: 0 !important;
  }

  .primary-menu.open .primary-menu-menu > li,
  body.menu-open .primary-menu-menu > li {
    display: block !important;
    margin: 0 !important;
    border-bottom: 1px solid #eee !important;
  }

  .primary-menu.open .primary-menu-menu > li:last-child,
  body.menu-open .primary-menu-menu > li:last-child {
    border-bottom: none !important;
  }

  .primary-menu.open .primary-menu-menu > li > a,
  body.menu-open .primary-menu-menu > li > a {
    display: block !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    color: #313235 !important;
    font-family: Ubuntu, system-ui, sans-serif !important;
  }

  .kc-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .hero-cta-buttons {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .hero-cta-buttons .btn,
  .pricing-hero-buttons .btn {
    width: 100% !important;
    max-width: 280px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    /* Some pages carry a legacy `.quinn-above-footer .btn { margin-top: -20px }`
       rule meant to nudge a single desktop row up under its heading. Stacked
       in a mobile column, that negative margin eats the gap and the two CTAs
       touch/overlap. Neutralize it so the flex `gap` above is what creates space. */
    margin-top: 0 !important;
  }

  /* Common form controls: avoid overflow */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="password"],
  textarea,
  select {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Homepage hero: readable type, no edge-clip feel */
  .home-demo-req-section .heading-title,
  .home-demo-req-section h1.heading-title,
  body.kc-css-system .home-demo-req-section .heading-title,
  body.kc-css-system .kc-css-738538 .heading-title {
    font-size: 32px !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  @media (max-width: 479px) {
    .home-demo-req-section .heading-title,
    body.kc-css-system .kc-css-738538 .heading-title {
      font-size: 28px !important;
    }
  }

  /* Contact / demo forms: tighter gutters on small screens */
  .kc-css-68746 .kc_column,
  .kc-css-68746 > .kc-wrap-columns > .kc_column,
  body.kc-css-system .kc-css-68746 .kc_column,
  #contact-form-section .kc_column {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Pricing cards / columns: prevent sideways squeeze */
  .pricing-tables-item,
  .crumina-pricing-tables-item {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Announcement bar: compact so hero reaches first viewport sooner */
  .announcement-bar {
    min-height: 36px !important;
    height: auto !important;
    padding: 8px 14px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    font-size: 12px !important;
  }
}

/* ==========================================================================
   Homepage / shared hero (.home-demo-req-section)
   Light 2-col layout when Utouch/KingComposer CSS fails to load.
   Scoped to this section only — does not touch #site-footer or .cb-page grids.
   ========================================================================== */
.home-demo-req-section {
  background-color: #fff !important;
  color: #313235;
}

.home-demo-req-section > .kc-row-container > .kc-wrap-columns {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.home-demo-req-section > .kc-row-container > .kc-wrap-columns > .kc_column {
  float: none !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.home-demo-req-section .kc-col-container {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.home-demo-req-section img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

@media (min-width: 768px) {
  .home-demo-req-section > .kc-row-container > .kc-wrap-columns {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .home-demo-req-section > .kc-row-container > .kc-wrap-columns > .kc_column {
    flex: 1 1 0 !important;
  }

  body.home .home-demo-req-section > .kc-row-container > .kc-wrap-columns > .kc_column:first-child {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    width: 45% !important;
  }

  body.home .home-demo-req-section > .kc-row-container > .kc-wrap-columns > .kc_column:last-child {
    flex: 0 0 55% !important;
    max-width: 55% !important;
    width: 55% !important;
  }
}

@media (max-width: 767px) {
  .home-demo-req-section > .kc-row-container > .kc-wrap-columns {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }

  .home-demo-req-section > .kc-row-container > .kc-wrap-columns > .kc_column {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
}

/*
 * Classic KingComposer pages (product, pricing, home, etc.):
 * restore basic multi-column layout when theme/KC CSS fails.
 * Skip .cb-page marketing templates — they use content-system.css.
 */
body:not(:has(.cb-page)) .entry-content > .kc_row > .kc-row-container > .kc-wrap-columns {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body:not(:has(.cb-page)) .entry-content > .kc_row > .kc-row-container > .kc-wrap-columns > .kc_column {
  float: none !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

@media (min-width: 768px) {
  body:not(:has(.cb-page)) .entry-content > .kc_row > .kc-row-container > .kc-wrap-columns {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  body:not(:has(.cb-page)) .entry-content > .kc_row > .kc-row-container > .kc-wrap-columns > .kc_column {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  /* 50/50 when KingComposer marks both columns as sm-6 */
  body:not(:has(.cb-page)) .entry-content > .kc_row > .kc-row-container > .kc-wrap-columns > .kc_col-sm-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media (max-width: 767px) {
  body:not(:has(.cb-page)) .entry-content > .kc_row > .kc-row-container > .kc-wrap-columns {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body:not(:has(.cb-page)) .entry-content > .kc_row > .kc-row-container > .kc-wrap-columns > .kc_column {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
}

/*
 * Nested KingComposer inner rows (homepage pricing, who-is, why-choose, etc.)
 * when theme/KC CSS fails to load.
 */
body:not(:has(.cb-page)) .entry-content .kc_row_inner {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

body:not(:has(.cb-page)) .entry-content .kc_row_inner > .kc_column_inner,
body:not(:has(.cb-page)) .entry-content .kc_row_inner > [class*="kc_col-sm-"] {
  float: none !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

@media (min-width: 768px) {
  body:not(:has(.cb-page)) .entry-content .kc_row_inner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  body:not(:has(.cb-page)) .entry-content .kc_row_inner > .kc_col-sm-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  body:not(:has(.cb-page)) .entry-content .kc_row_inner > .kc_col-sm-7 {
    flex: 0 0 58.333333% !important;
    max-width: 58.333333% !important;
    width: 58.333333% !important;
  }

  body:not(:has(.cb-page)) .entry-content .kc_row_inner > .kc_col-sm-5 {
    flex: 0 0 41.666667% !important;
    max-width: 41.666667% !important;
    width: 41.666667% !important;
  }
}

@media (max-width: 767px) {
  body:not(:has(.cb-page)) .entry-content .kc_row_inner {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body:not(:has(.cb-page)) .entry-content .kc_row_inner > .kc_column_inner,
  body:not(:has(.cb-page)) .entry-content .kc_row_inner > [class*="kc_col-sm-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
}

/* ==========================================================================
   Shared footer system (#site-footer)
   Injected on every cloned page. Replaces missing Utouch footer grid/styles.
   Edit here only — never per-page.
   ========================================================================== */
#site-footer {
  font-family: Ubuntu, system-ui, sans-serif !important;
  color: #ffffff;
  margin-top: 0;
  clear: both;
}
#site-footer .footer-wrapper {
  background-color: #121921 !important;
  background-image: none !important;
  color: #ffffff !important;
  padding: 48px 0 0;
}
#site-footer .header-lines-decoration {
  display: block;
  width: 100%;
  height: 4px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #1dbb99 0%,
    #1dbb99 14.2%,
    #3b82f6 14.2%,
    #3b82f6 28.4%,
    #60a5fa 28.4%,
    #60a5fa 42.6%,
    #fb923c 42.6%,
    #fb923c 56.8%,
    #ef4444 56.8%,
    #ef4444 71%,
    #22c55e 71%,
    #22c55e 85.2%,
    #1dbb99 85.2%,
    #1dbb99 100%
  );
}
#site-footer .header-lines-decoration > span {
  display: none;
}

#site-footer .footer-wrapper > .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  box-sizing: border-box;
}

/* Top row: about (left) + widgets (right) */
#site-footer .footer-wrapper > .container > .row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 32px 40px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
#site-footer .footer-wrapper > .container > .row > [class*="col-"] {
  float: none !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
}
#site-footer .footer-wrapper > .container > .row > .col-lg-5 {
  flex: 1 1 320px !important;
  width: auto !important;
  max-width: 420px !important;
}
#site-footer .footer-wrapper > .container > .row > .col-lg-6,
#site-footer .footer-wrapper > .container > .row > [class*="col-lg-offset"] {
  flex: 1 1 360px !important;
  width: auto !important;
  max-width: 100% !important;
}

/* Inner widget columns */
#site-footer .footer-wrapper > .container > .row > [class*="col-"] > .row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px 28px !important;
  margin: 0 !important;
  width: 100% !important;
}
#site-footer .footer-wrapper aside.widget,
#site-footer .footer-wrapper [class*="col-"] > .row > aside.widget {
  flex: 1 1 160px !important;
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

#site-footer,
#site-footer p,
#site-footer a:not(.btn),
#site-footer li,
#site-footer .widget-title,
#site-footer .site-copyright-text {
  font-family: Ubuntu, system-ui, sans-serif !important;
}

#site-footer .widget-title {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 0 14px !important;
}
#site-footer .w-info .heading-text p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 0 12px !important;
}
#site-footer .w-info img {
  max-width: 150px;
  height: auto;
  margin-bottom: 8px;
}
#site-footer a:not(.btn),
#site-footer .social__item svg,
#site-footer .w-list ul.list,
#site-footer .widget_nav_menu ul.list {
  color: #ffffff !important;
  fill: #ffffff !important;
}
#site-footer a:not(.btn):hover,
#site-footer a.learn-more:hover {
  color: #1dbb99 !important;
}

#site-footer #menu-footer-menu,
#site-footer .menu.list,
#site-footer .list--primary,
#site-footer .socials,
#site-footer ul.list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#site-footer #menu-footer-menu > li,
#site-footer .list--primary > li {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  list-style: none !important;
}
#site-footer #menu-footer-menu > li > a,
#site-footer .list--primary > li > a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}
#site-footer #menu-footer-menu > li.current-menu-item > a,
#site-footer #menu-footer-menu > li.current_page_item > a {
  color: #1dbb99 !important;
  font-weight: 600 !important;
}

#site-footer .w-contacts .contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}
#site-footer .w-contacts .contact-item a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px !important;
}
#site-footer .socials {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 8px !important;
}
#site-footer .socials li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#site-footer .social__item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#site-footer .widget_block p {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}
#site-footer .widget_block a {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
}
#site-footer .widget_block a:hover {
  color: #1dbb99 !important;
}

#site-footer .sub-footer {
  background: #0c1218 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 !important;
  margin-top: 0 !important;
  position: relative;
}
#site-footer .sub-footer .container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
#site-footer .sub-footer .row,
#site-footer .sub-footer [class*="col-"] {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
#site-footer .site-copyright-text {
  color: #a8b0b8 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  display: block;
}
#site-footer .site-copyright-text a {
  color: #1dbb99 !important;
}
#site-footer .back-to-top {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1dbb99;
  color: #fff !important;
  fill: #fff !important;
  text-decoration: none !important;
}
#site-footer .back-to-top:hover {
  background: #17a885;
}

@media (max-width: 900px) {
  #site-footer .footer-wrapper > .container {
    padding: 32px 20px 36px;
  }
  #site-footer .footer-wrapper > .container > .row > .col-lg-5,
  #site-footer .footer-wrapper > .container > .row > .col-lg-6,
  #site-footer .footer-wrapper > .container > .row > [class*="col-lg-offset"] {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  #site-footer .back-to-top {
    right: 16px;
  }

  /* Stack footer widgets vertically — prevents Get in touch overlapping nav links */
  #site-footer .footer-wrapper > .container > .row > [class*="col-"] > .row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
  }
  #site-footer .footer-wrapper aside.widget,
  #site-footer #nav_menu-3,
  #site-footer #utouch_contacts-6,
  #site-footer #block-2 {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  #site-footer #nav_menu-3 {
    padding-bottom: 8px !important;
  }
  #site-footer #utouch_contacts-6 {
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  #site-footer #block-2 {
    margin-top: 24px !important;
    padding-top: 24px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  #site-footer .sub-footer {
    margin-top: 0 !important;
  }
}

@media (max-width: 600px) {
  #site-footer .footer-wrapper > .container > .row > [class*="col-"] > .row {
    gap: 0 !important;
  }
  #site-footer .footer-wrapper aside.widget {
    flex: none !important;
  }
}
