nav.sa-navbar .navbar-brand img.sa-logo-img,
nav[data-sa-unified-nav] .navbar-brand img.sa-logo-img,
a.sa-logo img.sa-logo-img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

header.sa-site-header,
header.sa-site-header > nav {
  overflow: visible;
}

header.sa-site-header[data-sa-header-sticky="1"],
nav[data-sa-unified-nav][data-sa-header-sticky="1"] {
  position: sticky !important;
  top: 0;
  z-index: 1030;
}

nav[data-sa-unified-nav][data-sa-header-shrink="1"] {
  transition: box-shadow 0.25s ease, background-color 0.25s ease, min-height 0.25s ease;
}

nav[data-sa-unified-nav][data-sa-header-shrink="1"] .sa-navbar-inner,
nav[data-sa-unified-nav][data-sa-header-shrink="1"] > .container {
  transition: min-height 0.25s ease, padding 0.25s ease;
}

nav[data-sa-unified-nav][data-sa-header-shrink="1"] .sa-logo-img,
nav[data-sa-unified-nav][data-sa-header-shrink="1"] .navbar-brand img {
  transition: max-height 0.25s ease;
}

nav[data-sa-unified-nav][data-sa-header-shrink="1"].sa-header--shrunk,
nav[data-sa-unified-nav][data-sa-header-shrink="1"].sa-header--shrunk .sa-navbar-inner,
nav[data-sa-unified-nav][data-sa-header-shrink="1"].sa-header--shrunk > .container {
  min-height: 44px !important;
}

nav[data-sa-unified-nav][data-sa-header-shrink="1"].sa-header--shrunk {
  --bs-navbar-padding-y: 0.25rem;
}

