.front-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: var(--sisforty-primary, #206bc4);
}

.front-mobile-theme-toggle {
  display: none;
}

@media (max-width: 991.98px) {
  .front-mobile-theme-toggle {
    display: inline-flex;
  }

  .front-desktop-theme-toggle {
    display: none !important;
  }
}

.front-theme-icon {
  display: inline-flex;
  flex: 0 0 1rem;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  line-height: 1;
}

.front-theme-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.front-theme-icon .ti,
.front-theme-icon.ti {
  font-size: 1rem;
}

.front-theme-switch {
  position: relative;
  flex: 0 0 30px;
  width: 30px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: var(--sisforty-primary, #206bc4);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: background-position .2s ease, background-color .2s ease;
  appearance: none;
  -webkit-appearance: none;
}

html:not(.theme-switch-ready) .front-theme-switch,
html:not(.theme-switch-ready) .front-theme-switch::after {
  transition: none !important;
}

html[data-tenant-theme="dark"] .front-theme-toggle input.front-theme-switch,
html[data-saas-theme="dark"] .front-theme-toggle input.front-theme-switch {
  background-position: 14px 2px !important;
}

html[data-tenant-theme="light"] .front-theme-toggle input.front-theme-switch,
html[data-saas-theme="light"] .front-theme-toggle input.front-theme-switch {
  background-position: 2px 2px !important;
}

html[data-tenant-theme="dark"] .front-theme-switch:not(input)::after,
html[data-saas-theme="dark"] .front-theme-switch:not(input)::after {
  transform: translateX(12px) !important;
}

html[data-tenant-theme="light"] .front-theme-switch:not(input)::after,
html[data-saas-theme="light"] .front-theme-switch:not(input)::after {
  transform: translateX(0) !important;
}

.front-theme-switch.dark {
  background-position: 14px 2px;
}

.front-theme-switch:not(input)::after {
  content: "" !important;
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s ease;
}

.front-theme-switch.dark:not(input)::after {
  transform: translateX(12px);
}

.front-theme-switch[aria-pressed="true"]:not(input)::after {
  transform: translateX(12px) !important;
}

.front-theme-switch[aria-pressed="false"]:not(input)::after {
  transform: translateX(0) !important;
}

.front-theme-switch:checked {
  background-image: radial-gradient(circle, #fff 0 6px, transparent 6.5px);
  background-repeat: no-repeat;
  background-position: 14px 2px;
  background-size: 14px 14px;
}

.front-theme-switch:focus-visible {
  outline: 3px solid rgba(11, 94, 215, .22);
  outline-offset: 3px;
}

.front-theme-switch:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.tenant-theme-toggle {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--sisforty-primary, #206bc4) !important;
}

.tenant-theme-toggle .front-theme-switch {
  display: inline-block;
}

.tenant-login-theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 10;
}

.front-theme-toggle input.front-theme-switch {
  display: inline-block;
  vertical-align: middle;
  background-image: radial-gradient(circle, #fff 0 6px, transparent 6.5px);
  background-repeat: no-repeat;
  background-position: 2px 2px !important;
  background-size: 14px 14px;
}

.front-theme-toggle input.front-theme-switch:checked {
  background-color: var(--sisforty-primary, #206bc4);
  background-position: 14px 2px !important;
}
