/* Переключатель темы отключён — только тёмная */
#fincpa-theme-float {
  display: none !important;
}

#fincpa-theme-float--legacy {
  position: fixed;
  z-index: 99999;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  width: 48px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: linear-gradient(145deg, #16a34a, #22c55e);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#fincpa-theme-float:active {
  transform: scale(0.96);
}

#fincpa-theme-float .fincpa-theme-float__track {
  display: block;
  position: absolute;
  inset: 3px 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

#fincpa-theme-float .fincpa-theme-float__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s cubic-bezier(0.34, 1.15, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  pointer-events: none;
}

#fincpa-theme-float .fincpa-theme-float__knob svg {
  width: 11px;
  height: 11px;
}

#fincpa-theme-float .fincpa-theme-float__sun {
  display: none;
  color: #ea580c;
}

#fincpa-theme-float.is-on .fincpa-theme-float__moon {
  display: none;
}

#fincpa-theme-float.is-on .fincpa-theme-float__sun {
  display: block;
}

#fincpa-theme-float.is-on .fincpa-theme-float__knob {
  transform: translateX(20px);
}

html[data-theme="light"] #fincpa-theme-float {
  background: linear-gradient(145deg, #86efac, #22c55e);
  box-shadow: 0 2px 14px rgba(34, 197, 94, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