nav[data-sa-unified-nav][data-sa-header-shrink="1"].sa-header--shrunk .sa-navbar-inner,
nav[data-sa-unified-nav][data-sa-header-shrink="1"].sa-header--shrunk > .container {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

nav[data-sa-unified-nav][data-sa-header-shrink="1"].sa-header--shrunk .sa-logo-img,
nav[data-sa-unified-nav][data-sa-header-shrink="1"].sa-header--shrunk .navbar-brand img {
  max-height: 2rem !important;
}

/* Mobile navigation. */
@media (max-width: 991.98px) {
  nav.sa-navbar .navbar-toggler .mobile-menu-toggle span,
  nav[data-sa-unified-nav] .navbar-toggler .mobile-menu-toggle span {
    background-color: var(--bs-body-color, #0f172a);
  }

  nav.sa-navbar .navbar-toggler,
  nav[data-sa-unified-nav] .navbar-toggler {
    color: var(--bs-body-color, #0f172a);
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

.offcanvas-backdrop {
  transition: opacity 0.32s ease;
}

@media (min-width: 992px) {
  .sa-actions--mobile-only,
  [data-sa-header-actions] [data-sa-visible="mobile"] {
    display: none !important;
  }

  nav[data-sa-unified-nav] [data-sa-desktop-mount] {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    min-width: 0;
  }

  nav[data-sa-unified-nav] [data-sa-desktop-mount] > [data-sa-ref="menu"] {
    min-width: 0;
    display: flex !important;
  }

  nav[data-sa-unified-nav] [data-sa-desktop-mount] > [data-sa-ref="actions"] {
    flex: 0 0 auto;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="center-menu"] [data-sa-desktop-mount],
  nav[data-sa-unified-nav][data-sa-header-layout="menu-near-logo"] [data-sa-desktop-mount],
  nav[data-sa-unified-nav][data-sa-header-layout="menu-actions-right"] [data-sa-desktop-mount] {
    flex: 1 1 auto;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="center-menu"] [data-sa-desktop-mount] > [data-sa-ref="menu"] {
    flex: 1 1 auto !important;
    justify-content: center !important;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="menu-near-logo"] [data-sa-desktop-mount] > [data-sa-ref="menu"] {
    flex: 0 1 auto !important;
    justify-content: flex-start !important;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="menu-near-logo"] [data-sa-desktop-mount] > [data-sa-ref="actions"] {
    margin-left: auto !important;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="menu-actions-right"] [data-sa-desktop-mount] {
    justify-content: flex-end !important;
    gap: 0.75rem;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="menu-actions-right"] [data-sa-desktop-mount] > [data-sa-ref="menu"] {
    flex: 0 1 auto !important;
    justify-content: flex-start !important;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="menu-left"] .sa-navbar-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    width: 100%;
    min-height: 3.5rem;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="menu-left"] .sa-navbar-inner > [data-sa-ref="menu"] {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="menu-left"] .sa-navbar-inner > .navbar-brand,
  nav[data-sa-unified-nav][data-sa-header-layout="menu-left"] .sa-navbar-inner > a.sa-logo:not(.navbar-toggler):not(.sa-nav-toggler) {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    position: static;
    transform: none;
    margin-left: 0;
    margin-right: 0;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="menu-left"] .sa-navbar-inner > [data-sa-ref="actions"] {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="logo-hamburger-only"] .sa-navbar-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3.5rem;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="logo-hamburger-only"] [data-sa-desktop-mount],
  nav[data-sa-unified-nav][data-sa-header-layout="logo-hamburger-only"] [data-sa-ref="menu"],
  nav[data-sa-unified-nav][data-sa-header-layout="logo-hamburger-only"] .sa-nav-menu-wrap,
  nav[data-sa-unified-nav][data-sa-header-layout="logo-hamburger-only"] [data-sa-ref="actions"] {
    display: none !important;
  }

  nav[data-sa-unified-nav][data-sa-header-layout="logo-hamburger-only"] .navbar-toggler,
  nav[data-sa-unified-nav][data-sa-header-layout="logo-hamburger-only"] .sa-nav-toggler {
    display: flex !important;
    margin-left: auto;
  }
}

@media (max-width: 991.98px) {
  .sa-actions--desktop-only,
  [data-sa-header-actions] [data-sa-visible="desktop"] {
    display: none !important;
  }

  nav[data-sa-unified-nav] [data-sa-desktop-mount],
  nav[data-sa-unified-nav] .sa-navbar-inner > .d-none.d-lg-flex:has(.sa-nav-menu-wrap),
  nav[data-sa-unified-nav] .sa-navbar-inner > .d-none.d-lg-flex:has([data-sa-ref="menu"]) {
    display: none !important;
  }

  nav[data-sa-unified-nav]:not([data-sa-header-layout="logo-hamburger-only"]) .navbar-toggler,
  nav[data-sa-unified-nav]:not([data-sa-header-layout="logo-hamburger-only"]) .sa-nav-toggler {
    margin-left: auto;
  }

  nav[data-sa-unified-nav] [data-sa-ref="actions"] {
    flex-direction: column;
    align-items: stretch;
  }

  .sa-unified-offcanvas.offcanvas-end {
    --bs-offcanvas-zindex: 1080;
    z-index: 1080 !important;
    --sa-nav-offcanvas-max: 100vw;
    width: 100%;
    max-width: 100%;
  }

  body > .offcanvas-backdrop.show {
    z-index: 1075 !important;
  }

  .sa-unified-offcanvas .offcanvas-header {
    padding-top: max(1.25rem, env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 1.05rem !important;
    min-height: 4.25rem;
  }
}

body.sa-offcanvas-open {
  overflow: hidden;
}

.sa-unified-offcanvas.offcanvas-end {
  --bs-offcanvas-transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  --sa-nav-offcanvas-max: min(90vw, 420px);
  width: var(--sa-nav-offcanvas-max);
  max-width: var(--sa-nav-offcanvas-max);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
}

.sa-unified-offcanvas .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.sa-unified-offcanvas .offcanvas-header .offcanvas-title {
  display: flex;
  align-items: center;
  line-height: 1;
}

.sa-unified-offcanvas .sa-offcanvas-brand img {
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
}

.sa-unified-offcanvas .offcanvas-body.sa-unified-offcanvas-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sa-unified-offcanvas .sa-offcanvas-menu .sa-nav-menu-wrap,
.sa-unified-offcanvas .sa-offcanvas-menu .main-menu,
.sa-unified-offcanvas .sa-offcanvas-menu nav {
  width: 100%;
}

.sa-unified-offcanvas .sa-offcanvas-menu .navbar-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
}

.sa-unified-offcanvas .sa-offcanvas-menu .nav-item {
  border-bottom: 1px solid #f1f5f9;
}

.sa-unified-offcanvas .sa-offcanvas-menu .nav-link {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  padding: 1rem 0;
  border-radius: 0;
}

.sa-unified-offcanvas .sa-offcanvas-menu .nav-link.active {
  color: var(--sa-color-primary, #6a11cb);
}

.sa-unified-offcanvas .sa-offcanvas-menu .dropdown-menu {
  position: static !important;
  transform: none !important;
  border: 0;
  box-shadow: none;
  padding-left: 0.75rem;
}

.sa-unified-offcanvas .sa-offcanvas-menu .dropdown.sa-nav-parent-with-children > .sa-nav-parent-row,
.sa-unified-offcanvas .sa-offcanvas-menu .dropend.sa-nav-parent-with-children > .sa-nav-parent-row {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.sa-unified-offcanvas .sa-offcanvas-menu .sa-nav-parent-with-children .sa-nav-parent-link {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.sa-unified-offcanvas .sa-offcanvas-menu .sa-nav-parent-with-children .sa-nav-submenu-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
}

.sa-unified-offcanvas .sa-offcanvas-menu .dropdown-menu .dropdown-item {
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.65rem 0;
  color: #334155;
}

.sa-unified-offcanvas .sa-offcanvas-menu .nav-item.dropdown > .dropdown-toggle[href="#"] {
  cursor: pointer;
}

.sa-unified-offcanvas .sa-offcanvas-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sa-unified-offcanvas .sa-offcanvas-actions .sa-header-actions,
.sa-unified-offcanvas .sa-offcanvas-actions [data-sa-header-actions] {
  flex-direction: column !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  width: 100%;
  gap: 0.75rem !important;
}

.sa-unified-offcanvas .sa-offcanvas-actions .sa-header-actions > a,
.sa-unified-offcanvas .sa-offcanvas-actions [data-sa-header-actions] > a {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.sa-unified-offcanvas .sa-offcanvas-actions .sa-login-link,
.sa-unified-offcanvas .sa-offcanvas-actions a.sa-login-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1.5px solid #0f172a;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
}

.sa-unified-offcanvas .sa-offcanvas-actions .btn.sa-demo-btn,
.sa-unified-offcanvas .sa-offcanvas-actions .btn.btn-dark,
.sa-unified-offcanvas .sa-offcanvas-actions .btn.btn-demo {
  width: 100%;
  min-height: 48px;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 1rem;
}

.sa-unified-offcanvas .sa-offcanvas-actions [data-sa-ref="actions"]:not([data-sa-header-actions]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}

.sa-unified-offcanvas .sa-offcanvas-actions [data-sa-ref="actions"]:not([data-sa-header-actions]) > a {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .sa-unified-offcanvas {
    transition: none !important;
  }
}

/* Language switcher. */
.sa-language-switcher {
  position: relative;
  flex-shrink: 0;
}

nav[data-sa-unified-nav],
nav[data-sa-unified-nav] .sa-navbar-inner,
nav[data-sa-unified-nav] [data-sa-desktop-mount],
nav[data-sa-unified-nav] [data-sa-ref="actions"],
nav[data-sa-unified-nav] [data-sa-header-actions] {
  overflow: visible;
}

.sa-language-switcher__toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.sa-language-switcher__toggle::after {
  margin-left: 0.1em;
}

.sa-language-switcher .sa-locale-label {
  line-height: 1.2;
}

.sa-language-switcher .sa-locale-flag {
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
}

.sa-language-switcher__menu {
  position: relative;
  z-index: 1100;
  min-width: 12rem;
  max-width: min(18rem, calc(100vw - 1rem));
  padding: 0.35rem 0;
  margin-top: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  overflow: visible;
}

.sa-language-switcher__menu.show::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

nav[data-sa-unified-nav] .sa-language-switcher__menu,
header.sa-site-header .sa-language-switcher__menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin-top: 0 !important;
}

.sa-language-switcher__menu .dropdown-item {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.55rem 1rem;
  color: #334155;
  min-height: 2.35rem;
  white-space: nowrap;
}

.sa-language-switcher__menu .dropdown-item.active,
.sa-language-switcher__menu .dropdown-item:active {
  background-color: rgba(106, 17, 203, 0.08);
  color: var(--sa-color-primary, #6a11cb);
}

.sa-language-switcher__menu .dropdown-item:hover,
.sa-language-switcher__menu .dropdown-item:focus {
  background-color: #f8fafc;
  color: #0f172a;
}

.sa-unified-offcanvas .offcanvas-body,
.sa-unified-offcanvas .sa-unified-offcanvas-body {
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
}

.sa-unified-offcanvas .sa-offcanvas-actions {
  flex-shrink: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.sa-unified-offcanvas .sa-offcanvas-actions .sa-language-switcher {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sa-unified-offcanvas .sa-offcanvas-actions .sa-language-switcher__toggle {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-weight: 700;
  border-radius: 10px;
}

.sa-unified-offcanvas .sa-offcanvas-actions .sa-language-switcher__menu {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  box-shadow: none;
  border: 1px solid #e2e8f0;
  display: none;
}

.sa-unified-offcanvas .sa-offcanvas-actions .sa-language-switcher__menu.show {
  display: block !important;
}

.sa-unified-offcanvas .sa-offcanvas-actions .sa-language-switcher__menu .dropdown-item {
  padding: 0.65rem 0.85rem;
}
